/* ==========================================================================
   POSH — Heritage Modernist design tokens & homepage components
   Tokens transcribed from heritage_modernist/DESIGN.md. Change values here,
   never inline in the markup.
   Scoped to .heritage so the rest of the theme is untouched.
   ========================================================================== */

:root {
    /* --- Colour ------------------------------------------------------- */
    --h-surface: #fdf9f4;
    --h-background: #f7f3ee;          /* DESIGN.md "Background" ivory canvas */
    --h-surface-container-lowest: #ffffff;
    --h-surface-container-low: #f7f3ee;
    --h-surface-container: #f1ede8;
    --h-surface-container-high: #ebe8e3;
    --h-surface-container-highest: #e6e2dd;
    --h-surface-dim: #ddd9d5;

    --h-primary: #111111;             /* matte black, per Brand & Style */
    --h-on-primary: #ffffff;
    --h-accent: #b8924a;              /* muted gold — use sparingly */
    --h-secondary: #d6c4a0;           /* borders & separators */

    --h-on-surface: #1c1c19;
    --h-on-surface-variant: #444748;
    --h-outline: #747878;
    --h-outline-variant: #c4c7c7;
    --h-inverse-surface: #31302d;
    --h-inverse-on-surface: #f4f0eb;
    --h-error: #ba1a1a;

    /* --- Typography --------------------------------------------------- */
    --h-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --h-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --h-display-lg-size: 48px;
    --h-display-lg-mobile-size: 32px;
    --h-headline-md-size: 32px;
    --h-headline-md-mobile-size: 24px;
    --h-title-sm-size: 18px;
    --h-body-lg-size: 16px;
    --h-body-sm-size: 14px;
    --h-label-caps-size: 12px;

    /* --- Shape -------------------------------------------------------- */
    --h-radius-sm: 0.25rem;
    --h-radius: 0.5rem;
    --h-radius-md: 0.75rem;   /* 12px — buttons, inputs, thumbnails */
    --h-radius-lg: 1rem;
    --h-radius-xl: 1.5rem;    /* 24px — large cards, modals */
    --h-radius-full: 9999px;

    /* --- Spacing (8px rhythm, 4px base unit) -------------------------- */
    --h-unit: 4px;
    --h-container-max: 1440px;
    --h-gutter: 24px;
    --h-margin-mobile: 16px;
    --h-margin-desktop: 64px;
    --h-stack-sm: 8px;
    --h-stack-md: 24px;
    --h-stack-lg: 48px;
    --h-section-gap: 120px;

    /* --- Elevation ---------------------------------------------------- */
    --h-shadow-ambient: 0px 10px 30px rgba(17, 17, 17, 0.04);
}

/* ==========================================================================
   Base
   ========================================================================== */

.heritage {
    background: var(--h-background);
    color: var(--h-on-surface);
    font-family: var(--h-font-body);
    font-size: var(--h-body-lg-size);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;              /* guarantees no horizontal scroll */
}

.heritage *,
.heritage *::before,
.heritage *::after { box-sizing: border-box; }

.heritage img { max-width: 100%; display: block; }
.heritage.has-mobile-overlay { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }

.heritage h1, .heritage h2, .heritage h3, .heritage h4 {
    font-family: var(--h-font-display);
    color: var(--h-on-surface);
    margin: 0;
}

.heritage a { color: inherit; text-decoration: none; }

/* The `hidden` attribute must win over component display rules such as
   `.h-btn { display: inline-flex }`, which would otherwise keep hidden
   buttons (WhatsApp, "Add All to Cart") visible. */
.heritage [hidden] { display: none !important; }

.heritage :focus-visible {
    outline: 2px solid var(--h-primary);
    outline-offset: 3px;
}

/* Screen-reader-only utility */
.h-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Type scale ------------------------------------------------------- */
.h-display-lg {
    font-family: var(--h-font-display);
    font-size: var(--h-display-lg-mobile-size);
    font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
}
.h-headline-md {
    font-family: var(--h-font-display);
    font-size: var(--h-headline-md-mobile-size);
    font-weight: 600; line-height: 1.3;
}
.h-title-sm {
    font-family: var(--h-font-body);
    font-size: var(--h-title-sm-size);
    font-weight: 600; line-height: 1.5; letter-spacing: 0.02em;
}
.h-body-lg { font-size: var(--h-body-lg-size); line-height: 1.6; }
.h-body-sm { font-size: var(--h-body-sm-size); line-height: 1.5; }
.h-label-caps {
    font-family: var(--h-font-body);
    font-size: var(--h-label-caps-size);
    font-weight: 600; line-height: 1;
    letter-spacing: 0.1em; text-transform: uppercase;
}
.h-muted { color: var(--h-on-surface-variant); }

/* --- Layout ----------------------------------------------------------- */
.h-container {
    width: 100%;
    max-width: var(--h-container-max);
    margin-inline: auto;
    padding-inline: var(--h-margin-mobile);
}

.h-section { padding-block: 56px; }
.h-section + .h-section { padding-top: 0; }

.h-section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: var(--h-stack-md); margin-bottom: var(--h-stack-md); flex-wrap: wrap;
}
.h-section-head p { margin: var(--h-stack-sm) 0 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.h-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 28px;
    font-family: var(--h-font-body); font-size: var(--h-body-sm-size); font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    border-radius: var(--h-radius-md); border: 1px solid transparent;
    cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
/* `.heritage a { color: inherit }` is more specific than a lone `.h-btn--*` class,
   so button colours are declared at matching specificity to survive inside the hero. */
.heritage .h-btn--primary { background: var(--h-primary); color: var(--h-on-primary); }
.heritage .h-btn--primary:hover { background: #2b2b2b; color: var(--h-on-primary); }
.heritage .h-btn--secondary { background: transparent; color: var(--h-primary); border-color: var(--h-primary); }
.heritage .h-btn--secondary:hover { background: var(--h-primary); color: var(--h-on-primary); }
.heritage .h-btn--light { background: var(--h-surface-container-lowest); color: var(--h-primary); }
.heritage .h-btn--light:hover { background: var(--h-primary); color: var(--h-on-primary); }
.h-btn--block { width: 100%; }

/* Tertiary: text with an underline that expands on hover */
.h-link-underline {
    position: relative; font-size: var(--h-body-sm-size); font-weight: 600;
    letter-spacing: 0.06em; padding-bottom: 3px; white-space: nowrap;
}
.h-link-underline::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
    background: var(--h-primary); transform: scaleX(.35); transform-origin: left;
    transition: transform .25s ease;
}
.h-link-underline:hover::after { transform: scaleX(1); }
.h-size-guide-link { border: 0; background: none; cursor: pointer; font: inherit; color: inherit; padding: 4px 0; }
.h-modal[hidden] { display: none !important; }
.h-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.h-modal__backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.62); }
.h-modal__panel { position: relative; box-sizing: border-box; width: min(820px, 100%); max-width: 100%; max-height: min(700px, 90vh); overflow: auto; padding: 32px; background: var(--h-surface); border-radius: var(--h-radius-xl); box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.h-modal__close { position: absolute; top: 12px; right: 16px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; cursor: pointer; }
.h-size-guide__table-wrap { overflow-x: auto; margin-top: 24px; }
.h-size-guide__table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
.h-size-guide__table th, .h-size-guide__table td { padding: 13px 14px; border: 1px solid var(--h-surface-container-highest); text-align: center; }
.h-size-guide__table thead th { background: var(--h-primary); color: var(--h-on-primary); font-weight: 600; }
.h-size-guide__table tbody th { text-align: left; background: var(--h-surface-container-low); }
.h-modal-open { overflow: hidden; }
@media (max-width: 639.98px) { .h-modal { padding: 12px; } .h-modal__panel { padding: 24px 16px; } }
@media (max-width: 639.98px) {
    .h-modal { padding:0; place-items:end stretch; }
    .h-modal__panel.h-size-guide { width:100%; max-width:none; max-height:78vh; padding:28px 16px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius:18px 18px 0 0; }
    .h-size-guide__table-wrap { margin-top:18px; }
}

/* ==========================================================================
   Announcement bar + header
   ========================================================================== */

.h-announce {
    background: #2a2a2a; color: var(--h-on-primary);
    min-height: 34px; display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-align: center; padding: 0 12px; white-space: nowrap;
    font-size: 10px; letter-spacing: .075em; font-weight: 500;
}
.h-announce span {
    display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
    transition: transform .28s ease, opacity .28s ease;
}
.h-announce.is-changing span { transform: translateY(-110%); opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    .h-announce span { transition: none; }
}

.h-header {
    position: sticky; top: 0; z-index: 60;
    background: var(--h-surface);
    border-bottom: 1px solid var(--h-surface-container-highest);
}
.h-header__inner {
    display: flex; align-items: center; gap: var(--h-stack-md);
    min-height: 68px;
}
.h-brand {
    font-family: var(--h-font-display); font-size: 22px; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.h-nav { display: none; gap: 28px; margin-inline: auto; }
.h-nav a { position: relative; padding-block: 6px; }
.h-nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--h-primary); transform: scaleX(0); transition: transform .25s ease;
}
.h-nav a:hover::after, .h-nav a[aria-current="page"]::after { transform: scaleX(1); }

.h-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.h-icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border: 0; background: none;
    border-radius: var(--h-radius-full); color: var(--h-on-surface);
    transition: background .2s ease;
}
.h-icon-btn:hover { background: var(--h-surface-container); }
.h-icon-btn .number {
    position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px;
    padding: 0 4px; border-radius: var(--h-radius-full);
    background: var(--h-primary); color: var(--h-on-primary);
    font-size: 10px; font-weight: 600; line-height: 17px; text-align: center;
}
.h-menu-toggle { display: inline-flex; }

