/* Built by website/local/scripts/build_css.py from assets/css/manifest.json. Edit the sources, then rebuild. */

/* pages/product-detail.css */
/*
 * The product page (/product/<slug>/), one of the files
 * manifest.json joins into bundles/product-detail.css.
 *
 * This file: the page layout and the gallery (the breadcrumb, the
 * two columns, the photo stack and strip, and their phone layout).
 */

        /* The breadcrumb's place: a band of its own over the page (its look: breadcrumb.css). */
        .breadcrumb {
            padding: var(--spacing-md) var(--spacing-lg);
            max-width: 1400px;
            margin: 0 auto;
        }

        .product-detail {
            max-width: 1400px;
            margin: 0 auto;
            padding: var(--spacing-lg);
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: var(--spacing-xl);
            align-items: start;
        }

        .product-gallery,
        .product-info { min-width: 0; }

        .product-gallery { align-self: start; }

        /* Stacked editorial gallery */
        .product-gallery {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-sm);
        }

        .gallery-shot {
            position: relative;
            overflow: hidden;
            background: var(--color-bg-warm);
        }

        .gallery-shot.hero { aspect-ratio: 4/5; }
        .gallery-shot.tall { aspect-ratio: 3/4; }
        .gallery-shot.square { aspect-ratio: 1; }
        .gallery-shot.wide { aspect-ratio: 4/3; }

        .shot-image {
            position: absolute;
            inset: 0;
            transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
        }

        /* The registered crop matches each slot's shape on desktop, and a
         * phone gets each photo's 4:5 crop (gallery.php); cover keeps a
         * photo filling its frame wherever the shapes still differ. Two
         * classes, so WooCommerce's `.woocommerce img { height: auto }`
         * (0,1,1) cannot outrank the height: until 15 Oct it did, and on a
         * phone the square and wide photos left an empty band under them. */
        .shot-image .shot-image-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .gallery-shot:hover .shot-image {
            transform: scale(1.02);
        }

        .shot-image:not(:has(img))::before {
            content: '';
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(
                45deg,
                rgba(255,255,255,0.04),
                rgba(255,255,255,0.04) 2px,
                transparent 2px,
                transparent 4px
            );
        }

        .shot-image::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.25) 100%);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .gallery-shot:hover .shot-image::after { opacity: 1; }

        .shot-label {
            position: absolute;
            left: var(--spacing-md);
            bottom: var(--spacing-md);
            display: flex;
            align-items: baseline;
            gap: 10px;
            color: rgba(255,255,255,0.95);
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            z-index: 2;
            opacity: 0;
            transform: translateY(8px);
            transition: opacity 0.3s, transform 0.3s;
        }

        .gallery-shot:hover .shot-label {
            opacity: 1;
            transform: translateY(0);
        }

        .shot-label-num {
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect);
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 0.06em;
            text-transform: none;
            opacity: 0.7;
        }

        .shot-zoom-tag {
            position: absolute;
            top: var(--spacing-md);
            right: var(--spacing-md);
            background: rgba(255,255,255,0.92);
            backdrop-filter: blur(8px);
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--color-primary);
            padding: 7px 12px;
            z-index: 2;
        }

        /* product-detail.js promotes this span to `role="button"` with
         * a tabindex, so it is a real control and owes a real touch
         * target — 7px of padding left it 32px tall. */
        @media (hover: none), (max-width: 700px) {
            .shot-zoom-tag {
                display: flex;
                align-items: center;
                min-height: 44px;
                padding-inline: var(--spacing-sm);
            }
        }

        .gallery-strip {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--spacing-sm);
        }

        .gallery-strip .gallery-shot { aspect-ratio: 1; }

        /* Mobile: collapse 2-col grid, trim 48px section padding + gap.
         * Without this the .info-card descendants (embossing row,
         * in-the-box list) overshoot the narrowed grid track and push
         * the doc past the viewport. .info-card padding override lives
         * in product-detail-cards.css because cards.css loads later. */
        @media (max-width: 900px) {
            .product-detail {
                grid-template-columns: 1fr;
                padding: var(--spacing-md);
                gap: var(--spacing-lg);
            }
            .breadcrumb { padding: var(--spacing-md); }

            /* One column puts the stacked gallery (seven photos, ~1,700px
             * on a phone) above the price and Add to Cart. Below 900px the
             * gallery is a swipe row instead: one photo at a time, the next
             * one peeking in so the row reads as swipeable, all one shape
             * so the row does not jump. */
            .product-gallery {
                flex-direction: row;
                overflow-x: auto;
                overscroll-behavior-x: contain;
                scroll-snap-type: x mandatory;
                scrollbar-width: none;
            }
            .product-gallery::-webkit-scrollbar { display: none; }
            .gallery-strip { display: contents; }
            .product-gallery .gallery-shot,
            .gallery-strip .gallery-shot {
                flex: 0 0 88%;
                aspect-ratio: 4/5;
                scroll-snap-align: start;
            }
            /* The wide shot is shown whole, centred on the frame's warm
             * ground: cut to 4:5 it loses its sides, where a hand for
             * scale often is. Every other photo is a 4:5 crop
             * (gallery.php). */
            .gallery-shot.wide .shot-image .shot-image-img { object-fit: contain; }
        }

