/* ==========================================================================
   MM Sons storefront
   Suiting navy + shirting white, brass accent from the logo, sherwani maroon for sale.
   Bodoni Moda for display, Figtree for everything people read and tap.
   Signature details: pinked-edge fabric swatches (categories) and a tape-measure
   progress bar (free delivery).
   ========================================================================== */

@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/bodoni-moda-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/bodoni-moda-latin-600-normal.woff2") format("woff2"); }

:root {
    --navy: #1b2433;
    --navy-2: #2b3648;
    --text: #2a2f38;
    --muted: #646b78;
    --line: #e2e4e8;
    --line-2: #cfd3da;
    --paper: #ffffff;
    --shirting: #f7f7f5;
    --lining: #eef0f2;
    --brass: #a97c2f;
    --brass-soft: #f4ead6;
    --tape: #f1dfa8;
    --maroon: #7a1f2b;
    --success: #1e6b47;
    --danger: #b3261e;
    --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
    --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --wrap: 1320px;
    --gutter: clamp(16px, 4vw, 40px);
    --r-sm: 6px;
    --r: 10px;
    --r-lg: 16px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 0px;
    --shadow-pop: 0 18px 50px rgba(27, 36, 51, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--brass-soft); }
.icon { width: 20px; height: 20px; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 8px; }
[hidden] { display: none !important; }

.wrap, .container { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(940px + 2 * var(--gutter)); }

/* Headings used across content pages */
.page-title, .section-title, .block__title, .shop-head__title {
    font-family: var(--display);
    font-weight: 500;
    color: var(--navy);
    letter-spacing: -.01em;
}
.page-title { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 24px; }
.page-title__count { font-family: var(--sans); font-size: 16px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.section-title { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; }
.hero-title { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; color: #fff; }
.gold-text { color: var(--navy); }

/* --------------------------------------------------------------------------
   Buttons, links, form controls
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 10px 22px;
    border: 1.5px solid transparent; border-radius: var(--r-sm);
    font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
    white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary, .btn--dark { background: var(--navy); color: #fff; }
.btn--primary:hover, .btn--dark:hover { background: var(--navy-2); }
.btn--outline, .btn:not([class*="btn--"]) { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover, .btn:not([class*="btn--"]):hover { background: var(--navy); color: #fff; }
.btn--ghost { color: var(--navy); background: var(--lining); }
.btn--ghost:hover { background: var(--line); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--brass-soft); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 16px; }
.btn--md { min-height: 50px; }
.btn--sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .5; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn--outline.is-loading::after { border-color: var(--navy); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.text-link, .link-underline, .more {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--navy); font-weight: 600; font-size: 15px;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
    text-decoration-color: var(--line-2);
    transition: text-decoration-color .2s;
}
.text-link:hover, .link-underline:hover, .more:hover { text-decoration-color: var(--navy); }
.text-link .icon { width: 18px; height: 18px; }
.text-link--muted { color: var(--muted); font-weight: 500; }

.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--navy); transition: background-color .2s; }
.icon-btn:hover { background: var(--lining); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field .req { color: var(--maroon); }
.input, .select, .textarea {
    width: 100%; min-height: 50px; padding: 12px 14px;
    border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff;
    font-size: 16px; color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #9aa0aa; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27, 36, 51, .12); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; }
.field-help { font-size: 14px; color: var(--muted); margin: -4px 0 0; }
.select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%231b2433' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; padding-right: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span-2, .span-2 { grid-column: 1 / -1; }

.notice { padding: 14px 16px; border-radius: var(--r-sm); background: var(--brass-soft); color: #5a4317; margin-bottom: 20px; font-size: 15px; }
.notice--error { background: #fbeceb; color: var(--danger); }
.notice--success { background: #e8f3ed; color: var(--success); }
.notice ul { padding-left: 18px; list-style: disc; }

.flash { padding: 12px 0; font-size: 15px; text-align: center; }
.flash--success { background: #e8f3ed; color: var(--success); }
.flash--error { background: #fbeceb; color: var(--danger); }
.flash--info { background: var(--brass-soft); color: #5a4317; }

.tag { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 12.5px; font-weight: 600; line-height: 1.4; background: #fff; color: var(--navy); }
.tag--sale { background: var(--maroon); color: #fff; }
.tag--new { background: var(--navy); color: #fff; }
.tag--out { background: #fff; color: var(--muted); border: 1px solid var(--line-2); }

/* Prices */
.price { font-weight: 600; color: var(--navy); }
.price--sale ins { text-decoration: none; color: var(--maroon); }
.price--sale del { color: var(--muted); font-weight: 400; margin-right: 6px; font-size: .9em; }
.price--na { color: var(--muted); font-weight: 500; }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; height: 54px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff; }
.qty button { width: 44px; height: 100%; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); }
.qty button:hover { background: var(--lining); }
.qty button .icon { width: 16px; height: 16px; }
.qty input { width: 44px; height: 100%; border: 0; text-align: center; font-size: 16px; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty input:focus { outline: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 38px; }
.qty--sm button { width: 34px; }
.qty--sm input { width: 34px; font-size: 15px; }

/* --------------------------------------------------------------------------
   Announcement + header
   -------------------------------------------------------------------------- */
.announce { background: var(--navy); color: #e9ecf1; font-size: 13.5px; }
.announce__list { display: flex; justify-content: center; gap: 48px; padding: 9px var(--gutter); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; }
.announce__item { white-space: nowrap; }
.announce__item + .announce__item::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--brass); margin: 0 24px 0 -28px; vertical-align: middle; }

