/* =========================================================================
   PHERMO — European Wellness
   Design system: clean WHITE background + gold accents.
   Light, airy, professional. Centered gold section headings with a short
   dash accent. 1px light borders, 4px radius. (Own take — not a clone.)
   ========================================================================= */

:root {
    --bg:        #FFFFFF;   /* main page background            */
    --bg-alt:    #F5F6F8;   /* alternating light-gray bands    */
    --panel:     #FFFFFF;   /* cards                           */
    --gold:      #D4AF37;   /* brand gold — buttons, dashes    */
    --gold-deep: #9A7B1F;   /* readable gold on white — text   */
    --gold-soft: #F4E4BC;   /* soft hover                      */
    --ink:       #1A2332;   /* headings / strong text          */
    --text:      #4A5568;   /* body text                       */
    --muted:     #8A94A6;   /* secondary / meta                */
    --green:     #1FA85A;
    --orange:    #C77A00;
    --navy:      #050E1D;   /* dark header bar (matched to logo bg) */
    --navy-line: #1A2740;   /* subtle divider on the navy bar  */
    --navy-text: #C3CBDA;   /* nav text on the navy bar        */
    --border:    #E5E7EB;   /* light 1px borders               */
    --border-2:  #D9DDE3;
    --radius:    4px;
    --wrap:      1200px;
    --shadow:    0 1px 2px rgba(16,24,40,.04);
    --font:      system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.25; }