/* pages/product-detail-info.css */
/*
 * The product page (/product/<slug>/), one of the files
 * manifest.json joins into bundles/product-detail.css.
 *
 * This file: the info column (eyebrow, title, rating, price,
 * description, features, colours, quantity).
 */

        .product-info {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-md);
        }

        .product-info-sticky {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-sm);
        }

        .product-eyebrow {
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: var(--color-eyebrow);
            margin-bottom: 4px;
        }

        .product-eyebrow .dot {
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--color-secondary);
            opacity: 0.6;
        }

        .product-info h1 {
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect);
            /* Was a flat 56px — at 375px viewport that wrapped a typical
             * product name to 4 lines. Clamp to a fluid range so the
             * heading scales down to ~34px on mobile while keeping the
             * full 56px on desktop. */
            font-size: clamp(2.125rem, 4.2vw + 1rem, 3.5rem);
            font-weight: 500;
            color: var(--color-primary);
            margin-bottom: 0;
            letter-spacing: -0.02em;
            line-height: 1.05;
        }

        .product-rating {
            display: flex;
            gap: var(--spacing-sm);
            align-items: center;
            font-size: 14px;
            margin-bottom: 0;
        }

        .stars {
            color: var(--color-rating-star);
            letter-spacing: 2px;
            font-size: 15px;
        }

        .rating-num {
            font-weight: 600;
            color: var(--color-primary);
        }

        .review-count,
        .review-count-link {
            color: var(--color-text-mid);
            text-decoration: none;
            transition: color 0.2s;
        }

        .review-count-link:hover {
            color: var(--color-primary);
            text-decoration: underline;
        }

        .product-rating-divider {
            width: 1px;
            height: 14px;
            background: var(--color-border);
        }

        .product-rating-tag {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            color: var(--color-text-mid);
        }

        .product-price-row {
            display: flex;
            align-items: baseline;
            gap: var(--spacing-sm);
            flex-wrap: wrap;
            margin-top: var(--spacing-xs);
        }

        .product-price {
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect);
            font-size: 44px;
            font-weight: 500;
            color: var(--color-primary);
            margin-bottom: 0;
            letter-spacing: -0.01em;
            line-height: 1;
            display: flex;
            align-items: baseline;
            gap: 0.4em;
            flex-wrap: wrap;
        }

        /* Sale-price treatment: WooCommerce wraps the regular price in
           <del> and the sale price in <ins>. Default browser styles add
           a strikethrough to <del> (correct) and an underline to <ins>
           (looks wrong, especially in display type). De-emphasize the
           old price; keep the new price clean and primary. */
        .product-price del {
            font-size: 0.5em;
            font-weight: 400;
            color: var(--color-text-mid);
            text-decoration: line-through;
            text-decoration-thickness: 1px;
            text-decoration-color: var(--color-text-mid);
            order: 2;
        }

        .product-price del .woocommerce-Price-amount,
        .product-price del bdi {
            color: inherit;
            font-size: inherit;
            font-weight: inherit;
        }

        .product-price ins {
            text-decoration: none;
            background: transparent;
            color: var(--color-primary);
            order: 1;
        }

        /* PayPal's Pay Later message (inc/paypal.php), on its own line
           under the price. */
        .product-price-row .ppcp-messages {
            flex-basis: 100%;
        }

        .product-description {
            font-size: 17px;
            line-height: 1.7;
            color: var(--color-text-mid);
            margin-bottom: var(--spacing-lg);
        }

        .product-features {
            background: var(--color-bg-warm);
            padding: var(--spacing-md);
            border-radius: 2px;
            margin-bottom: var(--spacing-lg);
        }

        .product-features h3 {
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect);
            font-size: 20px;
            font-weight: 500;
            margin-bottom: var(--spacing-sm);
            color: var(--color-primary);
        }

        .features-list {
            list-style: none;
            display: grid;
            gap: var(--spacing-xs);
        }

        .features-list li {
            display: flex;
            gap: var(--spacing-sm);
            align-items: flex-start;
            font-size: 15px;
            color: var(--color-text-dark);
        }

        .features-list li::before {
            content: '✓';
            color: var(--color-secondary);
            font-weight: 600;
            flex-shrink: 0;
        }

        .option-group {
            margin-bottom: var(--spacing-lg);
        }

        .option-label {
            font-weight: 600;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: var(--spacing-sm);
            color: var(--color-primary);
        }

        /* Colours are sibling products: each swatch is a link. The ring
         * (outline) marks the one on screen; the fill is the leather. */
        .color-options {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .color-option {
            display: block;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: var(--swatch);
            box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
            outline: 2px solid transparent;
            outline-offset: 3px;
            transition: outline-color 0.2s;
        }

        .color-option:hover {
            outline-color: var(--color-text-mid);
        }

        .color-option.active {
            outline-color: var(--color-primary);
        }

        .color-option:focus-visible {
            outline-color: var(--color-secondary);
        }

        .quantity-selector {
            display: flex;
            gap: var(--spacing-sm);
            align-items: center;
        }

/* pages/product-detail-lightbox.css */
/*
 * The product page (/product/<slug>/), one of the files
 * manifest.json joins into bundles/product-detail.css.
 *
 * This file: the gallery lightbox.
 */

        /* ── Gallery lightbox ─────────────────────────────────────── */
        .gallery-shot:has(img[data-lightbox]) { cursor: zoom-in; }
        /* What is painted over a photo lets a press through to it, which
         * opens the lightbox (product-detail.js); controls on it keep theirs.
         * So a caption never holds a link: it could not be pressed (SF93). */
        .gallery-shot:has(img[data-lightbox]) .shot-image::before,
        .gallery-shot:has(img[data-lightbox]) .shot-image::after,
        .gallery-shot:has(img[data-lightbox]) .shot-label { pointer-events: none; }
        body.pdp-lightbox-lock { overflow: hidden; }

        .pdp-lightbox {
            position: fixed;
            inset: 0;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            /* Hidden only once the fade-out ends; shown at once on open, so
             * focus can move in as it opens (the menu drawer's pattern). */
            transition: opacity 0.28s ease, visibility 0s linear 0.28s;
        }
        .pdp-lightbox.open { opacity: 1; visibility: visible; transition: opacity 0.28s ease, visibility 0s; }

        .pdp-lightbox-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(26, 22, 20, 0.92);
            -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
        }

        .pdp-lightbox-stage {
            position: relative;
            z-index: 1;
            margin: 0;
            max-width: min(92vw, 1100px);
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            transform: scale(0.985);
            transition: transform 0.28s ease;
        }
        .pdp-lightbox.open .pdp-lightbox-stage { transform: scale(1); }

        .pdp-lightbox-img {
            max-width: 100%;
            max-height: 84vh;
            width: auto;
            height: auto;
            object-fit: contain;
            border-radius: 2px;
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
            -webkit-user-select: none;
            user-select: none;
        }
        /* base.css gives every img a display, which outranks the browser's own [hidden]. */
        .pdp-lightbox-img[hidden] { display: none; }
        /* In place of a photo that could not be loaded, nor the page's copy (SF79). No display here: [hidden] hides it. */
        .pdp-lightbox-missing {
            margin: 0;
            padding: var(--spacing-xl) var(--spacing-lg);
            color: #FAF8F5;
            font-size: 15px;
            text-align: center;
        }
        .pdp-lightbox-caption {
            margin-top: var(--spacing-md);
            color: rgba(250, 248, 245, 0.82);
            font-size: 12px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            text-align: center;
            max-width: 40ch;
        }

        .pdp-lightbox-close {
            position: absolute;
            top: 20px;
            right: 24px;
            z-index: 2;
            background: rgba(255, 255, 255, 0.1);
            color: #FAF8F5;
            border: 0;
            font-size: 11px;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            padding: 8px 12px;
            border-radius: 2px;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        .pdp-lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

        .pdp-lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 2;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.08);
            color: #FAF8F5;
            border: 0;
            border-radius: 50%;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        .pdp-lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
        .pdp-lightbox-nav svg { width: 22px; height: 22px; }
        .pdp-lightbox-nav.prev { left: 20px; }
        .pdp-lightbox-nav.next { right: 20px; }

        .pdp-lightbox-counter {
            position: absolute;
            bottom: 22px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 2;
            color: rgba(250, 248, 245, 0.7);
            font-size: 12px;
            letter-spacing: 0.1em;
        }

        @media (max-width: 640px) {
            .pdp-lightbox-nav { display: none !important; }
            .pdp-lightbox-stage { max-width: 96vw; }
            .pdp-lightbox-img { max-height: 80vh; }
            .pdp-lightbox-close { top: 14px; right: 16px; }
            .pdp-lightbox-counter { bottom: 14px; }
        }

