/* ============================
   Shop Page — Hero Banner
   ============================ */
.shop-hero {
    position: relative;
    height: clamp(260px, 28vw, 380px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-dark);
    overflow: hidden;
}

.shop-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.shop-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    padding-inline: var(--container-padding);
}

.shop-hero__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl));
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.shop-hero__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-beige);
    opacity: 0.85;
}

/* ============================
   Shop Page — Trust Badges (compact row)
   ============================ */
.shop-features {
    background-color: var(--color-bg-dark);
    border-top: 1px solid rgba(169, 152, 134, 0.12);
    border-bottom: 1px solid rgba(169, 152, 134, 0.12);
    padding-block: var(--space-md);
}

.shop-features__grid {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.shop-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-feature__icon {
    color: var(--color-rose-gold);
    display: flex;
    flex-shrink: 0;
}

.shop-feature__title {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* ============================
   Shop Page — Layout (sidebar + products)
   ============================ */
.shop-catalog {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

/* Section title & subtitle — light text for dark shop bg */
.shop-catalog .section-title,
.shop-catalog .section-title--upper {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.shop-catalog .section-title--upper em {
    color: var(--color-text-light);
}

.shop-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--space-xl);
    align-items: start;
}

.shop-layout__main {
    min-width: 0;
}

/* Product grid inside the 3/4 column — 3 columns */
.products-section__grid--shop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* Compact product cards for the shop grid */
.shop-catalog .product-card__image-wrap {
    aspect-ratio: 5 / 6;
    margin-bottom: 0.5rem;
}

.shop-catalog .product-card__name {
    font-size: var(--text-base);
    color: var(--color-text-light);
}

.shop-catalog .product-card__name a {
    color: var(--color-text-light);
}

.shop-catalog .product-card__price {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ============================
   Shop Page — Sidebar
   ============================ */
.shop-sidebar {
    position: sticky;
    top: 5rem; /* below fixed header */
    padding-right: var(--space-md);
    border-right: 1px solid rgba(169, 152, 134, 0.12);
}

.shop-sidebar__group {
    margin-bottom: var(--space-lg);
}

.shop-sidebar__group:last-child {
    margin-bottom: 0;
}

.shop-sidebar__heading {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(169, 152, 134, 0.15);
}

.shop-sidebar__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.shop-sidebar__link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-muted);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    transition: color var(--transition-fast);
}

.shop-sidebar__link:hover {
    color: var(--color-text-light);
}

.shop-sidebar__count {
    font-size: var(--text-xs);
    color: var(--color-cocoa);
    font-weight: 300;
}

.shop-sidebar__placeholder {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-muted);
    padding: 0.25rem 0;
}

/* Price range placeholder */
.shop-sidebar__placeholder-block {
    padding: 0.25rem 0;
}

.shop-sidebar__range-label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 0.75rem;
}

.shop-sidebar__range-track {
    height: 2px;
    background-color: rgba(169, 152, 134, 0.2);
    border-radius: 1px;
    position: relative;
}

.shop-sidebar__range-fill {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: var(--color-rose-gold);
    border-radius: 1px;
}

/* ============================
   Shop Page — Pagination
   ============================ */
.woocommerce-pagination {
    margin-top: var(--space-xl);
    text-align: center;
}

.woocommerce-pagination ul {
    list-style: none;
    display: inline-flex;
    gap: 0.5rem;
}

.woocommerce-pagination ul li {
    display: inline-block;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.25rem 0.75rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    border: 1px solid var(--color-cocoa);
    text-decoration: none;
    transition: all var(--transition-base);
}

.woocommerce-pagination ul li a:hover {
    color: var(--color-text-light);
    border-color: var(--color-text-light);
}

.woocommerce-pagination ul li span.current {
    color: var(--color-bg-dark);
    background-color: var(--color-text-light);
    border-color: var(--color-text-light);
}

/* Hide WC default result count & ordering */
.woocommerce-result-count,
.woocommerce-ordering {
    display: none;
}

/* ============================
   Responsive — Tablet
   ============================ */
@media (max-width: 1023px) {
    .shop-layout {
        grid-template-columns: 1fr 2.5fr;
        gap: var(--space-lg);
    }

    .products-section__grid--shop {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .shop-features__grid {
        gap: var(--space-lg);
    }
}

/* ============================
   Responsive — Mobile
   ============================ */
@media (max-width: 767px) {
    .shop-hero {
        height: clamp(200px, 35vw, 280px);
    }

    .shop-hero__title {
        font-size: var(--text-2xl);
        letter-spacing: 0.08em;
    }

    .shop-hero__subtitle {
        font-size: var(--text-xs);
    }

    .shop-features {
        padding-block: var(--space-sm);
    }

    .shop-features__grid {
        gap: var(--space-md);
    }

    .shop-feature__icon svg {
        width: 18px;
        height: 18px;
    }

    /* Sidebar stacks above products on mobile */
    .shop-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .shop-sidebar {
        position: static;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(169, 152, 134, 0.12);
        padding-bottom: var(--space-lg);
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 var(--space-lg);
    }

    .shop-sidebar__group {
        margin-bottom: var(--space-md);
    }

    .products-section__grid--shop {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
}
