/* ============================================================================
   Polish layer — editorial luxury on top of the existing cream + black base.
   Does not touch the palette variables or font families defined in styles.css.
   ============================================================================ */

/* Cross-document View Transitions — fades the whole page between navigations.
   Chrome 126+ / Safari 18+ pick this up natively; older browsers hard-cut (no
   regression). Persistent chrome (header, logo) keeps its own name so it
   morphs rather than fades, preserving spatial continuity. */
@view-transition { navigation: auto; }

:root {
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);

    --dur-fast:   240ms;
    --dur-base:   420ms;
    --dur-slow:   780ms;
    --dur-drawer: 380ms;   /* drawer open/close — Emil range 200–500ms */
    --dur-press:  160ms;   /* button press feedback */

    /* Layered, tinted shadows — ambient + direct for depth, warmer than pure black */
    --shadow-1:
        0 1px 2px rgba(30, 22, 14, 0.04),
        0 2px 4px rgba(30, 22, 14, 0.04);
    --shadow-2:
        0 2px 4px rgba(30, 22, 14, 0.04),
        0 8px 16px rgba(30, 22, 14, 0.06),
        0 16px 32px rgba(30, 22, 14, 0.04);
    --shadow-3:
        0 2px 6px rgba(30, 22, 14, 0.05),
        0 14px 28px rgba(30, 22, 14, 0.08),
        0 36px 72px rgba(30, 22, 14, 0.06);

    /* Fluid heading sizes (headings only — body stays on fixed rem scale) */
    --fs-display: clamp(2.6rem, 1.7rem + 4.2vw, 5.4rem);
    --fs-h1:      clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
    --fs-h2:      clamp(1.9rem, 1.5rem + 1.4vw, 2.75rem);

    --eyebrow-size: 0.72rem;
    --eyebrow-track: 0.28em;
}

/* ================== Respect reduced motion ================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .product-card, .reveal { opacity: 1 !important; transform: none !important; }
}

/* ================== Header: hairline + backdrop blur on scroll ================== */
.header {
    background-color: color-mix(in oklab, var(--secondary-bg) 82%, transparent);
    backdrop-filter: saturate(140%) blur(16px);
    -webkit-backdrop-filter: saturate(140%) blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    padding: 18px 0;
    transition:
        padding var(--dur-base) var(--ease-out-quart),
        background-color var(--dur-base) var(--ease-out-quart),
        box-shadow var(--dur-base) var(--ease-out-quart);
}

.header.scrolled {
    padding: 10px 0;
    background-color: color-mix(in oklab, var(--secondary-bg) 94%, transparent);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.04);
}

.logo h1 {
    /* Sized down so the wordmark matches the calligraphic logo art beside it.
       Was 2rem (32px) — felt overscaled against the 56px logo image. */
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 3px;
    font-feature-settings: "liga" on, "kern" on;
}

.logo .tagline {
    font-size: 0.6rem;
    letter-spacing: var(--eyebrow-track);
    color: var(--text-light);
    margin-top: 2px;
}
@media (max-width: 768px) {
    .logo h1 { font-size: 1.2rem; letter-spacing: 2.5px; }
    .logo .tagline { font-size: 0.55rem; }
}
@media (max-width: 420px) {
    .logo h1 { font-size: 1.05rem; letter-spacing: 2px; }
    .logo .tagline { font-size: 0.5rem; }
}

.nav a {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color var(--dur-fast) var(--ease-out-quart);
}

.nav a::after {
    height: 1px;
    bottom: -6px;
    transition: width var(--dur-base) var(--ease-out-quart);
}

.lang-btn {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background-color var(--dur-fast) var(--ease-out-quart),
                color var(--dur-fast) var(--ease-out-quart);
}

.cart-icon { transition: transform var(--dur-fast) var(--ease-out-quart); }
.cart-icon:hover { transform: scale(1.08); }

/* ================== Hero: editorial display type, soft ambient light ================== */
.hero {
    min-height: 0;
    margin-top: 78px;
    padding: 56px 20px 56px;
    background:
        radial-gradient(ellipse 70% 55% at 50% 18%,
            color-mix(in oklab, var(--secondary-bg) 100%, white 18%) 0%,
            transparent 60%),
        linear-gradient(180deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 8% 92%, rgba(0,0,0,0.035) 0%, transparent 42%),
        radial-gradient(circle at 94% 6%, rgba(0,0,0,0.028) 0%, transparent 42%);
    pointer-events: none;
}

.hero-content { position: relative; max-width: 860px; }

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: var(--fs-display);
    line-height: 0.98;
    letter-spacing: -0.018em;
    margin-bottom: 26px;
    font-feature-settings: "liga" on, "dlig" on, "kern" on;
}

.hero-content p {
    font-size: 0.82rem;
    letter-spacing: var(--eyebrow-track);
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 500;
}

.hero-content > * {
    opacity: 0;
    transform: translateY(22px);
    animation: heroRise 1100ms var(--ease-out-expo) both;
}
.hero-content > *:nth-child(1) { animation-delay: 120ms; }
.hero-content > *:nth-child(2) { animation-delay: 280ms; }

