/* ================================================================
   BELISSE GEMS — Shop Pages Stylesheet
   ----------------------------------------------------------------
   Used by: emerald.html, ruby.html, sapphire.html (etc.)
   Extends: styles.css
   ----------------------------------------------------------------
   TABLE OF CONTENTS
     1. Shop-Specific Variables
     2. Breadcrumb
     3. Header Badges (cart / wishlist count)
     4. Emerald Hero
     5. Filter Bar (sticky)
     6. Product Grid & Cards
     7. Editorial Story Block
     8. Cart Drawer
     9. Quick View Modal
    10. Overlay
    11. Toast Notifications
    12. Animations
    13. Responsive
   ================================================================ */


/* ================================================================
   1. SHOP-SPECIFIC VARIABLES
   ================================================================ */
:root {
    --emerald-deep:  #042818;
    --emerald-rich:  #0E5340;
    --emerald-light: #3FAA86;
    --emerald-tint:  rgba(14, 83, 64, 0.06);
    --drawer-width:  440px;
}


/* ================================================================
   2. BREADCRUMB
   ================================================================ */
.breadcrumb {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 14px 40px;
}

.breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb a {
    color: var(--muted);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--emerald);
    opacity: 1;
}

.breadcrumb .sep {
    color: var(--line);
}

.breadcrumb .current {
    color: var(--ink);
    font-weight: 500;
}


/* ================================================================
   3. HEADER BADGES — cart & wishlist counters
   ================================================================ */
.nav-icons button {
    position: relative;
}

.nav-icons .badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--emerald);
    color: var(--cream);
    font-size: 9px;
    font-weight: 500;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    letter-spacing: 0;
    transform: scale(0);
    transition: transform 0.3s ease;
    font-family: 'Jost', sans-serif;
}

.nav-icons .badge.visible {
    transform: scale(1);
}


/* ================================================================
   4. EMERALD HERO — Full-bleed editorial section
   ================================================================ */
.emerald-hero {
    background: linear-gradient(135deg, #FAF6EE 0%, #EFE7D8 100%);
    padding: 100px 40px 120px;
    position: relative;
    overflow: hidden;
}

/* Decorative floating gems */
.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-gem {
    position: absolute;
    opacity: 0.5;
}

.float-gem.g1 {
    width: 140px;
    top: 8%;
    left: 5%;
    animation: floatSlow 12s ease-in-out infinite;
}

.float-gem.g2 {
    width: 100px;
    top: 60%;
    left: 8%;
    animation: floatSlow 14s ease-in-out infinite 2s;
}

.float-gem.g3 {
    width: 80px;
    top: 20%;
    right: 12%;
    animation: floatSlow 10s ease-in-out infinite 1s;
}

.emerald-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.emerald-hero .hero-content {
    animation: fadeUp 1s ease 0.2s both;
}

.emerald-hero .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.emerald-hero .hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--emerald);
}

.emerald-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(64px, 10vw, 140px);
    line-height: 0.92;
    margin-bottom: 32px;
    color: var(--ink);
}

.emerald-hero h1 .latin {
    font-style: italic;
    font-size: 0.55em;
    color: var(--muted);
    font-weight: 300;
    display: block;
    margin-bottom: 4px;
}

.emerald-hero h1 em {
    color: var(--emerald);
    font-style: italic;
    font-weight: 400;
}

.emerald-hero .lead {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 48px;
}

/* Stats meta row */
.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 480px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.meta-item .meta-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--emerald);
    line-height: 1;
    margin-bottom: 6px;
}

.meta-item .meta-label {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Hero gem visual */
.hero-gem-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeUp 1s ease 0.4s both;
}

.hero-gem-stage::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 83, 64, 0.18) 0%, transparent 65%);
    filter: blur(20px);
    animation: pulse 7s ease-in-out infinite;
}

.hero-emerald {
    width: 100%;
    max-width: 460px;
    filter: drop-shadow(0 40px 60px rgba(14, 83, 64, 0.45));
    animation: float 9s ease-in-out infinite;
    position: relative;
    z-index: 1;
}


