/* ==========================================================================
   artzefashion — storefront layer. Loaded last.
   Promo bar, header with search, category menu with dropdowns, stacked promo
   banners, product cards with Add to cart / Buy now, category tiles, trust
   strip, newsletter and footer.

   Colours come only from the palette variables (--primary, --accent ...),
   which Admin → Settings → Colour palette prints into the page head.
   ========================================================================== */

:root {
    --accent-text: #c9452c;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --container: 1320px;
    --header-h: 72px;
    --card-gap: clamp(12px, 1.6vw, 20px);
}

body { background: var(--page-bg); color: var(--ink-base); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }

a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------- buttons -- */

.btn { border-radius: var(--radius-sm); letter-spacing: 0.01em; font-weight: 600; font-family: var(--font-body); }
.btn-primary, .af-btn-main { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover, .af-btn-main:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { filter: brightness(0.92); background: var(--accent); color: var(--accent-ink); }
.btn-outline { background: #fff; color: var(--ink-base); border: 1px solid rgba(var(--ink-rgb), 0.28); }
.btn-outline:hover { background: var(--ink-base); color: #fff; border-color: var(--ink-base); }
.btn.is-busy { opacity: .6; pointer-events: none; }

/* ----------------------------------------------------------- promo bar -- */

.promo-bar { background: var(--primary); color: #fff; font-size: 0.82rem; }
.promo-bar-inner { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 36px; position: relative; }
.promo-bar-messages { position: relative; display: grid; text-align: center; font-weight: 500; letter-spacing: 0.01em; }
.promo-bar-messages .announcement-item { grid-area: 1 / 1; opacity: 0; transition: opacity .4s ease; }
.promo-bar-messages .announcement-item.is-visible { opacity: 1; }
.promo-bar-link { position: absolute; right: var(--sp-4); color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.promo-bar-link:hover { color: var(--accent-soft); }

@media (max-width: 760px) {
    .promo-bar-inner { justify-content: space-between; }
    .promo-bar-messages { text-align: left; font-size: 0.76rem; }
    .promo-bar-link { position: static; font-size: 0.76rem; }
}

/* -------------------------------------------------------------- header -- */

.af-header { background: #fff; border-bottom: 1px solid var(--hairline); }

.af-header-bar {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas: "menu brand search actions";
    align-items: center;
    gap: 14px 22px;
    min-height: var(--header-h);
}

.af-header .menu-toggle { grid-area: menu; display: none; }

.af-wordmark { grid-area: brand; display: inline-flex; align-items: baseline; text-decoration: none; line-height: 1; white-space: nowrap; font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -0.045em; color: var(--ink-base); }
.af-wordmark img { max-height: 42px; width: auto; }
.af-wordmark .wm-a { font-weight: 800; color: var(--primary); }
.af-wordmark .wm-b { font-weight: 500; color: var(--accent-text); }
.af-wordmark-lg { font-size: 2rem; }

.af-search { grid-area: search; position: relative; display: flex; align-items: center; max-width: 620px; width: 100%; justify-self: center; }
.af-search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--ink-55); pointer-events: none; }
.af-search input {
    width: 100%; height: 44px; padding: 0 98px 0 42px;
    border: 1.5px solid rgba(var(--ink-rgb), 0.16); border-radius: 999px;
    background: var(--page-bg); font: inherit; font-size: 0.95rem; color: var(--ink-base);
    transition: border-color .15s ease, background .15s ease;
}
.af-search input:focus { outline: none; border-color: var(--primary); background: #fff; }
.af-search input::-webkit-search-cancel-button { display: none; }
.af-search button {
    position: absolute; right: 4px; height: 36px; padding: 0 18px; border: 0; border-radius: 999px;
    background: var(--primary); color: #fff; font: inherit; font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
.af-search button:hover { background: var(--primary-deep); }

.af-actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }
.af-action {
    position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-base);
    font-size: 0.72rem; font-weight: 600;
}
.af-action:hover { background: var(--ink-06); }
.af-action svg { width: 22px; height: 22px; }
.af-cart .icon-badge {
    position: absolute; top: 0; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
    display: grid; place-items: center; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 0.68rem; font-weight: 700;
}
.af-cart .icon-badge[hidden] { display: none; }

@media (max-width: 1100px) { .hide-tablet { display: none !important; } }

@media (max-width: 900px) {
    .af-header-bar {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "menu brand actions" "search search search";
        padding-block: 8px 12px;
        min-height: 0;
        gap: 8px 10px;
    }
    .af-header .menu-toggle { display: inline-flex; }
    .af-wordmark { font-size: 1.45rem; }
    .af-search { max-width: none; }
    .af-search input { height: 42px; }
    .af-action span { display: none; }
    .af-action { padding: 8px; }
}

/* ------------------------------------------------ category menu row -- */

.cat-nav { background: #fff; border-bottom: 1px solid var(--hairline); position: relative; z-index: 35; }
.cat-nav-row { display: flex; align-items: stretch; justify-content: center; gap: 4px; }
.cat-nav-item { position: static; display: flex; }
.cat-nav-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 13px 16px;
    font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--ink-base);
    border-bottom: 2px solid transparent; white-space: nowrap;
}
.cat-nav-link:hover, .cat-nav-link.is-active, .cat-nav-item:hover > .cat-nav-link, .cat-nav-item:focus-within > .cat-nav-link { border-bottom-color: var(--primary); color: var(--primary); }
.cat-nav-deals { color: var(--accent-text); }
.cat-nav-deals:hover, .cat-nav-deals.is-active { color: var(--accent-text); border-bottom-color: var(--accent); }
.cat-caret { width: 10px; height: 8px; transition: transform .2s ease; }
.cat-nav-item:hover .cat-caret { transform: rotate(180deg); }

.mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
    box-shadow: 0 24px 40px -18px rgba(var(--ink-rgb), 0.25);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.cat-nav-item:hover .mega, .cat-nav-item:focus-within .mega {
    opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s;
}
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; padding-block: 26px 30px; }
.mega-col { display: flex; flex-direction: column; gap: 2px; }
.mega-col a { padding: 5px 0; font-size: 0.9rem; text-decoration: none; color: var(--ink-70); }
.mega-col a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.mega-head, .mega-col a.mega-head { padding: 5px 0; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink-base); margin-bottom: 6px; letter-spacing: -0.01em; }
.mega-shortcuts { padding-left: 24px; border-left: 1px solid var(--hairline); }
.mega-col a.mega-all { margin-top: 8px; color: var(--accent-text); font-weight: 600; }
.mega-feature { position: relative; display: block; border-radius: var(--radius); overflow: hidden; max-width: 220px; aspect-ratio: 4 / 5; justify-self: end; width: 100%; }
.mega-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mega-feature:hover img { transform: scale(1.04); }
.mega-feature span { position: absolute; left: 12px; bottom: 12px; background: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 0.82rem; text-decoration: none; color: var(--ink-base); }

@media (max-width: 900px) {
    .cat-nav-row { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 0; padding-inline: 8px; }
    .cat-nav-row::-webkit-scrollbar { display: none; }
    .cat-nav-link { padding: 10px 12px; font-size: 0.86rem; }
    .cat-caret, .mega { display: none; }
}

/* the old department rails are replaced by .cat-nav */
.dept-bar, .dept-scroller, .announcement { display: none !important; }

/* -------------------------------------------------------------- drawer -- */

.drawer { background: #fff; }
.drawer-quick { display: flex; gap: 8px; margin-bottom: var(--sp-4); }
.drawer-quick a, .drawer nav.drawer-quick a {
    flex: 1; text-align: center; padding: 10px 6px; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.85rem; text-decoration: none;
}
.drawer-quick a.is-deal { color: var(--accent-text); border-color: var(--accent); }
.drawer-group summary { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.drawer-sub { display: block; margin-top: 12px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-55); }
.drawer-foot { margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 2px solid var(--ink-base); }

/* -------------------------------------------------------------- intro -- */

.af-intro { padding-block: 22px 10px; }
.af-intro h1 { font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem); margin: 0 0 4px; }
.af-intro h1::first-line { color: var(--ink-base); }
.af-intro p { margin: 0; color: var(--ink-55); font-size: 0.95rem; }

/* ---------------------------------------------- stacked promo banners -- */

.af-promos { display: grid; gap: var(--card-gap); padding-block: 14px 8px; }

.af-promo {
    --promo-bg: var(--sand-panel); --promo-ink: var(--ink-base); --promo-muted: var(--ink-70);
    --promo-btn: var(--primary); --promo-btn-ink: #fff; --promo-line: rgba(var(--ink-rgb), 0.3);
    display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
    background: var(--promo-bg); color: var(--promo-ink);
    border-radius: var(--radius-lg); overflow: hidden; min-height: 280px;
    position: relative; isolation: isolate;
}
.af-promo::before { /* a soft disc behind the art */
    content: ""; position: absolute; z-index: -1; width: 520px; aspect-ratio: 1; border-radius: 50%;
    right: -80px; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.45);
}
.af-promo.is-flipped { grid-template-columns: 1fr 1.05fr; }
.af-promo.is-flipped .af-promo-copy { order: 2; }
.af-promo.is-flipped::before { right: auto; left: -80px; }

