/* ============================================================
   Shop Archive — Le Palais du Peton
   ============================================================ */

/* ── Hero ── */
.pdp-shop-hero {
    background: var(--pdp-beige);
    border-bottom: 1px solid var(--pdp-border);
    padding: 2rem 1.5rem 1.5rem;
}
.pdp-shop-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.pdp-shop-breadcrumb {
    font-size: 0.78rem;
    color: var(--pdp-mid);
    margin-bottom: 0.6rem;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}
.pdp-shop-breadcrumb a { color: var(--pdp-mid); text-decoration: none; }
.pdp-shop-breadcrumb a:hover { color: var(--pdp-dark); }
.pdp-shop-hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--pdp-dark);
    margin: 0 0 0.4rem;
}
.pdp-shop-hero p {
    font-size: 0.9rem;
    color: var(--pdp-mid);
    margin: 0;
}

/* ── Filters bar ── */
.pdp-shop-filters {
    background: #fff;
    border-bottom: 1px solid var(--pdp-border);
    position: sticky;
    top: 72px; /* below header */
    z-index: 90;
}

/* Ligne 1 : catégories (pleine largeur) */
.pdp-shop-filters-cats {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1.5rem 0;
}

/* Category pills */
.pdp-shop-cats {
    display: flex;
    gap: 0.4rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.6rem;
}
.pdp-shop-cats::-webkit-scrollbar { display: none; }
.pdp-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--pdp-beige);
    color: var(--pdp-dark);
    border: 1px solid var(--pdp-border);
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.pdp-cat-pill:hover {
    background: var(--pdp-rose-soft);
    border-color: var(--pdp-rose);
    color: var(--pdp-dark);
}
.pdp-cat-pill.active {
    background: var(--pdp-dark);
    border-color: var(--pdp-dark);
    color: #fff;
}
.pdp-cat-pill-count {
    font-size: 0.68rem;
    font-weight: 400;
    opacity: 0.65;
}

/* Ligne 2 : toolbar (count + search + sort) */
.pdp-shop-toolbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.45rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--pdp-border);
    background: var(--pdp-beige);
}
.pdp-shop-count {
    font-size: 0.78rem;
    color: var(--pdp-mid);
    flex: 1;
}

/* Search (dans la toolbar) */
.pdp-shop-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--pdp-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.pdp-shop-search-input {
    border: none;
    background: transparent;
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
    width: 200px;
    color: var(--pdp-dark);
    outline: none;
}
.pdp-shop-search-input::placeholder { color: var(--pdp-light); }
.pdp-shop-search-btn {
    border: none;
    background: transparent;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
}

.pdp-shop-sort select {
    border: 1px solid var(--pdp-border);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.78rem;
    background: #fff;
    color: var(--pdp-dark);
    cursor: pointer;
    outline: none;
}

/* ── Main ── */
.pdp-shop-main {
    background: #fff;
    padding: 2rem 0 4rem;
}
.pdp-shop-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Product grid ── */
.pdp-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

/* ── Product card ── */
.pdp-shop-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pdp-border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pdp-shop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.09);
    color: inherit;
}

/* Card image */
.pdp-shop-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--pdp-beige);
}
.pdp-shop-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.pdp-shop-card:hover .pdp-shop-card-img img { transform: scale(1.05); }

/* Badge */
.pdp-shop-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.pdp-badge-rose { background: var(--pdp-rose); color: #fff; }
.pdp-badge-sage { background: var(--pdp-sage); color: #fff; }

/* Card body */
.pdp-shop-card-body {
    padding: 0.75rem 0.85rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}
.pdp-shop-card-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pdp-dark);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pdp-shop-card-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 0.75rem;
}
.star-full  { color: #F4A623; }
.star-empty { color: #DDD; }
.pdp-shop-card-rating-count {
    font-size: 0.68rem;
    color: var(--pdp-light);
    margin-left: 2px;
}
.pdp-shop-card-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pdp-dark);
    margin-top: auto;
}
.pdp-shop-card-price del {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--pdp-light);
    margin-right: 4px;
}
.pdp-shop-card-price ins {
    text-decoration: none;
    color: #C0392B;
}

/* Add to cart button */
.pdp-shop-add-btn {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    background: var(--pdp-dark);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.pdp-shop-add-btn:hover:not(:disabled) { background: var(--pdp-sage-dark, #5E8560); }
.pdp-shop-add-btn:disabled {
    background: var(--pdp-border);
    color: var(--pdp-mid);
    cursor: not-allowed;
}

/* ── Empty state ── */
.pdp-shop-empty {
    text-align: center;
    padding: 4rem 0;
    color: var(--pdp-mid);
}
.pdp-shop-empty p { margin-bottom: 1rem; font-size: 1.1rem; }

/* ── Description SEO (bas de page) ── */
.pdp-cat-description {
    background: var(--pdp-beige);
    border-top: 1px solid var(--pdp-border);
    padding: 3rem 1.5rem;
}
.pdp-cat-description .pdp-shop-wrap {
    color: var(--pdp-dark);
    font-size: 0.95rem;
    line-height: 1.75;
}
.pdp-cat-description .pdp-shop-wrap h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.5rem;
    color: var(--pdp-sage);
}
.pdp-cat-description .pdp-shop-wrap h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.4rem;
}
.pdp-cat-description .pdp-shop-wrap p { margin-bottom: 1rem; }
.pdp-cat-description .pdp-shop-wrap ul,
.pdp-cat-description .pdp-shop-wrap ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}
.pdp-cat-description .pdp-shop-wrap li { margin-bottom: 0.3rem; }
.pdp-cat-description .pdp-shop-wrap hr {
    border: none;
    border-top: 1px solid var(--pdp-border);
    margin: 2rem 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .pdp-shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .pdp-shop-grid { grid-template-columns: repeat(2, 1fr); }
    .pdp-shop-filters { top: 60px; }
    .pdp-shop-search-input { width: 130px; }
    .pdp-shop-filters-cats { padding: 0.5rem 1rem 0; }
    .pdp-shop-toolbar { padding: 0.4rem 1rem; gap: 0.6rem; }
}
@media (max-width: 480px) {
    .pdp-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .pdp-shop-filters-cats { padding: 0.5rem 0.75rem 0; }
    .pdp-shop-toolbar { padding: 0.4rem 0.75rem; }
    .pdp-shop-search { display: none; }
}