/* ================================================================
   5. FILTER BAR — Sticky category filter
   ================================================================ */
.filter-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(250, 246, 238, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    /* Prevent filter bar from causing horizontal scroll */
    width: 100%;
    overflow: hidden;
}

.filter-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    min-width: 0;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1;
}

.pill {
    background: transparent;
    border: 1px solid var(--line);
    padding: 10px 20px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pill:hover {
    border-color: var(--emerald);
    color: var(--emerald);
}

.pill.active {
    background: var(--emerald);
    color: var(--cream);
    border-color: var(--emerald);
}

.pill .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 9px;
}

.pill:not(.active) .count {
    background: var(--line);
    color: var(--ink-soft);
}

/* Sort dropdown */
.filter-sort {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.filter-sort select {
    background: transparent;
    border: 1px solid var(--line);
    padding: 10px 36px 10px 16px;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1612' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    border-radius: 999px;
}


/* ================================================================
   6. PRODUCT GRID & CARDS
   ================================================================ */
.products-section {
    padding: 60px 40px 120px;
}

.results-bar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 32px;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--cream);
    border: 1px solid var(--line);
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    animation: fadeUp 0.6s ease both;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--emerald);
    box-shadow: 0 30px 50px -25px rgba(14, 83, 64, 0.3);
}

/* Card image area (SVG gem) */
.product-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--ivory) 0%, var(--cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(14, 83, 64, 0.06), transparent 60%);
    transition: opacity 0.5s ease;
}

.product-image svg {
    width: 60%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(14, 83, 64, 0.3));
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover .product-image svg {
    transform: scale(1.08) rotate(-3deg);
}

/* Top-right wishlist heart on card */
.card-wishlist {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.card-wishlist:hover {
    border-color: var(--emerald);
    transform: scale(1.08);
}

.card-wishlist svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.card-wishlist.active {
    background: var(--emerald);
    border-color: var(--emerald);
}

.card-wishlist.active svg {
    fill: var(--cream);
    stroke: var(--cream);
}

/* Badge top-left of card (Limited, New, etc.) */
.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--ink);
    color: var(--cream);
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 5px 10px;
    z-index: 2;
}

.card-badge.featured {
    background: var(--gold);
}

.card-badge.limited {
    background: var(--ruby);
}

/* Card body / details */
.product-info {
    padding: 24px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 8px;
}

.product-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 6px;
    color: var(--ink);
}

.product-spec {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
}

/* Price + cart action row */
.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.product-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--emerald);
}

.btn-add {
    background: transparent;
    border: 1px solid var(--ink);
    padding: 8px 14px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    color: var(--ink);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-add:hover {
    background: var(--emerald);
    color: var(--cream);
    border-color: var(--emerald);
}

.btn-add svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.btn-add.added {
    background: var(--emerald);
    color: var(--cream);
    border-color: var(--emerald);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: var(--muted);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 22px;
}


/* ================================================================
   7. EDITORIAL STORY BLOCK
   ================================================================ */
.story {
    padding: 120px 40px;
    background: var(--ivory-2);
    position: relative;
    overflow: hidden;
}

.story::before {
    content: 'EMERALD';
    position: absolute;
    bottom: -60px;
    right: -40px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 320px;
    color: rgba(14, 83, 64, 0.05);
    line-height: 1;
    pointer-events: none;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.story-text .label {
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 24px;
}

.story-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05;
    margin-bottom: 32px;
}

.story-text h2 em {
    font-style: italic;
    color: var(--emerald);
}

.story-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-bottom: 20px;
}

.story-text .btn {
    margin-top: 16px;
}

/* Pull-quote card on right */
.quote-card {
    background: var(--cream);
    border: 1px solid var(--line);
    padding: 60px 48px;
    position: relative;
}

.quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 140px;
    line-height: 0.5;
    color: var(--emerald);
    opacity: 0.3;
    position: absolute;
    top: 30px;
    left: 30px;
}

.quote-card p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 28px;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.quote-author {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-deep);
}


