/* ==========================================================================
   Shop — Product listing & cart styles
   ========================================================================== */

/* Hero */
.shop-hero {
    position: relative;
    height: 70vh;
    min-height: 480px;
    max-height: 700px;
    overflow: hidden;
}

.shop-hero__bg {
    position: absolute;
    inset: 0;
}

.shop-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 20s ease forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

.shop-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

.shop-hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.shop-hero__tagline {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(38, 50%, 70%);
    margin-bottom: 1rem;
}

.shop-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    color: hsl(0, 0%, 100%);
    line-height: 1.2;
    max-width: 700px;
    margin-bottom: 1rem;
}

.shop-hero__subtitle {
    font-size: 1rem;
    color: hsl(0, 0%, 85%);
    max-width: 520px;
    line-height: 1.7;
}

/* Controls */
.shop-controls {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--background, hsl(40, 33%, 97%));
    border-bottom: 1px solid var(--border, hsl(35, 20%, 88%));
    padding: 1rem 0;
}

.shop-controls__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.shop-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shop-filter {
    padding: 0.5rem 1.15rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: none;
    border: 1px solid var(--border, hsl(35, 20%, 88%));
    border-radius: 2rem;
    color: var(--muted-foreground, hsl(30, 8%, 45%));
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.shop-filter:hover {
    border-color: var(--accent, hsl(38, 50%, 55%));
    color: var(--accent, hsl(38, 50%, 55%));
}

.shop-filter.is-active {
    background: var(--accent, hsl(38, 50%, 55%));
    border-color: var(--accent, hsl(38, 50%, 55%));
    color: hsl(0, 0%, 100%);
}

.shop-controls__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shop-results-count {
    font-size: 0.78rem;
    color: var(--muted-foreground, hsl(30, 8%, 45%));
    letter-spacing: 0.04em;
}

.shop-sort {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.8rem;
    border: 1px solid var(--border, hsl(35, 20%, 88%));
    border-radius: 0.375rem;
    background: var(--background, hsl(40, 33%, 97%));
    color: var(--foreground, hsl(30, 10%, 15%));
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.shop-view-btns {
    display: flex;
    gap: 0.25rem;
}

.shop-view-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border, hsl(35, 20%, 88%));
    border-radius: 0.25rem;
    color: var(--muted-foreground, hsl(30, 8%, 45%));
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-view-btn.is-active {
    background: var(--foreground, hsl(30, 10%, 15%));
    border-color: var(--foreground, hsl(30, 10%, 15%));
    color: hsl(0, 0%, 100%);
}

/* Cart icon in header */
.header__cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    cursor: pointer;
    color: var(--foreground, hsl(30, 10%, 15%));
    transition: color 0.2s ease;
}

.header__cart:hover {
    color: var(--accent, hsl(38, 50%, 55%));
}

.header__cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--accent, hsl(38, 50%, 55%));
    color: hsl(0, 0%, 100%);
    font-size: 0.6rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header__cart-badge:empty {
    display: none;
}

/* Product Grid */
.shop-listing {
    padding: 3rem 0 4rem;
    background: var(--background, hsl(40, 33%, 97%));
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 991px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .shop-grid { grid-template-columns: 1fr; }
}

/* List view */
.shop-grid.is-list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.shop-grid.is-list .product-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
}

.shop-grid.is-list .product-card__image {
    height: 200px;
}

/* Product Card */
.product-card {
    background: hsl(0, 0%, 100%);
    border: 1px solid var(--border, hsl(35, 20%, 88%));
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.35s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.product-card__image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.06);
}

.product-card__category-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    background: hsl(0, 0%, 100%);
    border-radius: 2rem;
    color: var(--foreground, hsl(30, 10%, 15%));
    font-weight: 500;
}

.product-card__body {
    padding: 1.25rem;
}

.product-card__name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--foreground, hsl(30, 10%, 15%));
    margin-bottom: 0.4rem;
}