@keyframes heroRise {
    to { opacity: 1; transform: translateY(0); }
}

/* ================== Section headers: eyebrow + italic display ================== */
.products-section { padding: 96px 0; }

.section-header { margin-bottom: 56px; }

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: var(--fs-h2);
    letter-spacing: -0.012em;
    line-height: 1.02;
}

.section-header h2::after {
    height: 1px;
    width: 44px;
    bottom: -14px;
    opacity: 0.85;
}

.section-header p {
    margin-top: 26px;
    font-size: var(--eyebrow-size);
    letter-spacing: var(--eyebrow-track);
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 500;
}

[dir="rtl"] .section-header h2::after { left: auto; right: 50%; transform: translateX(50%); }

/* ================== Product cards: refined, tactile, restrained ================== */
.products-grid { gap: 44px 30px; }

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-1);
    animation: none;                 /* disable the old fadeIn; use IO-driven reveal */
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 720ms var(--ease-out-quart),
        transform 720ms var(--ease-out-quart),
        box-shadow var(--dur-base) var(--ease-out-quart);
    will-change: transform, opacity;
}

.product-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
}

.product-image {
    aspect-ratio: 4 / 5;
    height: auto;
    background-color: var(--primary-bg);
}

.product-image img {
    transition:
        transform 1100ms var(--ease-out-quart),
        filter var(--dur-base) var(--ease-out-quart);
    filter: saturate(0.93);
}

.product-card:hover .product-image img {
    transform: scale(1.055);
    filter: saturate(1.03);
}

.product-info { padding: 22px 22px 24px; }

.product-info h3 {
    font-size: 1.22rem;
    font-weight: 500;
    letter-spacing: -0.003em;
    margin-bottom: 4px;
}

.product-info .description {
    font-size: 0.84rem;
    line-height: 1.55;
    max-width: 40ch;
    margin-bottom: 16px;
}

.product-info .price {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 18px;
    letter-spacing: 0;
}

/* Discount tag — pill, not block */
.discount-tag {
    top: 12px;
    left: 12px;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ================== Buttons: crisp, with subtle lift on hover ================== */
.add-to-cart,
.checkout-btn {
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.74rem;
    padding: 13px 16px;
    transition:
        background-color var(--dur-fast) var(--ease-out-quart),
        transform var(--dur-fast) var(--ease-out-quart),
        box-shadow var(--dur-fast) var(--ease-out-quart);
    position: relative;
    overflow: hidden;
}

.add-to-cart::after,
.checkout-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 55%);
    pointer-events: none;
}

.add-to-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.16);
}

.add-to-cart:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(0,0,0,0.15); }

.checkout-btn {
    padding: 16px 18px;
    font-size: 0.78rem;
}

.checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

.checkout-btn:active { transform: translateY(0); }

.qty-arrow {
    transition: background-color var(--dur-fast) var(--ease-out-quart),
                color var(--dur-fast) var(--ease-out-quart);
}

/* ================== Cart sidebar polish ================== */
.cart-sidebar {
    box-shadow: -2px 0 60px rgba(0,0,0,0.14);
    transition: right var(--dur-slow) var(--ease-out-expo);
}
[dir="rtl"] .cart-sidebar { transition: left var(--dur-slow) var(--ease-out-expo); }

.cart-overlay {
    background-color: rgba(20, 14, 8, 0.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: opacity var(--dur-slow) var(--ease-out-quart),
                visibility var(--dur-slow) var(--ease-out-quart);
}

.cart-header { padding: 28px 26px; border-bottom: 1px solid rgba(0,0,0,0.06); }

.cart-header h3 {
    font-weight: 400;
    font-style: italic;
    font-size: 1.7rem;
    letter-spacing: -0.01em;
}

.cart-item { padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }

.cart-footer { background-color: var(--secondary-bg); padding: 26px; }

.cart-total {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.cart-total span:last-child {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 500;
}

/* ================== Footer: quieter, taller, more editorial ================== */
.footer { padding: 80px 0 28px; }

.footer-content { gap: 48px; margin-bottom: 48px; }

.footer-brand h3 {
    font-weight: 400;
    font-style: italic;
    font-size: 2.1rem;
    letter-spacing: 0;
    margin-bottom: 6px;
}

/* Footer carries a dark background, so the dark-calligraphy logo wouldn't
   be visible. brightness(0)+invert(1) collapses the whole PNG to solid
   white — same single asset, no separate dark/light file to maintain. */
.footer-logo-mark {
    display: block;
    height: 84px;
    width: auto;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}
@media (max-width: 768px) {
    .footer-logo-mark { height: 64px; margin-bottom: 10px; }
}

.footer-brand p {
    color: rgba(255,255,255,0.55);
    font-size: 0.7rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.7rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-bottom: 22px;
}

.footer-links a {
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.72);
    margin-bottom: 12px;
    transition: color var(--dur-fast) var(--ease-out-quart),
                padding-left var(--dur-fast) var(--ease-out-quart);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.48);
}