.af-promo--soft   { --promo-bg: var(--accent-soft); }
.af-promo--dark   { --promo-bg: var(--primary); --promo-ink: #fff; --promo-muted: rgba(255,255,255,.78); --promo-btn: var(--accent); --promo-btn-ink: var(--accent-ink); --promo-line: rgba(255,255,255,.45); }
.af-promo--dark::before { background: rgba(255, 255, 255, 0.07); }
.af-promo--accent { --promo-bg: var(--accent); --promo-ink: var(--accent-ink); --promo-muted: var(--accent-ink); --promo-btn: var(--primary); --promo-btn-ink: #fff; --promo-line: currentColor; }
.af-promo--accent::before { background: rgba(255, 255, 255, 0.16); }

.af-promo-copy { padding: clamp(24px, 3.4vw, 48px); }
.af-eyebrow { margin: 0 0 10px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--promo-muted); }
.af-promo-title { margin: 0 0 12px; font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.8rem); line-height: 1.02; letter-spacing: -0.035em; color: var(--promo-ink); }
.af-promo-body { margin: 0 0 22px; max-width: 46ch; color: var(--promo-muted); font-size: 1rem; }
.af-promo-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.af-promo .af-btn-main { background: var(--promo-btn); border-color: var(--promo-btn); color: var(--promo-btn-ink); padding: 12px 22px; }
.af-promo .af-btn-main:hover { filter: brightness(.92); }
.af-btn-ghost { background: transparent; color: var(--promo-ink, var(--ink-base)); border: 1.5px solid var(--promo-line, var(--ink-35)); padding: 11px 20px; }
.af-btn-ghost:hover { background: var(--promo-ink, var(--ink-base)); color: var(--promo-bg, #fff); border-color: var(--promo-ink, var(--ink-base)); }

.af-code {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer;
    border: 1.5px dashed var(--promo-line); border-radius: var(--radius-sm); background: transparent;
    color: var(--promo-ink); font: inherit; font-size: 0.88rem;
}
.af-code strong { letter-spacing: 0.06em; }
.af-code svg { width: 16px; height: 16px; opacity: .7; }
.af-code:hover { border-style: solid; }

.af-promo-art { display: flex; align-items: center; justify-content: center; align-self: stretch; padding: 18px 18px 0; }
.af-promo-art picture, .af-promo-art img { width: 100%; height: 100%; max-height: 290px; object-fit: contain; object-position: center bottom; }

@media (max-width: 760px) {
    .af-promo, .af-promo.is-flipped { grid-template-columns: 1fr; min-height: 0; }
    .af-promo.is-flipped .af-promo-copy { order: 0; }
    .af-promo-copy { padding: 26px 22px 6px; }
    .af-promo-art { padding: 0 22px; }
    .af-promo-art img { max-height: 170px; }
    .af-promo::before { width: 340px; right: -60px; left: auto; top: auto; bottom: -140px; transform: none; }
    .af-promo-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* -------------------------------------------------------- section head -- */

.section-head { margin-bottom: 18px; }
.section-head h2 { margin: 0 0 4px; }
.section-head-row { align-items: flex-end; }
.section-head-row .btn {
    background: none; border: 0; padding: 4px 0; color: var(--primary); font-weight: 700;
    text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}
.section-head-row .btn::after { content: " →"; }
.section-head-row .btn:hover { background: none; color: var(--accent-text); }

.af-band { background: var(--accent-soft); }
.af-band .section-head h2 { color: var(--ink-base); }

/* -------------------------------------------------------- product grid -- */

.af-product-grid { display: grid; gap: calc(var(--card-gap) * 1.4) var(--card-gap); grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1180px) { .af-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .af-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .af-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }

/* shop and wishlist grids use the same card */
.grid-products { gap: calc(var(--card-gap) * 1.4) var(--card-gap); }

/* --------------------------------------------------------- product card -- */

.af-card { position: relative; background: #fff; border-radius: var(--radius); border: 1px solid var(--hairline); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.af-card:hover { box-shadow: 0 14px 30px -16px rgba(var(--ink-rgb), 0.35); }
.af-card .product-card-media,
.grid > * .af-card .product-card-media { border: 0 !important; border-radius: 0; box-shadow: none !important; background: var(--sand-panel) !important; aspect-ratio: 4 / 5; }
.af-card .product-card-flags { top: 10px; left: 10px; gap: 6px; }

.af-badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.2; }
.af-badge-off { background: var(--accent); color: var(--accent-ink); }
.af-badge-new { background: var(--primary); color: #fff; }
.af-badge-out { background: #fff; color: var(--alert); border: 1px solid currentColor; }

.af-card .product-card-body { padding: 12px 12px 14px; gap: 6px; flex: 1; }
.pc-label { margin: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-card .product-card-title { font-size: 0.93rem; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.af-card .product-card-title a:hover { color: var(--primary); }
.af-card .price { flex-wrap: wrap; gap: 2px 8px; font-size: 1rem; }
.af-card .price-off, .price-off { color: var(--accent-text); }

.pc-buy { margin-top: auto; padding-top: 6px; }
.pc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pc-actions .btn { padding: 9px 6px; font-size: 0.78rem; white-space: nowrap; text-align: center; justify-content: center; }
.pc-actions .pc-wide { grid-column: 1 / -1; }

.pc-sizes {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    background: #fff; border-top: 1px solid var(--hairline);
    padding: 12px; box-shadow: 0 -12px 24px -14px rgba(var(--ink-rgb), 0.35);
    animation: pcUp .18s ease;
}
.pc-sizes[hidden] { display: none; }
@keyframes pcUp { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.pc-sizes-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; font-weight: 700; margin-bottom: 8px; }
.pc-sizes-close { border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink-55); padding: 0 4px; }
.pc-sizes-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-size {
    min-width: 42px; padding: 8px 8px; border: 1px solid rgba(var(--ink-rgb), 0.25); border-radius: var(--radius-sm);
    background: #fff; font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer;
}
.pc-size:hover:not([disabled]) { border-color: var(--primary); background: var(--primary); color: #fff; }
.pc-size[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

@media (max-width: 640px) {
    .pc-actions { grid-template-columns: 1fr; }
    .af-card .product-card-body { padding: 10px 10px 12px; }
}

/* --------------------------------------------------- Men / Women / Kids -- */

.af-dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--card-gap); }
.af-dept { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.4; text-decoration: none; background: var(--sand-panel); }
.af-dept img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.af-dept:hover img { transform: scale(1.04); }
.af-dept-copy {
    position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 16px 18px;
    background: #fff; border-radius: var(--radius); display: grid; gap: 2px;
    box-shadow: 0 10px 24px -14px rgba(var(--ink-rgb), 0.4);
}
.af-dept-copy strong { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.1; }
.af-dept-copy small { color: var(--ink-55); font-size: 0.82rem; }
.af-dept-cta { margin-top: 6px; color: var(--accent-text); font-weight: 700; font-size: 0.85rem; }
@media (max-width: 760px) {
    .af-dept-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .af-dept { aspect-ratio: 3 / 4; border-radius: var(--radius); }
    .af-dept-copy { left: 6px; right: 6px; bottom: 6px; padding: 8px 10px; }
    .af-dept-copy strong { font-size: 1.05rem; }
    .af-dept-copy small, .af-dept-cta { display: none; }
}

/* ------------------------------------------------- shop by category -- */

.af-cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px var(--card-gap); }
.af-cat { display: grid; gap: 2px; justify-items: center; text-align: center; text-decoration: none; }
.af-cat-media { width: 100%; max-width: 150px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--sand-panel); margin-bottom: 8px; border: 2px solid transparent; transition: border-color .2s ease; }
.af-cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.af-cat:hover .af-cat-media { border-color: var(--primary); }
.af-cat:hover .af-cat-media img { transform: scale(1.06); }
.af-cat-name { font-weight: 700; font-size: 0.9rem; line-height: 1.25; }
.af-cat-meta { font-size: 0.74rem; color: var(--ink-55); }
@media (max-width: 1000px) { .af-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .af-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; } .af-cat-name { font-size: 0.8rem; } }

/* --------------------------------------------------------- trust strip -- */

.af-trust { background: var(--primary); color: #fff; padding-block: clamp(32px, 5vw, 56px); margin-block: var(--sp-6); }
.af-trust-title { color: #fff; text-align: center; margin: 0 auto 28px; max-width: 26ch; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); }
.af-trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.af-trust-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.af-trust-list svg { flex: 0 0 34px; width: 34px; height: 34px; color: var(--accent); }
.af-trust-list strong { display: block; font-size: 0.98rem; margin-bottom: 2px; }
.af-trust-list small { display: block; color: rgba(255,255,255,0.75); font-size: 0.84rem; line-height: 1.45; }
@media (max-width: 900px) { .af-trust-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .af-trust-list { grid-template-columns: 1fr; } .af-trust-list li { padding: 14px; } }

/* --------------------------------------------------------- newsletter -- */

.af-newsletter {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
    background: var(--accent-soft); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px);
}
.af-newsletter h2 { margin: 0 0 6px; }
.af-newsletter p { margin: 0; color: var(--ink-70); }
.af-newsletter-form { display: flex; gap: 8px; }
.af-newsletter-form .input { flex: 1; height: 50px; border-radius: var(--radius-sm); background: #fff; }
.af-newsletter-form .btn { height: 50px; padding-inline: 26px; }
@media (max-width: 760px) { .af-newsletter { grid-template-columns: 1fr; } .af-newsletter-form { flex-direction: column; } }

/* -------------------------------------------------------------- footer -- */

.af-footer { background: var(--ink-base); color: rgba(255,255,255,0.82); padding-top: clamp(40px, 6vw, 64px); margin-top: var(--sp-7); border: 0; }
.af-footer a { color: rgba(255,255,255,0.82); text-decoration: none; }
.af-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.af-footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; font-family: var(--font-body); }
.af-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.af-footer .af-wordmark .wm-a { color: #fff; }
.af-footer-brand p { margin: 14px 0 0; font-size: 0.9rem; max-width: 42ch; line-height: 1.6; }
.af-footer-address { display: flex; gap: 8px; align-items: flex-start; }
.af-footer-address svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.af-footer .footer-links { gap: 9px; font-size: 0.9rem; }
.af-footer .muted-light { color: rgba(255,255,255,0.55); }
.af-footer .footer-social { display: flex; gap: 16px; margin-top: 16px; font-weight: 600; }

.af-footer-bottom { background: rgba(0,0,0,0.25); }
.af-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 16px; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.af-footer-legal p { margin: 0; }
.af-footer-ids { display: flex; flex-wrap: wrap; gap: 4px 20px; }

@media (max-width: 900px) { .af-footer-grid { grid-template-columns: 1fr 1fr; } .af-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) {
    .af-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
    .af-footer-grid > div:last-child { grid-column: 1 / -1; }
    .af-footer-legal { flex-direction: column; text-align: center; align-items: center; }
    .af-footer-ids { justify-content: center; }
    .af-footer { padding-bottom: 70px; } /* room for the phone tab bar */
}

/* --------------------------------------------------------------- misc -- */

.toast { background: var(--ink-base); border-radius: var(--radius-sm); font-weight: 500; }
.toast-error { background: var(--alert); }
.tab-bar a.is-active { color: var(--primary); }
.tab-badge[hidden] { display: none; }
.tab-badge { background: var(--accent) !important; color: var(--accent-ink) !important; }
.cat-picker a.is-active { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }
.pagination .is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.buy-row .btn-accent { flex: 1; }

/* "(Including GST)" next to Subtotal in the cart and checkout. */
.totals .incl-gst { color: #d32f2f; font-weight: 500; }

/* ===================================================== auth pages ==== */
/* Split screen: a dark story panel on the left, the form on the right.   */
.af-auth {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    min-height: calc(100vh - var(--header-h, 72px) - 40px);
    background: #fff; border-bottom: 1px solid rgba(var(--ink-rgb), 0.08);
}
.af-auth-side {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
    background: var(--primary); color: #fff; padding: clamp(32px, 5vw, 64px);
}
.af-auth-side::before {   /* accent corner block */
    content: ""; position: absolute; top: 0; right: 0; width: 38%; height: 8px; background: var(--accent);
}
.af-auth-side-in { position: relative; z-index: 1; max-width: 420px; }
.af-auth-mark { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.045em; line-height: 1; margin-bottom: clamp(36px, 7vh, 72px); }
.af-auth-mark .wm-a { font-weight: 800; color: #fff; }
.af-auth-mark .wm-b { font-weight: 500; color: var(--accent-soft); }
.af-auth-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1.02; letter-spacing: -0.045em; margin: 0 0 14px; color: #fff; }
.af-auth-small { margin: 0 0 28px; color: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.6; }
.af-auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.af-auth-points li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: rgba(255,255,255,0.9); }
.af-auth-points li::before {
    content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.af-auth-ticket {
    display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 12px 16px;
    border: 2px dashed rgba(255,255,255,0.45); color: #fff;
}
.af-auth-ticket span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.af-auth-ticket strong { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.02em; }
.af-auth-ticket code { padding: 4px 9px; background: var(--accent); color: var(--accent-ink); font-weight: 700; letter-spacing: 0.1em; font-size: 0.85rem; }
.af-auth-rail { position: relative; width: min(100%, 380px); margin-top: 40px; color: rgba(255,255,255,0.16); align-self: flex-end; }

.af-auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: clamp(32px, 6vw, 72px) 20px; background: var(--page-bg); }
.af-auth-form { width: 100%; max-width: 420px; }
.af-auth-form h1 { font-size: clamp(1.9rem, 3vw, 2.4rem); letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 10px; }
.af-auth-eyebrow { margin: 0 0 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); }
.af-auth-lede { margin: 0 0 26px; color: var(--ink-70); line-height: 1.6; }
.af-auth-below { width: 100%; max-width: 420px; margin-top: 26px; padding-top: 18px; border-top: 1px dashed rgba(var(--ink-rgb), 0.18); font-size: 0.9rem; color: var(--ink-70); }
.af-auth-below a, .af-fine a, .af-link { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.af-auth-below a:hover, .af-fine a:hover, .af-link:hover { text-decoration: underline; }

/* sign-up progress */
.af-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 30px; counter-reset: none; }
.af-steps li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 0.75rem; font-weight: 600; color: var(--ink-55); padding-top: 10px; border-top: 3px solid rgba(var(--ink-rgb), 0.12); }
.af-steps li span { display: none; }
.af-steps li.is-done { border-top-color: var(--primary); color: var(--ink-base); }
.af-steps li.is-now { border-top-color: var(--accent); color: var(--ink-base); }

/* password / email-code switch */
.af-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 0 0 24px; background: #fff; border: 1.5px solid rgba(var(--ink-rgb), 0.14); border-radius: 999px; }
.af-switch a { position: relative; z-index: 1; text-align: center; padding: 10px 12px; font-weight: 600; font-size: 0.92rem; color: var(--ink-70); text-decoration: none; border-radius: 999px; transition: color .2s ease; }
.af-switch a.is-on { color: #fff; }
.af-switch-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--primary); transition: transform .25s ease; }
.af-switch-pill.is-right { transform: translateX(100%); }

/* floating-label fields */
.af-form { display: grid; gap: 16px; }
.fl { position: relative; }
.fl .input {
    height: 56px; padding: 22px 16px 8px; background: #fff; border: 1.5px solid rgba(var(--ink-rgb), 0.16);
    border-radius: 10px; font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.fl .input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1); }
.fl .input.has-error { border-color: var(--alert); }
.fl label {
    position: absolute; left: 17px; top: 18px; pointer-events: none; font-size: 0.98rem; color: var(--ink-55);
    transition: transform .15s ease, font-size .15s ease, color .15s ease; transform-origin: left top;
}
.fl .input:focus + label,
.fl .input:not(:placeholder-shown) + label { transform: translateY(-10px); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; }
.fl .input:focus + label { color: var(--primary); }
.fl .field-error { margin-top: 6px; }
.fl-pw .input { padding-right: 72px; }
.fl-eye {
    position: absolute; right: 8px; top: 10px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px;
    background: transparent; color: var(--ink-70); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
}
.fl-eye:hover { background: rgba(var(--ink-rgb), 0.06); color: var(--ink-base); }
.fl-phone .fl-prefix { position: absolute; left: 16px; top: 25px; font-size: 1rem; color: var(--ink-base); font-weight: 600; z-index: 1; }
.fl-phone .input { padding-left: 54px; }
.fl-phone label { transform: translateY(-10px); font-size: 0.74rem; font-weight: 600; }

.af-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: -8px; }
.af-meter i { height: 4px; border-radius: 2px; background: rgba(var(--ink-rgb), 0.1); transition: background .2s ease; }
.af-meter[data-score="1"] i:nth-child(-n+1) { background: #d32f2f; }
.af-meter[data-score="2"] i:nth-child(-n+2) { background: #e08a1e; }
.af-meter[data-score="3"] i:nth-child(-n+3) { background: #7cb342; }
.af-meter[data-score="4"] i { background: #2e7d32; }

.af-form-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.9rem; }
.af-go { border-radius: 10px; height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.af-go span { transition: transform .2s ease; }
.af-go:hover span { transform: translateX(4px); }
.af-ghost { border-radius: 10px; height: 52px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--primary); border: 1.5px solid var(--primary); text-decoration: none; font-weight: 600; }
.af-ghost:hover { background: var(--primary); color: #fff; }
.af-hint-box { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--ink-base); font-size: 0.9rem; }
.af-fine { margin: 0; font-size: 0.8rem; color: var(--ink-55); text-align: center; }

.af-or { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; font-size: 0.82rem; color: var(--ink-55); }
.af-or::before, .af-or::after { content: ""; flex: 1; height: 1px; background: rgba(var(--ink-rgb), 0.12); }

/* six-box code entry */
.af-otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.af-otp-boxes[hidden] { display: none; }
.af-otp-boxes input {
    width: 100%; min-width: 0; height: 62px; text-align: center; font-size: 1.6rem; font-weight: 700;
    font-family: var(--font-display); color: var(--primary); background: #fff;
    border: 1.5px solid rgba(var(--ink-rgb), 0.18); border-bottom-width: 4px; border-radius: 10px;
    transition: border-color .15s ease, transform .15s ease;
}
.af-otp-boxes input:focus { outline: none; border-color: var(--primary); transform: translateY(-2px); }
.af-otp-boxes input.is-filled { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.04); }
.af-otp-boxes input.has-error { border-color: var(--alert); }
.af-otp-help { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding: 14px 16px; border-radius: 10px; background: var(--sand-panel); font-size: 0.88rem; color: var(--ink-70); }
.af-otp-help strong { color: var(--ink-base); }
.af-link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.af-link-btn:disabled { color: var(--ink-55); cursor: default; text-decoration: none; }

@media (max-width: 900px) {
    .af-auth { grid-template-columns: 1fr; min-height: 0; }
    .af-auth-side { padding: 26px 20px 24px; }
    .af-auth-mark { margin-bottom: 18px; font-size: 1.25rem; }
    .af-auth-big { font-size: 1.7rem; margin-bottom: 6px; }
    .af-auth-small { margin-bottom: 0; font-size: 0.92rem; }
    .af-auth-points, .af-auth-rail { display: none; }
    .af-auth-ticket { margin-top: 16px; padding: 8px 12px; }
    .af-auth-main { padding: 30px 16px 40px; }
}
@media (max-width: 380px) {
    .af-otp-boxes { gap: 5px; }
    .af-otp-boxes input { height: 54px; font-size: 1.35rem; }
}
