:root {
  --red: #e10600;
  --red-dark: #b30500;
  --red-soft: #fff1f0;
  --white: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #fafafa;
  --ink: #111111;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #e8e8ed;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .06);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .08);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); margin: 0; }
.accent { color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  background: transparent; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover:not(:disabled) { background: var(--red-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.btn--text { padding-left: .4em; padding-right: .4em; color: var(--ink); }
.btn--text:hover { color: var(--red); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover:not(:disabled) { background: #000; }
.btn--block { width: 100%; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--surface); }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); margin: 0 0 14px;
}
.link-arrow { color: var(--red); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* Announcement + header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; }
.logo__mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--red); color: var(--white); font-size: .85rem; letter-spacing: -.03em;
}
.logo__img { height: 30px; width: auto; }
.logo .logo__text { font-weight: 800; letter-spacing: -.01em; }
.footer__logo { display: inline-block; }
.footer__logo img { height: 92px; width: auto; }
.logo--light .logo__text { color: var(--white); }
.nav { display: flex; gap: 32px; font-size: .94rem; font-weight: 500; color: var(--ink-2); }
.nav a { padding: 6px 0; transition: color .15s; }
/* Header links: small caps style (uppercase, smaller, tracked out) */
.nav a, .account-link, .header__links .link-arrow, .header__links .btn, .header__user {
  text-transform: uppercase; font-size: .76rem; font-weight: 600; letter-spacing: .09em;
}
.nav a:hover { color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 2px; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--red); color: var(--white);
  font-size: .68rem; font-weight: 700; display: grid; place-items: center;
}
.menu-btn { display: none; }