.product-card__origin {
    font-size: 0.82rem;
    color: var(--muted-foreground, hsl(30, 8%, 45%));
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border, hsl(35, 20%, 88%));
}

.product-card__price {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--foreground, hsl(30, 10%, 15%));
}

.product-card__price span {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: var(--muted-foreground, hsl(30, 8%, 45%));
    font-weight: 400;
}

.product-card__add-btn {
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--accent, hsl(38, 50%, 55%));
    color: hsl(0, 0%, 100%);
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.25s ease;
}

.product-card__add-btn:hover {
    background: hsl(38, 50%, 48%);
    transform: translateY(-1px);
}

.product-card__add-btn.is-added {
    background: hsl(140, 40%, 45%);
}

.product-card.is-hidden {
    display: none;
}

/* Cart Slide Panel items */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border, hsl(35, 20%, 88%));
}

.cart-item__image {
    width: 64px;
    height: 64px;
    border-radius: 0.375rem;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item__name {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--foreground, hsl(30, 10%, 15%));
}

.cart-item__price {
    font-size: 0.82rem;
    color: var(--accent, hsl(38, 50%, 55%));
    font-weight: 500;
}

.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.cart-item__qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border, hsl(35, 20%, 88%));
    border-radius: 0.25rem;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--foreground, hsl(30, 10%, 15%));
    transition: all 0.2s ease;
}

.cart-item__qty-btn:hover {
    border-color: var(--accent, hsl(38, 50%, 55%));
    color: var(--accent, hsl(38, 50%, 55%));
}

.cart-item__qty-num {
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.cart-item__remove {
    background: none;
    border: none;
    color: hsl(0, 60%, 55%);
    font-size: 0.7rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0;
    transition: opacity 0.2s ease;
    align-self: flex-start;
}

.cart-item__remove:hover {
    opacity: 0.7;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted-foreground, hsl(30, 8%, 45%));
}

.cart-empty__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.cart-empty__text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--foreground, hsl(30, 10%, 15%));
    margin-bottom: 0.5rem;
}

.cart-empty__sub {
    font-size: 0.85rem;
}

/* Product Detail page */
.product-detail {
    padding: 3rem 0 4rem;
}

.product-detail__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 767px) {
    .product-detail__layout { grid-template-columns: 1fr; gap: 2rem; }
}

.product-detail__gallery {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-detail__main-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 0.5rem;
}

@media (max-width: 767px) {
    .product-detail__main-image { height: 320px; }
}

.product-detail__info {
    padding-top: 0.5rem;
}

.product-detail__category {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent, hsl(38, 50%, 55%));
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-detail__name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--foreground, hsl(30, 10%, 15%));
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.product-detail__price {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--foreground, hsl(30, 10%, 15%));
    margin-bottom: 1.5rem;
}

.product-detail__price span {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--muted-foreground, hsl(30, 8%, 45%));
    font-weight: 400;
}

.product-detail__origin {
    font-size: 0.92rem;
    color: var(--muted-foreground, hsl(30, 8%, 45%));
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.product-detail__artisan {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--secondary, hsl(35, 20%, 92%));
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-detail__artisan-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent, hsl(38, 50%, 55%));
    color: hsl(0, 0%, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.product-detail__artisan-text {
    font-size: 0.82rem;
    color: var(--foreground, hsl(30, 10%, 15%));
    line-height: 1.5;
}

.product-detail__artisan-name {
    font-weight: 600;
}

.product-detail__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.product-detail__qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border, hsl(35, 20%, 88%));
    border-radius: 0.375rem;
    padding: 0.25rem;
}

.product-detail__qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--foreground, hsl(30, 10%, 15%));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.product-detail__qty-btn:hover {
    color: var(--accent, hsl(38, 50%, 55%));
}

.product-detail__qty-num {
    font-size: 1rem;
    font-weight: 500;
    min-width: 30px;
    text-align: center;
}