/* pages/product-detail-options.css */
/* Split from product-detail.css under the 450-line cap. Options. */

        /* +/- stepper buttons. Without these the bare button collapses
         * to ~9x26 (glyph + line-height), missing the 44px tap minimum. */
        .quantity-btn {
            width: 44px; height: 44px;
            background: var(--color-bg-warm);
            border: 1px solid var(--color-border);
            color: var(--color-primary);
            font: 500 18px/1 var(--font-body); font-size-adjust: var(--font-body-aspect);
            cursor: pointer;
            transition: background 0.15s, border-color 0.15s, color 0.15s;
            display: inline-flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .quantity-btn:hover {
            background: var(--color-bg-light);
            border-color: var(--color-secondary);
            color: var(--color-accent-text);
        }
        .quantity-btn:active { background: var(--color-secondary); color: #fff; }

        /* `.quantity-display` is rendered as an <input type="number">
         * by info-sticky.php (the design source had a <div>); without
         * the box styling below it falls through to a 1px inset
         * browser-default border with a focus-ring outline that
         * doesn't match the brand. Hide the native spinner arrows so
         * the +/- buttons next to it stay the only stepper. */
        .quantity-display {
            width: 60px;
            height: 44px;
            padding: 0;
            background: #fff;
            border: 1px solid var(--color-border);
            color: var(--color-primary);
            font-family: var(--font-body); font-size-adjust: var(--font-body-aspect);
            font-size: 18px;
            font-weight: 600;
            text-align: center;
            border-radius: 0;
            -moz-appearance: textfield;
            appearance: textfield;
        }

        .quantity-display:focus {
            outline: none;
            border-color: var(--color-secondary);
        }

        .quantity-display::-webkit-inner-spin-button,
        .quantity-display::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .add-to-cart-btn {
            width: 100%;
            padding: 20px;
            background: var(--color-primary);
            color: white;
            border: none;
            font-family: var(--font-body); font-size-adjust: var(--font-body-aspect);
            font-size: 16px;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: var(--spacing-sm);
        }

        .add-to-cart-btn:hover {
            background: var(--color-secondary);
        }

        .buy-now-btn {
            width: 100%;
            padding: 20px;
            background: transparent;
            color: var(--color-primary);
            border: 2px solid var(--color-primary);
            font-family: var(--font-body); font-size-adjust: var(--font-body-aspect);
            font-size: 16px;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s;
        }

        .buy-now-btn:hover {
            background: var(--color-primary);
            color: white;
        }

        .trust-badges {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: var(--spacing-md);
            padding: var(--spacing-lg) 0;
            border-top: 1px solid var(--color-border);
            border-bottom: 1px solid var(--color-border);
            margin: var(--spacing-lg) 0;
        }

        .trust-badge {
            text-align: center;
        }

        .trust-badge-icon {
            font-size: 32px;
            margin-bottom: var(--spacing-xs);
        }

        .trust-badge-text {
            font-size: 13px;
            font-weight: 600;
            color: var(--color-text-dark);
        }

        .product-details-section {
            max-width: 1400px;
            margin: 0 auto;
            padding: var(--spacing-xl) var(--spacing-lg);
        }

        .tabs {
            display: flex;
            gap: var(--spacing-lg);
            border-bottom: 1px solid var(--color-border);
            margin-bottom: var(--spacing-lg);
        }

        .tab {
            padding: var(--spacing-sm) 0;
            background: none;
            border: none;
            font-family: var(--font-body); font-size-adjust: var(--font-body-aspect);
            font-size: 16px;
            font-weight: 600;
            color: var(--color-text-mid);
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: all 0.2s;
        }

        .tab.active {
            color: var(--color-primary);
            border-bottom-color: var(--color-secondary);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .specs-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: var(--spacing-md);
            margin: 0;
        }

        .spec-item {
            display: grid;
            grid-template-columns: minmax(7.5em, auto) minmax(0, 1fr);
            gap: var(--spacing-sm);
            align-items: baseline;
            padding: var(--spacing-sm);
            background: var(--color-bg-warm);
            border-radius: 2px;
        }

        .spec-label {
            font-weight: 600;
            color: var(--color-primary);
        }

        .spec-value {
            margin: 0;
            color: var(--color-text-mid);
            text-align: right;
        }

        .care-instructions p + p { margin-top: var(--spacing-sm); }
        .care-instructions-link { margin-top: var(--spacing-sm); }

        .care-instructions {
            background: var(--color-bg-warm);
            padding: var(--spacing-lg);
            border-radius: 2px;
        }

        .care-instructions h3 {
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect);
            font-size: 28px;
            font-weight: 500;
            margin-bottom: var(--spacing-md);
            color: var(--color-primary);
        }

        .care-list {
            list-style: none;
            display: grid;
            gap: var(--spacing-sm);
        }

        .care-list li {
            display: flex;
            gap: var(--spacing-sm);
            font-size: 16px;
            line-height: 1.6;
        }

        .care-list li::before {
            content: '•';
            color: var(--color-secondary);
            font-weight: bold;
        }

        /* Wishlist heart on PDP.
         *
         * TI WooCommerce Wishlist renders a deeply-nested DOM:
         *
         *   .pdp-wishlist-wrap            (our wrapper)
         *     .tinv-wraper.tinv-wishlist  (plugin-injected — has its own
         *       .tinv-wishlist-clear      bg, padding, and a clearfix
         *       a.tinvwl_add_to_wishlist_button  div above the button)
         *
         * Earlier we only styled the inner <a>, so the plugin's outer
         * wrapper showed through as an off-brand white-to-grey gradient
         * square next to the gallery image. Reset every layer of the
         * plugin chrome and let the <a> be the only visible surface,
         * sized as a circular brand button on top of the gallery.
         */
        .pdp-wishlist-wrap {
            position: absolute;
            /* Top-LEFT of the hero shot. The "View larger" tag
             * (.shot-zoom-tag) lives at top-right with the same
             * spacing-md offset; placing the heart on the right
             * stacked it directly on top of that tag. Move to the
             * left so each affordance has its own corner. */
            top: var(--spacing-md);
            left: var(--spacing-md);
            z-index: 3;
            line-height: 0;
        }

        /* Strip the plugin's outer chrome — its background, padding,
         * border, and the clearfix div WP-CLI seeds it with. */
        .pdp-wishlist-wrap .tinv-wraper,
        .pdp-wishlist-wrap .tinv-wraper.tinv-wishlist {
            background: transparent !important;
            padding: 0 !important;
            margin: 0 !important;
            border: 0 !important;
            box-shadow: none !important;
            display: block;
        }
        .pdp-wishlist-wrap .tinv-wishlist-clear {
            display: none !important;
        }

        /* The button itself — circular, soft-white surface so the bronze
         * heart pops against any gallery image behind it. TI Wishlist's
         * own stylesheets are not on this page (inc/plugin-assets.php):
         * what they did for the button is here (its tooltip, below). */
        .pdp-wishlist-wrap .tinvwl_add_to_wishlist_button {
            width: 44px;
            height: 44px;
            border-radius: 50% !important;
            background: rgba(255, 255, 255, 0.92) !important;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            box-shadow: 0 2px 10px rgba(43, 37, 32, 0.18);
            border: none !important;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-primary) !important;
            transition: background 0.2s, transform 0.2s, color 0.2s;
            padding: 0 !important;
            text-decoration: none;
        }
        .pdp-wishlist-wrap .tinvwl_add_to_wishlist_button:hover {
            background: #fff !important;
            color: var(--color-secondary) !important;
            transform: scale(1.06);
        }
        .pdp-wishlist-wrap .tinvwl-tooltip {
            display: none;
        }

        /* The heart: the theme's drawing, its outline and filled forms as
         * masks written here once (data URIs: no file to fetch, and no
         * inline style a Content-Security-Policy would refuse), painted
         * in the theme's bronze. The outline until saved, filled once
         * saved: the plugin's saved class, which product-detail.js sets
         * together with aria-pressed, so what is drawn and what a screen
         * reader hears are one state. Until 17 Oct it was TI Wishlist's
         * icon-font glyph, 13 px and off the button's centre by 2 px. */
        .pdp-wishlist-wrap {
            --heart-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
            --heart-filled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
        }
        .pdp-wishlist-wrap .tinvwl_add_to_wishlist_button::before {
            content: '';
            display: block;
            width: 22px;
            height: 22px;
            background-color: currentColor;
            -webkit-mask: var(--heart-outline) center / contain no-repeat;
            mask: var(--heart-outline) center / contain no-repeat;
        }
        .pdp-wishlist-wrap .tinvwl_add_to_wishlist_button.tinvwl-product-in-list {
            color: var(--color-secondary) !important;
        }
        .pdp-wishlist-wrap .tinvwl_add_to_wishlist_button.tinvwl-product-in-list::before {
            -webkit-mask-image: var(--heart-filled);
            mask-image: var(--heart-filled);
        }
        /* Forced colours (Windows' contrast themes) take away backgrounds,
         * the mask's paint among them: the heart keeps its drawing in the
         * button's text colour, and the circle gets an edge. */
        @media (forced-colors: active) {
            .pdp-wishlist-wrap .tinvwl_add_to_wishlist_button {
                border: 1px solid ButtonText !important;
            }
            .pdp-wishlist-wrap .tinvwl_add_to_wishlist_button::before {
                forced-color-adjust: none;
                background-color: ButtonText;
            }
        }

        /* The words TI Wishlist prints in the button (add, and remove once
         * saved): the heart says it, and aria-label names it (SF94). The
         * plugin shows its remove words with !important on a saved heart,
         * so these match that state too. */
        .pdp-wishlist-wrap .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text,
        .pdp-wishlist-wrap .tinvwl_add_to_wishlist_button .tinvwl_remove_from_wishlist-text,
        .pdp-wishlist-wrap .tinvwl_add_to_wishlist_button.tinvwl-product-in-list.tinvwl-product-make-remove .tinvwl_remove_from_wishlist-text {
            display: none !important;
        }

        /* Notify Me modal */
        .notify-modal, .review-modal {
            position: fixed; inset: 0; background: rgba(43, 37, 32, 0.5);
            backdrop-filter: blur(8px); z-index: 2400;
            display: flex; align-items: center; justify-content: center;
            padding: var(--spacing-md); opacity: 0; pointer-events: none;
            transition: opacity 0.3s; overflow-y: auto;
        }
        .notify-modal.open, .review-modal.open { opacity: 1; pointer-events: all; }
        .notify-card, .review-modal-card {
            width: 100%; max-width: 480px;
            background: var(--color-bg-light); border: 1px solid var(--color-border);
            padding: var(--spacing-lg); position: relative;
            transform: translateY(-20px); transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
            max-height: calc(100vh - 48px); overflow-y: auto;
        }
        .notify-modal.open .notify-card,
        .review-modal.open .review-modal-card { transform: translateY(0); }
        .review-modal-card { max-width: 580px; }
        .modal-close {
            position: absolute; top: 12px; right: 12px;
            background: transparent; border: 1px solid var(--color-border);
            padding: 6px 10px; font-family: var(--font-body); font-size-adjust: var(--font-body-aspect); font-size: 11px;
            font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
            color: var(--color-text-mid); cursor: pointer;
        }
        .modal-close:hover { color: var(--color-primary); }
        .notify-card .eyebrow, .review-modal-card .eyebrow { font-size: 12px; letter-spacing: 0.16em; margin-bottom: var(--spacing-xs); }
        .notify-card h3, .review-modal-card h3 {
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect); font-size: 32px; font-weight: 500;
            color: var(--color-primary); line-height: 1.15;
            letter-spacing: -0.005em; margin-bottom: var(--spacing-sm);
        }
        .notify-card p, .review-modal-note { font-size: 14px; color: var(--color-text-mid); line-height: 1.7; margin-bottom: var(--spacing-md); }
        .review-modal-note[hidden], .review-modal-card form[hidden] { display: none; }
        .notify-card form, .review-modal-card form { display: grid; gap: var(--spacing-md); }
        .notify-card input, .review-modal-field input:not([type="radio"]), .review-modal-field textarea, .review-modal-field select {
            width: 100%; padding: 13px 14px; background: white;
            border: 1px solid var(--color-border);
            font-family: var(--font-body); font-size-adjust: var(--font-body-aspect); font-size: 15px;
            color: var(--color-text-dark); outline: none;
        }
        .review-modal-field textarea { min-height: 120px; resize: vertical; font-family: var(--font-body); font-size-adjust: var(--font-body-aspect); }
        .notify-card input:focus, .review-modal-field input:not([type="radio"]):focus,
        .review-modal-field textarea:focus, .review-modal-field select:focus { border-color: var(--color-secondary); }
        .notify-card button[type="submit"] {
            padding: 14px; background: var(--color-primary); color: white; border: none;
            font-family: var(--font-body); font-size-adjust: var(--font-body-aspect); font-size: 13px; font-weight: 600;
            letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
        }
        .notify-card button[type="submit"]:hover { background: var(--color-secondary); }

        .review-modal-field label,
        .review-modal-label {
            display: block; font-size: 12px; font-weight: 600;
            letter-spacing: 0.06em; text-transform: uppercase;
            color: var(--color-primary); margin-bottom: 6px;
        }
        .review-modal-actions { display: flex; gap: var(--spacing-sm); }
        .review-modal-actions button {
            flex: 1; padding: 14px;
            font-family: var(--font-body); font-size-adjust: var(--font-body-aspect); font-size: 13px; font-weight: 600;
            letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
            transition: all 0.2s;
        }
        .review-modal-cancel { background: transparent; color: var(--color-text-mid); border: 1px solid var(--color-border); }
        .review-modal-cancel:hover { color: var(--color-primary); border-color: var(--color-primary); }
        .review-modal-submit { background: var(--color-primary); color: white; border: none; }
        .review-modal-submit:hover { background: var(--color-secondary); }

        /* Recently viewed strip */
        .recent-section { max-width: 1400px; margin: 0 auto; padding: var(--spacing-xl) var(--spacing-lg); border-top: 1px solid var(--color-border); }
        .recent-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--spacing-lg); }
        .recent-header h2 { font-family: var(--font-display); font-size-adjust: var(--font-display-aspect); font-size: 36px; font-weight: 500; color: var(--color-primary); letter-spacing: -0.005em; }
        .recent-header button { background: transparent; border: none; font-family: var(--font-body); font-size-adjust: var(--font-body-aspect); font-size: 13px; color: var(--color-text-mid); cursor: pointer; font-weight: 600; letter-spacing: 0.04em; }
        .recent-header button:hover { color: var(--color-primary); }
        .recent-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--spacing-md); }
        .recent-card { background: white; border: 1px solid var(--color-border); cursor: pointer; transition: all 0.2s; text-decoration: none; color: inherit; }
        .recent-card:hover { border-color: var(--color-secondary); }
        .recent-image { aspect-ratio: 1; }
        .recent-image.t1 { background: linear-gradient(135deg, #D4BFA5 0%, #A67C52 100%); }
        .recent-image.t2 { background: linear-gradient(135deg, #6B5D52 0%, #2F2F2F 100%); }
        .recent-image.t3 { background: linear-gradient(135deg, #C5A47E 0%, #8B7355 100%); }
        .recent-image.t4 { background: linear-gradient(135deg, #8B6F47 0%, #4D3B28 100%); }
        .recent-image.t5 { background: linear-gradient(135deg, #C29B6E 0%, #8B5A3C 100%); }
        .recent-info { padding: 12px 14px; }
        .recent-name { font-family: var(--font-display); font-size-adjust: var(--font-display-aspect); font-size: 18px; font-weight: 500; color: var(--color-primary); line-height: 1.1; margin-bottom: 2px; }
        .recent-price { font-size: 13px; font-weight: 600; color: var(--color-primary); }
        @media (max-width: 1000px) {
.recent-grid { grid-template-columns: repeat(3, 1fr); }
}
        @media (max-width: 600px) {
.recent-grid { grid-template-columns: repeat(2, 1fr); }
}

        /* Mobile: trim section padding 48->24, scroll the tab strip
         * instead of wrapping mid-row, collapse specs to 1 column. */
        @media (max-width: 700px) {
            .product-details-section { padding: var(--spacing-lg) var(--spacing-md); }
            .tabs {
                gap: var(--spacing-md);
                overflow-x: auto;
                flex-wrap: nowrap;
                scrollbar-width: none;
            }
            .tabs::-webkit-scrollbar { display: none; }
            .tab { white-space: nowrap; flex: 0 0 auto; }
            .specs-grid { grid-template-columns: 1fr; }
        }

/* pages/product-detail-rating.css */
/* Product page: the review form's rating picker (template-parts/product/modals.php).
 * After product-detail-options.css, whose field rules it overrides. */

/* The review's rating: five radios, one choice, each behind its star
 * (audit SF89). Its own class: until 17 Oct it reused WooCommerce's
 * .star-rating, whose rules floated it to the field's edge and
 * clipped it to 1em. The stars up to the checked one fill from the
 * radios' own state, so there is no class to keep in step (the old
 * script set .active where the CSS lit .lit, and no star filled).
 * Filled and empty differ by glyph as well as colour; each colour is
 * 3.3:1 or more on the modal's white card. */
.rating-picker { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.rating-picker-stars { display: flex; gap: 4px; }
.rating-picker .rating-picker-star {
    position: relative; display: inline-flex; margin: 0; cursor: pointer;
    font-size: 28px; font-weight: 400; line-height: 1;
    letter-spacing: normal; text-transform: none;
}
.rating-picker-glyph { color: var(--color-star-empty); transition: color 0.15s, transform 0.15s; }
.rating-picker-glyph::before { content: '\2606'; }
.rating-picker-star:has(input:checked) .rating-picker-glyph,
.rating-picker-star:has(~ .rating-picker-star input:checked) .rating-picker-glyph { color: var(--color-rating-star); }
.rating-picker-star:has(input:checked) .rating-picker-glyph::before,
.rating-picker-star:has(~ .rating-picker-star input:checked) .rating-picker-glyph::before { content: '\2605'; }
.rating-picker-star:has(input:focus-visible) .rating-picker-glyph {
    outline: 2px solid var(--color-secondary); outline-offset: 2px; border-radius: 2px;
}
/* Where a pointer hovers: the stars up to the hovered one preview the
 * choice; leaving restores the checked one. */
@media (hover: hover) {
    .rating-picker-stars:has(.rating-picker-star:hover) .rating-picker-glyph { color: var(--color-star-empty); }
    .rating-picker-stars:has(.rating-picker-star:hover) .rating-picker-glyph::before { content: '\2606'; }
    .rating-picker-stars .rating-picker-star:hover .rating-picker-glyph,
    .rating-picker-stars .rating-picker-star:has(~ .rating-picker-star:hover) .rating-picker-glyph { color: var(--color-rating-star); }
    .rating-picker-stars .rating-picker-star:hover .rating-picker-glyph::before,
    .rating-picker-stars .rating-picker-star:has(~ .rating-picker-star:hover) .rating-picker-glyph::before { content: '\2605'; }
    .rating-picker-star:hover .rating-picker-glyph { transform: scale(1.1); }
}

/* pages/product-detail-cards.css */
/*
 * Split from pages/product-detail.css when the original
 * exceeded 450 lines. Loaded alongside product-detail.css
 * via inc/enqueue.php on /product/<slug>/ pages.
 *
 * This file: cards.
 */

        /* Stock + delivery promise (above CTA) */
        .stock-row {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: var(--color-text-mid);
            padding-top: var(--spacing-xs);
        }

        .stock-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--color-stock-in);
            box-shadow: 0 0 12px rgba(111, 207, 139, 0.55);
            animation: stockPulse 2.4s ease-in-out infinite;
        }

        @keyframes stockPulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.2); opacity: 0.8; }
        }

        .stock-row strong {
            color: var(--color-primary);
            font-weight: 600;
        }

        .stock-row.low .stock-dot { background: var(--color-stock-low); box-shadow: 0 0 12px rgba(217, 161, 75, 0.55); }
        .stock-row.low strong { color: var(--color-stock-low-text); }

        /* Sold out: a still, neutral dot. It was the in-stock green, pulsing. */
        .stock-row.out .stock-dot { background: var(--color-text-mid); box-shadow: none; animation: none; }

        .delivery-promise {
            display: flex;
            gap: var(--spacing-sm);
            align-items: flex-start;
            padding: var(--spacing-sm) var(--spacing-md);
            background: var(--color-bg-warm);
            border-left: 3px solid var(--color-secondary);
            margin: var(--spacing-xs) 0;
        }

        .delivery-promise-icon {
            flex-shrink: 0;
            display: inline-flex;
            color: var(--color-secondary); /* levoro_icon() strokes inherit */
        }

        .delivery-promise-text {
            font-size: 13px;
            color: var(--color-text-mid);
            line-height: 1.5;
        }

        .delivery-promise-text strong {
            color: var(--color-primary);
            font-weight: 600;
        }

        .delivery-countdown {
            color: var(--color-accent-text);
            font-weight: 600;
            font-variant-numeric: tabular-nums;
        }

        /* (The design's fake Apple Pay / Shop Pay buttons and their
         * divider are gone — the real Stripe express element renders
         * after the add-to-cart form instead.) */

        /* Quick facts row */
        .quick-facts {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: var(--spacing-xs);
            margin-top: var(--spacing-xs);
            list-style: none;
            border-top: 1px solid var(--color-border);
            padding-top: var(--spacing-md);
        }

        .quick-fact {
            display: flex;
            flex-direction: column;
            gap: 2px;
            font-size: 12px;
        }

        .quick-fact-icon {
            margin-bottom: 4px;
            display: inline-flex;
            color: var(--color-secondary); /* levoro_icon() strokes inherit */
        }

        /* Real wallet buttons (Stripe express element, mounted via
         * woocommerce_after_add_to_cart_form) sit right under the
         * add-to-cart button. */
        .product-info #wc-stripe-express-checkout-element {
            margin: var(--spacing-sm) 0 0 !important;
        }

        .quick-fact-label {
            font-weight: 600;
            color: var(--color-primary);
            font-size: 12px;
            letter-spacing: 0.04em;
        }

        .quick-fact-detail {
            color: var(--color-text-mid);
            font-size: 11px;
            line-height: 1.4;
        }

        /* Editorial info cards (below sticky) */
        .info-narrative {
            margin-top: var(--spacing-md);
            padding-top: var(--spacing-md);
            border-top: 1px solid var(--color-border);
        }

        .info-narrative p {
            font-size: 16px;
            line-height: 1.85;
            color: var(--color-text-mid);
            margin-bottom: var(--spacing-sm);
        }

        .info-narrative p:last-child { margin-bottom: 0; }

        .info-card {
            background: white;
            border: 1px solid var(--color-border);
            padding: var(--spacing-lg);
            display: flex;
            flex-direction: column;
            gap: var(--spacing-sm);
        }

        .info-card-eyebrow {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--color-eyebrow);
        }

        .info-card-title {
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect);
            font-size: 28px;
            font-weight: 500;
            color: var(--color-primary);
            line-height: 1.15;
            letter-spacing: -0.005em;
        }

        .info-card p {
            font-size: 15px;
            line-height: 1.75;
            color: var(--color-text-mid);
        }

        /* Origin card with detail rows */
        .origin-detail {
            display: grid;
            grid-template-columns: 100px 1fr;
            gap: var(--spacing-sm);
            font-size: 13px;
            padding: var(--spacing-xs) 0;
            border-top: 1px solid var(--color-border);
        }

        .origin-detail:first-of-type { margin-top: var(--spacing-xs); }

        .origin-detail dt {
            font-weight: 600;
            color: var(--color-primary);
            letter-spacing: 0.04em;
            text-transform: uppercase;
            font-size: 11px;
            padding-top: 2px;
        }

        .origin-detail dd { color: var(--color-text-dark); line-height: 1.5; }
        .origin-detail dd em { color: var(--color-text-mid); font-style: normal; }

        /* Maker block */
        .maker {
            display: flex;
            gap: var(--spacing-sm);
            align-items: center;
            padding-top: var(--spacing-xs);
        }

        .maker-portrait {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: linear-gradient(135deg, #A67C52 0%, #6E5638 100%);
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
        }

        .maker-portrait::before {
            content: '';
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(
                45deg,
                rgba(255,255,255,0.05),
                rgba(255,255,255,0.05) 2px,
                transparent 2px,
                transparent 4px
            );
        }

        .maker-meta {
            display: grid;
            gap: 2px;
        }

        .maker-name {
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect);
            font-size: 22px;
            font-weight: 500;
            color: var(--color-primary);
            line-height: 1.1;
        }

        .maker-detail {
            font-size: 13px;
            color: var(--color-text-mid);
            line-height: 1.4;
        }

        .maker-signature {
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect);
            font-size: 18px;
            font-style: italic;
            color: var(--color-accent-text);
            margin-top: 4px;
            letter-spacing: 0.02em;
        }

        /* Patina mini strip inside How It Ages card */
        .patina-mini {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2px;
        }

        .patina-mini-tile {
            aspect-ratio: 1;
            display: flex;
            align-items: end;
            padding: var(--spacing-xs);
            color: rgba(255,255,255,0.95);
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .patina-mini-tile.t0 { background: linear-gradient(135deg, #C29B6E 0%, #A67C52 100%); }
        .patina-mini-tile.t1 { background: linear-gradient(135deg, #A67C52 0%, #8B6F47 100%); }
        .patina-mini-tile.t2 { background: linear-gradient(135deg, #8B6F47 0%, #6E5638 100%); }
        .patina-mini-tile.t3 { background: linear-gradient(135deg, #6E5638 0%, #4D3B28 100%); }

        /* In the box list */
        .in-the-box {
            list-style: none;
            display: grid;
            gap: var(--spacing-xs);
            margin-top: var(--spacing-xs);
        }

        .in-the-box li {
            display: flex;
            gap: var(--spacing-sm);
            align-items: baseline;
            font-size: 14px;
            color: var(--color-text-dark);
            padding: var(--spacing-xs) 0;
            border-bottom: 1px dashed var(--color-border);
        }

        .in-the-box li:last-child { border-bottom: none; }

        .in-the-box li::before {
            content: '—';
            color: var(--color-secondary);
            flex-shrink: 0;
        }

        .in-the-box-name {
            color: var(--color-primary);
            font-weight: 500;
            margin-right: 4px;
        }

        /* Embossing toggle */
        .embossing {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-sm);
        }

        .embossing-row {
            display: flex;
            gap: var(--spacing-sm);
            align-items: center;
        }

        .embossing-input {
            flex: 1;
            padding: 12px 14px;
            background: var(--color-bg-light);
            border: 1px solid var(--color-border);
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect);
            font-size: 18px;
            letter-spacing: 0.06em;
            color: var(--color-primary);
            text-transform: uppercase;
            outline: none;
            transition: border-color 0.2s;
        }

        .embossing-input:focus { border-color: var(--color-secondary); }

        .embossing-price {
            font-size: 13px;
            font-weight: 600;
            color: var(--color-accent-text);
            white-space: nowrap;
        }

        .embossing-fineprint {
            font-size: 12px;
            color: var(--color-text-mid);
        }

        /* Mobile overrides for the info-card cluster.
         *
         * The base .info-card rule above sets 48px padding (--spacing-lg)
         * — at a 360px viewport that ate 96px of the card and left only
         * ~120px of content space, which forced the embossing input
         * (font-size 18px on a flex:1 child) to a min-content past the
         * card's available width and pushed the trailing $15.00 price
         * span 28px past the viewport edge. Drop the padding to 24px
         * and let the input shrink (min-width: 0 on a flex item lets
         * its min-content drop below intrinsic) so the row sits cleanly
         * inside the card. */
        @media (max-width: 900px) {
            .info-card {
                padding: var(--spacing-md);
            }
            .embossing-input {
                min-width: 0;
            }
        }

/* ── Narrow viewports ─────────────────────────────────────────────
 * The origin card's fixed 100px label column left ~110px for the
 * value on a phone, so longer values ran past the card edge. Label
 * over value reads better at this width anyway.
 * ───────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .origin-detail {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    /* Patina swatch captions were 10px — below comfortable reading
     * size for tracked-out uppercase. */
    .patina-mini-tile {
        font-size: 11px;
        letter-spacing: 0.06em;
    }
}

.origin-detail dt,
.origin-detail dd {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* pages/product-detail-bar.css */
/*
 * Split from pages/product-detail.css when the original
 * exceeded 450 lines. Loaded alongside product-detail.css
 * via inc/enqueue.php on /product/<slug>/ pages.
 *
 * This file: bar.
 */

        /* Fixed-bottom cart bar — slides up when in-page Add to Cart leaves view */
        .cart-bar {
            position: fixed;
            bottom: var(--store-notice-height, 0px); /* above the store notice while it shows (store-notice.css) */
            left: 0;
            right: 0;
            z-index: 900;
            background: rgba(255, 255, 255, 0.97);
            backdrop-filter: blur(14px);
            border-top: 1px solid var(--color-border);
            box-shadow: 0 -10px 32px rgba(43, 37, 32, 0.06);
            transform: translateY(110%);
            /* Hidden, it is visibility: hidden once it has slid away, so
             * nothing in it takes focus or is read out (SF53). Not inert:
             * inert is the modal helper's, which sets it on the page
             * behind a dialog (SF-A1). */
            visibility: hidden;
            transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1), visibility 0s linear 0.4s;
            pointer-events: none;
        }

        .cart-bar.visible {
            transform: translateY(0);
            visibility: visible;
            transition-delay: 0s;
            pointer-events: auto;
        }

        .cart-bar-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 14px var(--spacing-lg);
            display: grid;
            grid-template-columns: 56px 1fr auto auto auto;
            gap: var(--spacing-md);
            align-items: center;
        }

        .cart-bar-thumb {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, #D4BFA5 0%, #A67C52 100%);
            position: relative;
            overflow: hidden;
        }

        .cart-bar-thumb:not(:has(img))::before {
            content: '';
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(
                45deg,
                rgba(255,255,255,0.04),
                rgba(255,255,255,0.04) 2px,
                transparent 2px,
                transparent 4px
            );
        }

        .cart-bar-meta {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }

        .cart-bar-name {
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect);
            font-size: 22px;
            font-weight: 500;
            color: var(--color-primary);
            line-height: 1.1;
            letter-spacing: -0.005em;
        }

        .cart-bar-attrs {
            font-size: 12px;
            color: var(--color-text-mid);
            letter-spacing: 0.02em;
        }

        .cart-bar-attrs strong {
            color: var(--color-primary);
            font-weight: 600;
        }

        .cart-bar-price {
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect);
            font-size: 28px;
            font-weight: 500;
            color: var(--color-primary);
            letter-spacing: -0.01em;
            margin-right: var(--spacing-sm);
        }

        .cart-bar-qty {
            display: flex;
            align-items: center;
            border: 1px solid var(--color-border);
            background: var(--color-bg-light);
        }

        .cart-bar-qty button {
            width: 36px;
            height: 36px;
            background: transparent;
            border: none;
            font-family: var(--font-body); font-size-adjust: var(--font-body-aspect);
            font-size: 16px;
            color: var(--color-primary);
            cursor: pointer;
            transition: background 0.15s;
        }

        .cart-bar-qty button:hover { background: var(--color-bg-warm); }

        .cart-bar-qty span {
            min-width: 28px;
            text-align: center;
            font-size: 14px;
            font-weight: 600;
            color: var(--color-primary);
            font-variant-numeric: tabular-nums;
        }

        .cart-bar-action {
            padding: 14px 32px;
            background: var(--color-primary);
            color: white;
            border: none;
            font-family: var(--font-body); font-size-adjust: var(--font-body-aspect);
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            cursor: pointer;
            transition: background 0.3s;
        }

        .cart-bar-action:hover { background: var(--color-secondary); }

        @media (max-width: 700px) {
.cart-bar-container {
                grid-template-columns: 1fr auto;
                padding: 12px var(--spacing-md);
            }
            .cart-bar-thumb,
            .cart-bar-qty,
            .cart-bar-price { display: none; }
            .cart-bar-name { font-size: 18px; }
}

/* pages/product-detail-reviews.css */
/*
 * Split from pages/product-detail.css when the original
 * exceeded 450 lines. Loaded alongside product-detail.css
 * via inc/enqueue.php on /product/<slug>/ pages.
 *
 * This file: reviews.
 */

        /* Reviews section (full-width below tabs) */
        .reviews-section {
            max-width: 1400px;
            margin: 0 auto;
            padding: var(--spacing-xl) var(--spacing-lg);
            border-top: 1px solid var(--color-border);
        }

        .reviews-header {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--spacing-xl);
            align-items: start;
            margin-bottom: var(--spacing-xl);
            padding-bottom: var(--spacing-lg);
            border-bottom: 1px solid var(--color-border);
        }

        .reviews-summary .eyebrow { font-size: 12px; letter-spacing: 0.16em; margin-bottom: var(--spacing-xs); }

        .reviews-summary h2 {
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect);
            font-size: 56px;
            font-weight: 500;
            color: var(--color-primary);
            letter-spacing: -0.01em;
            line-height: 1;
            margin-bottom: var(--spacing-sm);
        }

        .reviews-summary-row {
            display: flex;
            align-items: baseline;
            gap: var(--spacing-md);
            margin-bottom: var(--spacing-sm);
        }

        .rating-big {
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect);
            font-size: 80px;
            font-weight: 500;
            color: var(--color-primary);
            line-height: 1;
            letter-spacing: -0.02em;
        }

        .rating-stars-big {
            display: grid;
            gap: 2px;
        }

        .rating-stars-big .stars { font-size: 22px; color: var(--color-rating-star); letter-spacing: 3px; }

        .rating-stars-big .count {
            font-size: 14px;
            color: var(--color-text-mid);
        }

        .write-review-btn {
            padding: 14px 28px;
            background: transparent;
            color: var(--color-primary);
            border: 1px solid var(--color-primary);
            font-family: var(--font-body); font-size-adjust: var(--font-body-aspect);
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: var(--spacing-sm);
            justify-self: start;
        }

        .write-review-btn:hover {
            background: var(--color-primary);
            color: white;
        }

        .reviews-bars {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-xs);
        }

        .reviews-bar-row {
            display: grid;
            grid-template-columns: 80px 1fr 60px;
            gap: var(--spacing-sm);
            align-items: center;
            font-size: 13px;
        }

        .reviews-bar-label {
            color: var(--color-text-mid);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .reviews-bar-label .stars {
            font-size: 11px;
            letter-spacing: 1px;
            color: var(--color-rating-star);
        }

        .reviews-bar-track {
            height: 6px;
            background: var(--color-bg-warm);
            overflow: hidden;
            border-radius: 3px;
        }

        .reviews-bar-fill {
            height: 100%;
            background: var(--color-secondary);
        }

        .reviews-bar-pct {
            text-align: right;
            color: var(--color-text-mid);
            font-variant-numeric: tabular-nums;
        }

        .reviews-list {
            display: grid;
            gap: var(--spacing-md);
        }

        .review-card {
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: var(--spacing-lg);
            padding: var(--spacing-lg);
            background: white;
            border: 1px solid var(--color-border);
        }

        .review-meta {
            display: flex;
            flex-direction: column;
            gap: 4px;
            font-size: 13px;
        }

        .review-meta .stars { font-size: 14px; letter-spacing: 2px; margin-bottom: 4px; }

        .review-author {
            font-weight: 600;
            color: var(--color-primary);
            font-size: 14px;
        }

        .review-verified {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            color: var(--color-accent-text);
            font-weight: 600;
            letter-spacing: 0.04em;
        }

        .review-date,
        .review-product {
            color: var(--color-text-mid);
            font-size: 12px;
        }

        .review-product { font-style: italic; }

        .review-body h4 {
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect);
            font-size: 22px;
            font-weight: 500;
            color: var(--color-primary);
            margin-bottom: var(--spacing-xs);
        }

        .review-body p {
            font-size: 15px;
            line-height: 1.75;
            color: var(--color-text-dark);
        }

        .review-helpful {
            display: flex;
            gap: var(--spacing-md);
            margin-top: var(--spacing-sm);
            font-size: 12px;
            color: var(--color-text-mid);
        }

        .review-helpful button {
            background: transparent;
            border: 1px solid var(--color-border);
            padding: 6px 12px;
            font-family: var(--font-body); font-size-adjust: var(--font-body-aspect);
            font-size: 12px;
            color: var(--color-text-mid);
            cursor: pointer;
            transition: all 0.2s;
        }

        .review-helpful button:hover {
            border-color: var(--color-primary);
            color: var(--color-primary);
        }

        .reviews-load-more {
            display: block;
            margin: var(--spacing-lg) auto 0;
            padding: 14px 36px;
            background: transparent;
            color: var(--color-primary);
            border: 1px solid var(--color-border);
            font-family: var(--font-body); font-size-adjust: var(--font-body-aspect);
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.2s;
        }

        .reviews-load-more:hover {
            border-color: var(--color-primary);
            background: var(--color-bg-warm);
        }

        @media (max-width: 900px) {
.reviews-header { grid-template-columns: 1fr; }
            .review-card { grid-template-columns: 1fr; gap: var(--spacing-sm); }
            .quick-facts { grid-template-columns: 1fr; }
            .product-info-sticky { position: static; top: auto; }
            /* Mobile-stack the gallery + info column */
            .product-detail { grid-template-columns: 1fr; gap: var(--spacing-lg); padding: var(--spacing-md); }
            .related-header { flex-direction: column; align-items: flex-start; }
            .related-header h2 { font-size: 32px; }
}

/* pages/product-detail-related.css */
/*
 * Split from pages/product-detail.css when the original
 * exceeded 450 lines. Loaded alongside product-detail.css
 * via inc/enqueue.php on /product/<slug>/ pages.
 *
 * This file: related.
 */

        /* Related products */
        .related-section {
            max-width: 1400px;
            margin: 0 auto;
            padding: var(--spacing-xl) var(--spacing-lg);
            border-top: 1px solid var(--color-border);
        }

        .related-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: var(--spacing-lg);
            gap: var(--spacing-md);
        }

        .related-header h2 {
            font-family: var(--font-display); font-size-adjust: var(--font-display-aspect);
            font-size: 44px;
            font-weight: 500;
            color: var(--color-primary);
            letter-spacing: -0.01em;
        }

        .related-header a {
            font-size: 14px;
            font-weight: 600;
            color: var(--color-accent-text);
            letter-spacing: 0.04em;
            text-decoration: none;
        }

        .related-header a:hover { color: var(--color-primary); }

        /* The cards are the shared product card (product-card.css). */

        @media (max-width: 600px) {
            .related-header { flex-direction: column; align-items: flex-start; }
            .related-header h2 { font-size: 32px; }
        }