.hdr { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.hdr.is-scrolled { box-shadow: 0 6px 24px rgba(27, 36, 51, .07); }
.hdr__bar { display: grid; grid-template-columns: auto minmax(240px, 620px) auto; align-items: center; justify-content: space-between; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.hdr__burger { display: none; }
.hdr__logo img { width: 196px; height: auto; }
.hdr__actions { display: flex; align-items: center; gap: 4px; }
.hdr__action { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 6px 8px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 500; color: var(--navy); transition: background-color .2s; }
.hdr__action:hover { background: var(--lining); }
.hdr__action .icon { width: 22px; height: 22px; }
.hdr__cart-icon { position: relative; }
.cart-count { position: absolute; top: -6px; right: -10px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--maroon); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; transition: transform .25s var(--ease); }
.cart-count.is-empty { display: none; }
.cart-count.bump { transform: scale(1.25); }

.search { position: relative; display: flex; align-items: center; height: 48px; background: var(--lining); border: 1.5px solid transparent; border-radius: var(--r-sm); transition: border-color .2s, background-color .2s; }
.search:focus-within { background: #fff; border-color: var(--navy); }
.search__icon { padding: 0 6px 0 14px; color: var(--muted); }
.search__input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 15.5px; outline: none; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__go { height: 38px; margin-right: 5px; padding: 0 16px; border-radius: 5px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; }
.search__results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: var(--r); box-shadow: var(--shadow-pop); padding: 8px; z-index: 70; max-height: 70vh; overflow-y: auto; }
.sr-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-sm); }
.sr-item:hover, .sr-item:focus-visible { background: var(--lining); }
.sr-item img { width: 44px; height: 55px; object-fit: cover; border-radius: 4px; background: var(--lining); }
.sr-item__text { display: flex; flex-direction: column; }
.sr-item__name { font-size: 15px; font-weight: 500; color: var(--navy); }
.sr-item__price { font-size: 14px; color: var(--muted); }
.sr-all { display: block; padding: 10px 8px 6px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.sr-empty { padding: 12px 8px; margin: 0; color: var(--muted); }

.nav { border-top: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__list { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 13px 12px; font-size: 15px; font-weight: 500; color: var(--navy); position: relative; }
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--navy); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav__item:hover > .nav__link::after, .nav__link[aria-current]::after, .nav__item:focus-within > .nav__link::after { transform: scaleX(1); }
.nav__caret { width: 16px; height: 16px; color: var(--muted); }
.nav__link--sale { color: var(--maroon); }
.nav__link--sale::after { background: var(--maroon); }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.nav__phone .icon { width: 16px; height: 16px; }
.nav__phone:hover { color: var(--navy); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 40px rgba(27, 36, 51, .08); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding-top: 28px; padding-bottom: 32px; }
.mega__links { columns: 2; column-gap: 40px; align-self: start; }
.mega__links a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--navy); break-inside: avoid; }
.mega__links a:hover { color: var(--brass); }
.mega__count { color: var(--muted); font-size: 13px; }
.mega__all a { font-weight: 600; border-bottom: 0; text-decoration: underline; text-underline-offset: 4px; }
.mega__feature { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--lining); }
.mega__feature img { width: 100%; height: 100%; object-fit: cover; }
.mega__feature span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(27, 36, 51, .8)); color: #fff; font-weight: 600; display: flex; flex-direction: column; }
.mega__feature small { font-weight: 400; opacity: .85; }
.nav__item { position: static; }
.hdr { position: sticky; }

