/* ================= Ursa (Simple) — flat, thick-line storefront ================= */

:root {
    --ink: #000000;
    --bear: #000000;      /* accents are black now (brown lives only in the logo) */
    --bear-dark: #222222;
    --bg: #ffffff;
    --bg-2: #f5f5f5;
    --paper: #ffffff;
    --line: 3px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: Arial, Helvetica, system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }

h1, h2, h3, h4, h5 { line-height: 1.1; }

.brush { color: var(--ink); font-weight: 900; }

/* ---- Buttons: plain, thick border, square ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-weight: 700; font-size: 1rem;
    padding: 13px 24px;
    border: var(--line) solid var(--ink);
    background: var(--paper); color: var(--ink);
    cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--bear); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--bear-dark); color: #fff; }
.btn-ghost { background: var(--paper); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Top banner ---- */
.top-banner {
    background: var(--ink); color: #fff; text-align: center;
    font-size: .8rem; font-weight: 800; letter-spacing: .06em;
    padding: 10px 16px; text-transform: uppercase;
}

/* ---- Made in Norway square ---- */
.made-in-lead {
    text-align: center; font-weight: 900; text-transform: uppercase;
    letter-spacing: .1em; font-size: .85rem; color: #8a8a8a; margin: 44px 0 14px;
}
.made-in-square {
    display: flex; align-items: stretch; gap: 0; margin-top: 0;
    border: var(--line) solid var(--ink); background: var(--paper);
}
.made-in-square img {
    width: 340px; object-fit: cover; display: block;
    border-right: var(--line) solid var(--ink); flex-shrink: 0;
}
.made-in-text { padding: 28px 34px; display: flex; flex-direction: column; justify-content: center; }
.made-in-text h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; margin-bottom: 10px; }
.made-in-text p { font-size: 1.05rem !important; font-weight: 600; margin-top: 0 !important; color: #4a4038 !important; max-width: 560px; }

@media (max-width: 640px) {
    .made-in-square { flex-direction: column; }
    .made-in-square img { width: 100%; height: 180px; border-right: none; border-bottom: var(--line) solid var(--ink); }
}

/* ---- Nav ---- */
#navbar { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: var(--line) solid var(--ink); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 50px; display: block; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1rem; }
.nav-links a:hover { color: var(--bear); }

/* Belts hover menu */
.nav-belts { position: relative; padding: 24px 0; margin: -24px 0; }
.nav-belts-menu {
    position: absolute; top: 100%; left: 0; min-width: 150px;
    background: var(--bg); border: 2px solid var(--ink);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    display: none; flex-direction: column; z-index: 60;
}
.nav-belts:hover .nav-belts-menu, .nav-belts:focus-within .nav-belts-menu { display: flex; }
.nav-belts-menu a { padding: 10px 16px; font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; }
.nav-belts-menu a + a { border-top: 1px solid rgba(0,0,0,.1); }
.nav-belts-menu a:hover { background: var(--ink); color: #fff; }

.cart-btn {
    position: relative; background: var(--bear); color: #fff;
    border: var(--line) solid var(--ink);
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cart-btn:hover { background: var(--bear-dark); }
.cart-count {
    position: absolute; top: -8px; right: -8px; background: var(--ink); color: #fff;
    font-size: .72rem; font-weight: 900; min-width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); padding: 0 4px;
}

/* Hamburger — injected by cart.js, only shown on mobile (see media query) */
.nav-hamburger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; padding: 0 11px;
    background: var(--paper); border: var(--line) solid var(--ink); cursor: pointer;
}
.nav-hamburger span { display: block; height: 3px; width: 100%; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
#navbar.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#navbar.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
#navbar.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Hero ---- */
.hero { padding: 56px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--ink); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 900; letter-spacing: -.02em; }
.hero-sub { font-size: 1.1rem; max-width: 460px; margin: 18px 0 26px; font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art img { width: 100%; display: block; border: var(--line) solid var(--ink); }

/* ---- Sections ---- */
.section { padding: 66px 0; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; text-align: center; letter-spacing: -.02em; margin-bottom: 12px; }
.section-title.left { text-align: left; }
.section-lead { text-align: center; max-width: 600px; margin: 0 auto 40px; font-size: 1.05rem; font-weight: 600; color: #4a4038; }

/* ---- Belts ---- */
.belts { border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); }
.belt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.products-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; gap: 24px; }
.product-card { text-decoration: none; color: var(--ink); }
.product-card .belt-body { gap: 6px; padding: 18px 20px; }
.product-card .belt-name { font-size: 1.25rem; }
.product-card .belt-price { font-size: 1.15rem; }
.product-card:hover .belt-name { text-decoration: underline; }
.belt-card { background: var(--paper); border: var(--line) solid var(--ink); display: flex; flex-direction: column; }
.belt-media { position: relative; background: #fff; border-bottom: var(--line) solid var(--ink); }
.belt-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; cursor: pointer; }
.belt-media-link { display: block; }
.belt-tag {
    position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff;
    font-weight: 900; font-size: .74rem; padding: 5px 10px; text-transform: uppercase; letter-spacing: .04em;
}
.belt-thumbs { display: flex; gap: 8px; padding: 10px; border-bottom: var(--line) solid var(--ink); background: var(--bg); }
.belt-thumb { width: 50px; height: 50px; border: 2.5px solid var(--ink); overflow: hidden; cursor: pointer; flex-shrink: 0; opacity: .5; background: #fff; }
.belt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.belt-thumb.active { opacity: 1; }

.belt-body { padding: 20px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.belt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.belt-name { font-size: 1.5rem; font-weight: 900; color: var(--ink); text-decoration: none; }
a.belt-name:hover { text-decoration: underline; }
.belt-swatch { display: none; }
.belt-price { font-size: 1.4rem; font-weight: 900; color: var(--bear); }
.belt-price .muted { font-size: .9rem; color: #8a8a8a; font-weight: 700; }

/* ---- Multi-currency prices ----
   Every [data-price] holds one span per region (see priceTags() in
   src/lib/format.js). src/scripts/region.js runs blocking in <head> and puts
   data-region on <html>, so the shopper's own currency is the only one that
   ever paints — no JS swapping figures a beat after load.
   Without JS there is no data-region, so Norway shows: primary market. */
[data-region-price] { display: none; }
html[data-region="NO"] [data-region-price="NO"],
html[data-region="EUROPE"] [data-region-price="EUROPE"],
html[data-region="INTERNATIONAL"] [data-region-price="INTERNATIONAL"],
html:not([data-region]) [data-region-price="NO"] { display: inline; }
.belt-desc { font-weight: 600; color: #4a4038; font-size: .96rem; }
.belt-details-link { align-self: center; font-weight: 800; font-size: .9rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.belt-details-link:hover { color: var(--bear); }

.size-label { font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.size-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.size-opt {
    min-width: 44px; padding: 8px 4px; text-align: center; font-weight: 800; font-size: .85rem;
    border: 2.5px solid var(--ink); background: #fff; cursor: pointer;
}
.size-opt:hover { background: var(--bg-2); }
.size-opt.active { background: var(--ink); color: #fff; }

/* ---- Story ---- */
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.story-art { border: var(--line) solid var(--ink); overflow: hidden; background: #fff; }
.story-art img { width: 100%; display: block; }
.story-copy p { font-size: 1.05rem; font-weight: 600; margin-top: 15px; color: #3f362e; }
.signature { color: var(--ink); font-weight: 700; font-size: 1.1rem; margin-top: 18px !important; }

/* ---- Sizing ---- */
.sizing { border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); }
/* How to measure — three step blocks */
.measure-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 940px; margin: 0 auto; }
.measure-step { background: var(--paper); border: var(--line) solid var(--ink); padding: 30px 24px; text-align: center; }
.measure-step-icon { width: 68px; height: 68px; margin: 0 auto 18px; color: var(--ink); }
.measure-step-icon svg { width: 100%; height: 100%; display: block; }
.measure-step-num { display: inline-block; background: var(--ink); color: #fff; font-weight: 900; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 4px 11px; margin-bottom: 12px; }
.measure-step h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: 8px; }
.measure-step p { font-weight: 600; color: #4a4038; font-size: .95rem; line-height: 1.5; }
.measure-note { max-width: 940px; margin: 26px auto 0; padding-top: 16px; border-top: 2px solid var(--ink); font-size: .95rem; font-weight: 600; text-align: center; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details { background: var(--paper); border: var(--line) solid var(--ink); }
.faq-list summary {
    cursor: pointer; padding: 16px 20px; font-weight: 900; font-size: 1.05rem;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.5rem; color: var(--bear); font-weight: 900; }
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p { padding: 0 20px 18px; font-weight: 600; color: #4a4038; }

/* ---- Custom orders ---- */
.custom { border-top: var(--line) solid var(--ink); }
.custom-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.custom-item { background: var(--paper); border: var(--line) solid var(--ink); padding: 24px 26px; }
.custom-item h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; }
.custom-item p { font-weight: 600; color: #4a4038; font-size: .96rem; line-height: 1.5; }
.custom-cta { text-align: center; margin-top: 34px; }

/* ---- Footer ---- */
.footer { background: var(--ink); color: #fff; padding: 50px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; }
.footer-brand img { height: 84px; background: #fff; padding: 5px; border: 3px solid #fff; }
.footer-brand p { margin-top: 12px; font-weight: 700; max-width: 260px; }

/* ---- Also on Etsy section ---- */
.etsy-word {
    font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700;
    letter-spacing: -.01em;
}
/* Inverted horizontal band — dark strip, light button */
.etsy-band { background: var(--ink); color: #fff; border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); padding: 34px 0; }
.etsy-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.etsy-band-copy h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900; letter-spacing: -.02em; }
.etsy-band-copy h2 .etsy-word { color: #f1641e; font-size: 1.05em; }
.etsy-band-copy p { margin-top: 8px; font-weight: 600; color: rgba(255,255,255,.8); max-width: 480px; }

.etsy-btn {
    display: inline-flex; align-items: baseline; gap: 9px;
    background: #f1641e; color: #fff; text-decoration: none;
    padding: 13px 26px; border: var(--line) solid var(--ink);
}
.etsy-btn:hover { background: #d9540f; }
.etsy-btn .etsy-label { font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.etsy-btn .etsy-word { font-size: 1.5rem; line-height: 1; }
.etsy-arrow { font-weight: 900; font-size: 1.2rem; align-self: center; }

/* Inverted button for the dark band: light body, dark border */
.etsy-btn--invert { background: #fff; color: var(--ink); border-color: #fff; flex-shrink: 0; }
.etsy-btn--invert:hover { background: #f1641e; color: #fff; border-color: #f1641e; }
.etsy-btn--invert .etsy-word { color: #f1641e; }
.etsy-btn--invert:hover .etsy-word { color: #fff; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; color: #999; }
.footer-cols a { display: block; color: #fff; text-decoration: none; font-weight: 700; margin-bottom: 7px; opacity: .85; }
.footer-cols a:hover { opacity: 1; }
.footer-bottom { border-top: 2px solid rgba(255,255,255,.15); text-align: center; padding: 18px; font-weight: 700; font-size: .84rem; }

/* Currency picker in the footer */
.footer-currency { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 0 30px; }
.footer-currency-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: #999; }
/* Footer variant: sits on a dark background and opens upward */
.region-picker--footer .region-dropdown { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }

/* ---- Cart drawer ---- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
    position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 90vw;
    background: var(--bg); z-index: 100; border-left: var(--line) solid var(--ink);
    transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: var(--line) solid var(--ink); }
.cart-head h3 { font-size: 1.4rem; font-weight: 900; }
.cart-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; font-weight: 900; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-empty { text-align: center; color: #8a8a8a; font-weight: 700; margin-top: 40px; }
.cart-empty .bear-mini { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 2px solid var(--bg-2); }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border: 2.5px solid var(--ink); background: #fff; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 900; font-size: 1rem; }
.cart-item-meta { font-weight: 700; color: #8a8a8a; font-size: .84rem; }
.cart-item-price { font-weight: 900; color: var(--bear); margin-top: 4px; }
.cart-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-qty button { width: 26px; height: 26px; border: 2.5px solid var(--ink); background: #fff; font-weight: 900; cursor: pointer; line-height: 1; }
.cart-qty button:hover { background: var(--bg-2); }
.cart-qty span { font-weight: 900; min-width: 18px; text-align: center; }
.cart-remove { background: none; border: none; color: #b0392b; font-weight: 800; cursor: pointer; font-size: .82rem; margin-top: 6px; }
.cart-foot { border-top: var(--line) solid var(--ink); padding: 18px 22px; }
.cart-subtotal { display: flex; justify-content: space-between; font-weight: 900; font-size: 1.2rem; margin-bottom: 12px; }
.cart-note { text-align: center; font-size: .78rem; font-weight: 700; color: #8a8a8a; margin-top: 10px; }

/* ---- Toast ---- */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px);
    background: var(--ink); color: #fff; font-weight: 800; padding: 13px 22px; z-index: 120;
    border: 2px solid var(--bear); transition: transform .25s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-art { max-width: 340px; margin: 0 auto; }
    .story-inner { grid-template-columns: 1fr; }
    .belt-grid { grid-template-columns: 1fr; gap: 24px; }
    .products-grid { grid-template-columns: minmax(0, 320px); justify-content: center; }
    .custom-grid { grid-template-columns: 1fr; }
    .measure-steps { grid-template-columns: 1fr; max-width: 420px; }
    .etsy-band-inner { flex-direction: column; align-items: flex-start; text-align: left; }
    .section { padding: 50px 0; }

    /* Mobile nav: hamburger reveals a full-width dropdown panel */
    .nav-hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: var(--bg); border-bottom: var(--line) solid var(--ink);
        padding: 6px 0;
    }
    #navbar.nav-open .nav-links { display: flex; }
    .nav-links > li { width: 100%; }
    .nav-links > li > a { display: block; padding: 13px 24px; }
    .nav-belts { position: static; padding: 0; margin: 0; }
    .nav-belts-menu {
        position: static; display: flex; flex-direction: column;
        min-width: 0; border: none; box-shadow: none; background: transparent;
    }
    .nav-belts-menu a { padding: 10px 24px 10px 42px; font-size: .92rem; }
    .nav-belts-menu a + a { border-top: none; }
}

/* ================================================================
   Commerce pages (account, checkout, track order) — Ursa styling
   ================================================================ */

/* ---- Nav actions + account dropdown ---- */
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Currency / region switcher */
.region-picker { position: relative; }
.region-toggle {
    display: flex; align-items: center; gap: 6px;
    height: 48px; padding: 0 12px;
    background: var(--paper); color: var(--ink);
    border: var(--line) solid var(--ink);
    font-family: inherit; font-weight: 900; font-size: .9rem; cursor: pointer;
}
.region-toggle:hover { background: var(--bg-2); }
.region-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px;
    background: var(--paper); border: var(--line) solid var(--ink);
    box-shadow: 6px 6px 0 rgba(0,0,0,.12);
    display: none; flex-direction: column; z-index: 60;
}
.region-picker.open .region-dropdown { display: flex; }
.region-dropdown button {
    padding: 12px 16px; text-align: left; background: none; border: none;
    font-family: inherit; font-weight: 800; font-size: .92rem; color: var(--ink); cursor: pointer;
}
.region-dropdown button:hover { background: var(--bg-2); }
.region-dropdown button.active { background: var(--ink); color: #fff; }
.account-picker { position: relative; }
.nav-account {
    background: var(--paper); color: var(--ink);
    border: var(--line) solid var(--ink);
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.nav-account:hover { background: var(--bg-2); }
.nav-account.logged-in { background: var(--ink); color: #fff; }
.account-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
    background: var(--paper); border: var(--line) solid var(--ink);
    box-shadow: 6px 6px 0 rgba(0,0,0,.12);
    display: none; flex-direction: column; z-index: 60;
}
.account-picker.open .account-dropdown { display: flex; }
.account-dropdown-email { padding: 12px 16px; font-weight: 800; font-size: .82rem; border-bottom: 2px solid var(--bg-2); word-break: break-all; }
.account-dropdown-item {
    padding: 12px 16px; text-align: left; text-decoration: none; color: var(--ink);
    font-weight: 800; font-size: .92rem; background: none; border: none; cursor: pointer;
}
.account-dropdown-item:hover { background: var(--bg-2); }

/* ---- Shared form controls ---- */
.account-main, .checkout-main { padding-top: 40px; padding-bottom: 60px; }
.auth-card input, .change-password-form input, #addressFormEl input, #addressFormEl select,
#shippingForm input, #shippingForm select, #orderLookupForm input, #profileEditForm input,
#contactForm input, #contactForm textarea {
    width: 100%; font-family: inherit; font-size: 1rem; font-weight: 600;
    padding: 12px 14px; margin-bottom: 12px;
    border: 2.5px solid var(--ink); background: #fff; color: var(--ink);
}
.auth-card input:focus, .change-password-form input:focus, #addressFormEl input:focus,
#addressFormEl select:focus, #shippingForm input:focus, #shippingForm select:focus,
#orderLookupForm input:focus, #profileEditForm input:focus,
#contactForm input:focus, #contactForm textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--ink); }

/* Contact form */
.contact-form { max-width: 560px; margin-bottom: 8px; }
#contactForm textarea { resize: vertical; line-height: 1.5; min-height: 120px; }
#contactForm button { margin-top: 4px; }
.form-row { display: flex; gap: 12px; }
.form-row > * { flex: 1; }

.checkout-error { color: #b0392b; font-weight: 800; font-size: .9rem; margin-bottom: 12px; display: none; }
.form-success { color: #1f7a3d; font-weight: 800; font-size: .9rem; margin-bottom: 12px; }
.checkout-back-btn { background: none; border: none; color: var(--ink); font-weight: 800; cursor: pointer; font-size: .95rem; padding: 10px 0; text-decoration: none; display: inline-block; }
.checkout-back-btn:hover { text-decoration: underline; }

/* ---- Auth card ---- */
.auth-card { max-width: 440px; margin: 0 auto; background: var(--paper); border: var(--line) solid var(--ink); padding: 32px 30px; }
.auth-card h2 { font-size: 1.9rem; font-weight: 900; margin-bottom: 6px; }
.auth-subtitle { font-weight: 600; color: #4a4038; margin-bottom: 22px; }
.auth-forgot { margin-top: 4px; }
.auth-forgot a, .auth-switch a, .auth-track-link { color: var(--ink); font-weight: 800; text-decoration: underline; cursor: pointer; }
.auth-switch { margin-top: 18px; font-weight: 600; }
.auth-track-link { display: inline-block; margin-top: 18px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #8a8a8a; font-weight: 800; text-transform: uppercase; font-size: .78rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 2px; background: var(--bg-2); }
.google-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px; border: 2.5px solid var(--ink); background: #fff; color: var(--ink);
    font-family: inherit; font-weight: 800; font-size: 1rem; cursor: pointer;
}
.google-btn:hover { background: var(--bg-2); }
.google-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---- Dashboard ---- */
.dashboard { max-width: 900px; margin: 0 auto; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.dashboard-header h2 { font-size: 2rem; font-weight: 900; }
.logout-btn { background: var(--paper); border: 2.5px solid var(--ink); font-family: inherit; font-weight: 800; padding: 10px 18px; cursor: pointer; }
.logout-btn:hover { background: var(--ink); color: #fff; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dashboard-card { background: var(--paper); border: var(--line) solid var(--ink); padding: 22px 24px; }
.dashboard-card h3 { font-size: 1.25rem; font-weight: 900; margin-bottom: 14px; }
.dashboard-card-wide, .dashboard-card-full { grid-column: 1 / -1; }
.address-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.address-card-header h3 { margin-bottom: 0; }
.address-add-btn { background: var(--paper); border: 2.5px solid var(--ink); font-family: inherit; font-weight: 800; font-size: .82rem; padding: 7px 12px; cursor: pointer; }
.address-add-btn:hover { background: var(--ink); color: #fff; }
.profile-edit-actions { display: flex; gap: 10px; align-items: center; }

/* Profile */
.profile-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-weight: 700; border-bottom: 2px solid var(--bg-2); }
.profile-row:last-child { border-bottom: none; }
.profile-label { color: #8a8a8a; }
.profile-google-badge { display: inline-flex; align-items: center; font-weight: 800; }

/* Orders */
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-list-empty { color: #8a8a8a; font-weight: 700; }
.order-row { border: 2.5px solid var(--ink); padding: 12px 16px; background: #fff; }
.order-row:hover { background: var(--bg-2); }
.order-row-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.order-row-id { font-weight: 900; }
.order-row-date { color: #8a8a8a; font-weight: 700; font-size: .88rem; }
.order-row-total { margin-left: auto; font-weight: 900; }
.order-status-badge { font-weight: 900; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: 4px 9px; border: 2px solid var(--ink); }
.status-pending { background: #f3e9c8; }
.status-processing { background: #cfe3f5; }
.status-shipped { background: #d8ccf0; }
.status-delivered { background: #c7ecd0; }

/* Order detail / track result shared */
.order-detail-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.order-detail-header h3 { margin-bottom: 0; }
.order-detail-date { color: #8a8a8a; font-weight: 700; font-size: .9rem; margin-bottom: 16px; }
.order-detail-items { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.order-detail-item { display: flex; align-items: center; gap: 12px; }
.order-detail-item-img img { width: 56px; height: 56px; object-fit: cover; border: 2.5px solid var(--ink); background: #fff; }
.order-detail-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.order-detail-item-name { font-weight: 900; }
.order-detail-item-variant { color: #8a8a8a; font-weight: 700; font-size: .86rem; }
.order-detail-item-price { font-weight: 900; }
.order-detail-shipping { margin-top: 18px; }
.order-detail-shipping h4 { font-weight: 900; margin-bottom: 6px; }
.order-detail-shipping p { font-weight: 600; }
.order-tracking-info { margin: 14px 0; padding: 14px; border: 2.5px solid var(--ink); background: var(--bg-2); }
.order-tracking-info h4 { font-weight: 900; margin-bottom: 8px; }
.tracking-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 800; text-decoration: underline; }
.tracking-number { font-weight: 800; }

/* Addresses */
.address-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.address-item { border: 2.5px solid var(--ink); padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; background: #fff; }
.address-item-name { font-weight: 900; }
.address-item-line { font-weight: 600; color: #4a4038; font-size: .92rem; }
.address-item-actions { display: flex; gap: 8px; }
.address-action-btn { background: var(--paper); border: 2px solid var(--ink); font-family: inherit; font-weight: 800; font-size: .8rem; padding: 6px 12px; cursor: pointer; }
.address-action-btn:hover { background: var(--ink); color: #fff; }
.address-delete-btn:hover { background: #b0392b; border-color: #b0392b; }

.change-password-form { display: flex; flex-direction: column; }

/* ---- Checkout page ---- */
.checkout-page { min-height: 100vh; }
.checkout-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px; border-bottom: var(--line) solid var(--ink); }
.checkout-logo img { height: 48px; display: block; }
.checkout-steps { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.checkout-step { color: #8a8a8a; font-size: .95rem; }
.checkout-step.active { color: var(--ink); }
.checkout-step.completed { color: var(--ink); }
.checkout-step-divider { color: #ccc; }
.checkout-main { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; }
.checkout-section-title { font-size: 1.3rem; font-weight: 900; margin: 20px 0 12px; }
.checkout-form-col form:first-child .checkout-section-title:first-child { margin-top: 0; }
#payment-element { margin-bottom: 18px; }
.checkout-step-panel { display: flex; flex-direction: column; }
.checkout-success { text-align: center; padding: 20px 0; }
.checkout-success-icon { width: 60px; height: 60px; margin: 0 auto 16px; border: var(--line) solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; background: #c7ecd0; }
.checkout-success h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 8px; }
.checkout-success p { font-weight: 600; color: #4a4038; margin-bottom: 8px; }
.checkout-order-id { font-weight: 900 !important; color: var(--ink) !important; }
.post-order-actions { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }

/* Checkout summary */
.checkout-summary { background: var(--paper); border: var(--line) solid var(--ink); padding: 22px 24px; position: sticky; top: 24px; }
.checkout-summary h3 { font-size: 1.25rem; font-weight: 900; margin-bottom: 16px; }
.summary-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 2px solid var(--bg-2); }
.summary-item-img img { width: 60px; height: 60px; object-fit: cover; border: 2.5px solid var(--ink); background: #fff; }
.summary-item-info { flex: 1; min-width: 0; }
.summary-item-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.summary-item-name { font-weight: 900; }
.summary-item-price { font-weight: 900; }
.summary-item-variant { color: #8a8a8a; font-weight: 700; font-size: .86rem; }
.summary-divider { height: 2px; background: var(--ink); margin: 14px 0; }
.summary-row { display: flex; justify-content: space-between; font-weight: 700; margin: 8px 0; }
.summary-total { font-weight: 900; font-size: 1.2rem; }
#summaryDiscountRow span:last-child { color: #1f7a3d; }

/* Discount code (checkout summary) */
.promo-box { margin: 0; }
.promo-input-row { display: flex; gap: 8px; }
.promo-input-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 2.5px solid var(--ink); background: #fff; font-family: inherit; font-weight: 700; font-size: .95rem; }
.promo-input-row input:focus { outline: none; box-shadow: 3px 3px 0 var(--ink); }
.promo-input-row .btn { flex: 0 0 auto; padding: 10px 16px; }
#promoError { margin-top: 10px; margin-bottom: 0; }
.applied-promo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; border: 2.5px solid var(--ink); background: var(--bg-2); padding: 8px 12px; }
.applied-promo-code { font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.applied-promo-remove { background: none; border: none; font-size: 1.3rem; line-height: 1; font-weight: 900; cursor: pointer; color: var(--ink); padding: 0 4px; }
.applied-promo-remove:hover { color: #b0392b; }

/* Quantity stepper (checkout summary) */
.qty-stepper { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn { width: 24px; height: 24px; border: 2px solid var(--ink); background: #fff; font-weight: 900; cursor: pointer; line-height: 1; }
.qty-btn:hover { background: var(--bg-2); }
.qty-value { font-weight: 900; min-width: 16px; text-align: center; }

/* ---- Track order timeline ---- */
.track-timeline { display: flex; align-items: center; margin: 20px 0; }
.track-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.track-step-dot { width: 20px; height: 20px; border: 2.5px solid var(--ink); background: #fff; border-radius: 50%; }
.track-step.active .track-step-dot { background: var(--ink); }
.track-step span { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #8a8a8a; }
.track-step.active span { color: var(--ink); }
.track-step-line { flex: 1; height: 2.5px; background: #ccc; margin: 0 4px 22px; }
.track-step-line.active { background: var(--ink); }

/* ---- Commerce responsive ---- */
@media (max-width: 860px) {
    .checkout-main { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .address-list { grid-template-columns: 1fr; }
    .checkout-steps { display: none; }
}

/* ---- Legal / policy pages ---- */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: 2rem; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 8px; }
.legal .legal-updated { color: #8a8a8a; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 30px; }
.legal .legal-intro { font-size: 1.02rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.2rem; font-weight: 800; margin: 34px 0 10px; }
.legal h3 { font-size: 1rem; font-weight: 800; margin: 22px 0 8px; }
/* Cookie names in the privacy policy, where "_ga" needs to read as a literal
   string rather than as prose. */
.legal code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-2); padding: 1px 5px; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--ink); text-decoration: underline; }
.legal address { font-style: normal; line-height: 1.7; }
.legal .legal-box { border: var(--line) solid var(--ink); padding: 18px 20px; margin: 18px 0; background: var(--bg-2); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal th, .legal td { border: 2px solid var(--ink); padding: 9px 11px; text-align: left; font-size: .95rem; }
.legal th { background: var(--bg-2); font-weight: 800; }
.legal .legal-toc { border: var(--line) solid var(--ink); padding: 16px 20px; margin: 8px 0 28px; }
.legal .legal-toc a { display: inline-block; margin: 3px 14px 3px 0; font-weight: 700; }

/* ================= Product page ================= */
.pdp-back {
    display: inline-block; margin: 28px 0 20px; font-weight: 800; font-size: .95rem;
    color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--ink);
}
.pdp-back:hover { background: var(--ink); color: #fff; }

.pdp-grid {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px;
    align-items: start; padding-bottom: 64px;
}

/* Gallery */
.pdp-stage {
    position: relative; border: var(--line) solid var(--ink); background: #fff; overflow: hidden;
}
.pdp-main-img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; cursor: zoom-in;
}
.pdp-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; line-height: 1; font-weight: 900;
    background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); cursor: pointer;
}
.pdp-arrow:hover { background: var(--ink); color: #fff; }
.pdp-prev { left: 12px; }
.pdp-next { right: 12px; }
.pdp-zoom-hint {
    position: absolute; bottom: 12px; right: 12px; background: var(--ink); color: #fff;
    font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    padding: 5px 9px; pointer-events: none;
}

.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumb {
    width: 68px; height: 68px; border: 2.5px solid var(--ink); overflow: hidden;
    cursor: pointer; flex-shrink: 0; opacity: .5; background: #fff; padding: 0;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb.active { opacity: 1; }

/* Info column */
.pdp-info { display: flex; flex-direction: column; gap: 16px; }
.pdp-tag { position: static; display: inline-block; align-self: flex-start; }
.pdp-name { font-size: 2.4rem; font-weight: 900; }
.pdp-price { font-size: 1.6rem; font-weight: 900; color: var(--bear); }
.pdp-price .muted { font-size: .95rem; color: #8a8a8a; font-weight: 700; }
.pdp-desc { font-weight: 600; color: #4a4038; font-size: 1.02rem; }
.pdp-info .size-picker { gap: 8px; }
.pdp-info .size-opt { min-width: 52px; padding: 11px 6px; font-size: .95rem; }
.pdp-info .btn { margin-top: 6px; }
.pdp-note { font-size: .85rem; font-weight: 700; color: #8a8a8a; }

/* Zoom lightbox */
.pdp-lightbox {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(0, 0, 0, .92); align-items: center; justify-content: center;
}
.pdp-lightbox.open { display: flex; }
.pdp-lb-stage {
    max-width: 92vw; max-height: 88vh; display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.pdp-lb-stage img {
    max-width: 92vw; max-height: 88vh; object-fit: contain; display: block;
    cursor: zoom-in; transition: transform .12s ease;
}
.pdp-lb-stage img.zoomed { transform: scale(2); cursor: zoom-out; }
.pdp-lb-close {
    position: absolute; top: 18px; right: 20px; width: 46px; height: 46px;
    background: transparent; color: #fff; border: 2.5px solid #fff; font-size: 1.3rem;
    font-weight: 900; cursor: pointer;
}
.pdp-lb-close:hover { background: #fff; color: #000; }
.pdp-lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 54px; height: 54px; background: transparent; color: #fff; border: 2.5px solid #fff;
    font-size: 2rem; line-height: 1; font-weight: 900; cursor: pointer;
}
.pdp-lb-nav:hover { background: #fff; color: #000; }
.pdp-lb-prev { left: 20px; }
.pdp-lb-next { right: 20px; }

@media (max-width: 860px) {
    .pdp-grid { grid-template-columns: 1fr; gap: 24px; }
    .pdp-name { font-size: 2rem; }
    .pdp-lb-nav { width: 44px; height: 44px; font-size: 1.5rem; }
    .pdp-lb-prev { left: 8px; }
    .pdp-lb-next { right: 8px; }
}

/* ================= Cookie consent bar ================= */
/* Hidden until public/consent-ui.js opens it, so returning visitors who already
   answered never see it flash. Page furniture, not a modal: it sits above the
   nav but *below* the cart drawer's overlay, so opening the cart dims it along
   with everything else instead of leaving it floating beside the drawer. */
.consent-bar {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
    align-items: center; justify-content: space-between; gap: 24px;
    padding: 18px 24px;
    background: var(--paper); border-top: var(--line) solid var(--ink);
}
.consent-bar.open { display: flex; }
.consent-text { font-weight: 600; font-size: .92rem; color: #4a4038; max-width: 720px; }
.consent-text a { color: var(--ink); font-weight: 800; text-decoration: underline; }

/* Both buttons are plain `.btn` — same size, same weight, same colours. Reject
   has to look exactly as available as Accept or the consent isn't freely given,
   so neither gets .btn-primary. */
.consent-actions { display: flex; gap: 12px; flex-shrink: 0; }
.consent-actions .btn { min-width: 130px; }

@media (max-width: 720px) {
    .consent-bar { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
    .consent-actions .btn { flex: 1; min-width: 0; }
}