/* ================== Product detail gallery ================== */
.product-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.product-detail-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}
.product-detail-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.product-detail-thumbs::-webkit-scrollbar { height: 4px; }
.product-detail-thumbs::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 2px; }
.pd-thumb {
    position: relative;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    background: var(--primary-bg);
    border: 2px solid transparent;
    cursor: pointer;
    scroll-snap-align: start;
    transition:
        border-color var(--dur-fast) var(--ease-out-quart),
        transform var(--dur-press) var(--ease-out-quart),
        opacity var(--dur-fast) var(--ease-out-quart);
    opacity: 0.72;
}
.pd-thumb img,
.pd-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pd-thumb:hover  { opacity: 1; }
.pd-thumb:active { transform: scale(0.94); }
.pd-thumb.active {
    opacity: 1;
    border-color: var(--text-dark);
}
.pd-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.26);
    pointer-events: none;
}

/* ================== Product detail page refinement ================== */
.product-detail {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    padding: 40px;
}

.product-detail-grid { gap: 56px; }

.product-detail-image {
    aspect-ratio: 4/5;
    border-radius: 10px;
    background-color: var(--primary-bg);
}

.product-detail-info h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: var(--fs-h1);
    line-height: 1;
    letter-spacing: -0.012em;
    margin-bottom: 18px;
}

.product-detail-info .description {
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 58ch;
    margin-bottom: 26px;
}

.product-detail-info .price {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    font-weight: 500;
    margin-bottom: 28px;
    letter-spacing: 0;
}

.breadcrumbs {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.tier-pricing {
    background: var(--primary-bg);
    border-radius: 10px;
    padding: 22px;
}

.tier-pricing h4 {
    font-weight: 400;
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: -0.005em;
}

.tier-btn {
    transition: border-color var(--dur-fast) var(--ease-out-quart),
                transform var(--dur-fast) var(--ease-out-quart),
                box-shadow var(--dur-fast) var(--ease-out-quart),
                background-color var(--dur-fast) var(--ease-out-quart);
}

.tier-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }

/* ================== Toast refinement ================== */
.toast {
    bottom: 36px;
    padding: 14px 26px;
    border-radius: 6px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--shadow-3);
    transition:
        opacity var(--dur-base) var(--ease-out-quart),
        transform var(--dur-base) var(--ease-out-quart);
}

/* ================== Generic scroll-reveal helper ================== */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 820ms var(--ease-out-quart),
        transform 820ms var(--ease-out-quart);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================================
   Hamburger button + side drawer (holds secondary nav: About, Contact, …)
   ============================================================================ */

.menu-btn {
    background: transparent;
    border: none;
    padding: 6px 8px;
    margin-left: 4px;
    cursor: pointer;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--dur-press) var(--ease-out-quart),
                color var(--dur-fast) var(--ease-out-quart);
}
[dir="rtl"] .menu-btn { margin-left: 0; margin-right: 4px; }
.menu-btn:hover  { color: var(--text-light); }
.menu-btn:active { transform: scale(0.94); }
.menu-btn svg    { width: 24px; height: 24px; display: block; }

.side-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(20, 14, 8, 0.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 300ms var(--ease-out-quart),
        visibility 300ms var(--ease-out-quart);
    z-index: 1999;
}
.side-menu-overlay.is-open { opacity: 1; visibility: visible; }

.side-menu {
    position: fixed;
    top: 0;
    right: -360px;
    width: 320px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--white, #fff);
    box-shadow: -2px 0 60px rgba(0, 0, 0, 0.14);
    padding: 20px 24px 28px;
    transition: right var(--dur-drawer) var(--ease-out-expo);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}
.side-menu.is-open { right: 0; }

[dir="rtl"] .side-menu {
    right: auto;
    left: -360px;
    box-shadow: 2px 0 60px rgba(0, 0, 0, 0.14);
    transition: left var(--dur-drawer) var(--ease-out-expo);
}
[dir="rtl"] .side-menu.is-open { left: 0; }

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.side-menu-eyebrow {
    font-size: var(--eyebrow-size, 0.72rem);
    letter-spacing: var(--eyebrow-track, 0.28em);
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 500;
}
.close-menu {
    background: transparent;
    border: none;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-dark);
    padding: 4px 8px;
    transition: transform var(--dur-press) var(--ease-out-quart);
}
.close-menu:active { transform: scale(0.9); }