/* Hero */
.hero { background: var(--white); }
.hero__inner {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 56px;
  padding-top: 72px; padding-bottom: 72px;
}
.hero h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: 22px; }
.hero__soft { color: #a1a1a6; }
.hero__lead { font-size: 1.1rem; color: var(--ink-2); max-width: 500px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0 36px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.hero__facts strong { color: var(--ink); font-weight: 600; }

/* Hero spotlight (featured product) */
.spotlight { background: var(--surface); border-radius: 28px; overflow: hidden; }
.spotlight__media {
  position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; color: #c7c7cc;
}
.spotlight__media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight__media svg { width: 34%; height: auto; }
.spotlight__label {
  position: absolute; top: 18px; left: 18px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--white); color: var(--ink); padding: 6px 12px; border-radius: 999px;
}
.spotlight__body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 24px; }
.spotlight__body h3 { font-size: 1.15rem; margin: 0 0 2px; }
.spotlight__body .price { font-size: 1rem; }
/* With a photo: the image fills the whole card and the details float over it */
.spotlight--photo { position: relative; background: #ececec; }
.spotlight--photo .spotlight__media { aspect-ratio: 4 / 3; }
.spotlight--photo .spotlight__body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .72) 55%, rgba(255, 255, 255, .9) 100%);
}
.skeleton { background: linear-gradient(90deg, #ececf0 0%, #f7f7f9 50%, #ececf0 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.skeleton--line { display: block; height: 14px; width: 60%; border-radius: 6px; }
.skeleton--short { width: 30%; }
.spotlight__body:has(.skeleton) { flex-direction: column; align-items: flex-start; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Sections */
.section { padding: 80px 0; }
.section--tight { padding: 24px 0 8px; }
.section--surface { background: var(--surface); }
.section--tint { background: var(--surface-2); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section__head h2 { margin: 0; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; margin-bottom: 44px; }
.section__head--center .eyebrow { margin: 0; }
.section__lead { color: var(--muted); margin: 4px 0 0; max-width: 520px; }

/* Categories */
.categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.category {
  position: relative; display: flex; flex-direction: column; gap: 28px; padding: 24px;
  border-radius: var(--radius); background: var(--surface); transition: background .2s;
}
.category:hover { background: #ececf0; }
.category__icon { color: var(--ink); }
.category h3 { font-size: 1.05rem; margin: 0 0 2px; }
.category span { color: var(--muted); font-size: .88rem; }
.category__arrow { position: absolute; top: 22px; right: 22px; color: var(--muted); transition: transform .2s, color .2s; }
.category:hover .category__arrow { transform: translateX(3px); color: var(--ink); }

/* Products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 20px; }
.product { display: flex; flex-direction: column; }
.product__media {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
  background: var(--surface); color: #c7c7cc; border-radius: var(--radius); margin-bottom: 14px;
}
.product__media svg { width: 38%; height: auto; transition: transform .3s ease; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
/* Photos shot on white blend into the grey tile instead of showing a white square */
.product__media img, .cart-item__thumb img, .summary__thumb img, .order-items__thumb img, .thumb-sm img { mix-blend-mode: multiply; }
.product:hover .product__media img, .product:hover .product__media svg { transform: scale(1.04); }
.product__tag {
  position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--white); color: var(--ink);
  font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.product__tag--sale { background: var(--red); color: var(--white); }
.product__tag--dark { background: var(--ink); color: var(--white); }
.product__body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product__cat { font-size: .78rem; color: var(--muted); }
.product__body h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.product__body p { color: var(--muted); font-size: .88rem; margin: 0; flex: 1; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.price { font-weight: 700; font-size: 1.05rem; }
.price--sale { color: var(--red); }
.price s { color: var(--muted); font-weight: 400; font-size: .85rem; margin-left: 6px; }
.add-btn { padding: .45em 1em; font-size: .85rem; }
.product--soldout .product__media { opacity: .6; }

.product__body h3 a:hover, .spotlight__body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
a.product__media, a.spotlight__media { cursor: pointer; }

/* Product page */
.pdp { padding-top: 28px; padding-bottom: 40px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 500; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.pdp__media {
  position: sticky; top: 88px; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden;
  background: var(--surface); display: grid; place-items: center; color: #c7c7cc;
}
.pdp__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pdp__media svg { width: 34%; height: auto; }
.pdp__media .product__tag { top: 18px; left: 18px; font-size: .78rem; padding: 6px 12px; }
.pdp__info { padding-top: 8px; }
.pdp__cat { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.pdp__title { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; margin: 10px 0 14px; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp__price .price { font-size: 1.6rem; font-weight: 700; }
.pdp__price .price s { font-size: 1rem; }
.pdp__save { font-size: .8rem; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 4px 10px; border-radius: 999px; }
.pdp__stock { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .9rem; font-weight: 600; color: #12804a; }
.pdp__stock .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pdp__stock--low { color: #b26a00; }
.pdp__stock--out { color: var(--muted); }
.pdp__lead { font-size: 1.05rem; color: var(--ink-2); margin: 20px 0 0; }
.pdp__options { border: 0; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.pdp__options legend { font-size: .86rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.pdp__option { position: relative; cursor: pointer; }
.pdp__option input { position: absolute; opacity: 0; }
.pdp__option span {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1.5px solid #dcdcdc; border-radius: 12px; transition: border-color .15s, background .15s;
}
.pdp__option em { font-style: normal; font-weight: 600; color: var(--ink-2); }
.pdp__option input:checked + span { border-color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink); }
.pdp__option input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.cart-item__option { display: block; color: var(--ink-2) !important; font-weight: 500; }
.pdp__buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 28px 0 0; }
.pdp__buy > .btn { margin-top: 0; }
.pdp__add { padding-top: .95em; padding-bottom: .95em; }
.pdp__now { grid-column: 1 / -1; padding-top: .95em; padding-bottom: .95em; }
.pdp__buy .qty-picker[hidden] + .pdp__add { grid-column: 1 / -1; }
.qty-picker { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-picker button { width: 42px; align-self: stretch; border: 0; background: transparent; font: inherit; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty-picker button:hover { background: var(--surface); }
.qty-picker input { width: 44px; padding: 0; border: 0; text-align: center; font: inherit; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty-picker input::-webkit-outer-spin-button, .qty-picker input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-picker input:focus { outline: none; }
.pdp__perks { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.pdp__perks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pdp__perks svg { flex: none; margin-top: 1px; color: var(--ink); }
.pdp__perks div { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.pdp__perks span { color: var(--muted); font-size: .86rem; }
.pdp__perks a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.pdp__desc { max-width: 760px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.pdp__desc h2 { font-size: 1.4rem; margin-bottom: 14px; }
.pdp__desc-body { white-space: pre-line; color: var(--ink-2); font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.pdp__desc a { color: var(--ink); text-decoration: underline; }
.pdp-related { padding-bottom: 72px; }
.pdp-related .products { grid-template-columns: repeat(4, 1fr); }

/* Payments */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 960px; margin: 0 auto; }
.pay-card { padding: 32px; border-radius: 22px; background: var(--white); }
.pay-card h3 { font-size: 1.2rem; }
.pay-card p { color: var(--ink-2); font-size: .96rem; }
.pay-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--ink); margin-bottom: 20px; }
.pay-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 4px 0 0; }
.pay-tags li { font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--surface); color: var(--ink-2); }

.coin-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.coin-logos svg { width: 32px; height: 32px; transition: transform .15s; }
.coin-logos li:hover svg { transform: translateY(-2px); }
/* Monochrome: black badge, white symbol (overrides the brand colours in the SVGs) */
.coin-logos svg > circle { fill: var(--ink); }
.coin-logos svg path[fill^="url"] { fill: #fff; }
.coin-logos__more { font-size: .78rem; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--surface); color: var(--ink-2); margin-left: 2px; }

/* Promises */
.trust { border-bottom: 1px solid var(--line); }
.trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.trust__item { display: flex; align-items: flex-start; gap: 14px; color: var(--ink); }
.trust__item svg { flex: none; margin-top: 2px; }
.trust__item div { display: flex; flex-direction: column; font-size: .94rem; }
.trust__item strong { font-weight: 600; }
.trust__item span { color: var(--muted); font-size: .86rem; }
.trust__item a { text-decoration: underline; text-underline-offset: 2px; }
.trust__item a:hover { color: var(--red); }

/* Newsletter */
.newsletter { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter p { color: var(--muted); }
.newsletter__form { display: flex; gap: 8px; margin-top: 24px; }
.newsletter__form input {
  flex: 1; min-width: 0; padding: 12px 18px; border: 1.5px solid var(--line); border-radius: 999px;
  font: inherit; color: var(--ink); background: var(--white);
}
.newsletter__form input:focus { outline: none; border-color: var(--ink); }
.newsletter__form input[aria-invalid="true"] { border-color: var(--red); }

/* Footer */
.footer { background: var(--surface); color: var(--muted); padding-top: 56px; font-size: .92rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; }
.footer__brand .logo { color: var(--ink); }
.footer__brand p { margin-top: 14px; max-width: 280px; }
.footer__col, .footer__col > div { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { color: var(--ink); font-size: .88rem; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--line); font-size: .82rem;
}

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .32); z-index: 90; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--white); z-index: 100; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease, box-shadow .3s ease;
}
.drawer.open { transform: translateX(0); box-shadow: -10px 0 40px rgba(0, 0, 0, .12); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; font-size: 1.1rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 6px 22px; }
.drawer__empty { text-align: center; color: var(--muted); padding: 60px 0; }
.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item__thumb { width: 60px; height: 60px; border-radius: 12px; background: var(--surface); color: #b0b0b5; display: grid; place-items: center; }
.cart-item__thumb svg { width: 55%; height: auto; }
.cart-item h4 { margin: 0; font-size: .92rem; font-weight: 600; letter-spacing: -.01em; }
.cart-item small { color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-weight: 600; }
.qty button:hover:not(:disabled) { border-color: var(--ink); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.drawer__foot { padding: 18px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__total { display: flex; justify-content: space-between; font-size: 1.02rem; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px);
  background: var(--ink); color: var(--white); padding: 12px 22px; border-radius: 999px;
  font-weight: 500; font-size: .92rem; z-index: 200; pointer-events: none;
  visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .3s ease; }

/* Success / cancel pages */
.status-page { min-height: 100vh; background: var(--surface); }
.status-card {
  max-width: 520px; margin: 64px auto; padding: 44px 36px; text-align: center;
  background: var(--white); border-radius: 22px; border: 1px solid var(--line);
}
.status-card h1 { font-size: 1.7rem; margin-top: 20px; }
.status-card > .muted { margin-bottom: 28px; }
.status-icon {
  width: 76px; height: 76px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center; background: var(--red-soft); color: var(--red);
}
.status-icon--ok { background: #e8f8ef; color: #18a957; }
.status-icon--warn { background: #fff6e5; color: #d98a00; }
.status-icon--bad { background: var(--red-soft); color: var(--red); }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(225, 6, 0, .2); border-top-color: var(--red);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.order-summary { text-align: left; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 28px; }
.order-summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .92rem; }
.order-summary__total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 1rem; }

/* Cart drawer checkout link */
.drawer__note { margin: 0; text-align: center; color: var(--muted); font-size: .82rem; }
.btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }

/* Checkout page */
.checkout-page { background: var(--surface); min-height: 100vh; }
.checkout { padding-top: 36px; padding-bottom: 80px; }
.checkout__title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 24px; }
.checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.checkout__main { display: grid; gap: 20px; }
.checkout__side { position: sticky; top: 94px; }
.panel {
  margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white);
  min-width: 0;
}
.panel__title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; padding: 0; margin-bottom: 18px; }
fieldset.panel > .panel__title { float: left; width: 100%; }
fieldset.panel > .panel__title + * { clear: both; }
.panel__num {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: .82rem;
}

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid #dcdcdc; border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.field__hint { color: var(--muted); font-size: .8rem; }
.field__error { color: var(--red); font-size: .82rem; font-weight: 500; }

.methods { display: grid; gap: 12px; }
.method { position: relative; cursor: pointer; }
.method input { position: absolute; opacity: 0; }
.method__box {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 1.5px solid #dcdcdc; border-radius: 14px; transition: border-color .15s, background .15s;
}
.method__box::after {
  content: ""; flex: none; margin-left: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #c8c8c8; transition: border .15s;
}
.method input:checked + .method__box { border-color: var(--ink); background: var(--surface-2); }
.method input:checked + .method__box::after { border: 6px solid var(--ink); }
.method input:focus-visible + .method__box { box-shadow: 0 0 0 3px rgba(225, 6, 0, .2); }
.method__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--white); color: var(--red); border: 1px solid var(--line); }
.method__text { display: flex; flex-direction: column; }
.method__text small { color: var(--muted); font-size: .84rem; }

.summary__item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 8px 0; font-size: .92rem; }
.summary__thumb { position: relative; width: 52px; height: 52px; border-radius: 10px; background: var(--surface); color: #b0b0b5; display: grid; place-items: center; }
.summary__thumb svg { width: 58%; height: auto; }
.summary__qty {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.summary__name { font-weight: 500; }
.summary__row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .95rem; }
#summaryItems + .summary__row { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }
.summary__hint { font-size: .82rem; margin: 0 0 4px; }
.summary__total { border-top: 1px solid var(--line); margin: 8px 0 18px; padding-top: 14px; font-size: 1.1rem; }
.summary__secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; color: var(--muted); font-size: .8rem; }
.form-error { background: var(--red-soft); color: var(--red-dark); border-radius: 10px; padding: 10px 14px; font-size: .88rem; font-weight: 500; margin: 0 0 12px; }

/* ---------- Shared bits for store, account & admin ---------- */
.small { font-size: .84rem; }
.btn--sm { padding: .5em 1.05em; font-size: .86rem; }
.btn--danger { background: var(--white); color: var(--red-dark); border-color: #f3b4b1; }
.btn--danger:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--red); font-weight: 600; cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: #f4f4f4; padding: 2px 6px; border-radius: 6px; }
.field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #dcdcdc; border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--white); resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.field + .field { margin-top: 14px; }
.fields .field + .field { margin-top: 0; }
form > .btn, form > .form-error { margin-top: 16px; }

.badge {
  display: inline-flex; align-items: center; white-space: nowrap; font-size: .76rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; line-height: 1.2;
}
.badge--green { background: #e8f8ef; color: #12804a; }
.badge--amber { background: #fff4de; color: #9a5b00; }
.badge--red { background: var(--red-soft); color: var(--red-dark); }
.badge--blue { background: #eaf1ff; color: #2456c9; }
.badge--grey { background: #f0f0f0; color: #555; }

.spinner--sm { width: 18px; height: 18px; border-width: 2px; }
.loading { display: grid; place-items: center; padding: 60px 0; }
.loading .spinner, .photo-field__preview .spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid rgba(225, 6, 0, .2); border-top-color: var(--red); animation: spin .8s linear infinite;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--left { margin-bottom: 18px; }
.chip {
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink-2); font: inherit; font-size: .88rem; font-weight: 600;
  padding: 7px 15px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Store header account link */
.account-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; }
.account-link:hover { background: var(--surface); }
.header__links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.header__user { font-weight: 600; font-size: .92rem; color: var(--ink-2); }

/* Product photos and stock */
.product__media--photo { background: #f6f6f6; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__tag { z-index: 1; }
.product__tag--dark { background: var(--ink); }
.product--soldout .product__media { filter: grayscale(.8); opacity: .75; }
.low-stock { color: var(--red); font-weight: 600; font-size: .8rem; }
.cart-item__thumb, .summary__thumb, .order-items__thumb, .thumb-sm { overflow: hidden; }
.cart-item__thumb img, .summary__thumb img, .order-items__thumb img, .thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.summary__thumb { overflow: visible; }
.summary__thumb img { border-radius: 10px; }

/* Checkout rewards */
.reward-box { margin: 10px 0 4px; }
.reward-box__signin {
  display: block; padding: 12px 14px; border-radius: 12px; background: var(--red-soft);
  color: var(--red-dark); font-size: .88rem;
}
.reward-box__signin:hover { background: #ffe3e1; }
.summary__discount span:last-child { color: #12804a; font-weight: 600; }
.summary__points { margin: -8px 0 16px; color: #12804a; font-weight: 600; font-size: .88rem; text-align: center; }
.status-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Login ---------- */
.auth-page { background: var(--surface); min-height: 100vh; }
.auth { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 80px; }
.auth__perks h1 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin-bottom: 24px; }
.perk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.perk-list li { display: flex; gap: 14px; align-items: flex-start; }
.perk-list p { margin: 2px 0 0; color: var(--muted); }
.perk-list__icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); font-weight: 700;
}
.auth__card { background: var(--white); border-radius: 22px; border: 1px solid var(--line); padding: 28px; }
.auth__alt { text-align: center; margin: 16px 0 0; font-size: .9rem; }
.auth__sent h2 { font-size: 1.3rem; }
.auth__sent .btn { margin-top: 12px; }
.auth__card--solo { max-width: 440px; margin: 56px auto 80px; }
.auth__title { font-size: 1.5rem; margin-bottom: 18px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f3f3f3; border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.tabs__btn { border: 0; background: transparent; font: inherit; font-weight: 600; padding: 10px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.tabs__btn[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }

/* ---------- Account / admin app shell ---------- */
.app-page { background: var(--surface); min-height: 100vh; }
.header--admin { background: var(--ink); border-bottom-color: var(--ink); }
.header--admin .logo__text, .header--admin .header__user { color: var(--white); }
.header--admin .link-arrow { color: #ff6b66; }
.header--admin .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: var(--white); }
.header--admin .btn--ghost:hover { background: var(--white); color: var(--ink); }
.admin-pill { margin-left: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--red); color: var(--white); padding: 3px 8px; border-radius: 6px; }
.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 80px; align-items: start; }
.app__nav { position: sticky; top: 94px; display: flex; flex-direction: column; gap: 4px; }
.app__nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  font-weight: 600; color: var(--ink-2);
}
.app__nav a:hover { background: var(--white); color: var(--ink); }
.app__nav a.active { background: var(--ink); color: var(--white); }
.nav-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--red); color: var(--white); font-size: .75rem; text-align: center; }
.app__nav a.active .nav-count { background: var(--white); color: var(--red); }
.app__title { font-size: 1.7rem; margin-bottom: 20px; }
.app__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.app__head .app__title { margin: 0; }
.search { padding: 10px 14px; border: 1.5px solid #dcdcdc; border-radius: 999px; font: inherit; min-width: 260px; background: var(--white); }
.search:focus { outline: none; border-color: var(--red); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 20px; }
.card__title { font-size: 1.15rem; margin-bottom: 14px; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.empty { text-align: center; padding: 48px 24px; }
.empty p { color: var(--muted); }
.form-narrow { max-width: 420px; }

/* Tables & lists */
.table-wrap { overflow-x: auto; margin: 0 -8px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table--click tbody tr { cursor: pointer; }
.table--click tbody tr:hover, .table--click tbody tr:focus { background: var(--surface-2); outline: none; }
.pos { color: #12804a; font-weight: 700; }
.neg { color: var(--red-dark); font-weight: 700; }
.thumb-sm { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--surface); color: #b0b0b5; }
.thumb-sm svg { width: 60%; }
.list { display: flex; flex-direction: column; }
.card.list { padding: 8px; }
.list__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 14px 16px; border: 0; border-radius: 12px; background: none; font: inherit; text-align: left; cursor: pointer;
}
.list__row + .list__row { border-top: 1px solid var(--line); border-radius: 0; }
.list__row:hover { background: var(--surface-2); }
.list__row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.simple-list li:last-child { border-bottom: 0; }

/* Orders (customer) */
.order-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.order-card__head > div { display: flex; flex-direction: column; }
.order-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.order-card__actions { display: flex; align-items: center; gap: 14px; font-size: 1.1rem; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; }
.progress li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--muted); text-align: center; }
.progress li span { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: #e2e2e2; border: 3px solid var(--white); box-shadow: 0 0 0 1px #e2e2e2; }
.progress li::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 3px; background: #e2e2e2; }
.progress li:first-child::before { display: none; }
.progress li.done { color: var(--ink); }
.progress li.done span { background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.progress li.done::before { background: var(--red); }
.progress li.current span { box-shadow: 0 0 0 4px rgba(225, 6, 0, .2); }
.tracking { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #f7f9ff; border: 1px solid #e1e8fb; color: #2456c9; padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; font-size: .9rem; }
.tracking span { color: var(--ink); }
.tracking .link-arrow { margin-left: auto; }
.order-items { list-style: none; margin: 0 0 12px; padding: 0; }
.order-items li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: .92rem; }
.order-items__thumb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--surface); color: #b0b0b5; }
.order-items__thumb svg { width: 60%; }

/* Rewards & wheel */
.rewards-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; margin-bottom: 0; }
.points-card { background: var(--ink); color: var(--white); border-color: var(--ink); }
.points-card .eyebrow { color: rgba(255, 255, 255, .85); }
.points-card__balance { font-size: 3.4rem; font-weight: 800; line-height: 1; margin-bottom: 12px; letter-spacing: -.03em; }
.points-card__balance small { font-size: 1.1rem; font-weight: 600; opacity: .85; }
.points-card__how { background: rgba(255, 255, 255, .13); border-radius: 12px; padding: 14px; margin: 18px 0; font-size: .9rem; }
.points-card__how p { margin: 4px 0 0; opacity: .92; }
.wheel-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wheel-card h2 { font-size: 1.2rem; align-self: flex-start; }
.wheel { position: relative; width: min(100%, 320px); margin: 8px 0 20px; }
.wheel__svg { width: 100%; height: auto; transition: transform 5s cubic-bezier(.12, .67, .1, 1); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .12)); }
.wheel__pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 28px solid var(--ink);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
}
.wheel__result { min-height: 1.6em; margin: 14px 0 0; font-weight: 500; }
.coupons { display: grid; gap: 10px; margin-top: 12px; }
.coupon { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed #f3b4b1; border-radius: 14px; background: #fffafa; }
.coupon > div { display: flex; flex-direction: column; gap: 2px; }
.coupon__code { align-items: flex-end; text-align: right; }
.coupon__code code { font-size: .95rem; font-weight: 700; background: var(--white); color: var(--red); }
.coupon--used, .coupon--expired { opacity: .55; border-color: var(--line); background: #fafafa; }

/* Tickets */
.ticket-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.thread { display: flex; flex-direction: column; gap: 12px; max-height: 46vh; overflow-y: auto; padding: 4px 2px 12px; }
.msg { max-width: 85%; padding: 12px 14px; border-radius: 14px; }
.msg--me { align-self: flex-end; background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; }
.msg--me .msg__meta { color: rgba(255, 255, 255, .65); }
.msg--staff { align-self: flex-start; background: #f3f3f3; border-bottom-left-radius: 4px; }
.msg__meta { font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.msg__body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .94rem; }
.reply { border-top: 1px solid var(--line); padding-top: 14px; }
.reply__actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.select-sm { padding: 8px 12px; border: 1.5px solid #dcdcdc; border-radius: 10px; font: inherit; font-size: .88rem; background: var(--white); }

/* Dialog */
.dialog { width: min(520px, calc(100% - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); color: var(--ink); }
.dialog--wide { width: min(860px, calc(100% - 24px)); }
.dialog::backdrop { background: rgba(20, 20, 20, .5); }
.dialog__head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; background: var(--white); border-bottom: 1px solid var(--line); }
.dialog__head h3 { margin: 0; font-size: 1.15rem; }
.dialog__body { padding: 22px; }
.dialog__body h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 20px 0 8px; }
.dialog__body section > h4:first-child { margin-top: 0; }
.dialog__actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; }

/* Admin dashboard */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 12px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s; }
.stat:hover { border-color: var(--red); }
.stat__label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.stat__value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.stat--alert { border-color: #f3b4b1; background: #fffafa; }
.stat--alert .stat__value { color: var(--red); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-top: 18px; }

/* Admin order detail */
.order-detail__badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.detail-grid p { margin: 0 0 8px; }
.address { font: inherit; white-space: pre-wrap; background: #fafafa; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 8px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.ship-form { background: #fafafa; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 12px; }
.ship-form .field + .field { margin-top: 0; }
.ship-form__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: flex; flex-direction: column; padding: 0 0 12px 4px; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); border: 2px solid var(--white); }
.danger-zone { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.danger-zone:empty { display: none; }

/* Admin product form */
.product-form { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.photo-field { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.photo-field__preview {
  width: 200px; height: 200px; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
  background: var(--surface); color: #b0b0b5; border: 1px solid var(--line);
}
.photo-field__preview svg { width: 45%; }
.photo-field__preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-field__btn { cursor: pointer; }
.check + .check { margin-top: -6px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); }

/* Checkout: Discord delivery, warehouse, payment methods, order-placed popup */
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--white); }
.notice svg { flex: none; margin-top: 2px; color: #5865f2; }
.notice p { margin: 4px 0 0; color: var(--ink-2); font-size: .92rem; }
.notice a, .method-note a, .manual-msg a, .next-steps a:not(.btn), .discord-steps a:not(.btn) { color: #4752c4; font-weight: 600; }
.field__label { font-size: .88rem; font-weight: 600; }
.warehouses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: block; padding: 12px 14px; border: 1.5px solid #dcdcdc; border-radius: 12px; font-weight: 600; font-size: .94rem;
  transition: border-color .15s, background .15s;
}
.choice input:checked + span { border-color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pay-method { position: relative; cursor: pointer; }
.pay-method input { position: absolute; opacity: 0; }
.pay-method__box {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px;
  border: 1.5px solid #dcdcdc; border-radius: 12px; font-size: .95rem; transition: border-color .15s, background .15s;
}
.pay-method input:checked + .pay-method__box { border-color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-method input:focus-visible + .pay-method__box { outline: 2px solid var(--red); outline-offset: 2px; }
.pay-method__badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #12804a; background: #e8f8ef; padding: 3px 8px; border-radius: 999px; }
.method-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--ink-2); font-size: .9rem; }
.summary__digital { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; }
.order-id { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; }
.order-id strong { font-size: 1.4rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; margin-right: auto; }
.order-id .muted { flex-basis: 100%; }
.next-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.next-steps li { counter-increment: step; position: relative; padding-left: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.next-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--white); font-size: .82rem; font-weight: 700;
}
.next-steps span { color: var(--ink-2); font-size: .92rem; }
.manual-msg { font-size: 1.02rem; margin: 0 0 18px; }
.discord-steps { text-align: left; margin: 0 0 24px; }
.order-action { background: #f0f2ff; border: 1px solid #dfe3fb; color: var(--ink-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: .92rem; }
.order-action a { color: #4752c4; font-weight: 600; }
.discord-steps .manual-msg { font-size: .96rem; }

/* ---------- Reviews ---------- */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.star { display: inline-block; width: 16px; height: 16px; }
.star svg { width: 16px; height: 16px; display: block; }
.star--full svg { fill: #f5a524; }
.star--empty svg { fill: #dcdce1; }
.star--half { background: linear-gradient(90deg, #f5a524 50%, #dcdce1 50%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.6 2.9 6.1 6.6.8-4.9 4.5 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.5 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.6 2.9 6.1 6.6.8-4.9 4.5 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.5 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.star--half svg { opacity: 0; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 600; color: #12804a; }
.rating-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.rating-summary strong { color: var(--ink); }

.review-card {
  display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); min-width: 0;
}
.review-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.review-card__body { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.review-card--clamp .review-card__body { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review-card__images { display: flex; gap: 8px; flex-wrap: wrap; }
.review-thumb { width: 64px; height: 64px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--surface); }
.review-thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-card__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; font-size: .84rem; color: var(--muted); }
.review-card__meta strong { color: var(--ink); }
.review-card__meta a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* Homepage carousel: --per cards visible, the next page slides in every few seconds */
.reviews-home { background: var(--surface); overflow: hidden; }
.reviews-home .review-card { border-color: transparent; }
.carousel { --per: 3; --gap: 16px; overflow: hidden; }
.carousel__track {
  display: flex; gap: var(--gap);
  transform: translateX(calc(var(--offset, 0) * -1 * (100% + var(--gap)) / var(--per)));
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.carousel__track .review-card { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); }
.carousel__nav { display: flex; align-items: center; gap: 8px; }
.carousel__nav .link-arrow { margin-right: 8px; }
.carousel__btn { background: var(--white); font-size: 1.5rem; line-height: 1; }
.carousel__btn:hover { background: var(--ink); color: var(--white); }
.carousel__btn[hidden] { display: none; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #c7c7cc; cursor: pointer; transition: width .3s, background .3s; }
.carousel__dots button[aria-current="true"] { width: 24px; background: var(--ink); }
@media (max-width: 1024px) { .carousel { --per: 2; } }
@media (max-width: 820px) { .carousel { --per: 1; } }
@media (prefers-reduced-motion: reduce) { .carousel__track { transition: none; } }

/* Reviews page */
.reviews-page { padding-top: 40px; padding-bottom: 72px; }
.reviews-hero { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-bottom: 28px; }
.reviews-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.035em; }
.reviews-hero > div:first-child > .muted { margin-bottom: 18px; }
.rating-box { display: flex; gap: 28px; align-items: center; background: var(--surface); border-radius: 20px; padding: 20px 24px; }
.rating-box__score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rating-box__score strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.rating-box__bars { display: grid; gap: 4px; min-width: 200px; }
.bar-row { display: grid; grid-template-columns: 28px 1fr 24px; align-items: center; gap: 8px; height: 20px; font-size: .82rem; line-height: 1; }
.bar-row > span { display: block; margin: 0; }
.bar-row > span:last-child { text-align: right; font-size: .8rem; }
.bar { height: 8px; border-radius: 999px; background: #e3e3e8; overflow: hidden; }
.bar span { display: block; height: 100%; background: #f5a524; border-radius: 999px; }
.reviews-more { display: flex; justify-content: center; margin-top: 28px; }

/* Product page reviews */
.pdp__reviews { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.pdp__reviews-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pdp__reviews-head h2 { font-size: 1.4rem; margin: 0; }
.pdp__reviews .rating-summary { margin: 10px 0 18px; }

/* Account: reviews tab + review form */
.review-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.review-row:first-of-type { border-top: 0; }
.review-row__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.review-row__main a:hover { text-decoration: underline; }
.review-row__mine { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-row__actions { display: flex; gap: 6px; }
.review-form__product { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.review-form__product > div { display: flex; flex-direction: column; }
.star-picker { display: flex; align-items: center; gap: 4px; }
.star-picker__btn { padding: 2px; border: 0; background: none; cursor: pointer; }
.star-picker__btn svg { width: 34px; height: 34px; fill: #dcdce1; transition: fill .1s, transform .1s; }
.star-picker__btn.on svg { fill: #f5a524; }
.star-picker__btn:hover svg { transform: scale(1.08); }
.star-picker__text { margin-left: 8px; }
.review-uploads { display: flex; gap: 10px; flex-wrap: wrap; }
.review-upload { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--surface); }
.review-upload img { width: 100%; height: 100%; object-fit: cover; }
.review-upload button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; line-height: 1; }
.review-upload--add { display: grid; place-items: center; cursor: pointer; border: 1.5px dashed #c7c7cc; background: var(--white); color: var(--muted); }
.review-upload--add span { display: flex; flex-direction: column; align-items: center; font-size: 1.5rem; line-height: 1; }
.review-upload--add small { font-size: .7rem; margin-top: 4px; }
.review-upload--add:hover { border-color: var(--ink); color: var(--ink); }

/* Admin: reviews */
.notice-bar { background: #fff6e5; color: #7a4a00; border-radius: 12px; padding: 12px 16px; font-size: .9rem; margin: 0 0 16px; }
.admin-reviews { display: grid; gap: 12px; }
.admin-review { margin: 0; display: grid; gap: 10px; }
.admin-review--hidden { opacity: .6; }
.admin-review__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-review__head > div:first-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-review__badges { display: flex; gap: 6px; }
.admin-review__body { margin: 0; color: var(--ink-2); white-space: pre-line; }
.admin-review__actions { display: flex; gap: 8px; justify-content: flex-end; }

/* Photo lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 12px; display: block; }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; font-size: 1.4rem; cursor: pointer; box-shadow: var(--shadow); }

/* Content pages (shipping & returns, etc.) */
.page { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.035em; }
.page__lead { font-size: 1.1rem; color: var(--muted); }
.page__section { padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--line); }
.page__section h2 { font-size: 1.4rem; }
.page__section h3 { font-size: 1rem; margin-top: 24px; }
.page__section p { color: var(--ink-2); }
.page__section a { color: var(--red); font-weight: 500; }
.page__section a:hover { text-decoration: underline; }
.page__steps { padding-left: 20px; color: var(--ink-2); display: grid; gap: 8px; margin: 0 0 1em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 20px; }
.fact { background: var(--surface); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.fact__value { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.fact__label { color: var(--muted); font-size: .9rem; }
.country-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.country-list li { background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: .86rem; }
.footer--slim { padding-top: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__inner { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__inner { gap: 40px; }
}
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 440px; }
  .review-grid { grid-template-columns: 1fr; }
  .reviews-hero { grid-template-columns: 1fr; }
  .nav a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .hero__inner { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; gap: 36px; }
  .products, .pdp-related .products { grid-template-columns: repeat(2, 1fr); }
  .pdp__grid { grid-template-columns: 1fr; gap: 28px; }
  .pdp__media { position: static; }
  .pdp__desc { margin-top: 40px; }
  .pay-grid, .checkout__grid, .auth, .rewards-grid, .dash-grid, .detail-grid { grid-template-columns: 1fr; }
  .checkout__side { position: static; }
  .auth { gap: 28px; padding-top: 32px; }
  .auth__perks { order: 2; }
  .app { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .app__nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .app__nav a { flex: none; padding: 9px 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .header__user { display: none; }
  .search { min-width: 0; width: 100%; }
  .section { padding: 56px 0; }
  .section--tight { padding: 8px 0 0; }
}
@media (max-width: 520px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .products { gap: 28px 12px; }
  .product__body p { display: none; }
  .product__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .add-btn { width: 100%; }
  .categories { gap: 10px; }
  .category { padding: 16px; gap: 18px; }
  .category__arrow { top: 14px; right: 14px; }
  .trust__inner { grid-template-columns: 1fr; gap: 18px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .pay-card { padding: 24px; }
  .spotlight__body { padding: 16px 18px 18px; }
  .newsletter__form { flex-direction: column; }
  .fields { grid-template-columns: 1fr; }
  .panel { padding: 20px 16px; }
  .account-link span { display: none; }
  .header__links { gap: 10px; }
  .card { padding: 18px 16px; }
  .auth__card { padding: 20px 16px; }
  .product-form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat__value { font-size: 1.35rem; }
  .progress li { font-size: .7rem; }
  .order-card__head { flex-direction: column; }
  .msg { max-width: 95%; }
  .dialog__body { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