/* --------------------------------------------------------------------------
   Drawers (menu + cart), modal, toast
   -------------------------------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(15, 20, 30, .45); opacity: 0; transition: opacity .3s; }
.drawer__panel { position: absolute; top: 0; bottom: 0; width: min(420px, 92vw); background: #fff; display: flex; flex-direction: column; transition: transform .32s var(--ease); }
.drawer--right .drawer__panel { right: 0; transform: translateX(100%); }
.drawer--left .drawer__panel { left: 0; transform: translateX(-100%); width: min(360px, 88vw); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 18px; font-weight: 600; color: var(--navy); font-family: var(--sans); }
.drawer__title span { color: var(--muted); font-weight: 400; }
.drawer__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }

.mnav { padding: 8px 20px; }
.mnav__item { border-bottom: 1px solid var(--line); }
.mnav__link, .mnav__toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 15px 0; font-size: 17px; font-weight: 500; color: var(--navy); text-align: left; }
.mnav__toggle .icon { transition: transform .25s; color: var(--muted); }
.mnav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mnav__link--sale { color: var(--maroon); }
.mnav__sub { padding: 0 0 12px; }
.mnav__sub a { display: block; padding: 9px 12px; color: var(--text); border-radius: var(--r-sm); }
.mnav__sub a:hover { background: var(--lining); }
.mnav-help { margin-top: auto; padding: 16px 20px 28px; background: var(--shirting); border-top: 1px solid var(--line); }
.mnav-help a { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 15px; color: var(--navy); }

.cdr__tape { padding: 0 20px; }
.cdr__tape:empty { display: none; }
.cdr__body { flex: 1; overflow-y: auto; padding: 0 20px; }
.cdr__loading { padding: 40px 0; text-align: center; color: var(--muted); }
.cdr__empty { padding: 56px 0; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cdr__empty .icon { width: 40px; height: 40px; color: var(--line-2); }
.cdr-line { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cdr-line__img img { width: 80px; height: 100px; object-fit: cover; border-radius: var(--r-sm); background: var(--lining); }
.cdr-line__info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.cdr-line__name { font-weight: 600; color: var(--navy); line-height: 1.3; }
.cdr-line__var { font-size: 14px; color: var(--muted); }
.cdr-line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 8px; }
.cdr-line__price { font-weight: 600; color: var(--navy); }
.cdr-line__remove { margin-top: 6px; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cdr-line__remove:hover { color: var(--danger); }
.cdr__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cdr__total { display: flex; justify-content: space-between; font-size: 18px; color: var(--navy); }
.cdr__note { font-size: 13.5px; color: var(--muted); margin: 0 0 4px; }

/* Tape-measure progress (free delivery) */
.tape { padding: 14px 0 6px; }
.tape__msg { font-size: 14.5px; margin: 0 0 8px; color: var(--text); }
.tape__msg strong { color: var(--navy); }
.tape__track {
    position: relative; height: 18px; border-radius: 3px; overflow: hidden;
    background:
        repeating-linear-gradient(90deg, rgba(27, 36, 51, .55) 0 1px, transparent 1px 8px) left bottom / 100% 5px no-repeat,
        repeating-linear-gradient(90deg, rgba(27, 36, 51, .7) 0 1px, transparent 1px 40px) left bottom / 100% 10px no-repeat,
        var(--tape);
    box-shadow: inset 0 0 0 1px rgba(169, 124, 47, .35);
}
.tape__fill { position: absolute; inset: 0 auto 0 0; background: rgba(27, 36, 51, .82); transition: width .5s var(--ease); }
.tape__fill::after { content: ""; position: absolute; right: -1px; top: -2px; bottom: -2px; width: 3px; background: var(--maroon); }

.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15, 20, 30, .5); }
.modal__box { position: relative; background: #fff; width: min(880px, 100%); max-height: 88vh; overflow: auto; padding: 28px; border-radius: var(--r-lg); }
.modal__close { position: absolute; top: 10px; right: 10px; }
.modal__title { font-family: var(--display); font-weight: 500; font-size: 28px; margin-bottom: 16px; }
.chart-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chart-tabs button { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: 14px; font-weight: 500; }
.chart-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; }
.size-table th, .size-table td { border-bottom: 1px solid var(--line); padding: 9px 8px; }
.size-table thead th { background: var(--lining); font-weight: 600; color: var(--navy); }
.size-table tbody th { text-align: left; font-weight: 500; }
.table-scroll { overflow-x: auto; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); z-index: 200; background: var(--navy); color: #fff; padding: 13px 20px; border-radius: var(--r); font-size: 15px; max-width: calc(100vw - 32px); opacity: 0; transition: opacity .25s, transform .25s var(--ease); box-shadow: var(--shadow-pop); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: var(--danger); }

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; min-height: clamp(560px, calc(100svh - 170px), 820px); display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 27, 39, .82) 0%, rgba(20, 27, 39, .55) 38%, rgba(20, 27, 39, 0) 68%), linear-gradient(0deg, rgba(20, 27, 39, .7) 0%, rgba(20, 27, 39, 0) 45%); }
.hero__inner { position: relative; width: 100%; padding-top: 64px; padding-bottom: clamp(40px, 7vw, 88px); }
.hero__copy { max-width: 540px; }
.hero__est { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: rgba(255, 255, 255, .82); }
.hero__est::before { content: ""; width: 28px; height: 2px; background: var(--brass); }
.hero__title { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.9vw, 56px); line-height: 1.08; letter-spacing: -.01em; max-width: 12ch; color: #fff; text-wrap: balance; text-shadow: 0 2px 28px rgba(15, 20, 30, .35); }
.hero__text { font-size: 17px; color: rgba(255, 255, 255, .84); max-width: 40ch; margin: 18px 0 30px; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__toggle { position: absolute; right: var(--gutter, 24px); bottom: clamp(40px, 7vw, 88px); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); transition: background .2s; }
.hero__toggle:hover { background: rgba(255, 255, 255, .24); }
.hero__toggle .icon { width: 16px; height: 16px; }