.side-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.side-menu-nav a {
    display: block;
    padding: 14px 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.02em;
    border-radius: 8px;
    transition:
        background-color var(--dur-fast) var(--ease-out-quart),
        color var(--dur-fast) var(--ease-out-quart),
        transform var(--dur-press) var(--ease-out-quart);
}
.side-menu-nav a:hover  { background-color: var(--primary-bg, #efe9e3); }
.side-menu-nav a:active { transform: scale(0.98); }
.side-menu-nav a.active {
    font-weight: 600;
    background-color: var(--primary-bg, #efe9e3);
}

/* Lock background scroll while the drawer is open. */
body.side-menu-open { overflow: hidden; }

/* ============================================================================
   View Transitions: cross-document page fades
   ============================================================================ */

/* Root transition: outgoing fades down slightly, incoming fades up from below.
   Kept to 320ms total with ease-out so page nav feels instant, not theatrical. */
@keyframes nwar-vt-fade-out {
    to   { opacity: 0; transform: translateY(4px); }
}
@keyframes nwar-vt-fade-in {
    from { opacity: 0; transform: translateY(10px); }
}

::view-transition-old(root) {
    animation: nwar-vt-fade-out 180ms var(--ease-out-quart) both;
}
::view-transition-new(root) {
    animation: nwar-vt-fade-in 320ms var(--ease-out-quart) both;
}

/* Persistent chrome — stays put while page body morphs. */
.header { view-transition-name: site-header; }
.logo   { view-transition-name: site-logo; }

/* Shared-element morph: grid card image ↔ detail page hero image.
   The names (nwar-p-<id>) are applied inline at render time in script.js /
   product.html. `view-transition-class` lets us style all of them together
   without knowing the ids up front. */
.product-image,
.product-detail-image {
    view-transition-class: nwar-product;
}
::view-transition-group(.nwar-product) {
    animation-duration: 360ms;
    animation-timing-function: var(--ease-out-quart);
}
::view-transition-old(.nwar-product),
::view-transition-new(.nwar-product) {
    animation-duration: 360ms;
    animation-timing-function: var(--ease-out-quart);
}

/* Skeleton shown briefly while get_products.php responds. Inherits the bg +
   aspect-ratio from .product-detail-image above, so it looks like a loading
   frame rather than a broken image. */
.product-detail-image-skeleton {
    position: relative;
    overflow: hidden;
}
.product-detail-image-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%
    );
    animation: nwar-skel-shimmer 1400ms linear infinite;
}
@keyframes nwar-skel-shimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
    .product-detail-image-skeleton::after { animation: none; opacity: 0; }
}

::view-transition-old(site-header),
::view-transition-new(site-header),
::view-transition-old(site-logo),
::view-transition-new(site-logo) {
    animation-duration: 320ms;
    animation-timing-function: var(--ease-out-quart);
}

@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
}

/* ============================================================================
   Emil polish: press feedback, tightened durations
   ============================================================================ */

/* Press feedback — buttons must feel like they heard the tap. 160ms ease-out,
   scale(0.97) per the spec. Hover lift stays; press overrides on touch. */
.add-to-cart,
.checkout-btn,
.tier-btn,
.place-order-btn,
.qty-arrow,
.lang-btn,
.home-btn,
.add-to-cart-detail,
button.checkout-btn {
    transition:
        transform var(--dur-press) var(--ease-out-quart),
        background-color var(--dur-fast) var(--ease-out-quart),
        box-shadow var(--dur-fast) var(--ease-out-quart),
        color var(--dur-fast) var(--ease-out-quart),
        border-color var(--dur-fast) var(--ease-out-quart);
}

.add-to-cart:active,
.checkout-btn:active,
.tier-btn:active,
.place-order-btn:active,
.home-btn:active,
.add-to-cart-detail:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.qty-arrow:active,
.lang-btn:active { transform: scale(0.94); }

/* Gate hover-lift behind real hover (no false positives on touch-tap). */
@media (hover: hover) and (pointer: fine) {
    .add-to-cart:hover    { transform: translateY(-1px); }
    .checkout-btn:hover   { transform: translateY(-1px); }
    .tier-btn:hover       { transform: translateY(-1px); }
    .product-card:hover   { transform: translateY(-4px); }
    .cart-icon:hover      { transform: scale(1.08); }
}
@media (hover: none) {
    .product-card:hover   { transform: none; box-shadow: var(--shadow-1); }
    .product-card:hover .product-image img { transform: none; filter: saturate(0.93); }
}

/* Cart drawer — 780ms was too operatic; 380ms is Emil's sweet spot. */
.cart-sidebar {
    transition: right var(--dur-drawer) var(--ease-out-expo);
}
[dir="rtl"] .cart-sidebar {
    transition: left var(--dur-drawer) var(--ease-out-expo);
}
.cart-overlay {
    transition:
        opacity 300ms var(--ease-out-quart),
        visibility 300ms var(--ease-out-quart);
}

/* Nav underline — hover effect, belongs in the fast bucket. */
.nav a::after {
    transition: width var(--dur-fast) var(--ease-out-quart);
}

/* Toast — UI feedback, not a marketing moment. */
.toast {
    transition:
        opacity 260ms var(--ease-out-quart),
        transform 260ms var(--ease-out-quart);
}

/* ============================================================================
   Editorial pages (About, future content pages)
   ============================================================================ */

.editorial-page {
    margin-top: 78px;  /* clear the fixed header */
    padding-bottom: 96px;
}