.product-detail__add-btn {
    flex: 1;
    padding: 0.85rem 1.5rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--accent, hsl(38, 50%, 55%));
    color: hsl(0, 0%, 100%);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px hsla(38, 50%, 55%, 0.25);
}

.product-detail__add-btn:hover {
    background: hsl(38, 50%, 48%);
    box-shadow: 0 4px 12px hsla(38, 50%, 55%, 0.35);
    transform: translateY(-1px);
}

/* Product tabs */
.product-tabs {
    border-top: 1px solid var(--border, hsl(35, 20%, 88%));
    padding-top: 1.5rem;
}

.product-tabs__nav {
    display: flex;
    border-bottom: 2px solid var(--border, hsl(35, 20%, 88%));
    margin-bottom: 1.5rem;
}

.product-tab-btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-foreground, hsl(30, 8%, 45%));
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    margin-bottom: -2px;
}

.product-tab-btn:hover {
    color: var(--foreground, hsl(30, 10%, 15%));
}

.product-tab-btn.is-active {
    color: var(--accent, hsl(38, 50%, 55%));
    border-bottom-color: var(--accent, hsl(38, 50%, 55%));
}

.product-tab-panel {
    display: none;
    font-size: 0.9rem;
    color: var(--muted-foreground, hsl(30, 8%, 45%));
    line-height: 1.8;
}

.product-tab-panel.is-active {
    display: block;
    animation: spFadeIn 0.3s ease;
}

/* Related products */
.shop-related {
    padding: 3rem 0 4rem;
    background: var(--secondary, hsl(35, 20%, 92%));
}

.shop-related__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--foreground, hsl(30, 10%, 15%));
    text-align: center;
    margin-bottom: 2rem;
}

.shop-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (min-width: 641px) and (max-width: 1024px) {
    .shop-related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .shop-related__grid { grid-template-columns: 1fr; }
}

/* Enquiry page */
.shop-enquiry {
    padding: 3rem 0 4rem;
}

.shop-enquiry__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 767px) {
    .shop-enquiry__layout { grid-template-columns: 1fr; }
}

.shop-enquiry__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--foreground, hsl(30, 10%, 15%));
    margin-bottom: 1.5rem;
}

.shop-enquiry__items {
    margin-bottom: 2rem;
}

.enquiry-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border, hsl(35, 20%, 88%));
}

.enquiry-item__image {
    width: 56px;
    height: 56px;
    border-radius: 0.375rem;
    overflow: hidden;
    flex-shrink: 0;
}

.enquiry-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.enquiry-item__info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.enquiry-item__name {
    font-size: 0.88rem;
    color: var(--foreground, hsl(30, 10%, 15%));
}

.enquiry-item__qty {
    font-size: 0.78rem;
    color: var(--muted-foreground, hsl(30, 8%, 45%));
}

.enquiry-item__price {
    font-weight: 500;
    color: var(--foreground, hsl(30, 10%, 15%));
    font-size: 0.9rem;
}

/* Section headers (Today's Deals / All Products) — match listing rhythm */
.shop-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.shop-section-header--compact {
    margin-bottom: 1.5rem;
}
.shop-section-header__eyebrow {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent, hsl(38, 50%, 45%));
    font-weight: 500;
    margin-bottom: 0.4rem;
}
.shop-section-header__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    color: var(--foreground, hsl(30, 10%, 15%));
}
.shop-section-header__desc {
    margin: 0;
    max-width: 36rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted-foreground, hsl(30, 8%, 45%));
}
.shop-section-header__link {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--accent, hsl(38, 50%, 45%));
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s;
}
.shop-section-header__link:hover {
    border-bottom-color: currentColor;
}
.shop-deals-section {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border, hsl(35, 20%, 88%));
}
.shop-deals-section + .shop-listing {
    padding-top: 2.5rem;
}