h1 { font-size: 30px; }
h2 { font-size: 25px; }
h3 { font-size: 18px; }
p  { margin: 0 0 1em; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

/* ---------------------------------------------------------------- Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.site-main { min-height: 60vh; padding: 44px 0 64px; }

.section { padding: 44px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Centered section heading with a short gold dash (inspired look, our own) */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 {
    color: var(--gold-deep);
    font-size: clamp(28px, 4.2vw, 42px);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.section-head::after {
    content: "";
    display: block;
    width: 68px; height: 3px;
    background: var(--gold);
    margin: 0 auto;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
    display: inline-block;
    padding: 11px 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--gold {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }

.btn--outline {
    background: transparent;
    color: var(--gold-deep);
    border-color: var(--gold);
}
.btn--outline:hover { background: var(--gold); color: var(--ink); }

.btn--block { display: block; width: 100%; }
.btn--lg { padding: 14px 30px; font-size: 16px; }

/* ---------------------------------------------------------------- Header */
.site-header {
    position: relative; /* stays in flow — scrolls away, does not follow */
    z-index: 100;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 104px;
    gap: 16px;
}

.brand { display: inline-flex; align-items: center; line-height: 1.1; flex: 0 0 auto; }
.brand__logo { height: 72px; width: auto; display: block; }

/* Right side: two stacked rows (utility + search on top, main nav below) */
.header-right { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }

.util-row { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.util-nav { display: flex; align-items: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.util-nav a { color: var(--navy-text); font-size: 13px; font-weight: 500; white-space: nowrap; }
.util-nav a::before { content: "\203A"; color: var(--gold); margin-right: 6px; font-weight: 700; }
.util-nav a:hover { color: #fff; }
.util-nav a.is-active { color: var(--gold); }
.util-cart a { color: var(--gold); font-weight: 600; }

/* Search pill */
.site-search {
    display: flex;
    align-items: center;
    background: #0e1830;
    border: 1px solid var(--navy-line);
    border-radius: 999px;
    padding: 3px 4px 3px 16px;
    position: relative;
}

/* ---- Live search suggestions dropdown ---- */
.site-search__suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 200;
    background: #0e1830;
    border: 1px solid var(--navy-line);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.ss-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ss-row:last-child { border-bottom: none; }
.ss-row:hover,
.ss-row--active { background: #18244a; }
.ss-row__img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
}
.ss-row__img--ph { background: #24304f; }
.ss-row__txt { display: flex; flex-direction: column; min-width: 0; }
.ss-row__name {
    font-weight: 600;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ss-row__sub {
    font-size: 12px;
    color: #9fb0cc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Mobile search: icon button + full-width tap-to-open overlay ---- */
.search-toggle,
.cart-toggle {
    display: none; /* desktop uses the inline bar / nav; shown only on mobile */
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
}
.cart-toggle { position: relative; text-decoration: none; }
.cart-toggle__badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gold);
    color: #10203f;
    font-size: 11px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}
.msearch {
    position: fixed;
    inset: 0;
    z-index: 4000;
}
.msearch[hidden] { display: none; }
body.msearch-open { overflow: hidden; }
.msearch__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 20, 0.72);
}
.msearch__panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #0b1428;
    border-bottom: 1px solid var(--navy-line);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
    padding: 12px 14px 16px;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.msearch__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0e1830;
    border: 1px solid var(--navy-line);
    border-radius: 999px;
    padding: 6px 8px 6px 14px;
}
.msearch__ico { color: var(--gold); flex: 0 0 auto; }
.msearch__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 16px; /* 16px keeps iOS from zooming on focus */
    padding: 8px 4px;
}
.msearch__input::placeholder { color: #6b7486; }
.msearch__input:focus { outline: none; }
.msearch__close {
    flex: 0 0 auto;
    background: none;
    border: none;
    color: #9fb0cc;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}
.msearch__suggest { margin-top: 12px; }

.site-search__input {
    flex: 1;
    min-width: 150px;
    max-width: 240px;
    border: none;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    padding: 7px 6px;
}
.site-search__input::placeholder { color: #6b7486; }
.site-search__input:focus { outline: none; }
.site-search__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    flex: 0 0 auto;
    border: none;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
    cursor: pointer;
}
.site-search__btn:hover { background: var(--gold-soft); }
.brand__name {
    color: var(--ink);
    font-weight: 700;
    font-size: 23px;
    letter-spacing: 2px;
}
.brand__name--lg { font-size: 32px; }
.brand__tag {
    color: var(--gold-deep);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Nav */
.main-nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav__list > li { position: relative; }
.main-nav__list a {
    display: block;
    padding: 6px 12px;
    color: var(--navy-text);
    font-size: 14.5px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius);
}
.main-nav__list > li:first-child a { padding-left: 0; }
.main-nav__list a:hover { color: #fff; }
.main-nav__list a.is-active { color: var(--gold); }
.caret { font-size: 10px; }

.nav-cart a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; font-size: 16px; }
.nav-cart a:hover { color: var(--gold-soft); }
.cart-ico { flex: 0 0 auto; }
.nav-account a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.nav-products > a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.acct-ico, .prod-ico { flex: 0 0 auto; }

/* Dropdown (dark, matches the navy bar) */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 232px;
    background: #101a2e;
    border: 1px solid var(--navy-line);
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(0,0,0,.4);
    list-style: none;
    margin: 0;
    padding: 12px 8px 8px; /* top padding bridges the gap so hover doesn't drop */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    padding: 10px 12px;
    color: var(--navy-text);
    border-radius: 6px;
    font-size: 14px;
    transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
.dropdown a:hover { color: var(--gold); background: #17233c; padding-left: 16px; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--navy-line);
    border-radius: var(--radius);
    cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--gold); transition: transform .3s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ Flash */
.flash { border-bottom: 1px solid var(--border); }
.flash .wrap { padding-top: 12px; padding-bottom: 12px; font-size: 14px; }
.flash--success { background: #EAF7EF; color: var(--green); }
.flash--warning { background: #FBF1E3; color: var(--orange); }

/* --------------------------------------------------------------- Hero ---- */
.hero {
    position: relative;
    margin-top: -44px; /* cancel .site-main top padding so hero sits flush under the header */
    background: #10224a url("../images/hero-bg.jpg") center center / cover no-repeat;
    border-bottom: 1px solid var(--navy-line);
    overflow: hidden;
}
.hero__viewport { position: relative; overflow: hidden; }
.hero__track { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.hero__slide { flex: 0 0 100%; min-width: 100%; padding: 54px 72px 66px; }
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
}

/* One product cell: name on top, picture, Order Now under */
.hero-product { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-product__name { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: .5px; margin: 0 0 12px; }
.hero-product__dash { width: 54px; height: 3px; background: var(--gold); margin-bottom: 22px; }
.hero-product__media {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 230px; margin-bottom: 26px;
}
.hero-product__media img { max-height: 230px; max-width: 100%; width: auto; object-fit: contain; }
.hero-product__ph {
    display: flex; align-items: center; justify-content: center;
    width: 200px; height: 200px;
    color: rgba(255,255,255,.6);
    border: 1px dashed rgba(255,255,255,.28);
    border-radius: var(--radius);
    background: rgba(255,255,255,.04);
    font-size: 14px; letter-spacing: .5px;
}
.btn-hero {
    display: inline-block;
    padding: 12px 36px;
    background: rgba(5,14,29,.55);
    border: 1px solid var(--gold);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .5px;
    border-radius: var(--radius);
    transition: background-color .15s ease, color .15s ease;
}
.btn-hero:hover { background: var(--gold); color: var(--navy); }

.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px; height: 44px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: var(--radius);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.hero__arrow:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }

.hero__dots {
    position: absolute;
    bottom: 18px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 8px;
    z-index: 3;
}
.hero__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); border: none; cursor: pointer; padding: 0; }
.hero__dot.is-active { background: var(--gold); }

/* ------------------------------------------------------------ Promo band */
.promo {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding: 18px 20px;
}
.promo__rule { width: 100px; height: 2px; background: var(--gold); margin: 0 auto 16px; }
.promo__rule--btm { margin: 16px auto 0; }
.promo__title { color: var(--ink); font-size: 22px; font-weight: 700; margin: 0; }
.promo__sub { color: var(--text); font-size: 15px; margin: 6px 0 0; }

/* ------------------------------------------------------- Brand band --- */
.brand-band { text-align: center; }
.brand-band__logo { max-width: 340px; width: 72%; height: auto; margin: 0 auto; }
.search-empty { text-align: center; color: var(--muted); margin-top: 24px; font-size: 15px; }

/* -------------------------------------------------- Reviews slider ------ */
.reviews {
    background: #EAF3FB;
    border-top: 1px solid #d6e6f4;
    border-bottom: 1px solid #d6e6f4;
    padding: 48px 0 52px;
    margin-bottom: -64px; /* cancel .site-main bottom padding so footer sits flush */
}
.reviews .section-head h2 { color: var(--ink); }
.reviews__stage { position: relative; padding: 0 56px; }
.reviews__viewport { overflow: hidden; }
.reviews__track { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.reviews__slide {
    flex: 0 0 100%;
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 6px 4px;
}
.review-card { padding: 6px 12px; }
.review-card__title { font-size: 17px; color: var(--ink); margin-bottom: 12px; text-decoration: underline; }
.review-card__text { color: var(--text); font-size: 14.5px; margin-bottom: 18px; }
.review-card__author { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.review-card__stars { color: var(--gold); letter-spacing: 3px; margin-top: 12px; font-size: 15px; }

.reviews__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #bcd6ec;
    color: #3b7cc0;
    font-size: 20px; line-height: 1; cursor: pointer; z-index: 2;
}
.reviews__arrow:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.reviews__arrow--prev { left: 0; }
.reviews__arrow--next { right: 0; }
.reviews__dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.reviews__dot { width: 9px; height: 9px; border-radius: 50%; background: #bcd6ec; border: none; cursor: pointer; padding: 0; }
.reviews__dot.is-active { background: var(--gold); }

/* --------------------------------------------------------- Product grids */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.grid--6 { grid-template-columns: repeat(2, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.product-card:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(16,24,40,.08); transform: translateY(-2px); }

/* Big picture on the left — fills the box so the product reads large */
.product-card__media {
    position: relative;
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 18px;
    background: #fff;
    border-right: 1px solid var(--border);
}
.product-card__media img {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.product-card__ph { color: var(--muted); font-size: 13px; letter-spacing: .5px; }
.product-card__badge {
    position: absolute;
    top: 10px; left: 10px;
    font-size: 11px;
    letter-spacing: .5px;
    color: var(--gold-deep);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3px 8px;
}

.product-card__body { display: flex; flex-direction: column; padding: 22px; flex: 1; }
.product-card__name { font-size: 17px; margin-bottom: 4px; }
.product-card__name a { color: var(--ink); transition: color .15s ease; }
.product-card__name a:hover,
.product-card:hover .product-card__name a { color: var(--gold-deep); }
.product-card__generic { color: var(--muted); font-size: 14px; margin-bottom: 3px; }
.product-card__base { color: var(--ink); font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.product-card__base:empty { display: none; }
.product-card__pack { color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .2px; margin: 0 0 10px; }
.product-card__price { margin: 0 0 14px; line-height: 1.25; }
.product-card__price .pc-from { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .2px; }
.product-card__price .pc-amt  { font-size: 22px; font-weight: 800; color: #1a8f4c; }
.product-card__form { margin-top: auto; }
.product-card__cta  { margin-top: auto; }
/* Clamp the card blurb so long copy never bloats the card */
.product-card__blurb { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Phones: stack the card vertically so the details column gets full width */
@media (max-width: 760px) {
    .product-card { flex-direction: column; }
    .product-card__media { flex: 0 0 auto; min-height: 210px; border-right: none; border-bottom: 1px solid var(--border); }
    .product-card__body { padding: 16px 16px 18px; }
    .product-card__blurb { -webkit-line-clamp: 2; }
}

/* Pack / amount selector on the card */
.pc-select-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
    margin-bottom: 6px;
}
.pc-select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}
.pc-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.15); }

/* --------------------------------------------------- Category preview ---- */
.cat-grid { display: grid; gap: 18px; grid-template-columns: repeat(5, 1fr); }
.cat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-top: 3px solid var(--cat, var(--gold));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow .15s ease, transform .15s ease;
}
.cat-card:hover { box-shadow: 0 6px 18px rgba(16,24,40,.08); transform: translateY(-2px); }
.cat-card__name { color: var(--ink); font-size: 17px; font-weight: 600; margin: 0 0 auto; }
.cat-card__link { color: var(--gold-deep); font-size: 14px; font-weight: 600; margin-top: 20px; }
.cat-card__link:hover { color: var(--gold); }

/* ---------------------------------------------------------- Breadcrumb -- */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb span { margin: 0 6px; color: var(--muted); }

/* Page title block (interior pages, left aligned) */
.page-title { margin-bottom: 30px; }
.page-title h1 {
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

/* ------------------------------------------------------- Product detail -- */
.product-detail { display: grid; grid-template-columns: 400px 1fr; gap: 44px; align-items: start; }
.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 15px;
    letter-spacing: 1px;
    overflow: hidden;
}
.product-image { background: #fff; padding: 16px; }
.product-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Swipeable product gallery */
.product-gallery { position: relative; padding: 0; }
.pg-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pg-track::-webkit-scrollbar { display: none; }
.pg-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; background: #fff; padding: 16px; }
.pg-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pg-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: none; border-radius: 50%; background: rgba(0,0,0,0.4); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; }
.pg-arrow:hover { background: rgba(0,0,0,0.6); }
.pg-arrow--prev { left: 8px; } .pg-arrow--next { right: 8px; }
.pg-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.pg-dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,0.6); box-shadow: 0 0 2px rgba(0,0,0,0.4); cursor: pointer; }
.pg-dot.is-active { background: var(--gold); }

/* Admin gallery editor */
.gallery-editor { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 4px; }
.gallery-editor__item { position: relative; width: 90px; }
.gallery-editor__item img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-2); background: #fff; }
.gallery-editor__main { position: absolute; top: 4px; left: 4px; background: var(--gold); color: #10203f; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.gallery-editor__del { display: flex; align-items: center; gap: 4px; font-size: 12px; margin-top: 3px; color: var(--orange); cursor: pointer; }
.gallery-add { display: inline-block; margin-top: 10px; font-size: 13px; }
.pd-name { font-size: 28px; margin-bottom: 6px; }
.pd-generic { color: var(--text); font-size: 16px; margin: 0 0 2px; }
.pd-base { color: var(--ink); font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.pd-brand { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.pd-price { color: var(--gold-deep); font-size: 32px; font-weight: 700; margin: 0 0 16px; }
.pd-desc { color: var(--text); font-size: 15px; line-height: 1.6; margin: 0 0 24px; max-width: 520px; }
.field--qty { max-width: 140px; }

.pd-meta {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    margin-bottom: 22px;
    font-size: 14px;
}
.pd-meta div { display: flex; justify-content: space-between; padding: 4px 0; }
.pd-meta span { color: var(--muted); }
.pd-meta strong { color: var(--ink); font-weight: 600; }

.field { margin-bottom: 16px; }
.field label { display: block; color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field select,
.field input,
.field textarea {
    width: 100%;
    padding: 11px 12px;
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
}
.field select:focus,
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.15); }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }

/* Auth pages: login / register / verify / reset */
.auth-card {
    max-width: 440px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 26px 22px;
}
.auth-card p { color: var(--text); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 18px; font-size: 14px; }
.auth-row .checkbox { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; color: var(--text); cursor: pointer; }
.auth-row .checkbox input { width: auto; }
.req { color: var(--gold-deep); }
.auth-alt { margin: 16px 0 0; font-size: 14px; color: var(--text); }
.auth-note { max-width: 440px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.field-hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.auth-inline { display: inline; }
.linkbtn { background: none; border: none; padding: 0; margin: 16px 0 0; color: var(--gold-deep); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
.linkbtn:hover { color: var(--gold); }
.linkbtn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.auth-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.auth-actions .linkbtn { margin: 0; }

/* Centre the auth pages */
.content-page.auth-page { max-width: 480px; text-align: center; }
.auth-page .auth-card { margin: 0 auto; text-align: left; }
.auth-page .form-note { margin-left: auto; margin-right: auto; text-align: left; }
.auth-page .info-card { text-align: left; }
.auth-page .auth-note { margin-left: auto; margin-right: auto; }

/* Generic checkbox row, register terms text */
.checkbox { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; color: var(--text); cursor: pointer; }
.checkbox input { width: auto; }
.auth-check { margin-bottom: 16px; }
.auth-terms { font-size: 12px; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* Password Show/Hide toggle */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 62px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--gold-deep); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 8px; }
.pw-toggle:hover { color: var(--gold); }
/* Hide the browser's own built-in reveal/clear icons so only ours shows */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none; }

/* Anti-spam honeypot — hidden from real users */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.pd-actions .btn { margin-bottom: 12px; }
.pd-continue { display: inline-block; font-size: 14px; }

.pd-section { margin-top: 46px; }
.pd-section h2 { display: inline-block; padding-bottom: 6px; border-bottom: 2px solid var(--gold); margin-bottom: 16px; }
.cost-notes { width: 100%; resize: vertical; overflow: hidden; min-height: 42px; padding: 9px 11px; border: 1px solid var(--border-2); border-radius: var(--radius); font: inherit; }
.admin-order-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 760px) { .admin-order-grid { grid-template-columns: 1fr; } }
.pd-desc-body { max-height: 250px; overflow: hidden; position: relative; }
.pd-description.is-open .pd-desc-body { max-height: none; }
.pd-desc-body::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(rgba(255,255,255,0), var(--bg, #fff)); pointer-events: none; }
.pd-description.is-open .pd-desc-body::after { display: none; }
.pd-desc-toggle { margin-top: 12px; background: none; border: none; color: var(--gold-deep); font-weight: 700; font-size: 14px; cursor: pointer; padding: 0; }
.pd-description h3 { font-size: 17px; color: #16233c; margin: 22px 0 8px; }
.pd-description p { color: var(--text); line-height: 1.7; margin: 0 0 12px; max-width: 760px; }
.pd-description ul { margin: 8px 0 14px 22px; max-width: 760px; }
.pd-description li { line-height: 1.7; margin-bottom: 5px; }
.pd-description em { color: var(--muted); font-size: 13px; }

/* Disclaimer box */
.disclaimer-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    font-size: 13px;
    color: var(--muted);
    margin-top: 30px;
}

/* --------------------------------------------------------- Content pages */
.content-page { max-width: 860px; }
.content-page h1 { display: inline-block; padding-bottom: 10px; border-bottom: 2px solid var(--gold); margin-bottom: 30px; }
.content-block { margin-bottom: 36px; }
.content-block h2 { font-size: 20px; margin-bottom: 12px; }
.content-block ul { padding-left: 20px; margin: 0 0 1em; }
.content-block li { margin-bottom: 8px; }

.ordered-steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 20px; }
.ordered-steps li {
    position: relative;
    padding: 15px 16px 15px 62px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    color: var(--text);
    box-shadow: var(--shadow);
}
.ordered-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    border-radius: var(--radius);
}

.info-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.info-card h3 { font-size: 17px; margin-bottom: 8px; }
.info-card p { margin-bottom: 10px; }
.info-card ul { padding-left: 20px; margin: 0 0 10px; color: var(--text); }
.info-card li { margin-bottom: 6px; }
.info-card li::marker { color: var(--gold-deep); }
.info-card > :last-child { margin-bottom: 0; }

/* Country coverage list — auto-fitting columns (responsive) */
.country-list { column-width: 150px; column-gap: 26px; margin: 6px 0 0; }
.country-list li { margin-bottom: 6px; break-inside: avoid; }

/* Spam-safe email reveal link (real address assembled by JS on click) */
a.email-reveal:not(.btn) { color: var(--gold-deep); border-bottom: 1px dotted currentColor; cursor: pointer; white-space: nowrap; }
a.email-reveal:not(.btn):hover { color: var(--gold); }

/* Top page-load progress bar — feedback on slow connections */
#page-loader {
    position: fixed;
    top: 0; left: 0;
    height: 3px; width: 0;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(212,175,55,.7);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: width .3s ease, opacity .4s ease;
}

/* Gentle fade-in so the header settles without flashing between pages */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageFadeIn .25s ease both; }
@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
}

.placeholder-box {
    background: var(--bg-alt);
    border: 1px dashed var(--border-2);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

/* ------------------------------------------------------------- Contact -- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.card-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.contact-info ul { padding: 0; margin: 0; }
.contact-info li { margin-bottom: 14px; list-style: none; }
.contact-info strong { color: var(--ink); display: block; }

/* ---------------------------------------------------------------- Cart -- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-table th {
    text-align: left;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
    padding: 12px;
    border-bottom: 2px solid var(--border);
}
.cart-table td { padding: 16px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.cart-table .cart-product { display: flex; align-items: center; gap: 16px; }
.cart-thumb { flex: 0 0 auto; width: 108px; height: 108px; border: 1px solid var(--border); border-radius: 8px; background: #fff; overflow: hidden; display: block; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-product__text { display: block; }
.cart-table .cart-product strong { color: var(--ink); display: block; font-size: 15px; }
.cart-table .cart-product strong a { color: inherit; }
.cart-table .cart-product small { color: var(--muted); }

/* Cart — clean card list (works on phone) */
.cart-list { border-top: 1px solid var(--border); margin-bottom: 22px; }
.cart-row { display: flex; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--border); }
.cart-row__thumb { flex: 0 0 auto; width: 84px; height: 84px; border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; display: block; }
.cart-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row__main { flex: 1 1 auto; min-width: 0; }
.cart-row__name { display: block; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 16px; }
.cart-row__pack { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }
.cart-row__side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cart-row__price { font-weight: 700; color: var(--ink); font-size: 16px; white-space: nowrap; }
.cart-row__del { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; line-height: 0; }
.cart-row__del:hover { color: var(--orange); }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden; }
.qty-btn { width: 34px; height: 34px; border: none; background: var(--bg-alt); color: var(--ink); font-size: 18px; cursor: pointer; line-height: 1; }
.qty-btn:hover { background: var(--border); }
.qty-stepper .cart-qty { width: 46px; height: 34px; text-align: center; border: none; border-left: 1px solid var(--border-2); border-right: 1px solid var(--border-2); font: inherit; -moz-appearance: textfield; }
.qty-stepper .cart-qty::-webkit-outer-spin-button, .qty-stepper .cart-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-summary2 { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; max-width: 440px; margin-left: auto; }
.cart-summary2 h3 { margin: 0 0 14px; }
.cart-summary2__row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text); }
.cart-summary2__total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; font-size: 20px; font-weight: 800; color: var(--ink); }
.cart-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.cart-note--warn { color: var(--orange); font-weight: 600; }
.cart-note--ok { color: var(--green); font-weight: 600; }
.cart-summary2 .cart-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
@media (max-width: 600px) {
    .cart-row__thumb { width: 66px; height: 66px; }
    .cart-row__name { font-size: 15px; }
    .cart-summary2 { max-width: none; }
}
.cart-table .cart-price, .cart-table .cart-total { color: var(--ink); white-space: nowrap; }
.cart-qty { width: 66px; padding: 8px; text-align: center; background: #fff; border: 1px solid var(--border-2); border-radius: var(--radius); color: var(--ink); font-family: inherit; }
.cart-remove {
    display: inline-block;
    width: 32px; height: 32px; line-height: 30px;
    text-align: center;
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    color: var(--muted);
    background: #fff;
    cursor: pointer;
    font-size: 16px;
}
.cart-remove:hover { border-color: var(--orange); color: var(--orange); }

.cart-summary {
    display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: center; gap: 20px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 24px;
}
.cart-summary__total { font-size: 15px; color: var(--text); }
.cart-summary__total strong { color: var(--gold-deep); font-size: 30px; display: block; margin-top: 2px; }
.cart-summary__lines { display: grid; grid-template-columns: auto auto; gap: 3px 22px; font-size: 14px; color: var(--muted); margin-bottom: 12px; max-width: 240px; }
.cart-summary__lines span:nth-child(even) { text-align: right; color: var(--text); font-weight: 600; }
.cart-note { margin: -8px 0 20px; font-size: 14px; color: var(--muted); }
.cart-note--warn { color: var(--orange); font-weight: 600; }
.cart-note--ok { color: var(--green); font-weight: 600; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.cart-empty p { font-size: 18px; color: var(--text); margin-bottom: 22px; }

.order-id-box {
    background: var(--bg-alt);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    text-align: center;
}
.order-id-box small { color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.order-id-box strong { display: block; color: var(--gold-deep); font-size: 26px; letter-spacing: 2px; margin-top: 4px; }

.checkout-note {
    background: #FBF6E6;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 18px 20px;
    color: #7A6115;
    margin-bottom: 24px;
}

/* Form validation notice */
.form-note { margin-bottom: 20px; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; }
.form-note--error { background: #FBF1E3; color: var(--orange); border: 1px solid #F0D9B5; }
.form-note--ok { background: #EAF7EF; color: var(--green); border: 1px solid #BFE6CD; }

/* ----------------------------------------------------------- Checkout --- */
/* Wide gutter between the two columns; vertical rhythm stays compact. */
.checkout-grid { display: grid; grid-template-columns: 1.35fr 1fr; column-gap: 92px; row-gap: 32px; align-items: start; margin-top: 24px; }
.checkout-main h3,
.checkout-side h3 { font-size: 17px; margin: 0 0 14px; color: var(--ink); }
.checkout-main .field { margin-bottom: 16px; }
.checkout-side > * + * { margin-top: 20px; }
.field-note { font-weight: 400; color: var(--muted); font-size: 13px; }
.checkout-forgot { display: inline-block; margin-top: 2px; color: var(--gold-deep); }

/* Coupon (UI only) */
.coupon { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 22px; background: var(--panel); }
.coupon > summary { cursor: pointer; padding: 13px 16px; font-size: 14px; color: var(--gold-deep); list-style: none; display: flex; align-items: center; gap: 10px; }
.coupon > summary::-webkit-details-marker { display: none; }
.coupon__icon { flex: 0 0 auto; color: var(--gold-deep); }
.coupon > summary::after { content: "\002B"; margin-left: auto; font-weight: 700; }
.coupon[open] > summary::after { content: "\2212"; }
.coupon__body { display: flex; align-items: center; gap: 12px; padding: 0 16px 16px; flex-wrap: wrap; }
.coupon__body--stack { flex-direction: column; align-items: stretch; gap: 16px; }
.coupon__field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.coupon__field input { width: 100%; padding: 11px 12px; background: #fff; border: 1px solid var(--border-2); border-radius: var(--radius); font-family: inherit; font-size: 15px; }
.coupon__field .field-hint { margin-top: 6px; }
.coupon__body input { flex: 1; min-width: 160px; padding: 11px 12px; background: #fff; border: 1px solid var(--border-2); border-radius: var(--radius); font-family: inherit; font-size: 15px; }
.coupon__body .field-hint { margin: 0; }

/* Order summary card */
.order-summary { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.order-summary__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border); }
.order-summary__row:last-child { border-bottom: none; }
.order-summary__row span:last-child { white-space: nowrap; font-weight: 600; color: var(--ink); }
.order-summary__total { font-size: 17px; padding-top: 12px; }
.order-summary__total span { font-weight: 700; color: var(--gold-deep); }
.order-summary__item .osi-info { display: flex; align-items: center; gap: 14px; }
.osi-thumb { width: 96px; height: 96px; flex: 0 0 auto; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: #fff; }

/* USDT / network warning */
.pay-warn { margin: -4px 0 12px; padding: 10px 12px; background: #FBF1E3; border: 1px solid #F0D9B5; border-radius: var(--radius); color: #8A5A00; font-size: 13px; line-height: 1.45; }

/* Payment methods */
.pay-methods { margin-bottom: 8px; }
.pay-method { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--border-2); border-radius: var(--radius); margin-bottom: 10px; cursor: pointer; font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.pay-method:hover { border-color: var(--gold); }
.pay-method input { width: auto; margin: 0; accent-color: var(--gold-deep); }
.pay-method:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.15); }
.coin-ico { width: 24px; height: 24px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.pay-box__title { display: flex; align-items: center; gap: 8px; }
.pay-box__title .coin-ico { width: 26px; height: 26px; }

/* Payment box (confirmation page) */
.pay-box { background: var(--panel); border: 1px solid var(--gold); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 24px; max-width: 640px; }
.pay-box h3 { font-size: 18px; margin: 0 0 10px; color: var(--ink); }
.pay-box p { color: var(--text); font-size: 14px; }
.pay-box__label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
.pay-address { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.pay-address code { flex: 1; min-width: 220px; padding: 12px 14px; background: #fff; border: 1px dashed var(--gold); border-radius: var(--radius); font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 14px; color: var(--ink); word-break: break-all; }
.pay-address .copy-btn { flex: 0 0 auto; white-space: nowrap; }
.copy-btn.is-copied { background: var(--green); border-color: var(--green); color: #fff; }
.pay-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Order-placed confirmation — centered layout */
.checkout-done { max-width: 760px; margin: 0 auto; text-align: center; }
.checkout-done .form-note,
.checkout-done .pay-box,
.checkout-done .order-summary { margin-left: auto; margin-right: auto; }
.checkout-done .pay-box { text-align: center; }
.checkout-done .pay-box__title { justify-content: center; }
.checkout-done .pay-address { justify-content: center; }
.checkout-done .order-summary { text-align: left; }

@media (max-width: 820px) {
    .checkout-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Order status badges */
.order-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.order-status--paid { background: #EAF7EF; color: var(--green); }
.order-status--pending { background: #FBF1E3; color: var(--orange); }
.order-status--shipped { background: #E7F0FB; color: #2563a8; }
.order-status--delivered { background: #EAF7EF; color: var(--green); }
.order-status--cancelled { background: #F1EEEC; color: #8a7d76; }

/* ------------------------------------------------------ Account area --- */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: start; margin-top: 20px; }
.account-nav { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; background: var(--panel); }
.account-nav__hello { padding: 8px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.account-nav__label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.account-nav__hello strong { font-size: 13px; color: var(--ink); word-break: break-all; }
.account-nav__link { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.account-nav__link:hover { background: rgba(212,175,55,.10); color: var(--gold-deep); }
.account-nav__link.is-active { background: var(--gold); color: #1c1c1c; }
.account-nav__logout { margin: 6px 0 0; border-top: 1px solid var(--border); padding-top: 6px; }
.account-nav__link--btn { width: 100%; text-align: left; background: none; border: none; font: inherit; font-weight: 500; cursor: pointer; color: var(--orange); }
.account-nav__link--btn:hover { background: rgba(0,0,0,.04); color: var(--orange); }
.account-main__title { font-size: 20px; margin: 0 0 14px; color: var(--ink); }
.account-hint { color: var(--muted); font-size: 14px; margin: -6px 0 18px; }
.account-back { margin: 0 0 12px; font-size: 14px; }
.account-order-meta { color: var(--muted); font-size: 14px; margin: -6px 0 18px; }
.account-address-block { font-size: 15px; line-height: 1.7; color: var(--text); margin: 0 0 18px; }
.order-qty { color: var(--muted); font-size: 13px; }

/* Account orders table actions — pill buttons */
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.order-actions form { margin: 0; }
.linkaction { display: inline-block; background: #fff; border: 1.5px solid var(--gold-deep); padding: 8px 16px; border-radius: 8px;
    font: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; color: var(--gold-deep); text-decoration: none; transition: all .15s; }
.linkaction:hover { background: var(--gold); border-color: var(--gold); color: #1c1c1c; }
.linkaction--pay { background: var(--gold); border-color: var(--gold); color: #1c1c1c; }
.linkaction--pay:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.linkaction--cancel { border-color: var(--orange); color: var(--orange); }
.linkaction--cancel:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.linkaction--track { border-color: #2563a8; color: #2563a8; }
.linkaction--track:hover { background: #2563a8; border-color: #2563a8; color: #fff; }

/* Order detail table */
.order-detail { margin: 22px 0; }
.order-detail h3 { font-size: 16px; margin: 0 0 12px; color: var(--ink); }
.order-detail__table { width: 100%; border-collapse: collapse; }
.order-detail__table td { padding: 12px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14px; }
.odt-thumb { width: 84px; }
.odt-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: #fff; }
.odt-name span { color: var(--muted); }
.odt-name .odt-qty { color: var(--ink); font-weight: 600; }
.odt-price { text-align: right; white-space: nowrap; font-weight: 600; color: var(--ink); }
.order-detail__table tfoot td { border-bottom: none; color: var(--muted); }
.order-detail__table tfoot td:last-child { text-align: right; color: var(--ink); font-weight: 600; }
.order-detail__table tfoot .odt-total td { font-size: 17px; color: var(--gold-deep); padding-top: 14px; }

/* Track box */
.track-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.track-box__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 6px; }
.track-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

.admin-actions form { display: block; }

@media (max-width: 760px) {
    .account-layout { grid-template-columns: 1fr; gap: 20px; }
    .account-nav { flex-direction: row; flex-wrap: wrap; }
    .account-nav__hello { flex-basis: 100%; }
}

/* Account order history table */
.account-orders { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.account-orders th, .account-orders td { text-align: left; padding: 15px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.account-orders th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
.account-orders td { color: var(--text); }
.account-orders strong { color: var(--ink); font-size: 16px; }

/* Admin orders table */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.admin-table small { color: var(--muted); }
.admin-table .admin-addr { word-break: break-all; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.admin-table .btn { padding: 6px 12px; font-size: 13px; }

.order-meta { color: var(--muted); line-height: 1.6; display: inline-block; }

/* --------------------------------------------------------- Reviews --- */
.review-summary { display: flex; align-items: center; gap: 18px; margin: 6px 0 22px; }
.review-summary__avg { font-size: 46px; font-weight: 800; color: var(--gold-deep); line-height: 1; }
.review-summary__count { color: var(--muted); font-size: 14px; margin-top: 4px; }
.review-stars { color: var(--gold); letter-spacing: 2px; white-space: nowrap; }
.review-stars--lg { font-size: 22px; }

.review-leave { margin: 8px 0 26px; }
.review-leave h3 { margin-top: 0; }

/* Read-only fractional star display (supports half stars via a gold overlay) */
.star-bar { display: inline-block; font-size: 16px; line-height: 0; vertical-align: middle; }
.star-bar svg { height: 1em; width: 5em; display: block; }
.star-bar--lg { font-size: 22px; }
.star-bar--xl { font-size: 34px; }
.star-bar .sb-on  { stop-color: var(--gold); }
.star-bar .sb-off { stop-color: #cdd3df; }
.review .star-bar .sb-off { stop-color: rgba(255, 255, 255, 0.30); }
.review__foot .star-bar { font-size: 18px; margin: 5px 0; }

/* Interactive half-star picker (review form) — big + animated */
.rating-label { display: block; font-size: 19px; font-weight: 700; margin-bottom: 12px; color: #16233c; }
.rating-pick { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; -webkit-user-select: none; outline: none; padding: 4px; border-radius: 10px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.rating-pick:focus-visible { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5); }
.rp-star { position: relative; width: 46px; height: 46px; -webkit-tap-highlight-color: transparent; }
.rp-vis { position: relative; display: block; width: 46px; height: 46px; transition: transform .12s ease; }
.rp-svg { width: 46px; height: 46px; display: block; }
.rp-svg path { fill: #d9d3c4; }
.rp-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0; overflow: hidden; }
.rp-fill .rp-svg path { fill: var(--gold); }
.rp-star--half .rp-fill { width: 50%; }
.rp-star--full .rp-fill { width: 100%; }
.rp-hit { position: absolute; top: 0; height: 100%; width: 50%; z-index: 2; -webkit-tap-highlight-color: transparent; }
.rp-hit--l { left: 0; }
.rp-hit--r { right: 0; }
.rp-star:hover .rp-vis { transform: scale(1.14); }
.rp-star.is-pop .rp-vis { animation: rp-pop .34s ease; }
@keyframes rp-pop { 0% { transform: scale(1); } 45% { transform: scale(1.4); } 100% { transform: scale(1); } }
.rp-value { font-size: 22px; font-weight: 800; color: var(--gold-deep); margin-left: 12px; min-width: 30px; }

/* Card grid — each card hugs its own content (no empty void in short cards).
   Breaks out wider than the 860px reading column so it fills the sides. */
.review-list {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; align-items: start;
    position: relative; left: 50%; transform: translateX(-50%);
    width: min(1360px, 92vw);
}
@media (max-width: 900px) { .review-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .review-list { grid-template-columns: 1fr; } }
.review {
    background: linear-gradient(150deg, #1a2a49 0%, #26497e 100%);
    color: #fff; border-radius: 14px; padding: 22px 22px 18px; box-shadow: var(--shadow);
}
.review__body { color: #eef2f8; font-size: 14px; line-height: 1.7; text-align: center; margin: 0 0 14px; overflow-wrap: anywhere; }
.review__img { max-width: 100%; border-radius: 8px; margin: 4px 0 12px; display: block; }
.review__reply { background: rgba(255,255,255,.10); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.6; color: #dfe6f2; margin: 10px 0; text-align: left; }
.review__reply strong { color: var(--gold); }
.review__foot { text-align: center; margin-top: 16px; }
.review__name { display: block; font-weight: 700; font-style: italic; }
/* Privacy: only the first letter is legible, the rest is blurred out. */
.review__name-blur {
    filter: blur(4.5px);
    -webkit-filter: blur(4.5px);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}
.review__foot .review-stars { display: block; font-size: 17px; margin: 4px 0; }
.review__date { display: block; color: #9fb0c9; font-size: 12px; }

/* Admin analytics */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat__n { display: block; font-size: 28px; font-weight: 700; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.stat__l { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 8px 0; overflow-x: auto; }
.bar { flex: 1 0 34px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar__fill { width: 60%; min-height: 3px; background: var(--gold); border-radius: 4px 4px 0 0; }
.bar__n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.bar__x { font-size: 11px; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.analytics-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .analytics-cols { grid-template-columns: 1fr; } }

/* Admin tabs */
.admin-tabs { display: flex; gap: 4px; margin: 22px 0 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.admin-tabs a { padding: 11px 20px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; }
.admin-tabs a:hover { color: var(--gold-deep); }
.admin-tabs a.is-active { color: var(--gold-deep); border-bottom-color: var(--gold); }

/* Product card 1-line blurb */
.product-card__blurb { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 14px; }

/* Admin: star toggle + product image editor */
.star-btn { background: none; border: none; cursor: pointer; font-size: 20px; line-height: 1; color: #c9a227; padding: 2px 4px; }
.star-btn.is-on, .star-btn:hover { color: #e0b400; }
.img-editor { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.img-editor__preview { width: 120px; height: 120px; object-fit: cover; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.img-editor__controls { display: flex; flex-direction: column; gap: 10px; }
.paste-zone { border: 1.5px dashed var(--border-2); border-radius: 8px; padding: 14px 16px; color: var(--muted); font-size: 13px; cursor: text; max-width: 340px; }
.paste-zone:focus { outline: none; border-color: var(--gold); }
.paste-zone.has-image { border-color: var(--green); color: var(--green); }
.is-armed { background: var(--orange) !important; border-color: var(--orange) !important; color: #fff !important; }

/* Admin pack-tier editor rows */
.pack-row { display: flex; gap: 10px; margin-bottom: 8px; align-items: center; }
.pack-row input { padding: 10px 12px; border: 1px solid var(--border-2); border-radius: var(--radius); font: inherit; font-size: 15px; background: #fff; }
.pack-row input[type="text"] { flex: 2; }
.pack-row input[type="number"] { flex: 1; min-width: 90px; }
.pack-row__del { background: none; border: none; font-size: 20px; color: var(--orange); cursor: pointer; line-height: 1; padding: 4px 8px; }

/* Product page pack-tier list */
/* Collapsible educational box (native <details> — no JS, phone-friendly) */
.info-collapse { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); margin: 0 0 26px; overflow: hidden; }
.info-collapse > summary {
    list-style: none; cursor: pointer; display: block;
    padding: 14px 18px; color: var(--text);
}
.info-collapse > summary::-webkit-details-marker { display: none; }
.info-collapse__preview { display: block; font-size: 14px; line-height: 1.65; color: var(--text); }
.info-collapse[open] .info-collapse__preview { display: none; } /* full text replaces the teaser */
.info-collapse__more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--gold-deep); white-space: nowrap; }
.info-collapse__more::after { content: 'Read more \25BE'; }
.info-collapse[open] .info-collapse__more::after { content: 'Show less \25B4'; }
.info-collapse__body { padding: 4px 18px 18px; font-size: 14px; line-height: 1.7; color: var(--text); }
.info-collapse__body h3 { font-size: 15px; margin: 14px 0 6px; color: #16233c; }
.info-collapse__body h3:first-child { margin-top: 4px; }
.info-collapse__body ul { margin: 6px 0 10px 20px; }
.info-collapse__body p { margin: 0 0 10px; }
.info-collapse__note { font-size: 12.5px; color: var(--muted); font-style: italic; }

/* Admin shipping-rates editor rows */
.ship-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.ship-row input { padding: 9px 11px; border: 1px solid var(--border-2); border-radius: var(--radius); font: inherit; background: #fff; }
.ship-row input[type="text"] { flex: 1; min-width: 0; }
.ship-row input[type="number"] { width: 110px; }

/* Admin category editor */
.cat-editor { display: flex; flex-direction: column; gap: 8px; }
.cat-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.cat-row--new { border-style: dashed; margin-top: 12px; background: transparent; }
.cat-color { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--border-2); border-radius: var(--radius); background: #fff; cursor: pointer; flex: none; }
.cat-name { flex: 1; min-width: 160px; padding: 9px 11px; border: 1px solid var(--border-2); border-radius: var(--radius); font: inherit; background: #fff; }
.cat-count { color: var(--muted); font-size: 12.5px; min-width: 78px; }
.cat-flag { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink); white-space: nowrap; }
.cat-flag--del { color: #b23b3b; }
.cat-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); border: 1px solid var(--border); border-radius: 20px; padding: 2px 9px; }

/* Admin coupon creator */
.coupon-create { max-width: 660px; }
.coupon-create__grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 12px; }
.coupon-create__grid label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink); font-weight: 600; }
.coupon-create__grid input { padding: 9px 11px; border: 1px solid var(--border-2); border-radius: var(--radius); font: inherit; background: #fff; }
@media (max-width: 640px) { .coupon-create__grid { grid-template-columns: 1fr 1fr; } }
.coupon-status { font-size: 12px; font-weight: 700; text-transform: capitalize; border-radius: 20px; padding: 2px 10px; display: inline-block; }
.coupon-status--active { color: #1a7d47; background: rgba(26,143,76,.12); }
.coupon-status--disabled { color: #7a6a2f; background: rgba(212,175,55,.16); }
.coupon-status--expired,
.coupon-status--usedup { color: #a23b3b; background: rgba(162,59,59,.12); }

/* Public shipping-rates table (Delivery Info) */
.ship-table { width: 100%; max-width: 460px; border-collapse: collapse; margin: 12px 0 8px; }
.ship-table th, .ship-table td { text-align: left; padding: 10px 14px; border: 1px solid var(--border); }
.ship-table th { background: var(--bg-alt); font-size: 13px; }
.ship-table td:last-child, .ship-table th:last-child { text-align: right; font-weight: 700; color: var(--gold-deep); }

.pack-save {
    margin: 10px 0 0;
    color: #8a6d1b;
    font-size: 12px;
    line-height: 1.4;
}
.pack-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 18px 0; }
.pack-list__head, .pack-list__row { display: grid; grid-template-columns: 1.3fr 1fr 78px auto; gap: 12px; align-items: center; padding: 12px 14px; }
.pack-list__head { background: var(--bg-alt); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.pack-list__row { border-top: 1px solid var(--border); margin: 0; }
.pack-list__size { font-weight: 600; color: var(--ink); }
.pack-list__price { color: var(--gold-deep); font-weight: 700; }
.pack-list__qty { padding: 8px 10px; border: 1px solid var(--border-2); border-radius: var(--radius); background: #fff; font: inherit; }
.pack-list__row .btn { padding: 9px 16px; }
@media (max-width: 600px) {
    .pack-list__head { display: none; }
    .pack-list__row { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
    .pack-list__row .btn { grid-column: 1 / 3; }
}

/* Mobile adaptivity fixes */
/* Sticky footer: the page always fills the screen, footer sits at the bottom. */
html { min-height: 100%; }
body { overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
.order-summary__item .osi-info { flex: 1 1 auto; min-width: 0; }
.order-summary__item .osi-info > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
    .osi-thumb { width: 56px; height: 56px; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }

    /* Orders table -> stacked cards so nothing runs off-screen sideways */
    .account-orders--cards, .account-orders--cards tbody,
    .account-orders--cards tr, .account-orders--cards td { display: block; width: 100%; }
    .account-orders--cards thead { display: none; }
    .account-orders--cards tr {
        border: 1px solid var(--border); border-radius: var(--radius);
        margin-bottom: 14px; padding: 12px 14px; background: #fff;
    }
    .account-orders--cards td {
        border: none; padding: 6px 0; display: flex;
        justify-content: space-between; align-items: center; gap: 12px;
    }
    .account-orders--cards td::before {
        content: attr(data-label); font-weight: 600; color: var(--muted); font-size: 13px;
    }
    .account-orders--cards td strong { font-size: 15px; }
    /* Actions: label on top, buttons full-width underneath */
    .account-orders--cards td.order-actions { display: block; margin-top: 6px; border-top: 1px solid var(--border); padding-top: 10px; }
    .account-orders--cards td.order-actions::before { display: block; margin-bottom: 8px; }
    .account-orders--cards .order-actions { }
    .account-orders--cards .order-actions .linkaction,
    .account-orders--cards .order-actions form { display: block; width: 100%; text-align: center; margin: 0 0 8px; }
    .account-orders--cards .order-actions .linkaction { box-sizing: border-box; }
}

/* ------------------------------------------------------------- Footer --- */
.site-footer {
    background: var(--navy);
    border-top: 1px solid var(--navy-line);
    color: var(--navy-text);
}

/* Footer main: Explore links + payment + newsletter (3 columns) */
.foot-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 40px 0 26px; }
.foot-col { flex: 0 1 auto; }
.foot-pay__terms { margin: 10px 0 0; font-size: 14px; }
.foot-pay__terms a { color: var(--gold-deep); }
.foot-pay__terms a:hover { color: var(--gold); }
.foot-col h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }

.foot-links { list-style: none; margin: 0 0 22px; padding: 0; }
.foot-links li { margin-bottom: 12px; }
.foot-links a { color: var(--navy-text); font-size: 14px; }
.foot-links a:hover { color: var(--gold); text-decoration: underline; }
.foot-links__account a { font-size: 18px; font-weight: 700; color: #fff; }
.foot-copyright { color: var(--muted); font-size: 13px; margin: 0; }

/* Newsletter column: logo + copyright below the subscribe form */
.foot-news__logo { max-width: 150px; width: 100%; height: auto; display: block; margin: 22px 0 12px; border-radius: 8px; }

.foot-pay__img { max-width: 340px; width: 100%; height: auto; display: block; margin: 2px 0 12px; }
.foot-pay__note { color: var(--navy-text); font-size: 14px; margin: 0; }

.foot-news__note { color: var(--navy-text); font-size: 14px; margin: 0 0 14px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.newsletter-form__input {
    border: 1px solid var(--navy-line);
    background: #0e1830;
    color: #fff; font-family: inherit; font-size: 15px;
    padding: 13px 14px;
    border-radius: var(--radius);
}
.newsletter-form__input::placeholder { color: #6b7486; }
.newsletter-form__input:focus { outline: none; border-color: var(--gold); }
.newsletter-form__btn {
    border: none; cursor: pointer;
    background: var(--gold); color: var(--navy);
    font-family: inherit; font-weight: 700; font-size: 14px;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 13px; border-radius: var(--radius);
}
.newsletter-form__btn:hover { background: var(--gold-soft); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 960px) {
    .grid, .grid--6 { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .foot-main { grid-template-columns: 1fr 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .product-image { height: 320px; }
    .hero__inner { max-width: 720px; gap: 32px; }
    .hero-product__name { font-size: 26px; }
}

/* Collapse the whole right side (utility + search + main nav) into a
   hamburger panel before the rows get cramped */
@media (max-width: 1120px) {
    .nav-toggle { display: flex; order: 2; }
    .brand { order: 1; }

    /* Panel wraps onto its own full-width row and pushes the page down
       (stays in normal flow) instead of floating on top of the content. */
    .site-header__inner { flex-wrap: wrap; }
    .header-right {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .32s ease, opacity .25s ease, padding .32s ease;
    }
    .header-right.open {
        max-height: 85vh;
        overflow-y: auto;
        opacity: 1;
        padding: 6px 2px 16px;
    }

    /* Main nav: clean full-width stacked rows */
    .util-row { flex-direction: column; align-items: stretch; gap: 0; order: 2; }
    .main-nav__list a {
        display: block;
        padding: 14px 8px;
        border-bottom: 1px solid var(--navy-line);
        border-radius: 0;
        font-size: 15px;
        font-weight: 500;
    }

    /* Products + Account + Cart: bigger, with their icons, grouped at the bottom */
    .nav-account a, .nav-cart a { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; }
    .nav-products > a { display: flex; align-items: center; gap: 10px; font-size: 18px; }
    .nav-account .acct-ico, .nav-cart .cart-ico, .nav-products .prod-ico { width: 22px; height: 22px; }
    .nav-products .caret { float: none; margin-left: auto; }

    /* Secondary links sit in one compact horizontal row */
    .util-nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 12px 8px 6px; }
    .util-nav a { padding: 4px 0; border-bottom: none; font-size: 13px; font-weight: 500; white-space: nowrap; }

    .main-nav { order: 1; }
    .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav__list > li { width: 100%; }
    .main-nav__list > li:first-child a { padding-left: 8px; }
    .main-nav__list li:last-child a { border-bottom: none; }

    /* Compact search at the bottom */
    .site-search { width: 100%; margin-top: 12px; padding: 2px 4px 2px 14px; }
    .site-search__input { max-width: none; font-size: 14px; padding: 8px 6px; }
    .site-search__btn { width: 30px; height: 30px; }

    /* Products -> tap to reveal categories, nested and animated */
    .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        border: none; box-shadow: none; margin: 0; padding: 0 0 0 12px;
        background: rgba(0,0,0,.18); border-radius: 0;
        max-height: 0; overflow: hidden;
        transition: max-height .3s ease;
    }
    .has-dropdown.open .dropdown { max-height: 340px; }
    .dropdown a { padding: 12px 10px; font-size: 14px; }
    .has-dropdown > .dropdown-toggle .caret { float: right; transition: transform .25s ease; }
    .has-dropdown.open > .dropdown-toggle .caret { transform: rotate(180deg); }
}

@media (max-width: 720px) {
    .two-col { grid-template-columns: 1fr; }
    .grid, .grid--6, .grid--2 { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr 1fr; }

    /* Logo hard-left, hamburger right, centered — no stretched empty row below */
    .site-header__inner { min-height: 0; align-items: center; align-content: flex-start; padding: 10px 14px; }
    .brand__logo { height: 58px; }

    /* Smaller search bar on phones */
    .site-search { margin-top: 10px; padding: 1px 3px 1px 12px; }
    .site-search__input { font-size: 13px; padding: 6px 6px; }
    .site-search__btn { width: 27px; height: 27px; }

    /* Reviews: show only 2 per slide on small screens */
    .reviews__slide { grid-template-columns: 1fr; gap: 20px; }
    .reviews__slide .review-card:nth-child(n+3) { display: none; }
    .reviews__stage { padding: 0 42px; }

    /* Footer: centered and tidy on phones */
    .foot-main { flex-direction: column; align-items: center; gap: 30px; text-align: center; }
    .foot-links { columns: 1; }
    .foot-pay__img { max-width: 230px; margin: 4px auto 12px; }
    .foot-pay__note, .foot-news__note { margin-left: auto; margin-right: auto; }
    .newsletter-form { max-width: 320px; margin: 0 auto; }
    .newsletter-form__btn { padding: 0 18px; }
    .foot-news__logo { margin: 18px auto 12px; }

    .hero__slide { padding: 40px 46px 58px; }
    .hero__inner { grid-template-columns: 1fr; gap: 36px; max-width: 420px; }
    .hero-product__media { height: 190px; }
    .hero-product__media img { max-height: 190px; }
    .hero-product__ph { width: 170px; height: 170px; }

    .field-row { flex-direction: column; gap: 0; }

    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table thead { display: none; }
    .cart-table tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; padding: 14px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
    .cart-table td { border-bottom: none; padding: 7px 0; display: flex; justify-content: space-between; align-items: center; }
    .cart-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .5px;
    }
    /* Product: thumb + name across the top, no label */
    .cart-table td.cart-product { justify-content: flex-start; gap: 12px; padding: 0 0 12px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
    .cart-table td.cart-product::before { display: none; }
    .cart-table td.cart-product .cart-thumb { width: 62px; height: 62px; }
    .cart-table td.cart-product strong { font-size: 15px; }
    .cart-table td.cart-price, .cart-table td.cart-total { font-weight: 700; color: var(--ink); }
    .cart-table td.cart-remove-cell { justify-content: flex-end; padding-top: 10px; }
    .cart-table td.cart-remove-cell::before { content: 'Remove'; }

    .cart-summary { flex-direction: column; align-items: stretch; text-align: left; gap: 14px; }
    .cart-summary__lines { max-width: none; }
    .cart-actions { justify-content: stretch; }
    .cart-actions .btn { flex: 1; text-align: center; }
}

@media (max-width: 480px) {
    .cat-grid { grid-template-columns: 1fr; }
    h1 { font-size: 24px; }
    .hero-product__name { font-size: 23px; }
}

/* ---- Mobile (<=1120px): swap the inline search bar for a tap-to-open icon ---- */
@media (max-width: 1120px) {
    .cart-toggle   { display: inline-flex; order: 2; margin-left: auto; }
    .search-toggle { display: inline-flex; order: 3; }
    .nav-toggle    { order: 4; margin-left: 6px; }
    .header-right  { order: 5; }          /* menu panel drops onto its own row */
    .site-search   { display: none; }     /* replaced by the icon + overlay */
    .nav-cart      { display: none; }     /* replaced by the top-bar cart icon */
    .brand         { min-width: 0; }
}

/* Phones: shrink the wordmark so logo + cart + search + menu share one row */
@media (max-width: 640px) {
    .site-header__inner { gap: 6px; }
    .brand__logo { height: auto; max-height: 50px; max-width: 46vw; width: auto; }
    .cart-toggle, .search-toggle { padding: 7px; }
}
