.sline-stage{position:fixed;top:120px;left:0;width:100%;height:60px;z-index:199;pointer-events:none;}
#slineCanvas{position:absolute;top:0;left:0;}

        /* --- 1. Global Reset --- */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { font-size: 100%; }
        body { background-color: transparent; color: #1A1612; line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }


        /* --- 4. Hero Section --- */
        .shop-hero { min-height: 0; padding: 28px 5vw 36px; display: flex; flex-direction: column; justify-content: flex-end; }
        .shop-hero h1 { font-size: clamp(4.2969rem, 5vw, 7.8125rem); font-weight: 300; font-style: italic; letter-spacing: -0.01em; line-height: 0.95; margin-bottom: 20px; }
        .shop-hero p { font-size: 1.125rem; color: #1A1612; font-weight: 300; max-width: 600px; margin-bottom: 40px; }
        .hero-cta { font-size: 1.3673rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: #1A1612; text-decoration: none; border-bottom: 1px solid #1A1612; padding-bottom: 5px; width: fit-content; transition: color 0.25s ease, border-color 0.25s ease; }
        .hero-cta:hover { color: #CFA246; border-color: #CFA246; }

        /* --- Focus-visible ring (keyboard navigation) --- */
        /* Suppress browser default on all elements we style ourselves */
        .hero-cta:focus-visible,
        .tab-btn:focus-visible,
        .action-btn:focus-visible,
        .saved-action-btn:focus-visible,
        .modal-close:focus-visible,
        .modal-back:focus-visible,
        .close-cart:focus-visible,
        .gallery-nav:focus-visible,
        .gallery-thumb:focus-visible,
        .psoc-btn:focus-visible,
        .img-viewer-nav:focus-visible,
        #imgViewerClose:focus-visible,
        .size-btn:focus-visible {
            outline: 2px solid rgba(0, 0, 0, 0.6);
            outline-offset: 3px;
        }

        /* --- 5. Tabs & Grids --- */
        .tab-nav { display: flex; gap: 4rem; padding: 0 5vw; border-bottom: 1px solid #CFA246; margin-top: 40px; }
        .tab-btn { padding: 20px 0; font-family: inherit; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: #1A1612; cursor: pointer; position: relative; border: none; background: none; transition: color 0.25s ease; }
        .tab-btn.active { color: #1A1612; }
        .tab-btn.active::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: #1A1612; }
        .shop-filter-summary {
            padding: 18px 5vw 0;
            color: #1A1612;
            font-size: 0.8625rem;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .saved-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            padding: 20px 5vw 0;
        }
        .saved-action-btn {
            appearance: none;
            border: 1px solid rgba(110, 123, 67, 0.35);
            background: rgba(110, 123, 67, 0.06);
            color: #1A1612;
            padding: 14px 20px;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 0.8625rem;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
            border-radius: 6px;
        }
        .saved-action-btn:hover {
            background: rgba(110, 123, 67, 0.12);
            border-color: #CFA246;
            transform: translateY(-1px);
        }

        .saved-panel {
            position: fixed;
            inset: 0;
            z-index: 16000;
            display: none;
            align-items: center;
            justify-content: center;
            overflow: auto;
            padding: 80px 20px 40px;
            background: rgba(247, 243, 236, 0.88);
        }
        .saved-panel.open { display: flex; }
        .saved-panel-overlay {
            position: absolute;
            inset: 0;
            background: rgba(235, 230, 222, 0.78);
        }
        .saved-panel-inner {
            position: relative;
            width: min(1200px, 100%);
            max-height: calc(100vh - 120px);
            overflow: auto;
            background: rgba(207, 162, 70, 0.08);
            border: 1px solid #CFA246;
            padding: 32px;
            box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
        }
        .saved-panel-close {
            position: absolute;
            top: 18px;
            right: 18px;
            width: 44px;
            height: 44px;
            border: 1px solid rgba(110, 123, 67, 0.35);
            background: rgba(110, 123, 67, 0.06);
            color: #1A1612;
            font-size: 1.5rem;
            cursor: pointer;
            border-radius: 6px;
        }
        .saved-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 24px;
        }
        .saved-panel-header h3 {
            font-size: 2rem;
            margin: 0;
            text-transform: uppercase;
            letter-spacing: -0.03em;
            color: #1A1612;
        }
        .saved-panel-summary {
            color: #1A1612;
            font-size: 0.9rem;
            line-height: 1.6;
        }
        .saved-panel-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
        }
        .saved-item {
            background: #E0D5C7;
            border: 1px solid rgba(110, 123, 67, 0.25);
            padding: 18px;
            display: grid;
            grid-template-columns: 90px 1fr auto;
            gap: 14px;
            align-items: center;
            border-radius: 10px;
        }
        .saved-item img {
            width: 90px;
            aspect-ratio: 1/1;
            object-fit: cover;
            background: #E0D5C7;
        }
        .saved-item-meta {
            display: grid;
            gap: 6px;
        }
        .saved-item-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: #1A1612;
            text-transform: uppercase;
        }
        .saved-item-price {
            font-size: 0.88rem;
            color: #1A1612;
        }
        .saved-item-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
            justify-content: center;
        }
        .saved-item-actions button {
            appearance: none;
            background: rgba(110, 123, 67, 0.08);
            border: 1px solid rgba(110, 123, 67, 0.25);
            color: #1A1612;
            padding: 10px 14px;
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.8625rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
        }
        .saved-item-actions button:hover {
            background: rgba(110, 123, 67, 0.18);
        }
        .saved-no-items {
            color: #1A1612;
            font-size: 0.95rem;
            line-height: 1.8;
            padding: 28px 0;
        }

        @media (max-width: 900px) {
            .saved-panel-inner { padding: 22px; }
            .saved-panel-grid { grid-template-columns: 1fr; }
            .saved-item { grid-template-columns: 88px 1fr; }
            .saved-item-actions { flex-direction: row; flex-wrap: wrap; }
        }

        .product-section { display: none; padding: 6vh 5vw; }
        .product-section.active { display: block; }

        /* -- Unified category sections ----------------------------------------- */
        .shop-section { padding: 6vh 5vw; }
        .shop-section--hidden { display: none; }

        /* Divider between consecutive visible sections */
        .shop-section + .shop-section:not(.shop-section--hidden) {
            border-top: 1px solid var(--line, rgba(26,22,18,0.12));
            padding-top: 7vh;
        }

        /* Legacy alias */
        #prints { padding: 6vh 5vw; }

        .shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3vw 2vw; }
        .product-card { display: flex; flex-direction: column; margin-bottom: 40px; cursor: pointer; }
        @keyframes shimmer {
            0%   { background-position: -200% 0; }
            100% { background-position:  200% 0; }
        }
        .product-image {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 15px;
  position: relative;
  background: linear-gradient(90deg, transparent 25%, #E0D5C7 50%, transparent 75%);
  background-size: 200% 100%;
  border-radius: 10px;
  animation: shimmer 1.8s infinite linear;
  border: 1px solid rgba(247, 243, 236, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(110, 123, 67, 0.08),
    0 10px 30px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(2px);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.4s ease, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-image img.loaded {
  opacity: 1;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}


.product-card[data-shop-category="prints"] .product-image::before {
  content: "Limited Edition";
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #CFA246;
  background: rgba(26, 22, 18, 0.82);
  padding: 7px 14px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  border: 1px solid rgba(207, 162, 70, 0.45);
}

.product-card[data-shop-category="books"] .product-image::before,
.product-card[data-shop-category="tools"] .product-image::before {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #F7F3ED;
  background: rgba(26, 22, 18, 0.78);
  padding: 7px 14px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  border: 1px solid rgba(247, 243, 236, 0.32);
}

.product-card[data-shop-category="books"] .product-image::before { content: "Book"; }
.product-card[data-shop-category="tools"] .product-image::before { content: "Tool"; }
.product-card.is-filtered-out { display: none; }

.product-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 480px;
}

.product-title {
  font-size: 1.3673rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1A1612;
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 300;
  color: #1A1612;
  margin-top: 10px;
}

.product-specs {
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-specs .spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8625rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1A1612;
}

.product-specs .spec-tag + .spec-tag {
  position: relative;
  padding-left: 12px;
}

.product-specs .spec-tag + .spec-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 10px;
  background: #CFA246;
}

.product-specs .spec-tag svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  opacity: 0.7;
}

/* signed tag &mdash; icon only (text visually hidden but kept for screen readers) */
.product-specs .signed-tag {
  color: #1A1612;
}

.product-specs .signed-tag span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* dimension tag is shown in the size selector &mdash; hide it on the card */
.product-specs .dim-tag {
  display: none;
}
        
        /* -- Size selector ------------------------------*/
        .size-select-wrap { margin: 10px 0 6px; }
        .size-select {
            width: 100%;
            background: transparent;
            border: 1px solid transparent;
            color: #1A1612;
            padding: 11px 32px 11px 12px;
            font-size: 0.8625rem;
            font-weight: 700;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            cursor: pointer;
            outline: none;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23444' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            transition: border-color 0.25s ease, color 0.25s ease;
            border-radius: 6px;
        }
        .size-select:hover, .size-select:focus { border-color: #1A1612; color: #1A1612; }

        /* Dedicated Category Headings */
        .category-header { margin-bottom: 40px; }
        .category-header h2 { font-size: 3.4375rem; font-weight: 300; font-style: italic; letter-spacing: 0; margin-bottom: 10px; }
        .category-header p { font-size: 1.325rem; color: #1A1612; max-width: 600px; }

        /* Configuration Styling */
        .product-config { margin-top: 20px; }
        .config-label { display: block; font-size: 0.8625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #1A1612; margin-bottom: 8px; }
        .config-select { width: 100%; background: transparent; border: 1px solid #CFA246; color: #1A1612; padding: 12px; font-size: 1.0125rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; outline: none; border-radius: 6px; }

        .product-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .action-btn { padding: 12px; font-size: 0.9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease; border: 1px solid rgba(255,255,255,0.1); background: transparent; color: #1A1612; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; }
        .action-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
        .buy-now-btn { background: #B85C38; color: #F7F3ED; border: 1px solid #B85C38; border-radius: 6px; }
        .buy-now-btn:hover { background: #A34E2E; color: #F7F3ED; border-color: #A34E2E; }

        .footer { padding: 60px 5%; text-align: center; border-top: 1px solid transparent; }
        .footer h2 { font-size: 1.5625rem; font-weight: 300; letter-spacing: 4px; color: #1A1612; margin-bottom: 20px; text-transform: uppercase; }

        @media (max-width: 1100px) {
            .shop-grid { grid-template-columns: repeat(2, 1fr); }
            .tab-nav { gap: 2rem; overflow-x: auto; }
        }
        @media (max-width: 768px) {
            .shop-hero h1 { font-size: clamp(3.5rem, 6vw, 6rem) !important; }
            .shop-hero p { font-size: 1rem; }
            .tab-btn { font-size: 1.2rem; padding: 16px 0; }
            /* Move counter to top so it doesn't crowd the thumbnails below */
            .gallery-counter { bottom: auto; top: 12px; }
        }
        @media (max-width: 700px) {
            .shop-grid { grid-template-columns: 1fr; }
            .logo { height: 45px; }
            .tab-nav { gap: 1.5rem; padding: 0 4vw; -webkit-overflow-scrolling: touch; }
            .modal-content { grid-template-columns: 1fr; gap: 40px; padding: 80px 4vw 60px; }
            /* iOS auto-zoom prevention: selects must be ≥16px on mobile */
            .size-select { font-size: 1rem; }
        }
        @media (max-width: 480px) {
            .product-actions { grid-template-columns: 1fr; }
            .shop-grid { gap: 40px; }
            .footer-links { flex-direction: column; gap: 14px; }
        }
        .fade-up { opacity: 0; transform: translateY(20px); }

        /* -- Cart toast notification ------------------------------- */
        .cart-toast {
            position: fixed;
            bottom: 36px;
            left: 50%;
            transform: translateX(-50%) translateY(12px);
            background: #1A1612;
            color: transparent;
            padding: 14px 32px;
            font-size: 0.8625rem;
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            z-index: 20000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease, transform 0.25s ease;
            white-space: nowrap;
        }
        .cart-toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* --- Product Detail Modal --- */
        /* Modal starts AT navbar bottom — navbar stays fully visible above it */
        .product-modal { position: fixed; top: var(--nav-height, 70px); left: 0; width: 100%; height: calc(100vh - var(--nav-height, 70px)); z-index: 13999; display: none; opacity: 0; transition: opacity 0.4s ease; }
        .product-modal.active { display: flex; flex-direction: column; opacity: 1; }
        /* Overlay fills the modal area only (below navbar) */
        .modal-overlay { position: absolute; inset: 0; background: rgba(26, 22, 18, 0.35); cursor: pointer; z-index: 0; }
        /* Scroll container — no padding needed, modal already starts below nav */
        .modal-scroll { position: relative; z-index: 1; width: 100%; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding-top: 0; }
        .modal-content { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; padding: 50px 5vw 80px; transform: translateY(30px); transition: transform 0.5s cubic-bezier(0.25,1,0.5,1); }
        .product-modal.active .modal-content { transform: translateY(0); }

        /* Related products strip */
        .modal-related { max-width: 1400px; margin: 0 auto; padding: 60px 5vw 80px; border-top: 1px solid transparent; }
        .modal-details { margin: 0; border-top: 1px solid transparent; padding: 0 5vw; display: grid; grid-template-columns: 1fr 1fr 1fr; }
        .modal-details:empty { display: none; }
        .md-block { padding: 36px 36px 36px 0; border-bottom: 1px solid transparent; }
        .md-block:not(:nth-child(3n+1)) { padding-left: 36px; border-left: 1px solid transparent; }
        .md-block.md-full { grid-column: 1 / -1; padding: 36px 0; border-left: none !important; }
        .md-block-heading { font-size: 0.8625rem; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: #1A1612; margin-bottom: 18px; }
        .md-block-body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important; font-size: clamp(0.9rem, 1vw, 1.1rem); font-weight: 300; line-height: 1.9; color: #1A1612; max-width: 780px; }
        .md-block-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
        .md-block-list li { font-family: var(--font-accent) !important; font-size: clamp(0.88rem, 0.95vw, 1.05rem); font-weight: 300; line-height: 1.6; color: #1A1612; padding-left: 16px; position: relative; }
        .md-block-list li::before { content: '·'; position: absolute; left: 0; color: #CFA246; }
        .md-block-list li strong { font-weight: 600; color: #1A1612; font-style: normal; }
        @media (max-width: 900px) {
            .modal-details { grid-template-columns: 1fr 1fr; }
            .md-block:not(:nth-child(3n+1)) { padding-left: 0; border-left: none; }
            .md-block:nth-child(even) { padding-left: 32px; border-left: 1px solid transparent; }
        }
        @media (max-width: 640px) {
            .modal-details { grid-template-columns: 1fr; padding: 0 5vw; }
            .md-block, .md-block:not(:nth-child(3n+1)), .md-block:nth-child(even) { padding: 24px 0; border-left: none; }
        }
        .modal-footer { background: transparent; border-top: 1px solid transparent; margin-top: 80px; }
        .modal-related-label { font-size: 0.8625rem; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: #1A1612; margin-bottom: 32px; }
        .modal-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
        .modal-rel-card { cursor: pointer; }
        .modal-rel-card .rel-img { aspect-ratio: 3/4; overflow: hidden; background: transparent; margin-bottom: 14px; }
        .modal-rel-card .rel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
        .modal-rel-card:hover .rel-img img { transform: scale(1.04); }
        .modal-rel-card .rel-title { font-size: 0.8625rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #1A1612; margin-bottom: 4px; }
        .modal-rel-card .rel-price { font-size: 0.875rem; font-weight: 300; color: #1A1612; }
        .modal-close { position: static; margin-left: auto; flex-shrink: 0; background: transparent; border: 1px solid rgba(207, 162, 70, 0.35); color: #1A1612; width: 44px; height: 44px; font-size: 1.5rem; cursor: pointer; transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); transform-origin: center; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
        .modal-close:hover { background: #1A1612; color: transparent; border-color: #1A1612; transform: rotate(90deg); }

        .modal-gallery { display: flex; flex-direction: column; gap: 15px; }
        .gallery-main { width: 100%; background: linear-gradient(90deg, transparent 25%, transparent 50%, transparent 75%); background-size: 200% 100%; animation: shimmer 1.8s infinite linear; overflow: hidden; cursor: zoom-in; position: relative; border: 1px solid transparent; }
        .gallery-main img { width: 100%; height: auto; display: block; opacity: 0; transition: transform 0.6s cubic-bezier(0.25,1,0.5,1), opacity 0.4s ease; }
        .gallery-main img.loaded { opacity: 1; }
        .gallery-main:hover img { transform: scale(1.025); }
        .gallery-zoom-hint { position: absolute; bottom: 14px; right: 16px; font-size: 0.8625rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.3); pointer-events: none; user-select: none; }
        .gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
        .gallery-thumb { width: 70px; aspect-ratio: 1/1; background: transparent; cursor: pointer; opacity: 0.4; transition: opacity 0.25s ease, border-color 0.25s ease; border: 1px solid transparent; overflow: hidden; border-radius: 6px; }
        .gallery-thumb:hover { opacity: 0.8; }
        .gallery-thumb.active { opacity: 1; border-color: #1A1612; border-radius: 6px; }
        .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

        /* -- Full-screen image viewer ----------------------------------------- */
        #imgViewer {
            position: fixed; inset: 0; z-index: 16000;
            background: rgba(26, 22, 18, 0.92);
            display: flex; align-items: center; justify-content: center;
            cursor: zoom-out;
            opacity: 0; pointer-events: none;
            transition: opacity 0.3s ease;
        }
        #imgViewer.open { opacity: 1; pointer-events: all; }
        #imgViewer img {
            max-width: 92vw; max-height: 92vh;
            object-fit: contain;
            display: block;
            transform: scale(0.96);
            transition: transform 0.4s cubic-bezier(0.25,1,0.5,1);
            user-select: none;
        }
        #imgViewer.open img { transform: scale(1); }
        #imgViewerClose {
            position: absolute; top: 24px; right: 28px;
            color: #1A1612; font-size: 2.5rem; line-height: 1;
            opacity: 0.35; cursor: pointer;
            transition: opacity 0.25s ease, transform 0.25s ease;
            background: none; border: none;
        }
        #imgViewerClose:hover { opacity: 1; transform: rotate(90deg); }
        .img-viewer-nav {
            position: absolute;
            top: 50%; transform: translateY(-50%);
            width: 56px; height: 56px;
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 999px;
            background: rgba(26, 22, 18, 0.55);
            color: #1A1612;
            font-size: 1.8rem;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            opacity: 0.55;
            transition: opacity 0.25s ease, transform 0.25s ease;
            z-index: 15010;
        }
        .img-viewer-nav:hover { opacity: 1; transform: scale(1.03); }
        .img-viewer-nav.prev { left: 24px; }
        .img-viewer-nav.next { right: 24px; }
        #imgViewerHint {
            position: absolute; bottom: 24px; left: 50%;
            transform: translateX(-50%);
            font-size: 0.8625rem; font-weight: 700; letter-spacing: 4px;
            text-transform: uppercase; color: rgba(255,255,255,0.25);
            pointer-events: none;
        }

        .modal-info { padding: 10px 0; }
        .modal-category { font-size: 0.9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: 4px; color: #1A1612; margin-bottom: 25px; }
        .modal-title { font-size: clamp(3.125rem, 4vw, 5.4688rem); font-weight: 300; font-style: italic; letter-spacing: -0.01em; line-height: 0.95; margin-bottom: 25px; }
        .modal-price { font-size: 1.5rem; font-weight: 300; color: #1A1612; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid #CFA246; letter-spacing: 1px; }
        .modal-description { font-family: var(--font-accent) !important; font-size: clamp(1rem, 1.15vw, 1.25rem); font-weight: 300; line-height: 1.85; color: #1A1612; margin-bottom: 40px; }

        .modal-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 25px; margin-bottom: 50px; padding: 35px 0; border-top: 1px solid #CFA246; border-bottom: 1px solid #CFA246; }
        .spec-item { display: flex; flex-direction: column; gap: 8px; }
        .spec-label { font-size: 0.8625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #1A1612; }
        .spec-value { font-size: 1.0625rem; font-weight: 400; color: #1A1612; letter-spacing: 0.5px; }

        .modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .modal-actions .action-btn { padding: 20px; font-size: 1.0938rem; letter-spacing: 2px; }
        .modal-actions .action-btn:hover { border-color: #1A1612; background: rgba(255,255,255,0.05); }
        .modal-actions .buy-now-btn:hover { background: #A34E2E; color: #F7F3ED; border-color: #A34E2E; }

        @media (max-width: 1100px) {
            .modal-content { grid-template-columns: 1fr; gap: 50px; padding: 40px 5vw 50px; }
            .gallery-main { max-width: 500px; }
            .modal-scroll { padding-top: 0; }
        }

        /* -- Modal back button ----------------------------------------- */
        .modal-back-bar {
            padding: 16px 5vw;
            border-bottom: 1px solid transparent;
            display: flex;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 13998;
        }
        .modal-back {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.8625rem;
            font-weight: 700;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            color: #1A1612;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            transition: color 0.25s ease;
        }
        .modal-back:hover { color: #1A1612; }
        .modal-back svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

        /* -- Gallery prev / next arrows -------------------------------- */
        .gallery-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: rgba(255,255,255,0.25);
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 4;
            transition: color 0.25s ease;
            padding: 0;
            opacity: 0.3;
        }
        .gallery-main:hover .gallery-nav,
        .product-image:hover .gallery-nav { opacity: 1; }
        .gallery-nav:hover { color: rgba(255,255,255,0.9); }
        /* Touch devices have no hover &mdash; keep arrows legible at rest */
        @media (hover: none) {
            .gallery-nav { opacity: 0.6; }
        }
        .gallery-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
        .gallery-prev { left: 10px; }
        .gallery-next { right: 10px; }
        .gallery-nav[hidden] { display: none; }

        /* Image counter badge */
        .gallery-counter {
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.8625rem;
            font-weight: 600;
            letter-spacing: 2px;
            color: rgba(255,255,255,0.25);
            pointer-events: none;
            z-index: 4;
        }

        /* -- Product Social Actions (Fav / Collection / Share) -------- */
        /* Card: floating cluster top-right of thumbnail, shown on hover */
        .product-social {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.22s ease;
            z-index: 4;
        }
        .product-card:hover .product-social,
        .product-card:focus-within .product-social { opacity: 1; pointer-events: auto; }
        .psoc-btn {
            width: 44px; height: 44px;
            border-radius: 50%;
            background: rgba(247,243,236,0.96);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(26,22,18,0.14);
            color: #1A1612;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(26,22,18,0.18);
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
            flex-shrink: 0;
        }
        .psoc-btn:hover { background: #fff; border-color: #CFA246; transform: scale(1.1); box-shadow: 0 4px 12px rgba(26,22,18,0.22); }
        .psoc-btn.fav-active { color: #e05555; border-color: rgba(224,85,85,0.5); background: #fff; }
        .psoc-btn svg {
            width: 13px; height: 13px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.7;
            stroke-linecap: round;
            stroke-linejoin: round;
            flex-shrink: 0;
        }
        .psoc-btn.fav-active svg { fill: #e05555; stroke: #e05555; }

        /* Modal: slim row above the Add to Cart / Buy Now buttons */
        .modal-social {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid rgba(207,162,70,0.15);
        }
        .modal-social .psoc-btn {
            width: auto; height: 44px;
            border-radius: 6px;
            padding: 0 14px;
            gap: 7px;
            flex-direction: row;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: #1A1612;
            background: transparent;
            border: 1px solid rgba(207,162,70,0.3);
            backdrop-filter: none;
        }
        .modal-social .psoc-btn::after { content: attr(title); }
        .modal-social .psoc-btn:hover { background: rgba(207,162,70,0.07); border-color: #CFA246; transform: none; }
        .modal-social .psoc-btn.fav-active { color: #e05555; border-color: #e05555; background: rgba(224,85,85,0.06); }
        .modal-social .psoc-btn svg { width: 14px; height: 14px; }

        /* -- Shipping & Taxes Section ---------------------------------- */
        .shipping-section {
            padding: 80px 5vw 100px;
            background: transparent;
            border-top: 1px solid transparent;
        }
        .shipping-inner { max-width: 1200px; }
        .shipping-label {
            font-size: 0.8625rem;
            font-weight: 700;
            letter-spacing: 4px;
            text-transform: uppercase;
            color: #1A1612;
            display: block;
            margin-bottom: 18px;
        }
        .shipping-header h2 {
            font-size: clamp(2.4rem, 4vw, 4.2rem);
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: -0.03em;
            line-height: 0.95;
            color: #1A1612;
            margin-bottom: 50px;
        }
        .shipping-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 28px;
            margin-bottom: 40px;
        }
        .shipping-col {
            padding: 36px 0;
        }
        .shipping-region {
            font-size: 0.8625rem;
            font-weight: 700;
            letter-spacing: 4px;
            text-transform: uppercase;
            color: #1A1612;
            margin-bottom: 6px;
        }
        .shipping-country {
            font-size: 1.4rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: -0.01em;
            color: #1A1612;
            margin-bottom: 26px;
            padding-bottom: 18px;
            border-bottom: 1px solid rgba(26, 22, 18, 0.1);
        }
        .shipping-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 20px;
            padding: 13px 0;
            border-bottom: 1px solid rgba(26, 22, 18, 0.08);
            font-size: 0.8625rem;
        }
        .shipping-row:last-child { border-bottom: none; }
        .shipping-row .sr-key {
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: #1A1612;
            flex-shrink: 0;
        }
        .shipping-row .sr-val {
            color: #1A1612;
            text-align: right;
            line-height: 1.5;
        }
        .shipping-note {
            font-size: 0.8625rem;
            color: #CFA246;
            line-height: 1.9;
            max-width: 820px;
            border-top: 1px solid transparent;
            padding-top: 28px;
            margin-top: 10px;
        }
        @media (max-width: 700px) {
            .shipping-grid { grid-template-columns: 1fr; }
            .shipping-col { padding: 24px 0; }
            .shipping-section { padding: 60px 5vw 70px; }
        }

        /* ---------------------------------------------------------------
           ARTSY-STYLE MODAL &mdash; LAYOUT (always) + COLOURS (theme-aware)
        --------------------------------------------------------------- */

        /* -- Layout &mdash; always applies ---------------------------------- */
        /* Modal sits below navbar — scroll content begins after navbar height */
        .modal-scroll { padding-top: 0; }
        .modal-back-bar { padding: 14px 40px; }

        .modal-content {
            max-width: 1280px;
            grid-template-columns: 1.15fr 0.85fr;
            gap: 0;
            padding: 48px 0 80px;
            align-items: start;
        }

        /* Image pane — no sticky, scrolls with the page */
        .modal-gallery {
            position: static;
            padding: 0 48px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }
        .gallery-main {
            background: transparent;
            border: none;
            cursor: zoom-in;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .gallery-main img {
            max-height: 78vh;
            width: auto;
            max-width: 100%;
            object-fit: contain;
        }
        .gallery-main:hover img { transform: none; }
        .gallery-thumbs { justify-content: center; margin-top: 20px; }

        /* Info pane — no min-height, natural flow */
        .modal-info {
            padding: 0 48px 80px;
            display: flex;
            flex-direction: column;
        }

        /* Title ? Canela accent  */
        .modal-title {
            font-family: var(--font-accent) !important;
            font-size: clamp(1.6rem, 2.4vw, 2.8rem);
            font-weight: 400;
            font-style: italic;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            line-height: 1.1;
            margin-bottom: 20px;
        }

        /* Category ? small muted label */
        .modal-category {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            margin-bottom: 10px;
        }

        /* Price */
        .modal-price {
            font-size: 1.6rem;
            font-weight: 400;
            letter-spacing: 0;
            margin-bottom: 20px;
            padding-bottom: 0;
            border-bottom: none;
        }

        /* Description */
        .modal-description { font-size: 0.9rem; line-height: 1.75; margin-bottom: 24px; }

        /* Specs &mdash; single-column key:value rows */
        .modal-specs {
            grid-template-columns: 1fr;
            gap: 10px 0;
            padding: 20px 0;
            margin-bottom: 28px;
        }
        .spec-item { flex-direction: row; align-items: baseline; gap: 10px; }
        .spec-label { font-size: 0.75rem; letter-spacing: 1.5px; min-width: 90px; }
        .spec-value { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.3px; }

        /* Actions &mdash; stacked full-width pills */
        #modalSizeWrap { margin-bottom: 20px; }
        .modal-actions { grid-template-columns: 1fr; gap: 10px; margin-top: 0; }
        .modal-actions .action-btn {
            padding: 17px 24px;
            font-size: 0.8rem;
            letter-spacing: 2px;
            border-radius: 6px;
            width: 100%;
            text-align: center;
        }
        .product-social { top: 8px; right: 8px; }
        .modal-details { padding: 0 40px; }

        /* Responsive */
        @media (max-width: 1100px) {
            .modal-gallery { position: static; min-height: auto; padding: 32px 24px; }
            .modal-info { min-height: auto; padding: 40px 24px 60px; }
            .modal-content { grid-template-columns: 1fr; }
            .modal-back-bar { padding: 14px 24px; }
            .modal-details { padding: 0 24px; }
        }

        /* -- Default (light) colours ---------------------------------- */
        .modal-scroll { background: #f0ece5; }
        .modal-back-bar { background: #EDE8DF; border-bottom: 1px solid rgba(0,0,0,0.10); }
        .modal-back { color: #888; }
        .modal-back:hover { color: #111; }
        .modal-close { border-color: rgba(0,0,0,0.18); color: #555; }
        .modal-close:hover { background: #111; color: #fff; border-color: #111; }
        .modal-gallery { background: #e8e4dc; }
        .gallery-zoom-hint { color: rgba(0,0,0,0.22); }
        .gallery-thumb { background: rgba(0,0,0,0.06); }
        .gallery-thumb.active { border-color: #111; }
        .gallery-counter { color: rgba(0,0,0,0.25); }
        .gallery-nav { background: rgba(255,255,255,0.75); border-color: rgba(0,0,0,0.12); color: #333; }
        .gallery-nav:hover { background: #fff; color: #111; }
        .modal-info { background: #f0ece5; border-left: 1px solid rgba(0,0,0,0.08); }
        .modal-category { color: #999; }
        .modal-title { color: #0a0a0a; }
        .modal-price { color: #0a0a0a; }
        .modal-description { color: #555; }
        .modal-specs { border-top-color: rgba(0,0,0,0.1); border-bottom-color: rgba(0,0,0,0.1); }
        .spec-label { color: #999; }
        .spec-value { color: #111; }
        .modal-actions .action-btn { background: #fff; color: #0a0a0a; border-color: rgba(0,0,0,0.22); }
        .modal-actions .action-btn:hover { background: #f5f5f5; border-color: #0a0a0a; }
        .modal-actions .buy-now-btn { background: #B85C38; color: #F7F3ED; border: 1px solid #B85C38; }
        .modal-actions .buy-now-btn:hover { background: #A34E2E; color: #F7F3ED !important; border-color: #A34E2E; }
        .product-social .psoc-btn { background: rgba(247,243,236,0.96); border-color: rgba(26,22,18,0.18); color: #1A1612; }
        .product-social .psoc-btn:hover { background: #fff; border-color: #CFA246; }
        .modal-details { background: #e8e4dc; border-top-color: rgba(0,0,0,0.08); }
        .md-block { border-bottom-color: rgba(0,0,0,0.07); }
        .md-block:not(:nth-child(3n+1)) { border-left-color: rgba(0,0,0,0.07); }
        .md-block-heading { color: #aaa; }
        .md-block-body { color: #555; }
        .md-block-list li { color: #555; }
        .md-block-list li::before { color: rgba(0,0,0,0.2); }
        .md-block-list li strong { color: #111; }
        .modal-related { background: #f0ece5; border-top-color: rgba(0,0,0,0.08); }
        .modal-related-label { color: #999; }
        .modal-rel-card .rel-title { color: #111; }
        .modal-rel-card .rel-price { color: #888; }
        .modal-rel-card .rel-img { background: #dedad3; }
        .modal-footer { background: #e8e4dc !important; border-top-color: rgba(0,0,0,0.08) !important; }

        /* ── Certificate of Authenticity — modal block ─────────────────── */
        .modal-coa {
            margin-bottom: 28px;
            padding: 22px 0;
            border-top: 1px solid rgba(207, 162, 70, 0.35);
        }
        .modal-coa:empty { display: none; }

        .coa-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }
        .coa-header svg {
            width: 15px;
            height: 15px;
            flex-shrink: 0;
            color: #CFA246;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.6;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        .coa-heading {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: #CFA246;
        }

        .coa-statement {
            font-size: 0.82rem;
            font-weight: 300;
            line-height: 1.75;
            color: #888;
            margin-bottom: 16px;
        }

        .coa-security {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px 14px;
            margin-bottom: 16px;
        }
        .coa-security-label {
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: #999;
            flex-shrink: 0;
        }
        .coa-feature {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #1A1612;
            background: rgba(207, 162, 70, 0.1);
            border: 1px solid rgba(207, 162, 70, 0.3);
            padding: 4px 10px;
            border-radius: 2px;
        }
        .coa-feature svg {
            width: 9px;
            height: 9px;
            fill: none;
            stroke: #CFA246;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            flex-shrink: 0;
        }

        .coa-meta {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px 16px;
        }
        .coa-meta-item {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        .coa-meta-key {
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: #999;
        }
        .coa-meta-val {
            font-size: 0.8rem;
            font-weight: 400;
            color: #333;
        }

        .coa-id-note {
            margin-top: 14px;
            font-size: 0.72rem;
            font-weight: 400;
            color: #aaa;
            letter-spacing: 0.5px;
            line-height: 1.6;
        }
        .coa-id-note strong {
            color: #CFA246;
            font-weight: 600;
        }

        /* ── Edition Registry — modal block ────────────────────────────── */
        .modal-registry {
            padding: 20px 0;
            margin-bottom: 4px;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }
        .modal-registry:empty { display: none; }

        .registry-header {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
        }
        .registry-label {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: #999;
        }
        .registry-count {
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 1px;
            color: #4A8C5C;
        }
        .registry-count.rs-count-soldout {
            color: #B85C38;
        }

        .registry-slots {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin-bottom: 14px;
        }
        .rs-slot {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            width: 56px;
            padding: 8px 4px;
            border: 1px solid;
            border-radius: 3px;
        }
        .rs-slot.rs-avail {
            border-color: rgba(74, 140, 92, 0.35);
            background: rgba(74, 140, 92, 0.05);
        }
        .rs-slot.rs-sold {
            border-color: rgba(0, 0, 0, 0.1);
            background: transparent;
        }
        .rs-slot.rs-ap {
            border-color: rgba(207, 162, 70, 0.4);
            background: rgba(207, 162, 70, 0.06);
        }
        .rs-slot.rs-ap.rs-sold {
            border-color: rgba(0, 0, 0, 0.1);
            background: transparent;
        }
        .rs-num {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            color: #111;
            line-height: 1;
        }
        .rs-slot.rs-sold .rs-num {
            color: #bbb;
            text-decoration: line-through;
            text-decoration-color: rgba(0,0,0,0.25);
        }
        .rs-slot.rs-ap .rs-num { color: #CFA246; }
        .rs-slot.rs-ap.rs-sold .rs-num { color: #bbb; }

        .rs-status {
            font-size: 0.6875rem;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            line-height: 1;
        }
        .rs-slot.rs-avail .rs-status { color: #4A8C5C; }
        .rs-slot.rs-sold .rs-status  { color: #ccc; }
        .rs-slot.rs-ap .rs-status    { color: #CFA246; font-size: 0.6875rem; }
        .rs-slot.rs-ap.rs-sold .rs-status { color: #ccc; }

        .registry-note {
            font-size: 0.72rem;
            font-weight: 300;
            line-height: 1.65;
            color: #aaa;
        }

        /* ── Availability line — product card ───────────────────────────── */
        .card-availability {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #4A8C5C;
            margin-top: 5px;
        }
        .card-availability.ca-soldout {
            color: #B85C38;
        }
        .ca-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #4A8C5C;
            flex-shrink: 0;
        }
        .ca-dot.ca-dot-sold { background: #B85C38; }

        /* ── Reassurance strip — below buy buttons ──────────────────────── */
        .modal-reassurance {
            display: flex;
            flex-wrap: wrap;
            gap: 6px 18px;
            margin-top: 16px;
            padding-top: 14px;
            border-top: 1px solid rgba(0, 0, 0, 0.07);
        }
        .modal-reassurance:empty { display: none; }

        .ra-item {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: #999;
        }
        .ra-item svg {
            width: 11px;
            height: 11px;
            flex-shrink: 0;
            fill: none;
            stroke: #CFA246;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* ── COA badge — product card ───────────────────────────────────── */
        .coa-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: #CFA246;
            margin-top: 6px;
        }
        .coa-badge svg {
            width: 10px;
            height: 10px;
            fill: none;
            stroke: #CFA246;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            flex-shrink: 0;
        }

        /* ── Modal provenance block ─────────────────────────────────────── */
        .modal-provenance {
            grid-column: 1 / -1;
            padding: 40px 0 0;
            border-top: 1px solid rgba(207, 162, 70, 0.2);
            margin-top: 16px;
        }
        .modal-provenance:empty { display: none; }
        .mprov-header {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 24px;
            margin-bottom: 28px;
            flex-wrap: wrap;
        }
        .mprov-label {
            font-size: 0.8625rem;
            font-weight: 700;
            letter-spacing: 5px;
            text-transform: uppercase;
            color: #CFA246;
        }
        .mprov-pdf-btn {
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: #4A3A33;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            transition: color 0.2s;
            text-decoration: none;
        }
        .mprov-pdf-btn:hover { color: #1A1612; }
        .mprov-fields {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0;
            border: 1px solid rgba(207, 162, 70, 0.18);
            margin-bottom: 32px;
        }
        .mprov-field {
            padding: 16px 20px;
            border-bottom: 1px solid rgba(207, 162, 70, 0.12);
            border-right: 1px solid rgba(207, 162, 70, 0.12);
            display: flex;
            gap: 16px;
            align-items: baseline;
        }
        .mprov-field:nth-child(2n) { border-right: none; }
        .mprov-field:nth-last-child(-n+2) { border-bottom: none; }
        .mprov-key {
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: #999;
            min-width: 64px;
            flex-shrink: 0;
        }
        .mprov-val {
            font-size: 0.975rem;
            color: #1A1612;
            line-height: 1.6;
        }
        .mprov-narrative {
            padding: 24px 28px;
            border-left: 2px solid #CFA246;
            margin-bottom: 16px;
        }
        .mprov-narrative p {
            font-family: var(--font-accent);
            font-size: clamp(0.975rem, 1.1vw, 1.125rem);
            font-weight: 300;
            font-style: italic;
            color: #1A1612;
            line-height: 1.95;
        }
        @media (max-width: 700px) {
            .mprov-fields { grid-template-columns: 1fr; }
            .mprov-field { border-right: none; }
            .mprov-field:nth-last-child(-n+2) { border-bottom: 1px solid rgba(207, 162, 70, 0.12); }
            .mprov-field:last-child { border-bottom: none; }
        }

        /* ── Prospect provenance capture strip ──────────────────────────── */
        .provenance-capture {
            padding: 72px 5vw;
            border-top: 1px solid #CFA246;
            border-bottom: 1px solid #CFA246;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }
        .pc-label {
            display: block;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 5px;
            text-transform: uppercase;
            color: #CFA246;
            margin-bottom: 18px;
        }
        .pc-heading {
            font-size: clamp(1.75rem, 2.5vw, 2.5rem);
            font-weight: 300;
            color: #1A1612;
            line-height: 1.3;
            margin-bottom: 16px;
        }
        .pc-body {
            font-size: 1.075rem;
            color: #1A1612;
            line-height: 1.85;
        }
        .pc-form-wrap {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .pc-form {
            display: flex;
            gap: 0;
        }
        .pc-form input[type="email"] {
            flex: 1;
            padding: 14px 18px;
            font-size: 0.9rem;
            border: 1px solid rgba(26, 22, 18, 0.3);
            border-right: none;
            background: transparent;
            color: #1A1612;
            outline: none;
            font-family: inherit;
            transition: border-color 0.2s;
        }
        .pc-form input[type="email"]:focus { border-color: #CFA246; }
        .pc-form button {
            padding: 14px 22px;
            background: #1A1612;
            color: #F7F3ED;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            border: none;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.2s;
            font-family: inherit;
        }
        .pc-form button:hover { background: #CFA246; }
        .pc-note {
            font-size: 0.825rem;
            color: #999;
            line-height: 1.6;
        }
        .pc-ok {
            display: none;
            font-size: 0.9rem;
            color: #4A3A33;
            letter-spacing: 2px;
        }
        @media (max-width: 900px) {
            .provenance-capture {
                grid-template-columns: 1fr;
                gap: 36px;
                padding: 56px 5vw;
            }
        }

        /* Mobile header fixes */
        @media (max-width: 1100px) {
            /* 1. Force hamburger to the right */
            .nav-links-container {
                flex: 1;
                justify-content: flex-end;
            }
            .hamburger {
                order: 3;
                margin-left: auto;
            }

            /* 3. Prevent hero title from wrapping */
            .shop-hero {
                min-height: auto !important;
                padding-top: 40px !important;
                justify-content: flex-start !important;
            }
            .shop-hero h1 {
                white-space: normal !important;
                word-break: normal !important;
                hyphens: none !important;
                font-size: clamp(2rem, 8vw, 3rem) !important;
                line-height: 1.1 !important;
            }
        }

/* ══════════════════════════════════════════════════════════════════════════════
   WCAG AA CONTRAST FIXES — PRODUCT MODAL LABELS
   #999 on #f0ece5 = 2.42:1 FAIL → #595959 = 5.91:1 PASS
   #aaa on #e8e4dc = 1.83:1 FAIL → #555555 = 5.88:1 PASS
   #888 on #f0ece5 = 3.02:1 FAIL (normal text) → #636363 = 5.10:1 PASS
   ══════════════════════════════════════════════════════════════════════════════ */

/* modal-category, spec-label, registry-label, mprov-key, modal-related-label, ra-item */
.modal-category,
.spec-label,
.registry-label,
.coa-security-label,
.modal-related-label,
.mprov-key,
.modal-scroll .ra-item {
    color: #595959 !important;
}

/* md-block-heading section titles */
.md-block-heading {
    color: #555555 !important;
}

/* modal-back nav, rel-price */
.modal-back,
.modal-rel-card .rel-price {
    color: #636363 !important;
}

/* Gold labels in modal on light bg — .mprov-label, .modal-provenance .tier-label-equiv */
.mprov-label {
    color: #7F5F10 !important; /* was inheriting #CFA246 on light modal bg */
}