/* ================================================================
   8. CART DRAWER — Slide-in cart from right
   ================================================================ */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--drawer-width);
    max-width: 100%;
    height: 100%;
    background: var(--cream);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px -30px rgba(0, 0, 0, 0.3);
}

.drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 28px 32px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 0.05em;
}

.drawer-header h3 span {
    color: var(--muted);
    font-size: 18px;
    margin-left: 4px;
}

.drawer-close {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    color: var(--ink);
}

.drawer-close:hover {
    background: var(--ivory-2);
}

.drawer-close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

/* Cart body / scrollable items */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 32px;
}

/* Empty cart state */
.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 32px;
    color: var(--muted);
    gap: 12px;
}

.cart-empty svg {
    width: 60px;
    height: 60px;
    opacity: 0.4;
    margin-bottom: 16px;
}

.cart-empty p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 22px;
    color: var(--ink);
}

.cart-empty span {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.cart-empty.hidden {
    display: none;
}

/* Individual cart item */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    animation: fadeUp 0.4s ease both;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--ivory), var(--cream));
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image svg {
    width: 65%;
    height: auto;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 4px;
}

.cart-item-spec {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    color: var(--ink);
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}

.qty-value {
    min-width: 28px;
    text-align: center;
    font-size: 13px;
}

/* Right side: price + remove */
.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.cart-item-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--emerald);
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 4px;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: var(--ruby);
}

/* Drawer footer (totals + checkout) */
.drawer-footer {
    border-top: 1px solid var(--line);
    padding: 24px 32px 28px;
    background: var(--ivory);
}

.cart-totals {
    margin-bottom: 20px;
}

.cart-totals .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--ink-soft);
}

.cart-totals .row.small {
    font-size: 12px;
    color: var(--muted);
}

.cart-totals .row.total {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
}

.cart-totals .row.total span:last-child {
    color: var(--emerald);
}

.btn-checkout {
    width: 100%;
    background: var(--emerald);
    border-color: var(--emerald);
    justify-content: center;
}

.btn-checkout:hover {
    background: var(--emerald-deep);
    border-color: var(--emerald-deep);
    color: var(--cream);
}

.btn-link {
    width: 100%;
    background: none;
    border: none;
    margin-top: 12px;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--emerald);
}


/* ================================================================
   9. QUICK VIEW MODAL
   ================================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 22, 18, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--cream);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.modal.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}

.modal-close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.modal-image {
    background: linear-gradient(135deg, var(--ivory), var(--ivory-2));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.modal-image svg {
    width: 80%;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 30px 40px rgba(14, 83, 64, 0.4));
    animation: float 6s ease-in-out infinite;
}

.modal-details {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details .product-category {
    margin-bottom: 12px;
}

.modal-details h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 8px;
    color: var(--ink);
}

.modal-details .modal-spec {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 24px;
}

.modal-details .modal-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 500;
    color: var(--emerald);
    margin-bottom: 30px;
}

.modal-details .modal-desc {
    font-size: 14px;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 30px;
}

.modal-attributes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}

.attr-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attr-label {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
}

.attr-value {
    font-size: 14px;
    color: var(--ink);
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions .btn {
    flex: 1;
    justify-content: center;
}

.modal-actions .btn-wishlist {
    width: 52px;
    height: 52px;
    padding: 0;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--ink);
    cursor: pointer;
    color: var(--ink);
    transition: all 0.3s ease;
}

.modal-actions .btn-wishlist:hover {
    background: var(--ink);
    color: var(--cream);
}

.modal-actions .btn-wishlist.active {
    background: var(--emerald);
    border-color: var(--emerald);
    color: var(--cream);
}

.modal-actions .btn-wishlist svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.modal-actions .btn-wishlist.active svg {
    fill: currentColor;
}


/* ================================================================
   10. OVERLAY — backdrop for drawer
   ================================================================ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 22, 18, 0.5);
    backdrop-filter: blur(2px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}


/* ================================================================
   11. TOAST NOTIFICATIONS
   ================================================================ */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--ink);
    color: var(--cream);
    padding: 14px 22px;
    border-left: 3px solid var(--emerald);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    letter-spacing: 0.05em;
    max-width: 320px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.4s ease, fadeOut 0.4s ease 2.6s forwards;
    pointer-events: auto;
}