.editorial-hero {
    padding: 110px 20px 64px;
    background:
        radial-gradient(ellipse 70% 55% at 50% 28%,
            color-mix(in oklab, var(--secondary-bg) 100%, white 18%) 0%,
            transparent 60%),
        linear-gradient(180deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    text-align: center;
}

.editorial-hero .eyebrow {
    font-size: var(--eyebrow-size);
    letter-spacing: var(--eyebrow-track);
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(12px);
    animation: heroRise 900ms var(--ease-out-expo) 120ms both;
}

.editorial-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: var(--fs-display);
    line-height: 0.98;
    letter-spacing: -0.018em;
    font-feature-settings: "liga" on, "dlig" on, "kern" on;
    view-transition-name: editorial-title;
    opacity: 0;
    transform: translateY(22px);
    animation: heroRise 1100ms var(--ease-out-expo) 260ms both;
}

[dir="rtl"] .editorial-title {
    font-family: 'Amiri', 'Cairo', 'Playfair Display', serif;
    font-style: normal;
    letter-spacing: 0;
}

/* Named VT on the hero title → morphs smoothly on EN↔AR language toggle. */
::view-transition-group(editorial-title) {
    animation-duration: 360ms;
    animation-timing-function: var(--ease-out-quart);
}

.editorial-body {
    padding: 72px 20px 0;
}

.container.narrow {
    max-width: 680px;   /* optimal long-form reading measure */
    margin: 0 auto;
}

.prose {
    color: var(--text-dark);
    font-size: 1.08rem;
    line-height: 1.78;
    letter-spacing: 0.005em;
}

.prose p {
    margin-bottom: 1.35em;
}

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

.prose h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: var(--fs-h2);
    line-height: 1.1;
    letter-spacing: -0.012em;
    margin: 2.4em 0 0.6em;
}

.prose h3 {
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    margin: 2em 0 0.5em;
}

.prose a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--dur-fast) var(--ease-out-quart),
                text-decoration-color var(--dur-fast) var(--ease-out-quart);
}
.prose a:hover { color: var(--text-light); }

.prose strong { font-weight: 600; }
.prose em     { font-style: italic; }

.prose ul, .prose ol {
    margin: 0 0 1.35em 1.4em;
}

[dir="rtl"] .prose ul,
[dir="rtl"] .prose ol {
    margin: 0 1.4em 1.35em 0;
}

.prose li { margin-bottom: 0.5em; }

.prose img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1.6em 0;
}

/* Arabic prose — bigger line height for diacritics + Arabic typeface stack */
[dir="rtl"] .prose {
    font-family: 'Cairo', 'Amiri', 'Poppins', sans-serif;
    font-size: 1.12rem;
    line-height: 1.9;
}

/* ================== Responsive refinements ================== */
@media (max-width: 768px) {
    /* Unstick the header on mobile — it takes too much screen real estate
       when the viewport is short, and the scroll-hiding behavior was never
       wired anyway. Also zero out the 78px margin compensation that was
       pushing every page's content down to clear a (now-unfixed) header. */
    .header {
        position: static;
        width: auto;
    }
    .header.scrolled {
        padding: 18px 0;    /* disable the compacted-on-scroll state */
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    }
    .hero           { margin-top: 0; }
    .editorial-page { margin-top: 0; }

    .editorial-hero { padding: 80px 20px 48px; }
    .editorial-body { padding: 56px 20px 0; }
    .prose          { font-size: 1.02rem; line-height: 1.72; }

    /* Product grid: 2-up on mobile on every storefront page (Home, Bukhoor,
       Home Fragrance, Gifts). Overrides the 1fr fallback in styles.css:654. */
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
    }
    /* Tighten card chrome so two cards breathe at narrow widths. */
    .product-info          { padding: 14px 14px 16px; }
    .product-info h3       { font-size: 1rem; margin-bottom: 3px; }
    .product-info .description {
        font-size: 0.78rem;
        line-height: 1.45;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-info .price   { font-size: 1rem; margin-bottom: 12px; }
    .add-to-cart           { padding: 11px 10px; font-size: 0.68rem; letter-spacing: 0.08em; }
    .discount-tag          { padding: 3px 8px; font-size: 0.58rem; letter-spacing: 0.1em; }
}

@media (max-width: 360px) {
    /* Phones like iPhone SE (320px wide): pull gaps in further; the cards are
       tiny but still readable at 2-up. */
    .products-grid { gap: 18px 8px; }
    .product-info  { padding: 12px 10px 14px; }
}
@media (max-width: 768px) {
    .hero { min-height: 0; padding: 40px 20px 44px; }
    .products-section { padding: 64px 0; }
    .section-header { margin-bottom: 40px; }
    .section-header p { margin-top: 20px; }
    .products-grid { gap: 32px 24px; }
    .product-detail { padding: 24px; }
    .product-detail-grid { gap: 32px; }
}