/* Mobile drawer nav */
.h-drawer {
    position: fixed; inset: 0 30% 0 0; z-index: 90;
    background: var(--h-surface); padding: var(--h-stack-md);
    transform: translateX(-100%); transition: transform .3s ease;
    display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
    overscroll-behavior: contain; padding-bottom: max(var(--h-stack-md), env(safe-area-inset-bottom));
}
.h-drawer__head { display: flex; min-height: 48px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--h-surface-container-high); font-size: 14px; }
.h-drawer.is-open { transform: translateX(0); }
.h-drawer a { padding: 14px 8px; border-bottom: 1px solid var(--h-surface-container-high); }
.h-drawer-backdrop {
    position: fixed; inset: 0; z-index: 80; background: rgba(17,17,17,.4);
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.h-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Hero / banner slider
   ========================================================================== */

.h-hero { position: relative; background: #171614; overflow: hidden; }
.h-hero .swiper-slide { position: relative; overflow: hidden; }

.h-hero__media {
    position: relative; min-height: clamp(560px, 70svh, 760px);
    background-size: cover; background-position: center;
    display: flex; align-items: flex-end; text-align: left;
    padding: 72px var(--h-margin-mobile) 84px;
}
.h-hero__media::before {
    content: ''; position: absolute; inset: 0;
    background:
      linear-gradient(90deg, rgba(10,10,9,.78) 0%, rgba(10,10,9,.48) 42%, rgba(10,10,9,.08) 72%),
      linear-gradient(0deg, rgba(10,10,9,.58) 0%, transparent 52%);
}
.h-hero__content { position: relative; z-index: 2; width: min(620px, 100%); color: #fff; }
.h-hero__content .h-display-lg { color: #fff; }
.h-hero__eyebrow { color: rgba(255,255,255,.76); margin-bottom: 14px; display: block; }
.h-hero__sub { color: rgba(255,255,255,.82); max-width: 52ch; margin: 18px 0 28px; }
.h-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; }
.h-hero__secondary { color: #fff !important; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.6); padding: 10px 0 6px; }
.h-hero__secondary:hover { border-color: #fff; }
.h-hero__nav { position: absolute; z-index: 5; bottom: 42px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; background: rgba(17,17,17,.18); color: #fff; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.h-hero__nav:hover { background: rgba(17,17,17,.72); border-color: #fff; }
.h-hero__nav--prev { right: 94px; }
.h-hero__nav--next { right: 38px; }

.h-hero .swiper-pagination { width: auto !important; left: var(--h-margin-mobile) !important; bottom: 28px !important; }
.h-hero .swiper-pagination-bullet { width: 22px; height: 2px; border-radius: 0; margin: 0 4px !important; background: #fff; opacity: .35; transition: width .25s ease, opacity .25s ease; }
.h-hero .swiper-pagination-bullet-active { width: 42px; opacity: 1; }

/* ==========================================================================
   Category rail
   ========================================================================== */

.h-cat-rail {
    display: flex; gap: 16px; overflow-x: auto;
    padding-bottom: var(--h-stack-sm); scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.h-cat-rail::-webkit-scrollbar { display: none; }

.h-cat {
    flex: 0 0 132px; width: 132px; min-width: 0; text-align: left;
    display: grid; grid-template-rows: auto auto auto; align-content: start;
}
.h-cat__thumb {
    width: 100%; height: auto; aspect-ratio: 4 / 5; margin: 0 0 14px;
    border-radius: var(--h-radius-md); overflow: hidden;
    background: var(--h-surface-container-high);
    display: grid; place-items: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.h-cat__thumb img { width: 100%; height: 100%; object-fit: cover; }
/* ZF editorial direction — header, hero and product carousel foundation. */
:root{--zf-black:#111;--zf-white:#fff;--zf-stone:#f2f0eb;--zf-sale:#5d1d2a;--zf-line:rgba(17,17,17,.18);--zf-space:clamp(56px,8vw,120px)}
.heritage{background:var(--zf-white);color:var(--zf-black)}
.h-bottom-nav{display:none!important}
.h-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);transition:background .2s ease,box-shadow .2s ease,backdrop-filter .2s ease;border-bottom:1px solid transparent}.h-header.is-scrolled{background:rgba(255,255,255,.98);box-shadow:0 5px 18px rgba(0,0,0,.07);border-color:var(--zf-line)}
.h-btn{border-radius:2px!important;text-transform:uppercase;letter-spacing:.1em;font-size:11px;transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}.heritage .h-btn--secondary,.heritage .h-btn--light{background:transparent;color:inherit;border:1px solid currentColor}.heritage .h-btn--secondary:hover,.heritage .h-btn--light:hover{background:var(--zf-black);border-color:var(--zf-black);color:var(--zf-white)}
.h-section{padding-block:var(--zf-space)}.h-section-head{margin-bottom:34px}.h-section-head h2,.h-editorial h2{font-family:var(--h-font-display);font-size:clamp(32px,4vw,54px);font-weight:600;letter-spacing:-.025em}.h-section-head[data-zf-reveal],.h-section-head{opacity:0;transform:translateY(12px);transition:opacity .5s ease,transform .5s ease}.h-section-head.is-visible{opacity:1;transform:none}
.h-hero__media{overflow:hidden}.h-hero__media::after{content:"";position:absolute;inset:0;background:inherit;z-index:0;animation:zf-kenburns 10s ease-in-out infinite alternate;transform-origin:center}.h-hero__media::before{z-index:1}.h-hero__content{z-index:2}.h-hero__eyebrow,.h-hero__content .h-display-lg,.h-hero__sub,.h-hero__actions{animation:zf-hero-in .55s ease both}.h-hero__content .h-display-lg{animation-delay:.1s}.h-hero__sub{animation-delay:.2s}.h-hero__actions{animation-delay:.3s}.h-hero__actions .h-btn--light{background:var(--zf-white);color:var(--zf-black);border-color:var(--zf-white)}.h-hero__actions .h-btn--light:hover{background:transparent;color:var(--zf-white)}
.h-carousel .swiper-slide{padding-bottom:3px}.h-card__media{aspect-ratio:3/4;background:var(--zf-stone);overflow:hidden}.h-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease-out}.h-card:hover .h-card__media img{transform:scale(1.05)}.h-card__badge{background:transparent!important;color:var(--zf-black)!important;border:0;padding:0;font-size:10px;letter-spacing:.13em}.h-card__badge--sale{color:var(--zf-sale)!important}.h-card__price del{color:#8a8a8a}.h-card{opacity:1;transform:none}.h-carousel .h-card,[data-home-featured] .h-card{opacity:0;transform:translateY(12px);transition:opacity .45s ease,transform .45s ease}.h-carousel .h-card.is-visible,[data-home-featured] .h-card.is-visible{opacity:1;transform:none}
.h-values{padding-block:26px;border-block:1px solid var(--zf-line)}.h-values__grid{gap:0}.h-values__grid div{padding:8px 18px;border-left:1px solid var(--zf-line);text-align:center}.h-values__grid div:first-child{border-left:0}.h-values__grid i,.h-values__grid span{display:none}.h-values__grid strong{font-family:var(--h-font-body);font-size:10px;text-transform:uppercase;letter-spacing:.13em}
@keyframes zf-kenburns{to{transform:scale(1.08)}}@keyframes zf-hero-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.h-hero__media::after,.h-hero__eyebrow,.h-hero__content .h-display-lg,.h-hero__sub,.h-hero__actions,.h-card,.h-section-head{animation:none;transition:none;opacity:1;transform:none}}
/* Site-wide continuation of the editorial system. */
.h-filter-panel,.h-accordion,.h-auth__card,.h-newsletter,.h-cart-summary,.h-compare{border-radius:0!important;box-shadow:none!important}.h-filter-group,.h-accordion,.h-compare td,.h-compare th{border-color:var(--zf-line)!important}.h-pdp__title,.h-auth h1,.h-empty h2{font-family:var(--h-font-display);font-weight:600;letter-spacing:-.02em}.h-chip,.h-swatch,.h-pill{border-radius:0!important}.h-check input:checked+span,.h-chip.is-active{background:var(--zf-black)!important;color:var(--zf-white)!important}.h-newsletter{background:var(--zf-stone);border:0}.h-newsletter__form .h-btn{background:transparent;color:var(--zf-black);border:1px solid var(--zf-black)}.h-newsletter__form .h-btn:hover,.h-newsletter__form .h-btn.is-success{background:var(--zf-black);color:var(--zf-white)}.h-newsletter__form .h-btn.is-success::before{content:'✓ ';animation:zf-hero-in .18s ease both}.h-cart-item,.h-cart-summary,.h-checkout-summary{border-color:var(--zf-line)!important}.h-card__wish{border-radius:0;background:rgba(255,255,255,.92);transition:transform .2s ease,background .2s ease,color .2s ease}.h-card__wish.is-pulsing{animation:zf-pulse .28s ease}.h-card__wish.active{color:var(--zf-white)!important}.h-pdp__gallery,.h-pdp__info{min-width:0}.h-pdp__price del{color:#8a8a8a}.h-compare .h-btn,.h-empty .h-btn{border-radius:2px}.h-grid{gap:clamp(24px,3vw,44px)}@keyframes zf-pulse{50%{transform:scale(1.3)}}
@media(max-width:767px){.h-section{padding-block:56px}.h-section-head{margin-bottom:24px}.h-section-head h2,.h-editorial h2{font-size:32px}.h-values__grid{grid-template-columns:1fr 1fr}.h-values__grid div:nth-child(odd){border-left:0}.h-values__grid div{padding:12px 8px}.h-pdp{gap:28px}.h-filter-panel{background:#fff}.h-header{backdrop-filter:blur(8px)}}
.h-btn.is-loading{opacity:.7;pointer-events:none}.h-btn.is-loading::after{content:'';width:10px;height:10px;margin-left:8px;border:1px solid currentColor;border-right-color:transparent;border-radius:50%;display:inline-block;animation:zf-spin .55s linear infinite}@keyframes zf-spin{to{transform:rotate(360deg)}}
/* Announcement must escape every page/template container: one flush viewport-wide bar. */
html,body.heritage{margin:0;padding:0}.h-announce{position:relative;left:50%;width:100vw;max-width:100vw;box-sizing:border-box;margin:0 0 0 -50vw!important;padding:0 16px!important;min-height:34px!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;background:#2a2a2a!important;color:#fff!important;font-size:10.5px!important;font-weight:500!important;letter-spacing:.07em!important;line-height:1.1}.h-announce::before,.h-announce::after{display:none!important;content:none!important}.h-announce span{margin:0!important;padding:0!important;border:0!important;background:transparent!important}
/* Root canvas and full-bleed chrome. No inherited theme colour can show at viewport edges. */
html{background:#fff!important}body.heritage{width:100%;min-width:0;background:#fff!important;overflow-x:clip}.h-announce,.h-header,.h-footer{width:100%;max-width:none;box-sizing:border-box;border-radius:0!important}.h-announce{left:auto;right:auto;margin-left:0!important;margin-right:0!important}.h-header,.h-footer{left:auto;right:auto;margin-left:0!important;margin-right:0!important}.h-header{position:sticky}.h-hero,.h-section{width:100%;max-width:none;margin-inline:0;background-color:#fff}.h-footer{position:relative;background:#ebe8e3!important;border:0!important;box-shadow:none!important;resize:none!important}.h-footer::before,.h-footer::after{content:none!important;display:none!important}.h-footer .h-container{width:min(var(--h-container-max),calc(100% - 2 * var(--h-margin-mobile)));margin-inline:auto}.h-footer__bottom{width:100%;border-color:rgba(17,17,17,.18)!important}.h-footer textarea,.h-footer [style*="resize"]{resize:none!important}
.h-drawer__shop{border-bottom:1px solid var(--h-surface-container-highest)}.h-drawer__shop summary{display:flex;align-items:center;justify-content:space-between;padding:15px 0;cursor:pointer;list-style:none}.h-drawer__shop summary::-webkit-details-marker{display:none}.h-drawer__shop summary i{font-size:11px;transition:transform .2s ease}.h-drawer__shop[open] summary i{transform:rotate(180deg)}.h-drawer__categories{display:grid;padding:0 0 10px 16px}.h-drawer__categories a{border:0!important;padding:10px 0!important;font-size:.92em;color:var(--h-on-surface-variant)}
.h-brand--logo{display:flex;align-items:center;width:150px;max-width:38vw;height:42px;overflow:visible}.h-brand--logo img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.h-nav-more{position:relative;display:inline-block}.h-nav-more summary{cursor:pointer;list-style:none}.h-nav-more summary::-webkit-details-marker{display:none}.h-nav-more>div{position:absolute;right:0;top:calc(100% + 12px);z-index:30;min-width:190px;padding:10px;background:var(--h-surface,#fff);box-shadow:0 10px 30px rgba(0,0,0,.15)}.h-nav-more>div a{display:block;padding:9px 12px;white-space:nowrap}.h-drawer__category{padding-left:22px!important;font-size:.9em}
@media(max-width:767px){.h-brand--logo{width:126px;height:38px;max-width:34vw}}
.h-cat:hover .h-cat__thumb { transform: translateY(-3px); box-shadow: var(--h-shadow-ambient); }
.h-cat__name { display: block; font-family: var(--h-font-display); font-size: 20px; font-weight: 600; }

.h-editorial { padding-block: 56px; background: var(--h-primary); color: var(--h-on-primary); }
.h-editorial__grid { display: grid; gap: 32px; align-items: center; }
.h-editorial__media { min-height: 360px; background: url('../img/opensource/fabric-detail.jpg') center/cover no-repeat; border-radius: var(--h-radius-md); }
.h-editorial__copy { max-width: 560px; padding-block: 16px; }
.h-editorial__copy h2 { color: #fff; margin: 12px 0 16px; }
.h-editorial__copy p { color: rgba(255,255,255,.72); margin: 0 0 28px; }
.h-editorial__copy .h-label-caps { color: rgba(255,255,255,.64); }
.h-values { padding-block: 48px; border-block: 1px solid var(--h-surface-container-highest); }
.h-values__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 20px; }
.h-values__grid div { display: grid; gap: 5px; }
.h-values__grid i { font-size: 19px; margin-bottom: 7px; }
.h-values__grid strong { font-family: var(--h-font-display); font-size: 17px; }
.h-values__grid span { color: var(--h-on-surface-variant); font-size: 13px; }

/* ==========================================================================
   Product cards
   ========================================================================== */

.h-grid {
    display: grid; gap: var(--h-gutter);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.h-card { position: relative; background: transparent; }
.h-card__media {
    position: relative; display: block;
    aspect-ratio: 3 / 4;                 /* strict 3:4 per DESIGN.md */
    border-radius: var(--h-radius-md); overflow: hidden;
    background: var(--h-surface-container-high);
}
.h-card__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.h-card:hover .h-card__media img { transform: scale(1.04); }

.h-card__badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--h-surface-container-lowest); color: var(--h-primary);
    padding: 6px 10px; border-radius: var(--h-radius-sm);
}
.h-card__badge--sale { background: var(--h-primary); color: var(--h-on-primary); }

.h-card__wish {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 38px; height: 38px; border: 0; border-radius: var(--h-radius-full);
    background: rgba(255,255,255,.92); color: var(--h-primary);
    display: grid; place-items: center; cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.h-card__wish:hover, .h-card__wish.active { background: var(--h-primary); color: var(--h-on-primary); }

.h-card__body { padding-top: 12px; }
.h-card__cat { display: block; margin-bottom: 6px; color: var(--h-on-surface-variant); }
/* DESIGN.md: product titles use title-sm (Inter), not the Playfair display face.
   Declared with .heritage to outrank the `.heritage h3` element rule. */
.heritage .h-card__name {
    font-family: var(--h-font-body); font-size: var(--h-title-sm-size);
    font-weight: 600; line-height: 1.4; margin: 0 0 6px;
}
.h-card__price { font-size: var(--h-body-lg-size); font-weight: 500; }
.h-card__price del { color: var(--h-on-surface-variant); font-weight: 400; margin-left: 8px; }
.h-card__cta { margin-top: 12px; }

/* Swiper slides must not collapse inside the carousel */
.h-carousel .swiper-slide { height: auto; }

/* ==========================================================================
   Newsletter
   ========================================================================== */

.h-newsletter {
    background: var(--h-surface-container-lowest);
    border-radius: var(--h-radius-xl);
    padding: var(--h-stack-lg) var(--h-stack-md);
    box-shadow: var(--h-shadow-ambient);
    text-align: center;
}
.h-newsletter__form {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
    max-width: 520px; margin: var(--h-stack-md) auto 0;
}
.h-input {
    flex: 1 1 240px; min-height: 48px; padding: 0 16px;
    background: var(--h-surface-container-lowest);
    border: 1px solid var(--h-secondary); border-radius: var(--h-radius-md);
    font-family: var(--h-font-body); font-size: var(--h-body-sm-size); color: var(--h-on-surface);
    transition: border-color .2s ease;
}
.h-input:focus { border-color: var(--h-primary); outline: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.h-footer {
    background: var(--h-surface-container-high);
    padding-top: var(--h-stack-lg);
    margin-top: var(--h-stack-lg);
}
.h-footer__grid {
    display: grid; gap: var(--h-stack-lg);
    grid-template-columns: 1fr;
    padding-bottom: var(--h-stack-lg);
}
.h-footer h3 { margin-bottom: var(--h-stack-md); }
.h-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.h-footer a:hover { color: var(--h-accent); }
.h-footer__bottom {
    border-top: 1px solid var(--h-surface-dim);
    padding-block: var(--h-stack-md);
    display: flex; flex-wrap: wrap; gap: var(--h-stack-sm);
    align-items: center; justify-content: space-between;
}
.h-social { display: flex; gap: 8px; }
.h-social a {
    width: 38px; height: 38px; border-radius: var(--h-radius-full);
    display: grid; place-items: center;
    border: 1px solid var(--h-secondary);
    transition: background .2s ease, color .2s ease;
}
.h-social a:hover { background: var(--h-primary); color: var(--h-on-primary); }

/* ==========================================================================
   Mobile bottom nav (mobile only, per DESIGN.md)
   ========================================================================== */

.h-bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: var(--h-surface);
    border-top: 1px solid var(--h-surface-container-highest);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
html.compare-enabled .h-bottom-nav { grid-template-columns: repeat(6, 1fr); }
.h-bottom-nav a {
    display: grid; justify-items: center; gap: 4px; padding: 10px 4px;
    font-size: 11px; color: var(--h-on-surface-variant);
}
.h-bottom-nav a[aria-current="page"] { color: var(--h-primary); font-weight: 600; }
.h-bottom-nav i { font-size: 17px; }
.h-bottom-nav .number {
    position: absolute; transform: translate(14px, -4px);
    min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--h-radius-full);
    background: var(--h-primary); color: var(--h-on-primary);
    font-size: 10px; line-height: 16px; text-align: center;
}
.h-bottom-nav__slot { position: relative; display: contents; }

/* Keep the fixed bar from covering the end of the page */
.heritage { padding-bottom: 68px; }

/* Empty / loading states */
.h-state { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--h-on-surface-variant); }

/* ==========================================================================
   Breakpoints
   Mobile = fluid 4-col, 16px margins. Desktop = fixed 12-col, 64px margins.
   ========================================================================== */

@media (min-width: 640px) {
    .h-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .h-footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; }
}

@media (min-width: 1024px) {
    .h-container { padding-inline: var(--h-margin-desktop); }

    .h-section { padding-block: 72px; }
    .h-section--gap { padding-block: var(--h-section-gap); }

    .h-display-lg {
        font-size: var(--h-display-lg-size);
        line-height: 1.1; letter-spacing: -0.02em;
    }
    .h-headline-md { font-size: var(--h-headline-md-size); line-height: 1.2; }

    .h-nav { display: flex; }
    .h-menu-toggle { display: none; }

    .h-hero__media { min-height: clamp(680px, 84vh, 920px); padding: 110px max(var(--h-margin-desktop), calc((100vw - var(--h-container-max))/2 + var(--h-margin-desktop))) 118px; }
    .h-hero__content .h-display-lg { font-size: clamp(52px, 4.5vw, 76px); max-width: 12ch; }
    .h-hero__sub { font-size: 17px; }
    .h-hero .swiper-pagination { left: max(var(--h-margin-desktop), calc((100vw - var(--h-container-max))/2 + var(--h-margin-desktop))) !important; bottom: 50px !important; }
    .h-hero__nav { bottom: 48px; }
    .h-hero__nav--prev { right: max(112px, calc((100vw - var(--h-container-max))/2 + 112px)); }
    .h-hero__nav--next { right: max(56px, calc((100vw - var(--h-container-max))/2 + 56px)); }
    .h-cat-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--h-gutter); overflow: visible; }
    .h-cat { width: auto; }
    .h-cat__thumb { aspect-ratio: 4 / 5; }

    .h-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .h-editorial { padding-block: 88px; }
    .h-editorial__grid { grid-template-columns: 1.2fr .8fr; gap: 72px; }
    .h-editorial__media { min-height: 560px; }
    .h-values__grid { grid-template-columns: repeat(4,minmax(0,1fr)); }

    .h-newsletter { padding: var(--h-stack-lg); }

    .h-bottom-nav { display: none; }
    .heritage { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .heritage *, .heritage *::before, .heritage *::after {
        transition-duration: .01ms !important; animation-duration: .01ms !important;
    }
}

/* ==========================================================================
   Collections / shop page
   ========================================================================== */

.h-page-head { padding-block: 40px 8px; }
.h-page-head h1 { margin-bottom: var(--h-stack-sm); }

.h-shop-layout { display: grid; gap: var(--h-stack-lg); grid-template-columns: 1fr; align-items: start; }

/* --- Toolbar (sort + result count + mobile filter trigger) ------------- */
.h-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--h-stack-md); flex-wrap: wrap;
    padding-bottom: var(--h-stack-md);
    border-bottom: 1px solid var(--h-surface-container-highest);
    margin-bottom: var(--h-stack-md);
}
.h-toolbar__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.h-select {
    min-height: 44px; padding: 0 38px 0 14px;
    background: var(--h-surface-container-lowest);
    border: 1px solid var(--h-secondary); border-radius: var(--h-radius-md);
    font-family: var(--h-font-body); font-size: var(--h-body-sm-size); color: var(--h-on-surface);
    appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23111' stroke-width='1.5' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.h-select:focus { border-color: var(--h-primary); outline: none; }

/* --- Filter sidebar ---------------------------------------------------- */
.h-filters { display: grid; gap: var(--h-stack-md); }
.h-filter-group { border-bottom: 1px solid var(--h-surface-container-highest); padding-bottom: var(--h-stack-md); }
.h-filter-group:last-of-type { border-bottom: 0; }
.h-filter-group > h3 {
    font-family: var(--h-font-body); font-size: var(--h-label-caps-size);
    font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: 14px;
}
.h-check { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: var(--h-body-sm-size); }
.h-check input { width: 17px; height: 17px; accent-color: var(--h-primary); cursor: pointer; flex: 0 0 auto; }
.h-check span { color: var(--h-on-surface-variant); }
.h-check input:checked + span { color: var(--h-on-surface); font-weight: 500; }

/* Size chips */
.h-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.h-chip {
    min-width: 44px; min-height: 40px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--h-surface-container-low); color: var(--h-on-surface);
    border: 1px solid var(--h-surface-container-highest); border-radius: var(--h-radius-full);
    font-size: var(--h-body-sm-size); cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.h-chip:hover { border-color: var(--h-primary); }
.h-chip.is-active { background: var(--h-primary); color: var(--h-on-primary); border-color: var(--h-primary); }

/* Colour swatches */
.h-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.h-swatch {
    width: 32px; height: 32px; padding: 0; cursor: pointer;
    border-radius: var(--h-radius-full); border: 1px solid var(--h-outline-variant);
    position: relative; transition: transform .18s ease;
}
.h-swatch:hover { transform: scale(1.08); }
.h-swatch.is-active { box-shadow: 0 0 0 2px var(--h-surface), 0 0 0 4px var(--h-primary); }

/* Active filter pills */
.h-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--h-stack-md); }
.h-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px; border-radius: var(--h-radius-full);
    background: var(--h-surface-container-high); font-size: var(--h-body-sm-size);
    border: 0; cursor: pointer;
}
.h-pill:hover { background: var(--h-surface-dim); }

/* --- Promo banner between rows ---------------------------------------- */
.h-promo {
    position: relative; grid-column: 1 / -1;
    min-height: 260px; border-radius: var(--h-radius-xl); overflow: hidden;
    display: grid; place-items: center; text-align: center;
    background-size: cover; background-position: center; padding: var(--h-stack-lg) var(--h-stack-md);
}
.h-promo::before { content: ''; position: absolute; inset: 0; background: rgba(17,17,17,.42); }
.h-promo__inner { position: relative; color: #fff; }
.h-promo__inner h2 { color: #fff; margin-bottom: var(--h-stack-sm); }
.h-promo__inner p { color: rgba(255,255,255,.9); margin: 0 0 var(--h-stack-md); }

/* --- Pagination -------------------------------------------------------- */
.h-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: var(--h-stack-lg); flex-wrap: wrap; }
.h-page-btn {
    min-width: 42px; height: 42px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: var(--h-on-surface);
    border: 1px solid var(--h-surface-container-highest); border-radius: var(--h-radius-md);
    font-size: var(--h-body-sm-size); cursor: pointer; transition: background .18s ease, color .18s ease;
}
.h-page-btn:hover:not(:disabled) { border-color: var(--h-primary); }
.h-page-btn.is-active { background: var(--h-primary); color: var(--h-on-primary); border-color: var(--h-primary); }
.h-page-btn:disabled { opacity: .38; cursor: not-allowed; }

/* --- Mobile filter drawer --------------------------------------------- */
.h-filter-trigger { display: inline-flex; }
.h-filter-panel { display: block; }
.h-filter-backdrop { display: none; }
.h-filter-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; position: sticky; bottom: calc(-1 * var(--h-stack-md)); padding: 12px 0 max(12px, env(safe-area-inset-bottom)); background: var(--h-surface); }

@media (max-width: 1023.98px) {
    .h-filter-panel {
        position: fixed; inset: 0 12% 0 0; z-index: 95;
        background: var(--h-surface); padding: var(--h-stack-md);
        overflow-y: auto; overscroll-behavior: contain; transform: translateX(-100%); transition: transform .3s ease;
    }
    .h-filter-panel.is-open { transform: translateX(0); }
    .h-filter-backdrop { display: block; position: fixed; inset: 0; z-index: 94; background: rgba(17,17,17,.4); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
    .h-filter-backdrop.is-open { opacity: 1; pointer-events: auto; }
    .h-filter-panel__head {
        display: flex; align-items: center; justify-content: space-between;
        margin-bottom: var(--h-stack-md); padding-bottom: var(--h-stack-sm);
        border-bottom: 1px solid var(--h-surface-container-highest);
    }
}

@media (min-width: 1024px) {
    .h-shop-layout { grid-template-columns: 264px minmax(0, 1fr); gap: var(--h-stack-lg); }
    .h-filter-trigger { display: none; }
    .h-filter-panel__head { display: none; }
    .h-filter-panel { position: static; transform: none; padding: 0; background: none; }
    .h-filter-actions { position: static; display: block; padding: 0; }
    #h-apply-filters { display: none; }
    .h-page-head { padding-block: 56px 8px; }
}

/* ==========================================================================
   Product detail page
   ========================================================================== */

.h-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 20px; }
.h-breadcrumb a { color: var(--h-on-surface-variant); }
.h-breadcrumb a:hover { color: var(--h-on-surface); }
.h-breadcrumb i { font-size: 9px; color: var(--h-outline); }
.h-breadcrumb [aria-current] { color: var(--h-on-surface); }

.h-pdp { display: grid; gap: var(--h-stack-lg); grid-template-columns: 1fr; align-items: start; }

/* --- Gallery ----------------------------------------------------------- */
.h-gallery { display: grid; gap: 12px; grid-template-columns: 1fr; }
.h-gallery__main {
    position: relative; aspect-ratio: 3 / 4; overflow: hidden;
    border-radius: var(--h-radius-md); background: var(--zf-stone, #ebe8e3);
}
.h-gallery__zoom { width:100%; height:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
.h-gallery__main img { width: 100%; height: 100%; object-fit: cover; display:block; }
.h-gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.h-gallery__thumbs::-webkit-scrollbar { display: none; }
.h-thumb {
    flex: 0 0 auto; width: 72px; aspect-ratio: 3 / 4; padding: 0; cursor: pointer;
    border-radius: var(--h-radius); overflow: hidden;
    border: 1px solid var(--h-surface-container-highest); background: none;
    transition: border-color .18s ease;
}
.h-thumb img { width: 100%; height: 100%; object-fit: cover; }
.h-thumb.is-active { border-color: var(--h-primary); border-width: 2px; }
.h-gallery__dots { position:absolute; display:flex; gap:7px; left:50%; bottom:14px; transform:translateX(-50%); z-index:2; }
.h-gallery__dot { width:6px; height:6px; padding:0; border:1px solid #fff; border-radius:50%; background:transparent; cursor:pointer; }
.h-gallery__dot.is-active { background:#fff; }

/* --- Purchase panel ---------------------------------------------------- */
.h-pdp__info > * + * { margin-top: var(--h-stack-md); }
.h-pdp__title { margin: 0; }

.h-price-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.h-price { font-size: 24px; font-weight: 500; }
.h-price del { color: var(--h-on-surface-variant); font-size: 18px; font-weight: 400; margin-left: 10px; }
.h-rating { display: inline-flex; align-items: center; gap: 8px; font-size: var(--h-body-sm-size); }
.h-rating .fa-star { color: var(--h-accent); font-size: 13px; }

.h-stock { display: inline-flex; align-items: center; gap: 8px; font-size: var(--h-body-sm-size); }
.h-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #1a7f37; }
.h-stock--low::before { background: var(--h-accent); }
.h-stock--out::before { background: var(--h-error); }

.h-option-label { display: block; margin-bottom: 10px; font-size: var(--h-body-sm-size); }
.h-option-label strong { font-weight: 600; }
.h-option-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

/* Size chip that is out of stock reads as struck through, not merely dimmed. */
.h-chip[disabled] {
    opacity: .45; cursor: not-allowed; text-decoration: line-through;
    background: var(--h-surface-container-low);
}
.h-chip[disabled]:hover { border-color: var(--h-surface-container-highest); }

/* --- Quantity + actions ------------------------------------------------ */
.h-buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.h-qty {
    display: inline-flex; align-items: center; flex: 0 0 auto;
    border: 1px solid var(--h-secondary); border-radius: var(--h-radius-md); overflow: hidden;
}
.h-qty button {
    width: 46px; height: 48px; border: 0; background: none; cursor: pointer;
    font-size: 17px; color: var(--h-on-surface);
}
.h-qty button:hover:not(:disabled) { background: var(--h-surface-container); }
.h-qty button:disabled { opacity: .35; cursor: not-allowed; }
.h-qty input {
    width: 46px; height: 48px; border: 0; text-align: center;
    font-family: var(--h-font-body); font-size: var(--h-body-lg-size);
    background: none; color: var(--h-on-surface); -moz-appearance: textfield;
}
.h-qty input::-webkit-outer-spin-button, .h-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.h-buy-row .h-btn { flex: 1 1 200px; }

.h-btn--whatsapp, .heritage .h-btn--whatsapp { background: transparent; color: var(--zf-black, #111); border-color: var(--zf-black, #111); }
.heritage .h-btn--whatsapp:hover { background: var(--zf-black, #111); color: #fff; }
.h-buy-trust { margin:16px 0 0; color:var(--h-on-surface-variant); font-size:11px; line-height:1.65; letter-spacing:.025em; }
.h-buy-trust span { padding-inline:4px; color:var(--zf-gold, #b28a42); }

.h-btn:disabled { opacity: .45; cursor: not-allowed; }

/* --- Accordions -------------------------------------------------------- */
.h-accordion { border-top: 1px solid var(--h-surface-container-highest); }
.h-accordion:last-of-type { border-bottom: 1px solid var(--h-surface-container-highest); }
.h-accordion__head {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 2px; border: 0; background: none; cursor: pointer; text-align: left;
    font-family: var(--h-font-display); font-size: var(--h-title-sm-size); font-weight: 600;
    color: var(--h-on-surface);
}
.h-accordion__head i { transition: transform .25s ease; font-size: 13px; }
.h-accordion.is-open .h-accordion__head i { transform: rotate(180deg); }
.h-accordion__body { display: none; padding: 0 2px 22px; color: var(--h-on-surface-variant); font-size: var(--h-body-sm-size); line-height: 1.8; }
.h-accordion.is-open .h-accordion__body { display: block; }
.h-accordion__body ul { margin: 0; padding-left: 18px; }
.h-spec { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; }
.h-spec dt { color: var(--h-on-surface-variant); }
.h-spec dd { margin: 0; color: var(--h-on-surface); }

/* --- Sticky mobile buy bar --------------------------------------------- */
.h-buy-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
    display: none; gap: 10px; padding: 10px var(--h-margin-mobile);
    background: var(--h-surface); border-top: 1px solid var(--h-surface-container-highest);
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.h-buy-bar .h-btn { flex: 1; }
.h-buy-bar .h-btn--whatsapp { flex: 0 0 56px; padding: 0; }

/* --- Review section ---------------------------------------------------- */
.h-reviews { margin-top: var(--h-stack-lg); padding:clamp(22px, 4vw, 40px); background:var(--zf-stone, #ebe8e3); border:1px solid var(--h-surface-container-highest); }
.h-reviews > h2 { margin:0 0 18px!important; }
.review-items { margin:0; }
.review-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-summary strong { font-size: 22px; }
.admin-items { border-bottom: 1px solid var(--h-surface-container-highest); padding: 18px 0; }
.admin-items:last-child { border-bottom: 0; }
.admin-items h5 { font-family: var(--h-font-body); font-size: var(--h-body-lg-size); font-weight: 600; margin: 0 0 4px; }
.admin-items h6 { font-family: var(--h-font-body); font-size: var(--h-body-sm-size); font-weight: 600; margin: 8px 0 4px; }
.admin-items p { margin: 6px 0; color: var(--h-on-surface-variant); font-size: var(--h-body-sm-size); }
.admin-items .star, .review-summary .star { display: inline-flex; gap: 3px; color: var(--h-accent); font-size: 13px; }
.review-form { margin-top:24px; padding-top:24px; border-top:1px solid rgba(17,17,17,.16); background:transparent; border-radius:0; box-shadow:none; }
.review-form .form-clt, .review-form .form-clt-big { margin-bottom: 14px; }
.review-form input[type=text], .review-form textarea {
    width: 100%; padding: 13px 16px; background: var(--h-surface-container-low);
    border: 1px solid var(--h-secondary); border-radius: var(--h-radius-md);
    font-family: var(--h-font-body); font-size: var(--h-body-sm-size); color: var(--h-on-surface);
}
.review-form textarea { min-height: 130px; resize: vertical; }
.review-form input:focus, .review-form textarea:focus { border-color: var(--h-primary); outline: none; }
.posh-rating-input { display: inline-flex; gap: 4px; }
.posh-star { border: 0; background: none; cursor: pointer; color: var(--h-accent); font-size: 19px; padding: 0 2px; }
.rate-now { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

@media (max-width: 1023.98px) {
    .h-buy-bar { display:grid; grid-template-columns:1fr; gap:8px; }
    .h-buy-bar .h-btn--whatsapp { flex:auto; min-height:44px; }
    .h-buy-bar .h-buy-trust { margin:0; text-align:center; font-size:10px; }
    .h-has-buy-bar { padding-bottom: 190px; }
    .h-pdp__desktop-actions { display: none; }
}

@media (min-width: 1024px) {
    .h-pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--h-stack-lg); }
    .h-gallery { grid-template-columns: 84px minmax(0, 1fr); align-items: start; }
    .h-gallery__thumbs { flex-direction: column; overflow-x: visible; max-height: 640px; overflow-y: auto; }
    .h-thumb { width: 84px; }
    .h-gallery__main { order: 2; }
    .h-gallery__dots { display:none; }
    .h-pdp__info { position: sticky; top: 96px; }
}

.h-gallery-modal__panel { width:min(94vw, 860px); padding:0; background:var(--zf-stone, #ebe8e3); overflow:hidden; }
.h-gallery-modal__panel img { display:block; width:100%; max-height:86vh; object-fit:contain; }
[data-pdp-related] .h-card__media { background:var(--zf-stone, #ebe8e3); }
[data-pdp-related] .h-card__media img { object-fit:contain; }

/* ==========================================================================
   Cart, checkout, wishlist, account
   ========================================================================== */

.h-two-col { display: grid; gap: var(--h-stack-lg); grid-template-columns: 1fr; align-items: start; }

/* --- Line items -------------------------------------------------------- */
.h-line {
    display: grid; gap: 16px; align-items: start;
    grid-template-columns: 88px minmax(0, 1fr);
    background: var(--h-surface-container-lowest);
    border-radius: var(--h-radius-md); padding: 16px; margin-bottom: 12px;
    position: relative;
}
.h-line__media { width: 88px; aspect-ratio: 3 / 4; border-radius: var(--h-radius); overflow: hidden; background: var(--h-surface-container-high); }
.h-line__media img { width: 100%; height: 100%; object-fit: cover; }
.h-line__name { font-family: var(--h-font-body); font-size: var(--h-body-lg-size); font-weight: 600; margin: 0 0 4px; padding-right: 28px; }
.h-line__meta { color: var(--h-on-surface-variant); font-size: var(--h-body-sm-size); margin: 0 0 12px; }
.h-line__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.h-line__total { font-weight: 600; }
.h-line__remove {
    position: absolute; top: 14px; right: 14px;
    width: 30px; height: 30px; border: 0; background: none; cursor: pointer;
    color: var(--h-on-surface-variant); border-radius: var(--h-radius-full);
}
.h-line__remove:hover { background: var(--h-surface-container-high); color: var(--h-on-surface); }

/* --- Summary panel ----------------------------------------------------- */
.h-summary {
    background: var(--h-surface-container-lowest);
    border-radius: var(--h-radius-xl); padding: var(--h-stack-md);
    box-shadow: var(--h-shadow-ambient);
}
.h-summary h2 { margin-bottom: var(--h-stack-md); }
.h-summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: var(--h-body-sm-size); }
.h-summary__row--total {
    border-top: 1px solid var(--h-surface-container-highest);
    margin-top: 12px; padding-top: 16px;
    font-size: var(--h-body-lg-size); font-weight: 600;
}
.h-summary__row--total strong { font-family: var(--h-font-display); font-size: 24px; }
.h-summary__row--discount span:last-child { color: #1a7f37; }
.h-summary hr { border: 0; border-top: 1px solid var(--h-surface-container-highest); margin: 16px 0; }

.h-inline-form { display: flex; gap: 8px; }
.h-inline-form .h-input { flex: 1 1 auto; min-width: 0; }
.h-inline-form .h-btn { flex: 0 0 auto; padding: 0 20px; }

.h-note { font-size: var(--h-body-sm-size); color: var(--h-on-surface-variant); margin: 8px 0 0; }
.h-note--error { color: var(--h-error); }
.h-note--ok { color: #1a7f37; }

/* Free-shipping progress */
.h-progress { height: 6px; border-radius: var(--h-radius-full); background: var(--h-surface-container-high); overflow: hidden; margin: 10px 0 6px; }
.h-progress__fill { height: 100%; background: var(--h-primary); transition: width .4s ease; }

/* --- Empty states ------------------------------------------------------ */
.h-empty { text-align: center; padding: 64px 20px; }
.h-empty i { font-size: 40px; color: var(--h-outline-variant); margin-bottom: 20px; display: block; }
.h-empty h2 { margin-bottom: 10px; }
.h-empty p { color: var(--h-on-surface-variant); margin: 0 0 24px; }

/* --- Checkout ---------------------------------------------------------- */
.h-checkout-steps { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-block: 20px; }
.h-checkout-steps span { color: var(--h-on-surface-variant); }
.h-checkout-steps .is-current { color: var(--h-on-surface); font-weight: 600; }

.h-fieldset { border: 0; padding: 0; margin: 0 0 var(--h-stack-lg); }
.h-fieldset legend {
    font-family: var(--h-font-display); font-size: var(--h-title-sm-size); font-weight: 600;
    padding: 0 0 12px; margin-bottom: 16px; width: 100%;
    border-bottom: 1px solid var(--h-surface-container-highest);
}
.h-field-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.h-field { display: block; }
.h-field > span { display: block; margin-bottom: 6px; font-size: var(--h-body-sm-size); color: var(--h-on-surface-variant); }
.h-field .h-input, .h-field .h-select, .h-field textarea { width: 100%; }
.h-field textarea {
    min-height: 96px; padding: 13px 16px; resize: vertical;
    background: var(--h-surface-container-lowest);
    border: 1px solid var(--h-secondary); border-radius: var(--h-radius-md);
    font-family: var(--h-font-body); font-size: var(--h-body-sm-size); color: var(--h-on-surface);
}
.h-field textarea:focus { border-color: var(--h-primary); outline: none; }
.h-input.is-invalid, .h-select.is-invalid { border-color: var(--h-error); }
.h-field-error { display: block; margin-top: 5px; font-size: 12px; color: var(--h-error); }

/* Radio option cards (delivery / payment) */
.h-option {
    display: flex; align-items: center; gap: 14px;
    padding: 16px; cursor: pointer;
    border: 1px solid var(--h-surface-container-highest);
    background: var(--h-surface-container-lowest);
    margin-bottom: -1px;
}
.h-option:first-of-type { border-radius: var(--h-radius-md) var(--h-radius-md) 0 0; }
.h-option:last-of-type { border-radius: 0 0 var(--h-radius-md) var(--h-radius-md); margin-bottom: 0; }
.h-option:only-of-type { border-radius: var(--h-radius-md); }
.h-option input { width: 18px; height: 18px; accent-color: var(--h-primary); cursor: pointer; flex: 0 0 auto; }
.h-option__body { flex: 1; min-width: 0; }
.h-option__body strong { display: block; font-size: var(--h-body-lg-size); }
.h-option__body small { color: var(--h-on-surface-variant); }
.h-option:has(input:checked) { border-color: var(--h-primary); position: relative; z-index: 1; }

/* Compact summary line item */
.h-mini { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 0; }
.h-mini__media { position: relative; width: 56px; aspect-ratio: 3/4; border-radius: var(--h-radius); overflow: hidden; background: var(--h-surface-container-high); }
.h-mini__media img { width: 100%; height: 100%; object-fit: cover; }
.h-mini__qty {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
    border-radius: var(--h-radius-full); background: var(--h-primary); color: var(--h-on-primary);
    font-size: 11px; line-height: 20px; text-align: center; padding: 0 5px;
}
.h-mini__name { font-size: var(--h-body-sm-size); font-weight: 600; margin: 0; }
.h-mini__meta { font-size: 12px; color: var(--h-on-surface-variant); margin: 2px 0 0; }

.h-trust { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 16px; font-size: 12px; color: var(--h-on-surface-variant); }

/* --- Account ----------------------------------------------------------- */
.h-account { display: grid; gap: var(--h-stack-lg); grid-template-columns: 1fr; align-items: start; }
.h-account-nav { display: grid; gap: 2px; }
.h-account-nav a {
    display: flex; align-items: center; gap: 12px; padding: 13px 14px;
    border-radius: var(--h-radius-md); color: var(--h-on-surface-variant); font-size: var(--h-body-sm-size);
}
.h-account-nav a:hover { background: var(--h-surface-container); color: var(--h-on-surface); }
.h-account-nav a.is-active { background: var(--h-surface-container-high); color: var(--h-on-surface); font-weight: 600; }
.h-account-nav i { width: 18px; text-align: center; }

.h-stat-grid { display: grid; gap: var(--h-gutter); grid-template-columns: 1fr; margin-bottom: var(--h-stack-lg); }
.h-stat {
    background: var(--h-surface-container-lowest); border-radius: var(--h-radius-md);
    padding: 20px; box-shadow: var(--h-shadow-ambient);
}
.h-stat__label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.h-stat__value { font-family: var(--h-font-display); font-size: 30px; font-weight: 700; line-height: 1; }
.h-stat__sub { color: var(--h-on-surface-variant); font-size: var(--h-body-sm-size); margin-top: 6px; }

.h-order-row {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    background: var(--h-surface-container-lowest); border-radius: var(--h-radius-md);
    padding: 16px; margin-bottom: 12px; box-shadow: var(--h-shadow-ambient);
}
.h-order-row__main { flex: 1 1 220px; min-width: 0; }
.h-order-row__num { font-size: 12px; letter-spacing: .08em; color: var(--h-on-surface-variant); text-transform: uppercase; }
.h-order-row__title { font-family: var(--h-font-body); font-size: var(--h-body-lg-size); font-weight: 600; margin: 4px 0; }
.h-order-row__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.h-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: var(--h-radius-full);
    background: var(--h-surface-container-high); font-size: 12px; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.h-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--h-outline); }
.h-badge--active::before { background: #1a7f37; }
.h-badge--transit::before { background: var(--h-accent); }
.h-badge--cancelled::before { background: var(--h-error); }

.h-card-panel {
    background: var(--h-surface-container-lowest); border-radius: var(--h-radius-xl);
    padding: var(--h-stack-md); box-shadow: var(--h-shadow-ambient); margin-bottom: var(--h-stack-md);
}
.h-card-panel h2, .h-card-panel h3 { margin-bottom: var(--h-stack-md); }

.h-alert { padding: 14px 16px; border-radius: var(--h-radius-md); margin-bottom: var(--h-stack-md); font-size: var(--h-body-sm-size); }
.h-alert--ok { background: #e8f5ec; color: #14532d; }
.h-alert--error { background: var(--h-surface-container-high); color: var(--h-error); }

.h-table-wrap { overflow-x: auto; }
.h-table { width: 100%; border-collapse: collapse; font-size: var(--h-body-sm-size); }
.h-table th, .h-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--h-surface-container-highest); white-space: nowrap; }
.h-table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--h-on-surface-variant); font-weight: 600; }
.h-table tr:last-child td { border-bottom: 0; }

.h-address {
    border: 1px solid var(--h-surface-container-highest); border-radius: var(--h-radius-md);
    padding: 16px; margin-bottom: 12px; font-size: var(--h-body-sm-size); color: var(--h-on-surface-variant);
}
.h-address strong { color: var(--h-on-surface); display: block; margin-bottom: 6px; }

@media (min-width: 640px) {
    .h-field-grid--2 { grid-template-columns: 1fr 1fr; }
    .h-stat-grid { grid-template-columns: repeat(3, 1fr); }
    .h-line { grid-template-columns: 110px minmax(0, 1fr); }
    .h-line__media { width: 110px; }
}

@media (min-width: 1024px) {
    .h-two-col { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
    .h-two-col > aside { position: sticky; top: 96px; }
    .h-account { grid-template-columns: 232px minmax(0, 1fr); }
    .h-account > nav { position: sticky; top: 96px; }
}

/* ==========================================================================
   Auth, content and utility pages
   ========================================================================== */

.h-auth { max-width: 460px; margin-inline: auto; padding-block: var(--h-stack-lg); }
.h-auth__card { background: var(--h-surface-container-lowest); border-radius: var(--h-radius-xl); padding: var(--h-stack-md); box-shadow: var(--h-shadow-ambient); }
.h-auth h1 { margin-bottom: var(--h-stack-sm); }
.h-auth .h-field + .h-field { margin-top: 14px; }
.h-auth__foot { text-align: center; margin-top: var(--h-stack-md); font-size: var(--h-body-sm-size); color: var(--h-on-surface-variant); }
.h-password-wrap { position: relative; }
.h-password-wrap .h-input { padding-right: 46px; }
.h-password-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: 0; background: none; cursor: pointer; color: var(--h-on-surface-variant);
}

/* Long-form editorial content (about, privacy, FAQ answers) */
.h-prose { max-width: 72ch; }
.h-prose h2 { margin: var(--h-stack-lg) 0 var(--h-stack-sm); }
.h-prose h3 { font-family: var(--h-font-body); font-size: var(--h-title-sm-size); font-weight: 600; margin: var(--h-stack-md) 0 var(--h-stack-sm); }
.h-prose p, .h-prose li { color: var(--h-on-surface-variant); line-height: 1.85; }
.h-prose p { margin: 0 0 var(--h-stack-sm); }
.h-prose ul, .h-prose ol { margin: 0 0 var(--h-stack-sm); padding-left: 20px; }
.h-prose li { margin-bottom: 6px; }
.h-prose a { text-decoration: underline; text-underline-offset: 3px; }

/* FAQ accordion reuses .h-accordion; this is the page shell */
.h-faq { max-width: 860px; margin-inline: auto; }

/* Order tracking timeline */
.h-timeline { display: grid; gap: 0; margin: var(--h-stack-md) 0 var(--h-stack-lg); }
.h-timeline__step { position: relative; display: flex; gap: 16px; padding-bottom: 26px; }
.h-timeline__step:last-child { padding-bottom: 0; }
.h-timeline__step::before {
    content: ''; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px;
    background: var(--h-surface-container-highest);
}
.h-timeline__step:last-child::before { display: none; }
.h-timeline__dot {
    flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid var(--h-surface-container-highest); background: var(--h-surface-container-lowest);
    display: grid; place-items: center; font-size: 11px; color: transparent; z-index: 1;
}
.h-timeline__step.is-done .h-timeline__dot,
.h-timeline__step.is-current .h-timeline__dot { background: var(--h-primary); border-color: var(--h-primary); color: #fff; }
.h-timeline__step.is-done::before { background: var(--h-primary); }
.h-timeline__label { font-size: var(--h-body-sm-size); color: var(--h-on-surface-variant); padding-top: 3px; }
.h-timeline__step.is-current .h-timeline__label { color: var(--h-on-surface); font-weight: 600; }

/* Compare table */
.h-compare-wrap { overflow-x: auto; }
.h-compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.h-compare td, .h-compare th { padding: 16px 14px; border-bottom: 1px solid var(--h-surface-container-highest); vertical-align: top; text-align: left; font-size: var(--h-body-sm-size); }
.h-compare .row-label { width: 150px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--h-on-surface-variant); font-weight: 600; }

/* Centred utility pages (404, order received) */
.h-centre { max-width: 720px; margin-inline: auto; text-align: center; padding-block: var(--h-stack-lg); }
.h-centre .h-display-lg { margin-bottom: var(--h-stack-sm); }
.h-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: var(--h-stack-md); }

/* Order confirmation */
.h-receipt-head { text-align: center; margin-bottom: var(--h-stack-lg); }
.h-receipt-head i { font-size: 44px; color: #1a7f37; margin-bottom: 16px; display: block; }
.h-info-grid { display: grid; gap: var(--h-gutter); grid-template-columns: repeat(2, 1fr); margin-bottom: var(--h-stack-md); }
.h-info-grid > div > span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--h-on-surface-variant); margin-bottom: 4px; }

@media (min-width: 640px) {
    .h-info-grid { grid-template-columns: repeat(4, 1fr); }
    .h-auth__card { padding: var(--h-stack-lg); }
}

/* ==========================================================================
   Product card + shop toolbar refinements
   Cards in a row must end with their CTAs aligned regardless of whether a
   rating line is present, and the CTA label must never wrap.
   ========================================================================== */

.h-grid > * { min-width: 0; }

.h-card { display: flex; flex-direction: column; height: 100%; }
.h-card__body { flex: 1; display: flex; flex-direction: column; }

/* Price and its struck-through original stay on one line and shrink together. */
.h-card__price {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
    margin: 0 0 6px;
}
.h-card__price del { margin-left: 0; font-size: .875em; }

/* Rating sits directly under the price; the CTA is pushed to the card foot so
   cards with and without a rating still line up across the row. */
.h-card__body > .h-body-sm { margin-bottom: 6px; }
.h-card__cta { margin-top: auto; padding-top: 10px; }

/* "Add to Cart" must stay on a single line in a 2-up mobile grid. */
.h-card__cta .h-btn {
    white-space: nowrap; padding-inline: 12px;
    font-size: .72rem; letter-spacing: .06em; min-height: 44px;
}

@media (min-width: 480px) {
    .h-card__cta .h-btn { font-size: .78rem; letter-spacing: .08em; padding-inline: 18px; }
}
@media (min-width: 1024px) {
    .h-card__cta .h-btn { font-size: var(--h-body-sm-size); letter-spacing: .1em; }
}

/* --- Shop toolbar ------------------------------------------------------- */
/* Below 640px the filter trigger and sort control share a row, with the result
   count on its own line underneath, instead of wrapping into an awkward stack. */
@media (max-width: 639.98px) {
    .h-hero__media { min-height: clamp(540px, 70svh, 680px); background-position: 58% center; padding: 80px 20px 72px; }
    .h-hero__media--oxford, .h-hero__media--linen { background-position: center; }
    .h-hero__media::before { background: linear-gradient(0deg, rgba(10,10,9,.84) 0%, rgba(10,10,9,.43) 58%, rgba(10,10,9,.08) 100%); }
    .h-hero__content .h-display-lg { font-size: 38px; line-height: 1.06; max-width: 9ch; }
    .h-hero__sub { font-size: 14px; max-width: 34ch; margin: 14px 0 22px; }
    .h-hero__actions { gap: 12px 18px; }
    .h-hero__actions .h-btn { min-height: 46px; padding-inline: 20px; }
    .h-hero__secondary { font-size: 11px; }
    .h-hero__nav { display: none; }
    .h-hero .swiper-pagination { bottom: 20px !important; }
    .h-toolbar {
        display: grid; grid-template-columns: auto minmax(0, 1fr);
        align-items: center; gap: 12px 10px;
    }
    .h-toolbar .h-filter-trigger { grid-column: 1; margin: 0; }
    .h-toolbar__right { grid-column: 2; justify-self: end; margin-left: 0; gap: 8px; min-width: 0; }
    .h-toolbar__right label { display: none; }        /* the select is self-evident */
    .h-toolbar__right .h-select { max-width: 100%; }
    .h-toolbar [data-shop-count] { grid-column: 1 / -1; grid-row: 2; }
}

/* ==========================================================================
   Mobile header fit
   Four icon buttons plus the hamburger and brand overflowed 400px viewports,
   pushing the cart button off-screen. Wishlist and compare already live in the
   bottom nav on mobile, so the header keeps only account and cart.
   ========================================================================== */

.h-header__inner { min-width: 0; }
.h-brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Carousels must clip their off-screen slides so they never extend the page. */
.h-hero, .h-hero__swiper, .h-carousel { overflow: hidden; }

@media (max-width: 639.98px) {
    .h-cat-rail { gap: 12px; }
    .h-cat__thumb { aspect-ratio: 3 / 4; margin-bottom: 9px; }
    .h-cat__name { font-size: 15px; line-height: 1.25; }
    .h-cat__count { font-size: 10px; }
    .h-editorial { padding-block: 44px; }
    .h-editorial__media { min-height: 320px; }
    .h-values { padding-block: 32px; }
    .h-values__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        padding-inline: var(--h-margin-mobile);
    }
    .h-values__grid div {
        min-width: 0;
        padding: 20px 16px 20px 0;
        gap: 4px;
    }
    .h-values__grid div:nth-child(even) {
        padding-left: 16px;
        padding-right: 0;
        border-left: 1px solid var(--h-surface-container-highest);
    }
    .h-values__grid div:nth-child(-n+2) {
        border-bottom: 1px solid var(--h-surface-container-highest);
    }
    .h-values__grid i { font-size: 17px; margin-bottom: 6px; }
    .h-values__grid strong { font-size: 15px; line-height: 1.25; }
    .h-values__grid span { font-size: 11px; line-height: 1.45; }
    .h-footer { padding-top: 32px; }
    .h-footer__grid { gap: 28px; padding-bottom: 28px; }
    .h-footer__grid > div:nth-child(2), .h-footer__grid > div:nth-child(3) { display: inline-block; width: 48%; vertical-align: top; }
    .h-footer__grid { display: block; }
    .h-footer__grid > div:first-child { margin-bottom: 28px; }
    .h-footer ul a { padding: 7px 0; }
    .h-footer__bottom { padding-block: 18px; font-size: 12px; }
    .h-header__inner { gap: 8px; min-height: 60px; }
    .h-brand { font-size: 18px; letter-spacing: .04em; }
    .h-header__actions { gap: 0; }
    .h-icon-btn { width: 44px; height: 44px; }
    .h-icon-btn .number { top: 2px; right: 0; }
    /* Keep Compare in the header: it is a primary destination and must not
       disappear just because the compact bottom shortcut bar is present. */
    .h-header__actions a[href="wishlist.php"] { display: none; }
    .h-announce { padding-inline: 12px; font-size: 11px; }
}

@media (max-width: 767.98px) {
    .h-input, .h-select, .heritage textarea, .heritage select { font-size: 16px; }
    .h-check { min-height: 44px; padding-block: 9px; }
    .h-check input { width: 20px; height: 20px; }
    .h-chip, .h-swatch, .h-page-btn { min-width: 44px; min-height: 44px; }
}

@media (max-width: 380px) {
    .h-brand { font-size: 16px; }
    .h-icon-btn { width: 34px; height: 34px; }
}

/* ==========================================================================
   Toast
   ========================================================================== */
.posh-toast {
    position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 12px);
    z-index: 99999; max-width: min(440px, calc(100vw - 32px));
    background: var(--h-inverse-surface); color: var(--h-inverse-on-surface);
    padding: 14px 20px; border-radius: var(--h-radius-md);
    font-family: var(--h-font-body); font-size: var(--h-body-sm-size); line-height: 1.45;
    box-shadow: 0 12px 34px rgba(17,17,17,.22);
    opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
}
.posh-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.posh-toast--error { background: var(--h-error); color: #fff; }

@media (min-width: 1024px) {
    .posh-toast { left: auto; right: 28px; bottom: 28px; transform: translate(0, 12px); }
    .posh-toast.is-visible { transform: translate(0, 0); }
}

/* ==========================================================================
   Mobile UX corrections
   ========================================================================== */

/* --- iOS focus zoom ------------------------------------------------------
   Safari on iOS zooms the viewport whenever a focused field's font-size is
   below 16px, which throws the user out of the layout mid-form. Every text
   control is therefore 16px on small screens (the visual size barely changes
   because the surrounding type is already small).
   ------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .heritage input:not([type=checkbox]):not([type=radio]),
    .heritage select,
    .heritage textarea,
    .admin-body .form-control,
    .admin-body .form-select,
    .admin-body input:not([type=checkbox]):not([type=radio]),
    .admin-body textarea { font-size: 16px; }

    .heritage .h-input, .heritage .h-select { min-height: 48px; }
    .heritage .h-field textarea { min-height: 110px; }
}

/* --- Tap targets ---------------------------------------------------------
   Interactive controls need ~44px of touch area (Apple HIG / WCAG 2.5.5).
   Where the visual element must stay small, the hit area is extended with a
   pseudo-element instead of inflating the design.
   ------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    .h-icon-btn { width: 44px; height: 44px; }
    .h-card__wish { width: 44px; height: 44px; }
    .h-line__remove { width: 40px; height: 40px; }
    .h-chip { min-height: 44px; min-width: 46px; }
    .h-swatch { width: 38px; height: 38px; }
    .h-qty button { width: 48px; height: 48px; }
    .h-thumb { width: 64px; }

    /* Footer and list links: small text, generous touch area. */
    .h-footer ul { gap: 4px; }
    .h-footer ul a { display: inline-block; padding: 11px 0; }
    .h-account-nav a { padding: 14px; }

    /* Text CTAs ("View All", "Remove", …) get an invisible 44px-tall hit area. */
    .h-link-underline { position: relative; display: inline-block; padding-block: 6px; }
    .h-link-underline::before {
        content: ''; position: absolute; left: 0; right: 0; top: 50%;
        transform: translateY(-50%); height: 44px;
    }

    /* Carousel bullets are 8px dots; extend the touch area around them. */
    .h-hero .swiper-pagination-bullet {
        width: 9px; height: 9px; position: relative;
    }
    .h-hero .swiper-pagination-bullet::before {
        content: ''; position: absolute; left: 50%; top: 50%;
        transform: translate(-50%, -50%); width: 40px; height: 40px;
    }
    .h-hero .swiper-pagination { bottom: 18px; }
}

/* Below 360px the header still needs to fit, so icons step down slightly but
   stay above the 40px practical minimum. */
@media (max-width: 359.98px) {
    .h-icon-btn { width: 40px; height: 40px; }
}

/* --- Legibility ---------------------------------------------------------- */
.h-announce { font-size: 12px; }
@media (max-width: 639.98px) {
    .h-announce { min-height: 34px; font-size: 11.5px; letter-spacing: .045em; }
    .h-hero__secondary { min-height: 44px; display: inline-flex; align-items: center; }
    .h-bottom-nav a { font-size: 11px; padding: 9px 4px 7px; }
    .h-bottom-nav i { font-size: 18px; }
}

/* Toast must clear the fixed bottom bars on mobile. */
@media (max-width: 1023.98px) {
    .posh-toast { bottom: 84px; }
    .h-has-buy-bar .posh-toast { bottom: 150px; }
}

/* Remaining touch targets: filter rows, swatches, social and drawer controls. */
@media (max-width: 1023.98px) {
    .h-check { min-height: 44px; padding: 10px 0; gap: 12px; }
    .h-check input { width: 20px; height: 20px; }
    .h-swatches .h-swatch, [data-facet="colors"] .h-swatch { width: 44px; height: 44px; }
    .h-social a { width: 44px; height: 44px; }
    .posh-account-close { width: 44px; height: 44px; display: grid; place-items: center; }
    .h-accordion__head { padding-block: 18px; }
    .h-toolbar__right .h-select { min-height: 44px; }
}

@media (max-width: 1023.98px) {
    /* Footer links: make the whole row tappable rather than just the word. */
    .h-footer ul a { display: block; width: 100%; }
    /* Password reveal control. */
    .h-password-toggle { width: 44px; height: 44px; }
    /* Product card titles are the primary text CTA on a card. */
    .h-card__name a { display: inline-block; padding-block: 4px; }
}

/* Compare table cells */
.h-compare-cell { min-width: 180px; }
.h-compare-cell .h-card__media { aspect-ratio: 3 / 4; }
.h-compare .h-pill { margin-bottom: 4px; }

/* Card overlay actions (wishlist + compare) */
.h-card__actions {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    display: grid; gap: 6px;
}
.h-card__actions .h-card__wish { position: static; }
.h-card__wish.active { background: var(--h-primary); color: var(--h-on-primary); }
html:not(.compare-enabled) [data-server-compare] { display: none !important; }

/* Contact details list: label above a comfortably tappable value. */
.h-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.h-contact-list li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--h-surface-container-highest); }
.h-contact-list li:last-child { border-bottom: 0; }
.h-contact-list a { display: inline-block; padding-block: 6px; min-height: 32px; }

/* Card titles need a comfortable target on touch devices. */
@media (max-width: 1023.98px) {
    .h-card__name a { padding-block: 6px; min-height: 40px; }
    .h-contact-list a { min-height: 40px; padding-block: 9px; }
}

/* Category rail item count */
.h-cat__count { display: block; margin-top: 2px; font-size: 11px; color: var(--h-on-surface-variant); }

/* Header actions remain available on every screen size. The old mobile rule
   hid wishlist/compare after the bottom bar was removed, leaving no way to
   reach those features. */
@media (max-width: 1023.98px) {
    .h-nav { display:none !important; }
    .h-menu-toggle { display:inline-flex !important; flex:0 0 auto; }
    .h-header__inner { gap:4px; min-height:58px; }
    .h-brand--logo { flex:0 1 118px; width:118px; max-width:34vw; height:38px; margin-right:auto; }
    .h-header__actions { display:flex !important; flex:0 0 auto; gap:0; margin-left:0; }
    .h-header__actions a[href="wishlist.php"],
    .h-header__actions a[href="compare.php"] { display:inline-flex !important; }
    .h-header__actions .h-icon-btn { width:36px; height:40px; flex:0 0 36px; }
    .h-header__actions .h-icon-btn .number { top:3px; right:-1px; min-width:15px; height:15px; padding:0 3px; line-height:15px; font-size:9px; }
}
@media (max-width: 359.98px) {
    .h-brand--logo { width:88px; flex-basis:88px; }
    .h-header__actions .h-icon-btn { width:32px; flex-basis:32px; }
}

/* Keep cart line items and the summary inside the viewport at compact sizes. */
@media (max-width: 639.98px) {
    [data-cart-root] { min-width:0; }
    .h-line { grid-template-columns:76px minmax(0, 1fr); gap:12px; padding:12px; }
    .h-line__media { width:76px; }
    .h-line__name { font-size:15px; line-height:1.35; padding-right:24px; overflow-wrap:anywhere; }
    .h-line__meta { font-size:12px; margin-bottom:10px; overflow-wrap:anywhere; }
    .h-line__foot { align-items:flex-start; gap:8px; }
    .h-line__total { padding-top:10px; font-size:13px; white-space:nowrap; }
    .h-line .h-qty button, .h-line .h-qty input { width:34px; height:38px; }
    .h-summary { padding:20px 16px; }
    .h-summary__row { gap:10px; font-size:13px; }
    .h-summary__row--total strong { font-size:21px; }
    .h-inline-form { align-items:stretch; }
    .h-inline-form .h-btn { padding-inline:14px; min-width:76px; }
}

/* A calm, consistent state while the collection is being fetched or filtered. */
[data-shop-grid][aria-busy="true"] { min-height:360px; }
.h-shop-skeleton { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; width:100%; }
.h-shop-skeleton__card { aspect-ratio:3/4; background:linear-gradient(100deg,var(--zf-stone,#ebe8e3) 30%,#f7f6f3 45%,var(--zf-stone,#ebe8e3) 60%); background-size:200% 100%; animation:zf-skeleton 1.15s ease-in-out infinite; }
@keyframes zf-skeleton { to { background-position:-200% 0; } }
@media (min-width:640px) { .h-shop-skeleton { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (min-width:1024px) { .h-shop-skeleton { grid-template-columns:repeat(4,minmax(0,1fr)); } }