.services { border-bottom: 1px solid var(--line); }
.services__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.services__list li { display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px 22px 0; }
.services__list li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.services__list .icon { width: 26px; height: 26px; color: var(--brass); margin-top: 2px; }
.services__list strong { display: block; color: var(--navy); font-size: 15.5px; font-weight: 600; }
.services__list span { font-size: 14px; color: var(--muted); }

.block { padding: clamp(44px, 6vw, 80px) 0; }
.block--tint { background: var(--shirting); }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(20px, 2.6vw, 32px); flex-wrap: wrap; }
.block__title { font-size: clamp(28px, 3vw, 40px); }

/* Pinked-edge fabric swatches */
.swatches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 20px; }
.swatch-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.swatch-card__cloth {
    position: relative; display: block; width: 100%; aspect-ratio: 1; margin-bottom: 10px; background: var(--lining);
    --zz: 10px;
    -webkit-mask:
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zz) 51% repeat-x,
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zz) 51% repeat-x;
    mask:
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zz) 51% repeat-x,
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zz) 51% repeat-x;
}
.swatch-card__cloth img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.swatch-card:hover .swatch-card__cloth img { transform: scale(1.06); }
.swatch-card__name { font-weight: 600; color: var(--navy); font-size: 16px; line-height: 1.3; }
.swatch-card:hover .swatch-card__name { text-decoration: underline; text-underline-offset: 4px; }
.swatch-card__count { font-size: 14px; color: var(--muted); }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--brass-soft); }
.feature__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature--dark { background: var(--navy); color: #d9dee6; }
.feature--dark .feature__title { color: #fff; }
.feature--dark .feature__img { object-position: 50% 30%; }
.feature__body { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; align-items: flex-start; }
.feature__title { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; }
.feature__body p { max-width: 50ch; margin-bottom: 22px; }
.feature__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.feature__body > .btn { margin-top: auto; }

.store { background: var(--shirting); border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 80px) 0; }
.store__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.store__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy); }
.store__media img, .store__media video { width: 100%; height: 100%; object-fit: cover; }
.store__toggle { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(27, 36, 51, .6); color: #fff; font-size: 12px; }
.store__copy p { color: var(--muted); margin: 14px 0 22px; max-width: 56ch; }
.store__addresses { display: grid; gap: 16px; margin-bottom: 24px; }
.store__addresses li { display: flex; gap: 12px; }
.store__addresses .icon { color: var(--brass); margin-top: 3px; }
.store__addresses strong { display: block; color: var(--navy); }
.store__addresses span { display: block; font-size: 15px; color: var(--muted); }
.store__addresses a { font-size: 14.5px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Product grid + card
   -------------------------------------------------------------------------- */
.grid, .pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden; background: var(--lining); }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.card__img--alt { opacity: 0; }
.card:hover .card__img--alt { opacity: 1; }
.card__media .tag { position: absolute; top: 10px; left: 10px; }
.card__body { padding-top: 12px; flex: 1; }
.card__cat { font-size: 13px; color: var(--muted); margin: 0 0 2px; }
.card__title { font-family: var(--sans); font-size: 15.5px; font-weight: 500; line-height: 1.35; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__price { margin: 6px 0 0; font-weight: 600; color: var(--navy); font-size: 15.5px; }
.card__price del { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 4px; }
.card__price .price-now { color: var(--maroon); }
.card__from { font-weight: 400; color: var(--muted); font-size: 14px; }
.card__note { margin: 4px 0 0; font-size: 13.5px; color: var(--maroon); }
.card__btn { margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600; color: var(--navy); transition: border-color .2s, background-color .2s, color .2s; }
.card__btn .icon { width: 16px; height: 16px; }
.card__btn:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.card__btn[disabled] { opacity: .6; }

.grid--scroll { grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.grid--scroll > * { scroll-snap-align: start; }

/* --------------------------------------------------------------------------
   Shop / category
   -------------------------------------------------------------------------- */
.shop { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 24px var(--gutter) 72px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--text); }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.shop-head__title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; }
.shop-head__count { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.shop-search { display: none; }
.cat-desc { color: var(--muted); max-width: 70ch; margin: -6px 0 22px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; margin-bottom: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--lining); font-size: 14px; color: var(--navy); font-weight: 500; }
.chip:hover { background: var(--line); }
.chip__x { font-size: 18px; line-height: 1; color: var(--muted); }
.chip-clear { font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; }
.toolbar-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.filter-toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600; color: var(--navy); }
.filter-toggle .icon { width: 22px; height: 14px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); }
.sort select { height: 40px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 0 34px 0 12px; font-size: 14.5px; font-weight: 600; color: var(--navy); appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%231b2433' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; cursor: pointer; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.shop-layout.filters-hidden { grid-template-columns: 1fr; }
.shop-layout.filters-hidden .filters { display: none; }
.shop-layout .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-layout.filters-hidden .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-bottom: 20px; scrollbar-width: thin; }
.filters__head { display: none; }
.fgroup { margin-bottom: 28px; }
.fgroup__title { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.ftree li { position: relative; }
.ftree a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: var(--r-sm); font-size: 15px; color: var(--text); }
.ftree a:hover { background: var(--lining); }
.ftree a.is-active { background: var(--navy); color: #fff; font-weight: 600; }
.ftree a.is-active .count { color: rgba(255, 255, 255, .7); }
.ftree a.is-ancestor { font-weight: 600; color: var(--navy); }
.ftree ul { padding-left: 12px; }
.ftree .count { color: var(--muted); font-size: 13px; }
.fcheck { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; cursor: pointer; }
.fcheck input { accent-color: var(--navy); width: 18px; height: 18px; }
.fprice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fprice input { width: 100%; height: 42px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 0 10px; font-size: 15px; }
.fprice button { grid-column: 1 / -1; }
.empty-state { text-align: center; padding: 64px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-state__icon { width: 44px; height: 44px; color: var(--line-2); }
.empty-state p { font-size: 18px; color: var(--navy); margin: 0; }
.empty-state .links { color: var(--muted); }
.empty-state .links a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); font-weight: 600; color: var(--navy); }
.pagination a:hover { background: var(--lining); }
.pagination .is-current { background: var(--navy); color: #fff; }
.pagination .gap { color: var(--muted); }

/* --------------------------------------------------------------------------
   Product page
   -------------------------------------------------------------------------- */
.pdp-crumbs { padding-top: 18px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery__main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--lining); cursor: zoom-in; }
.gallery__slider, .gallery__slider img { width: 100%; height: 100%; }
.gallery__slider img { object-fit: cover; }
.gallery__main.is-zoomed img { transform: scale(2.2); cursor: zoom-out; }
.gallery__hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 13px; color: var(--navy); pointer-events: none; }
.gallery__hint .icon { width: 15px; height: 15px; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; }
.gallery__thumb { flex: none; width: 76px; aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { border-color: var(--navy); opacity: 1; }
.gallery__dots { display: none; }

.pinfo__cat { display: inline-block; font-size: 14.5px; color: var(--brass); font-weight: 600; margin-bottom: 8px; }
.pinfo__cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.pinfo__title { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; margin-bottom: 14px; }
.pinfo__price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 24px; }
.pinfo__price .price { font-weight: 700; }
.pinfo__stock { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; margin: 10px 0 20px; color: var(--muted); }
.stock-in, .stock-out { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.stock-in { color: var(--success); }
.stock-out { color: var(--danger); }
.stock-in::before, .stock-out::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pinfo__short { padding: 14px 16px; background: var(--brass-soft); border-radius: var(--r-sm); margin-bottom: 22px; color: #4d3a14; }
.pinfo__short p:last-child { margin: 0; }

.buybox { padding-top: 6px; }
.swatch-group { border: 0; padding: 0; margin: 0 0 18px; }
.swatch-group legend { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 10px; padding: 0; }
.swatch-group legend .sel { font-weight: 400; color: var(--text); margin-left: 4px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; }
.swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.swatch span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 44px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); font-size: 15px; font-weight: 500; background: #fff; color: var(--navy); transition: border-color .15s, background-color .15s, color .15s; }
.swatch:hover span { border-color: var(--navy); }
.swatch input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.swatch input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.swatch.is-unavailable span { color: #a5abb4; text-decoration: line-through; background: var(--shirting); }
.buybox > .text-link { margin: 0 0 18px; }
.buybox__row { display: flex; gap: 10px; margin-bottom: 10px; }
.buybox__add { flex: 1; }
.buybox__msg { min-height: 1.5em; margin: 10px 0 0; font-size: 15px; }
.buybox__msg.is-error { color: var(--danger); }
.buybox__msg.is-success { color: var(--success); }
.assure { display: grid; gap: 12px; padding: 18px 0; margin: 10px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.assure li { display: flex; gap: 12px; font-size: 15px; color: var(--muted); }
.assure strong { color: var(--navy); font-weight: 600; }
.assure .icon { color: var(--brass); margin-top: 2px; }
.pinfo > .text-link { font-size: 14.5px; }
.accordion { margin-top: 22px; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; font-size: 16px; font-weight: 600; color: var(--navy); text-align: left; }
.acc__btn .icon { transition: transform .25s var(--ease); color: var(--muted); }
.acc__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.acc__panel { overflow: hidden; transition: height .3s var(--ease); }
.acc__inner { padding-bottom: 20px; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 40%; color: var(--muted); font-weight: 500; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(27, 36, 51, .08); }
.sticky-buy__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sticky-buy__name { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__price { font-weight: 700; color: var(--navy); }

/* --------------------------------------------------------------------------
   Cart + checkout
   -------------------------------------------------------------------------- */
.page { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(56px, 6vw, 96px); }
.page-head { margin-bottom: clamp(20px, 3vw, 36px); }
.page--flow .page-title { margin-bottom: 20px; }

.steps { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; counter-reset: s; flex-wrap: wrap; }
.steps__item { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); }
.steps__item + .steps__item::before { content: ""; width: clamp(16px, 4vw, 48px); height: 1px; background: var(--line-2); margin-right: 2px; }
.steps__num { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line-2); font-size: 13px; font-weight: 700; }
.steps__num .icon { width: 14px; height: 14px; }
.steps__item.is-current { color: var(--navy); font-weight: 600; }
.steps__item.is-current .steps__num { background: var(--navy); border-color: var(--navy); color: #fff; }
.steps__item.is-done { color: var(--navy); }
.steps__item.is-done .steps__num { background: var(--success); border-color: var(--success); color: #fff; }

.flow { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 110px; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line__img img { width: 110px; height: 138px; object-fit: cover; border-radius: var(--r-sm); background: var(--lining); }
.line__name { font-weight: 600; color: var(--navy); font-size: 16.5px; line-height: 1.3; }
.line__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.line__var { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.line__unit { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.line__remove { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.line__remove .icon { width: 16px; height: 16px; }
.line__remove:hover { color: var(--danger); }
.line__total { margin: 0; text-align: right; font-weight: 700; color: var(--navy); font-size: 17px; }
.lines__actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.lines__actions > div { display: flex; align-items: center; gap: 16px; }

.summary { background: var(--shirting); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary__title { font-family: var(--sans); font-size: 18px; font-weight: 700; color: var(--navy); }
.summary > .summary__title { margin-bottom: 4px; }
.summary__rows { margin: 12px 0 18px; }
.summary__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 15.5px; }
.summary__rows dt { color: var(--muted); }
.summary__rows dd { color: var(--navy); font-weight: 600; }
.summary__total { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 14px !important; }
.summary__total dt { color: var(--navy) !important; font-weight: 700; font-size: 17px; }
.summary__total dd { font-size: 21px; font-weight: 700; }
.summary__notes { display: grid; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.summary__notes li { display: flex; gap: 8px; align-items: center; }
.summary__notes .icon { width: 17px; height: 17px; color: var(--success); }
.summary__fine, .summary__note { font-size: 13.5px; color: var(--muted); margin: 0; }
.summary__items summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.summary__items summary::-webkit-details-marker { display: none; }
.summary__count { font-size: 14px; color: var(--muted); }
.summary__count::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.summary__items[open] .summary__count::after { transform: rotate(-135deg) translateY(-1px); }
.summary__items > .text-link { font-size: 14px; margin-top: 4px; }
.mini-lines { margin: 14px 0 8px; display: grid; gap: 14px; max-height: 360px; overflow-y: auto; }
.mini-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.mini-line__img { position: relative; }
.mini-line__img img { width: 64px; height: 80px; object-fit: cover; border-radius: var(--r-sm); background: #fff; }
.mini-line__qty { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mini-line__info { display: flex; flex-direction: column; min-width: 0; }
.mini-line__name { font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.mini-line__var { font-size: 13.5px; color: var(--muted); }
.mini-line__price { font-weight: 600; color: var(--navy); font-size: 15px; white-space: nowrap; }

.paybox { max-width: 520px; margin: 8px auto 0; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); background: #fff; }
.paybox .page-title { margin: 0 0 8px; }
.paybox__lead { color: var(--muted); margin: 0 0 22px; }
.paybox__amount { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px; border-radius: var(--r); background: var(--shirting); margin-bottom: 20px; }
.paybox__amount span { color: var(--muted); }
.paybox__amount strong { font-size: 24px; color: var(--navy); }
.paybox__status { display: flex; align-items: center; gap: 12px; padding: 14px 0; margin: 0 0 6px; font-weight: 500; color: var(--navy); }
.paybox__spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--navy); animation: spin .8s linear infinite; flex: none; }
.paybox__alt { margin-top: 12px; }
.paybox__notes { margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.paybox__notes li { display: flex; gap: 10px; align-items: flex-start; }
.paybox__notes .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--brass); }
.paybox__notes a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; background: #fff; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel__title { font-family: var(--sans); font-size: 19px; font-weight: 700; }
.panel__head .text-link { font-size: 14.5px; }
.pay-option { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--navy); border-radius: var(--r); background: var(--shirting); cursor: pointer; margin-bottom: 12px; }
.pay-option input { accent-color: var(--navy); width: 20px; height: 20px; margin-top: 2px; }
.pay-option__body strong { display: block; color: var(--navy); }
.pay-option__body span { font-size: 14.5px; color: var(--muted); }
.place { margin-top: 6px; }
.place__terms { font-size: 13.5px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.place__terms a { text-decoration: underline; text-underline-offset: 2px; }

/* Confirmation, tracking, account, content pages */
.confirm-hero { text-align: center; padding: 10px 0 30px; }
.confirm-hero__icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; }
.confirm-hero__icon .icon { width: 30px; height: 30px; }
.confirm-hero__num { display: inline-block; margin-top: 10px; padding: 8px 18px; border-radius: 999px; background: var(--lining); font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 28px 0; }
.detail-card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; font-size: 15px; }
.detail-card h3 { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.detail-card p { margin: 0; line-height: 1.6; }
.order-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.order-table th, .order-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.order-table th { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.order-table .num { text-align: right; white-space: nowrap; }
.order-table tfoot td { border-bottom: 0; padding: 6px 8px; }
.order-table tfoot tr:last-child td { font-size: 18px; padding-top: 12px; border-top: 1px solid var(--line-2); color: var(--navy); }
.status-pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.status-pending { background: #fdf3dc; color: #7a5200; }
.status-confirmed { background: #e3eefb; color: #1d4f86; }
.status-processing { background: #eee6fa; color: #55308c; }
.status-shipped { background: #dff3f4; color: #0b5f66; }
.status-delivered { background: #e3f3e9; color: var(--success); }
.status-cancelled { background: #fbe6e4; color: var(--danger); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); margin: 30px 0 8px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 15px; left: 10%; right: 10%; height: 2px; background: var(--line); }
.timeline__step { position: relative; text-align: center; font-size: 13px; color: var(--muted); }
.timeline__dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.timeline__step.is-done { color: var(--navy); font-weight: 600; }
.timeline__step.is-done .timeline__dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline__step.is-done .timeline__dot .icon { width: 16px; height: 16px; }
.track-box { max-width: 540px; margin: 0 auto; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.auth-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.auth-card h2 { font-family: var(--sans); font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.account-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.account-nav a, .account-nav button { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--navy); background: var(--lining); }
.account-nav a.is-active { background: var(--navy); color: #fff; }
.prose { font-size: 16.5px; line-height: 1.75; max-width: 72ch; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 28px; margin: 1.6em 0 .5em; }
.prose h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .3em; }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.prose table { border-collapse: collapse; margin: 1em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.prose details { border-bottom: 1px solid var(--line); }
.prose details:first-of-type { border-top: 1px solid var(--line); }
.prose summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 0; font-weight: 600; color: var(--navy); }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .25s var(--ease); }
.prose details[open] summary::after { transform: rotate(45deg); }
.prose details > :not(summary) { padding-bottom: 16px; margin: 0; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 72px); }
.contact-list { display: grid; gap: 20px; }
.contact-list a, .contact-list div { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { color: var(--brass); margin-top: 3px; }
.contact-list small { display: block; font-size: 13px; color: var(--muted); }
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.store-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.store-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.store-card__body { padding: 22px; }
.store-card h2 { font-family: var(--sans); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.err-page { text-align: center; padding: 90px 0 110px; }
.err-page .section-title { font-size: clamp(64px, 10vw, 140px); color: var(--line-2); margin-bottom: 10px; }
.banner { position: relative; display: block; overflow: hidden; background: var(--navy); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.banner__content { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vw, 48px); max-width: var(--wrap); margin: 0 auto; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.ftr { background: var(--navy); color: #c6ccd6; margin-top: 0; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.ftr__brand img { width: 200px; margin-bottom: 16px; }
.ftr__brand p { max-width: 32ch; font-size: 15px; }
.ftr__contact { display: grid; gap: 8px; margin-top: 18px; }
.ftr__contact a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 15px; }
.ftr__contact .icon { width: 18px; height: 18px; color: var(--brass); }
.ftr__title { font-family: var(--sans); font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.ftr__col li { margin-bottom: 9px; }
.ftr__col a { font-size: 15px; transition: color .2s; }
.ftr__col a:hover, .ftr__contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ftr__stores { display: grid; gap: 12px; }
.ftr__stores a { line-height: 1.5; }
.ftr__social { display: flex; gap: 6px; margin-top: 18px; }
.ftr__social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; color: #fff; }
.ftr__social a:hover { background: rgba(255, 255, 255, .08); }
.ftr__social .icon { width: 20px; height: 20px; }
.ftr__base { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; flex-wrap: wrap; }
.ftr__base p { margin: 0; }
.ftr__base ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ftr__base a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .nav__phone { display: none; }
    .grid, .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shop-layout.filters-hidden .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid--scroll { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
    .services__list { grid-template-columns: 1fr 1fr; }
    .services__list li:nth-child(3) { padding-left: 0; border-left: 0; }
    .services__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .flow { grid-template-columns: minmax(0, 1fr) 360px; }
    .ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
    .announce__list { justify-content: center; }
    .announce__item { display: none; }
    .announce__item.is-active { display: block; animation: fadein .4s; }
    .announce__item + .announce__item::before { display: none; }
    @keyframes fadein { from { opacity: 0; } }
    .hdr__bar { grid-template-columns: auto 1fr auto; gap: 8px 12px; }
    .hdr__burger { display: inline-flex; }
    .hdr__logo { justify-self: start; }
    .hdr__logo img { width: 150px; }
    .search { grid-column: 1 / -1; grid-row: 2; height: 46px; }
    .search__go { display: none; }
    .hdr__action { min-width: 0; padding: 6px; }
    .hdr__action span:not(.hdr__cart-icon):not(.cart-count) { display: none; }
    .hdr__action--track { display: none; }
    .nav { display: none; }
    .shop-layout, .shop-layout.filters-hidden { grid-template-columns: 1fr; }
    .shop-layout .pgrid, .shop-layout.filters-hidden .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filters { position: fixed; z-index: 120; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); max-height: none; background: #fff; padding: 0 20px 30px; transform: translateX(-100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
    .shop-layout.filters-hidden .filters { display: block; }
    .filters.is-open { transform: none; visibility: visible; box-shadow: var(--shadow-pop); }
    .filters__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; margin-bottom: 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
    .filters__head h2 { font-family: var(--sans); font-size: 18px; font-weight: 700; }
    .filters-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(15, 20, 30, .45); }
    .gallery { position: static; }
}
@media (max-width: 900px) {
    .hero { min-height: clamp(560px, 82svh, 720px); }
    .hero::before { background: linear-gradient(0deg, rgba(20, 27, 39, .92) 0%, rgba(20, 27, 39, .62) 45%, rgba(20, 27, 39, .1) 75%); }
    .hero__video { object-position: 62% 30%; }
    .hero__inner { position: static; }
    .hero__title { font-size: clamp(32px, 9vw, 40px); }
    .hero__text { font-size: 16px; margin: 14px 0 24px; }
    .hero__est { margin-bottom: 14px; font-size: 13px; }
    .hero__toggle { top: 16px; bottom: auto; right: 16px; width: 40px; height: 40px; }
    .features, .store__grid { grid-template-columns: 1fr; }
    .pdp { grid-template-columns: 1fr; padding-left: 0; padding-right: 0; gap: 20px; }
    .pdp-crumbs { display: none; }
    .pinfo { padding: 0 var(--gutter); }
    .gallery__main { border-radius: 0; aspect-ratio: auto; cursor: default; background: none; }
    .gallery__slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .gallery__slider::-webkit-scrollbar { display: none; }
    .gallery__slider img { flex: 0 0 100%; aspect-ratio: 4 / 5; height: auto; scroll-snap-align: start; background: var(--lining); }
    .gallery__thumbs, .gallery__hint { display: none; }
    .gallery__dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 0; }
    .gallery__dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
    .gallery__dots button.is-active { background: var(--navy); }
    .sticky-buy:not([hidden]) { display: flex; }
    body.page-product .ftr { padding-bottom: 72px; }
    .flow { grid-template-columns: 1fr; }
    .flow--checkout .summary { order: -1; }
    .summary { position: static; }
    .auth-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) {
    .gallery__slider img:not(.is-active) { display: none; }
}
@media (max-width: 700px) {
    body { font-size: 15.5px; }
    .grid, .pgrid, .shop-layout .pgrid, .shop-layout.filters-hidden .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
    .grid--scroll { grid-auto-columns: 70%; grid-template-columns: none; }
    .services__list { grid-template-columns: 1fr; }
    .services__list li { padding: 14px 0 !important; border-left: 0 !important; border-top: 1px solid var(--line); }
    .services__list li:first-child { border-top: 0; }
    .swatches-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
    .swatch-card__cloth { --zz: 8px; }
    .swatch-card__name { font-size: 14.5px; }
    .swatch-card__count { font-size: 13px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .card__title { font-size: 14.5px; }
    .card__btn { min-height: 40px; font-size: 14px; }
    .card__btn span { white-space: nowrap; }
    .shop { padding-top: 16px; }
    .shop-toolbar { padding: 10px 0; }
    .toolbar-right { width: 100%; justify-content: space-between; margin-left: 0; }
    .sort label { display: none; }
    .line { grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "img info total" "img qty qty"; gap: 8px 14px; align-items: start; }
    .line__img { grid-area: img; }
    .line__img img { width: 84px; height: 105px; }
    .line__info { grid-area: info; }
    .line .qty { grid-area: qty; height: 42px; justify-self: start; }
    .line__total { grid-area: total; font-size: 15.5px; }
    .form-grid { grid-template-columns: 1fr; }
    .steps__label { display: none; }
    .steps__item.is-current .steps__label { display: inline; }
    .timeline__step { font-size: 10.5px; }
    .timeline__dot { width: 26px; height: 26px; }
    .timeline::before { top: 12px; }
    .ftr__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
    .ftr__base { flex-direction: column; }
    .modal__box { padding: 22px 16px; }
}
@media (max-width: 400px) {
    .swatches-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .buybox__row .qty button { width: 38px; }
    .buybox__row .qty input { width: 36px; }
}