.toast svg {
    width: 18px;
    height: 18px;
    stroke: var(--emerald);
    stroke-width: 2;
    fill: none;
    flex: none;
}


/* ================================================================
   12. ANIMATIONS
   ================================================================ */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-30px) rotate(8deg); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(-30px); }
}

/* Staggered fade-in for product cards */
.product-card:nth-child(1)  { animation-delay: 0.05s; }
.product-card:nth-child(2)  { animation-delay: 0.10s; }
.product-card:nth-child(3)  { animation-delay: 0.15s; }
.product-card:nth-child(4)  { animation-delay: 0.20s; }
.product-card:nth-child(5)  { animation-delay: 0.25s; }
.product-card:nth-child(6)  { animation-delay: 0.30s; }
.product-card:nth-child(7)  { animation-delay: 0.35s; }
.product-card:nth-child(8)  { animation-delay: 0.40s; }
.product-card:nth-child(9)  { animation-delay: 0.45s; }
.product-card:nth-child(10) { animation-delay: 0.50s; }
.product-card:nth-child(11) { animation-delay: 0.55s; }
.product-card:nth-child(12) { animation-delay: 0.60s; }


/* ================================================================
   13. RESPONSIVE
   ================================================================ */

/* Tablet */
@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .breadcrumb {
        padding: 12px 24px;
    }
    .emerald-hero {
        padding: 60px 24px 80px;
    }
    .emerald-hero-inner {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .emerald-hero .hero-eyebrow {
        justify-content: center;
    }
    .emerald-hero .lead {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-meta {
        margin: 0 auto;
    }
    .hero-gem-stage {
        order: -1;
    }
    .hero-emerald {
        max-width: 280px;
    }
    .filter-inner {
        padding: 12px 16px;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 12px;
        overflow: hidden;
    }
    .filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        flex: 1;
        min-width: 0;
        padding-bottom: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .filter-pills::-webkit-scrollbar {
        display: none;
    }
    .pill {
        flex: none;
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 10px;
    }
    .filter-sort {
        flex: none;
        align-self: center;
    }
    .filter-sort label {
        display: none;
    }
    .filter-sort select {
        padding: 8px 32px 8px 12px;
        font-size: 10px;
    }
    .products-section {
        padding: 40px 24px 80px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .story {
        padding: 80px 24px;
    }
    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-image {
        padding: 40px 20px;
    }
    .modal-details {
        padding: 30px 30px 40px;
    }
    .modal-actions {
        flex-wrap: wrap;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .emerald-hero h1 {
        font-size: clamp(56px, 14vw, 90px);
    }
    .hero-meta {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .meta-item .meta-num {
        font-size: 22px;
    }
    .meta-item .meta-label {
        font-size: 8px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-info {
        padding: 18px 16px 16px;
    }
    .product-name {
        font-size: 18px;
    }
    .product-price {
        font-size: 18px;
    }
    .btn-add {
        padding: 6px 10px;
        font-size: 9px;
    }
    .quote-card {
        padding: 40px 28px;
    }
    .quote-card p {
        font-size: 22px;
    }
    .drawer {
        width: 100%;
    }
    .drawer-header,
    .drawer-body,
    .drawer-footer {
        padding-left: 22px;
        padding-right: 22px;
    }
    .modal-details {
        padding: 24px 22px 30px;
    }
    .modal-details h2 {
        font-size: 32px;
    }
    .modal-details .modal-price {
        font-size: 28px;
    }
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .toast {
        max-width: 100%;
    }
    .story-grid {
        gap: 30px;
    }
}

/* Tiny screens */
@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .filter-pills {
        gap: 6px;
    }
    .pill {
        font-size: 9px;
        padding: 8px 14px;
    }
    .products-section {
        padding: 30px 16px 60px;
    }
    .story {
        padding: 60px 16px;
    }
    .breadcrumb {
        padding: 10px 16px;
    }
}

/* Lock body scroll when drawer/modal open */
body.no-scroll {
    overflow: hidden;
}