/* ===== Hero Slideshow =====
   A full-width carousel under the hero. Each slide is a 100%-wide flex item;
   the track translates by -slideIndex*100%. Autoplay every 6s, paused on hover
   or while a swipe is in progress. Swipe gestures use pointer events for
   parity across mouse/touch/pen. Arrows fade in on hover (desktop) and stay
   visible on mobile so swipe isn't the only way to advance.
*/
.hero-slideshow {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    overflow: hidden;
    --slide-index: 0;
    --slide-axis: -1; /* LTR slides move left; RTL flips this in [dir="rtl"] below */
}
.hero-slideshow[hidden] { display: none; }
.hero-slideshow-track {
    display: flex;
    /* The transform is what does the sliding. The transition curve (Emil-style
       ease-out-expo) is a long, soft tail that feels like a physical surface
       coming to rest, not a generic ease. */
    transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(calc(var(--slide-axis) * var(--slide-index) * 100%));
    will-change: transform;
}
.hero-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 10px 4px 8px;
}
.hero-slide-card {
    position: relative;
    display: grid;
    /* Fixed-width media column so the square frame never grows so tall it
       dominates the page; the body column flexes to take remaining width. */
    grid-template-columns: clamp(280px, 32%, 360px) 1fr;
    gap: 32px;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    /* Slight pop on each slide entering; the track's transform moves the card,
       this transform makes the content settle in place gently. */
    animation: heroSlideIn 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
    /* The whole card is an <a>, which by default underlines every inline
       text descendant — eyebrow, title, CTA all picked up the underline.
       Reset here once instead of on each child. color: inherit keeps the
       text dark instead of the user-agent's link blue. */
    text-decoration: none;
    color: inherit;
}
@keyframes heroSlideIn {
    from { opacity: 0.0; transform: scale(0.985); }
    to   { opacity: 1.0; transform: scale(1); }
}
.hero-slide-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    /* Soft neutral bg shows through the letterbox bands when contain leaves
       gaps — better than a dark band against the white card. */
    background: #faf7f2;
    /* Square frame is the universal best-fit for the current photo library:
       portrait photos (3:4) letterbox lightly on the sides, square photos fit
       perfectly, landscape outliers (16:9) letterbox top/bottom but stay
       readable. Locked aspect ratio + fixed-width media column = every card
       resolves to identical dimensions regardless of which photo is inside. */
    aspect-ratio: 1 / 1;
    width: 100%;
}
.hero-slide-media img,
.hero-slide-media video {
    width: 100%;
    height: 100%;
    /* contain (not cover) so the full product photo is visible — no aggressive
       crop. The neutral bg fills any letterbox gap. */
    object-fit: contain;
    display: block;
    transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-slide-card:hover .hero-slide-media img,
.hero-slide-card:hover .hero-slide-media video {
    /* Subtle hover lift — was 1.04, now barely perceptible so the photo doesn't
       crop in noticeably on hover. */
    transform: scale(1.015);
}
.hero-slide-body {
    padding: 8px 4px;
    /* Center the body content inside the row so cards with short copy don't
       float against the top edge of the (now taller) media column. */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.hero-slide-eyebrow {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: #999;
    margin-bottom: 12px;
}
.hero-slide-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    /* Bumped from 1.15. Tight leading + line-clamp + overflow:hidden
       was cropping Arabic descenders (ج، م، ع، ل، ر) and Latin
       descenders alike — the bottom slice of letters fell beyond
       the line-box. 1.4 gives the descenders room. */
    line-height: 1.4;
    margin: 0 0 18px;
    padding-bottom: 4px;
    color: #111;
    /* Clamp to two lines so cards stay the same height even when product names
       wrap — keeps the slideshow rhythm consistent slide to slide. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-slide-desc {
    color: #666;
    line-height: 1.6;
    margin: 0 0 18px;
    font-size: 0.95rem;
    /* Cap to two lines so card heights stay even across slides. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-slide-price {
    font-size: 1.05rem;
    font-weight: 500;
    color: #111;
    margin-bottom: 22px;
}
.hero-slide-price .original {
    text-decoration: line-through;
    color: #aaa;
    font-weight: 400;
    margin-inline-end: 8px;
}
.hero-slide-cta {
    display: inline-block;
    padding: 13px 26px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 9px;
    font-weight: 500;
    letter-spacing: 0.02em;
    font-size: 0.92rem;
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms ease-out;
}
.hero-slide-cta:hover { background: #2a2a2a; transform: translateY(-1px); }
.hero-slide-cta:active { transform: scale(0.97); }

.hero-slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1px solid #e9e2d8;
    color: #111;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 220ms ease-out, background 200ms ease-out, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    z-index: 2;
}
.hero-slideshow:hover .hero-slideshow-nav { opacity: 1; }
.hero-slideshow-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hero-slideshow-nav:active { transform: translateY(-50%) scale(0.95); }
.hero-slideshow-nav.prev { left: 28px; }
.hero-slideshow-nav.next { right: 28px; }
/* In RTL we keep the SAME visual carousel semantics as LTR — new slide
   enters from the right, old exits left. To do that we force the
   slideshow track to lay its children out LTR (so flex items stack
   left-to-right same as LTR mode), but each slide's content keeps
   dir="rtl" so the Arabic copy inside each card renders correctly.
   This is the standard RTL carousel pattern (Aesop, Le Labo, etc.). */
[dir="rtl"] .hero-slideshow {
    --slide-axis: -1; /* match LTR direction now that the track flows LTR */
}
[dir="rtl"] .hero-slideshow-track { direction: ltr; }
[dir="rtl"] .hero-slide { direction: rtl; }
/* prev / next button positions stay LTR-default (prev: left, next: right). */

.hero-slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.hero-slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4cdc3;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-slideshow-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #111;
}

@media (max-width: 768px) {
    .hero-slideshow { margin-bottom: 40px; padding: 0 14px; }
    .hero-slide { padding: 6px 2px 6px; }
    .hero-slide-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 16px;
        border-radius: 14px;
    }
    /* Mobile: stacked layout, full-width media. Override aspect to a wider
       4:3 here so the square frame doesn't take up most of the screen on
       portrait phones. */
    .hero-slide-media { aspect-ratio: 4 / 3; }
    .hero-slide-body { padding: 0 4px 6px; }
    .hero-slide-title { font-size: 1.4rem; }
    .hero-slide-desc { font-size: 0.88rem; -webkit-line-clamp: 3; }
    .hero-slide-cta { width: 100%; text-align: center; padding: 14px; }
    .hero-slideshow-nav { width: 38px; height: 38px; opacity: 0.85; }
    .hero-slideshow-nav.prev { left: 8px; }
    .hero-slideshow-nav.next { right: 8px; }
    /* RTL nav-position overrides removed — the carousel now flows LTR
       in both languages, so prev stays on the left, next on the right. */
}

/* Brand mark + wordmark layout. The PNG already contains "NAWAR" +
   Arabic calligraphy, so it sits as a calligraphic icon to the left of
   the typeset h1 / tagline stack.

   HTML has two structural variants:
     A. <div class="logo"><img/><h1/><span/></div>            (index, category)
     B. <div class="logo"><a><img/><h1/><span/></a></div>     (product, about, ...)

   Targeting both .logo AND .logo > a as the grid parent gives a single
   layout rule that works for both — image spans both grid rows, h1 sits
   in the top right, tagline in the bottom right. */
.logo,
.logo > a {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
}
.logo > a {
    text-decoration: none;
    color: inherit;
}
.logo-mark {
    grid-row: 1 / span 2;
    grid-column: 1;
    height: 56px;
    width: auto;
    display: block;
    /* Tighten optical alignment with the wordmark cap-height. */
    margin-block-start: -2px;
}
.logo h1 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
    line-height: 1.05;
}
.logo .tagline {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
}
@media (max-width: 768px) {
    .logo-mark { height: 44px; }
    .logo, .logo > a { column-gap: 9px; }
}
@media (max-width: 420px) {
    .logo-mark { height: 38px; }
}

/* Arabic pages: the brand mark already contains the calligraphic "نوّار",
   so the typeset h1 + tagline beside it are redundant. Hide them and
   collapse the grid back to a single column so the column-gap doesn't
   leave an empty stripe to the right of the mark. */
[dir="rtl"] .logo,
[dir="rtl"] .logo > a {
    grid-template-columns: auto;
    column-gap: 0;
}
[dir="rtl"] .logo h1,
[dir="rtl"] .logo .tagline {
    display: none;
}

/* Sold-out / low-stock card state.
   - Out of stock: image gets a 60% white wash + a pill in the corner; the
     Add-to-Cart button becomes a flat "Sold out" with reduced opacity.
   - Low stock (≤5): tiny "Only X left" hint above the actions, in the same
     warm gold the brand uses elsewhere. */
.product-card.out-of-stock .product-image {
    position: relative;
}
.product-card.out-of-stock .product-image img,
.product-card.out-of-stock .product-image video {
    filter: grayscale(0.4);
    opacity: 0.7;
}
.sold-out-tag {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    background: rgba(20, 20, 20, 0.88);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 4px;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.product-card.out-of-stock .add-to-cart {
    background: #b8b0a6;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.85;
}
.product-card.out-of-stock .add-to-cart:hover {
    background: #b8b0a6;
    transform: none;
}
.add-to-cart:disabled,
.product-card.out-of-stock .qty-arrow {
    cursor: not-allowed;
}
.product-card.out-of-stock .quantity-selector {
    /* Hide the selector entirely on sold-out cards — disabling it left a
       distracting greyed control next to the Sold-out button. */
    display: none;
}
.stock-hint {
    color: #c79a30;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
    font-weight: 500;
}

/* Tier-priced gifts: contents type picker (Home Fragrance vs Mix). Sits
   above the tier-quantity buttons. Two pill-shaped radios that fill the
   available width on mobile. */
.gift-type-picker {
    margin-top: 18px;
    padding: 16px 18px;
    background: #fafaf8;
    border: 1px solid #efece6;
    border-radius: 12px;
}
.gift-type-picker h4 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.gift-type-options {
    display: grid;
    /* Auto-fit so 2 / 3 / 4+ options all lay out cleanly. Min 130 keeps a
       short label like "Mix" from being too narrow on desktop. */
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}
.gift-type-opt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1.5px solid #e5e2dc;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    /* Same ease-out-expo curve used for the tier number settle, slowed to
       ~360 ms so the dark fill and border-stroke ease in rather than snap.
       Keeps the chip switch feeling like a single confident motion. */
    transition:
        border-color   360ms cubic-bezier(0.16, 1, 0.3, 1),
        background     360ms cubic-bezier(0.16, 1, 0.3, 1),
        color          280ms cubic-bezier(0.16, 1, 0.3, 1),
        transform      240ms cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.92rem;
    font-weight: 500;
    color: #444;
    will-change: transform;
}
.gift-type-opt:hover { border-color: #b9b1a4; }
.gift-type-opt:active { transform: scale(0.98); }
.gift-type-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.gift-type-opt:has(input:checked) {
    border-color: #111;
    background: #111;
    color: #fff;
}

/* Fired once when the chip becomes the new selection. A tiny lift +
   settle so the chosen chip "lands" in place under the dark fill,
   instead of just colour-snapping. */
.gift-type-opt--settle {
    animation: giftTypeSettle 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes giftTypeSettle {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.045); }
    100% { transform: scale(1); }
}

/* Inner label is given an inline-block context so a per-tap WAAPI
   reveal (translateY + blur + letter-spacing settle) takes effect
   on the text the same way the tier numbers settle. */
.gift-type-opt > span { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
    .gift-type-opt { transition: none; }
    .gift-type-opt--settle { animation: none; }
}

/* Gift configurator (configurable gift sets — two-dropdown picker on
   the product detail page). Visually rhymes with the tier-pricing block:
   same surface, same h4 spacing, same border radius. */
.gift-configurator {
    margin-top: 24px;
    padding: 18px 20px;
    background: #fafaf8;
    border: 1px solid #efece6;
    border-radius: 12px;
}
.gift-configurator h4 {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.gift-configurator .form-group {
    margin-bottom: 14px;
}
.gift-configurator .form-group:last-of-type {
    margin-bottom: 8px;
}
.gift-configurator label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #444;
    letter-spacing: 0.04em;
}
.gift-configurator select {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5e2dc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #111;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round'><path d='M1 1.5l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-inline-end: 36px;
    transition: border-color 160ms ease-out;
}
[dir="rtl"] .gift-configurator select {
    background-position: left 14px center;
    padding-inline-end: 14px;
    padding-inline-start: 36px;
}
.gift-configurator select:focus {
    outline: none;
    border-color: #111;
}
.cfg-summary {
    margin: 6px 2px 0;
    color: #666;
    font-size: 0.82rem;
}

/* While the user is dragging, kill the transition so the track tracks the
   finger 1:1; we restore it on pointerup so the snap-into-place is smooth. */
.hero-slideshow.dragging .hero-slideshow-track {
    transition: none;
    cursor: grabbing;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slideshow-track,
    .hero-slide-media img,
    .hero-slide-media video,
    .hero-slideshow-nav,
    .hero-slide-cta { transition: none; }
    .hero-slide-card { animation: none; }
}

/* ============== Tier button: ink pulse on tap ==============
   On click, a soft pressure mark radiates from the exact tap
   point and dissipates outward — like a finger pressing glass.
   Tap coordinates flow in through CSS custom props (--cx / --cy)
   set in JS, so the pulse is anchored to the touch, not the
   button center. A hairline inner ring blooms in parallel for
   a beat of definition, then both fade. No sweep, no shine —
   precise and restrained.
   Already-scoped to the button via `isolation: isolate`. */
.tier-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --cx: 50%;
    --cy: 50%;
}

.tier-btn::after {
    content: '';
    position: absolute;
    left: var(--cx);
    top: var(--cy);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(
        circle,
        rgba(20, 20, 20, 0.22) 0%,
        rgba(20, 20, 20, 0.10) 38%,
        rgba(20, 20, 20, 0)    72%
    );
    opacity: 0;
    z-index: 1;
}

.tier-btn--pulse::after {
    animation: tierInkPulse 640ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tier-btn--pulse {
    animation: tierInkRing 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tierInkPulse {
    0%   { transform: translate(-50%, -50%) scale(0);  opacity: 0; }
    10%  { opacity: 0.85; }
    100% { transform: translate(-50%, -50%) scale(22); opacity: 0; }
}

@keyframes tierInkRing {
    0%   { box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0); }
    35%  { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.09); }
    100% { box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .tier-btn--pulse,
    .tier-btn--pulse::after { animation: none; }
}

/* When the in-card "Add to Cart" is replaced with a link to the
   detail page (configurable gifts / tier gifts), make the <a>
   visually match the <button> sibling: stretch to width, center
   the label, drop the underline. aria-disabled is the visual cue
   for sold-out — the link still works (lets the customer browse
   the detail page even when stock is gone). */
.add-to-cart.card-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    text-align: center;
}
.add-to-cart.card-cta-link[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
