/* Sir Betalot Official Store
   Colours and fonts from the SBA style guide (client/SBA Assets/Brand Assets/Styles.pdf). */

@font-face { font-family: "YouBlockhead Caps"; src: url("../fonts/YouBlockheadCaps.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "YouBlockhead"; src: url("../fonts/YouBlockhead.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/Rubik.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  /* SBA palette */
  --sba-green: #0FFF1F;
  --sba-lilac: #C279F2;
  --sba-gold: #F5B301;
  --sba-white: #FFFFFF;
  --sba-lavender: #8C4EB7;
  --sba-silver: #C0C0C0;
  --sba-ink: #2D1243;
  --sba-purple: #682099;
  --sba-bronze: #CD7F32;
  --sba-plum: #4C1671;
  --sba-night: #1F0D2F;
  --sba-chrome: linear-gradient(90deg, #812EB9, #C178F3 50%, #812EB9);
  --sba-velvet: linear-gradient(90deg, #241036, #581982 50%, #241036);

  /* roles */
  --bg: var(--sba-night);
  --surface: #26113A;
  --surface-2: var(--sba-ink);
  --line: rgba(194, 121, 242, .18);
  --text: var(--sba-white);
  --muted: #CDBBDD;
  --tile: #ECEAEE;
  --focus: var(--sba-gold);

  --font-display: "YouBlockhead Caps", "YouBlockhead", "Rubik", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1320px;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; line-height: .95; text-transform: uppercase; }
.eyebrow { font: 600 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--sba-gold); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sba-gold); color: var(--sba-ink); padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
/* Primary = SBA site button: bright green panel, deep-purple You Blockhead Caps label. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius-sm);
  font: 400 18px/1 var(--font-display); letter-spacing: .03em; text-transform: uppercase;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, filter .18s;
  white-space: nowrap;
}
.btn-primary {
  color: var(--sba-ink);
  background: linear-gradient(180deg, #5BFF66 0%, var(--sba-green) 45%, #0BD71A 100%);
  box-shadow: inset 0 0 0 2px rgba(6, 120, 14, .55), inset 0 2px 0 rgba(255,255,255,.55), 0 0 0 1px rgba(205,127,50,.6), 0 6px 20px rgba(15, 255, 31, .18);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: inset 0 0 0 2px rgba(6,120,14,.55), inset 0 2px 0 rgba(255,255,255,.55), 0 0 0 1px rgba(205,127,50,.7), 0 10px 28px rgba(15,255,31,.28); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { filter: grayscale(1) brightness(.7); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { color: var(--sba-ink); background: linear-gradient(180deg, #FFD54D, var(--sba-gold) 55%, #D99A00); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 6px 20px rgba(245,179,1,.2); }
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost { color: var(--text); box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }
.link { color: var(--sba-lilac); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--sba-white); }

/* ---------- Announcement + header ---------- */
.announce { background: var(--sba-gold); color: var(--sba-ink); font: 600 13px/1 var(--font-body); letter-spacing: .04em; }
.announce .wrap { display: flex; align-items: center; justify-content: center; min-height: 38px; gap: 18px; text-align: center; }
.announce a { text-decoration: underline; text-underline-offset: 3px; }
.announce .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sba-ink); opacity: .5; }
@media (max-width: 640px) { .announce .hide-sm { display: none; } }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(31, 13, 47, .92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 30px; justify-self: start; }
.nav a { white-space: nowrap; font: 500 15px/1 var(--font-body); color: var(--muted); padding: 10px 0; position: relative; transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--sba-gold); transform: scaleX(0); transition: transform .2s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-tools { display: flex; gap: 4px; justify-self: end; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; position: relative; transition: background .15s; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--sba-green); color: var(--sba-ink); font: 700 11px/19px var(--font-body); text-align: center; }
.cart-count[hidden] { display: none; }
.mobile-left { display: none; }
.lang-mini { min-width: 44px; min-height: 44px; border-radius: 50%; font: 600 13px/1 var(--font-body); letter-spacing: .06em; color: var(--muted); }
.lang-mini:hover { color: var(--text); background: rgba(255,255,255,.08); }
@media (max-width: 1024px) {
  .site-header .wrap { grid-template-columns: 1fr auto 1fr; height: 64px; }
  .nav { display: none; }
  .mobile-left { display: flex; align-items: center; justify-self: start; }
  [data-account] { display: none; }
  .brand img { height: 38px; }
}
.mobile-nav { position: fixed; inset: 0; z-index: 60; display: none; }
.mobile-nav.open { display: block; }
.mobile-nav .scrim { position: absolute; inset: 0; background: rgba(10, 4, 16, .6); }
.mobile-nav .panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(86vw, 360px); background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 6px; animation: slideL .25s var(--ease); }
.mobile-nav .panel a { font: 400 26px/1 var(--font-display); text-transform: uppercase; padding: 14px 4px; border-bottom: 1px solid var(--line); }
@keyframes slideL { from { transform: translateX(-100%); } to { transform: none; } }

/* Language toggle (PT / EN) */
.lang { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(194,121,242,.4); margin-right: 6px; align-self: center; }
.lang button { min-width: 38px; min-height: 30px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--font-body); letter-spacing: .08em; color: var(--muted); transition: background .15s, color .15s; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--sba-gold); color: var(--sba-ink); }
.mobile-lang { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 8px 4px; color: var(--muted); font-size: 14px; }
.mobile-lang .lang button { min-height: 38px; min-width: 48px; font-size: 14px; }
@media (max-width: 1024px) { .lang-header { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--sba-night); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,13,47,.96) 0%, rgba(31,13,47,.78) 34%, rgba(31,13,47,0) 62%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; min-height: clamp(520px, 72vh, 720px); display: flex; flex-direction: column; justify-content: center; }
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 96px); margin: 16px 0 18px; }
.hero h1 .gold { color: var(--sba-gold); }
.hero p { font-size: 18px; color: var(--muted); max-width: 440px; margin: 0 0 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .hero-media { position: relative; height: 360px; }
  .hero-media img { object-position: 74% 30%; }
  .hero::after { bottom: auto; height: 360px; background: linear-gradient(0deg, var(--bg) 0%, rgba(31,13,47,0) 45%); }
  .hero .wrap { min-height: 0; margin-top: -36px; padding-bottom: 44px; }
  .hero h1 { margin-top: 12px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); margin: 10px 0 0; }
.section-head .link { white-space: nowrap; font-weight: 500; }

main { padding-bottom: clamp(56px, 8vw, 96px); }
.section:last-child { padding-bottom: 0; }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); isolation: isolate; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31,13,47,.9), rgba(31,13,47,0) 50%); }
.cat .cat-label { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; display: flex; align-items: end; justify-content: space-between; }
.cat h3 { font-size: clamp(26px, 2.7vw, 40px); margin: 0; }
.cat .cat-label { gap: 12px; }
.cat .arrow { flex: none; }
.cat .arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sba-gold); color: var(--sba-ink); transition: transform .2s var(--ease); }
.cat:hover img { transform: scale(1.04); }
.cat:hover .arrow { transform: translateX(4px); }
@media (max-width: 760px) { .cats { grid-template-columns: 1fr 1fr; } .cats .cat:last-child { grid-column: span 2; aspect-ratio: 16 / 10; } }

/* Product grid + card */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .grid, .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } }
.card { position: relative; display: flex; flex-direction: column; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--tile); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease), transform .6s var(--ease); }
.card-media img.alt { opacity: 0; }
@media (hover: hover) { .card:hover .card-media img.alt { opacity: 1; } .card:hover .card-media img.main { transform: scale(1.02); } }
.badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 6px 10px; border-radius: 4px; font: 700 11px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; background: var(--sba-ink); color: var(--sba-white); }
.badge.new { background: var(--sba-green); color: var(--sba-ink); }
.badge.sale { background: var(--sba-gold); color: var(--sba-ink); }
.badge.low { background: var(--sba-white); color: var(--sba-ink); }
.card, #shop { scroll-margin-top: 120px; }
.card-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-top: 8px; }
.card-sizes .size { min-width: 0; min-height: 44px; padding: 0 4px; font-size: 14px; }
.card { min-width: 0; }
.card-add { margin-top: 8px; min-height: 44px; font-size: 15px; white-space: normal; text-align: center; line-height: 1.2; }
.card-body { padding: 14px 2px 0; display: grid; gap: 4px; }
.card-title { margin: 0; font: 500 16px/1.3 var(--font-body); }
.card-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.45); }
.price { display: flex; gap: 8px; align-items: baseline; font-weight: 600; }
.price s { color: var(--muted); font-weight: 400; }
.price .now-sale { color: var(--sba-gold); }

/* Knights Club feature banner */
.feature { position: relative; border-radius: calc(var(--radius) * 1.6); overflow: hidden; background: var(--sba-velvet); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 460px; isolation: isolate; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 78% 55%, rgba(194,121,242,.45), transparent 46%), radial-gradient(circle at 20% 120%, rgba(245,179,1,.2), transparent 40%); }
.feature-copy { padding: clamp(32px, 5vw, 64px); }
.feature h2 { font-size: clamp(40px, 5.4vw, 72px); margin: 12px 0 16px; }
.feature h2 span { color: var(--sba-gold); }
.feature p { color: var(--muted); max-width: 440px; margin: 0 0 28px; font-size: 17px; }
.feature-art { align-self: end; justify-self: center; height: 100%; display: flex; align-items: end; }
.feature-art img { max-height: 440px; width: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.feature-stats { display: flex; gap: 28px; margin: 0 0 28px; padding: 0; list-style: none; }
.feature-stats li { font-size: 13px; color: var(--muted); }
.feature-stats strong { display: block; font: 400 28px/1 var(--font-display); color: var(--sba-white); margin-bottom: 4px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-art img { max-height: 300px; } }

/* Lookbook */
.lookbook { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(520px, 62vw, 780px); }
.lookbook a { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.lookbook a:first-child { grid-row: span 2; }
.lookbook img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lookbook a:hover img { transform: scale(1.04); }
.lookbook .tag { position: absolute; left: 12px; bottom: 12px; padding: 8px 12px; border-radius: 6px; background: rgba(31,13,47,.82); font-size: 13px; font-weight: 500; backdrop-filter: blur(6px); }
@media (max-width: 760px) { .lookbook { grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr 1fr; height: 980px; } .lookbook a:first-child { grid-column: span 2; grid-row: auto; } }

/* Value props */
.props { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prop { display: flex; gap: 14px; align-items: flex-start; padding: 28px 22px; }
.prop + .prop { border-left: 1px solid var(--line); }
.prop svg { flex: none; width: 28px; height: 28px; color: var(--sba-gold); }
.prop strong { display: block; font-weight: 600; margin-bottom: 2px; }
.prop span { color: var(--muted); font-size: 14px; }
@media (max-width: 960px) { .props { grid-template-columns: 1fr 1fr; } .prop:nth-child(3) { border-left: 0; } .prop:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .props { grid-template-columns: 1fr; } .prop + .prop { border-left: 0; border-top: 1px solid var(--line); } }

/* Newsletter */
.newsletter { background: var(--surface-2); border-radius: calc(var(--radius) * 1.6); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.newsletter::after { content: ""; position: absolute; right: -40px; top: -30px; width: 260px; height: 190px; background: url("../img/brand/sba-crown-gold.webp") center/contain no-repeat; opacity: .08; transform: rotate(12deg); }
.newsletter h2 { font-size: clamp(32px, 4vw, 48px); margin: 10px 0 10px; }
.newsletter p { margin: 0; color: var(--muted); }
.field-row { display: flex; gap: 10px; position: relative; z-index: 1; }
.input { flex: 1; min-height: 52px; padding: 0 16px; border-radius: var(--radius-sm); background: var(--sba-night); border: 1px solid rgba(194,121,242,.4); color: var(--text); }
.input::placeholder { color: #9C88AE; }
.input:focus { outline: none; border-color: var(--sba-gold); box-shadow: 0 0 0 3px rgba(245,179,1,.25); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; position: relative; z-index: 1; }
.form-note.ok { color: var(--sba-green); }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: #170A24; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 56px 0 40px; }
.footer-top img { height: 54px; width: auto; margin-bottom: 16px; }
.footer-top p { color: var(--muted); font-size: 14px; max-width: 300px; margin: 0 0 18px; }
.footer-top h3 { font: 400 18px/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; margin: 6px 0 16px; color: var(--sba-gold); }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-top ul a { color: var(--muted); font-size: 14px; }
.footer-top ul a:hover { color: var(--text); }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, color .15s; color: var(--muted); }
.socials a:hover { background: var(--sba-gold); color: var(--sba-ink); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.pay { display: flex; gap: 6px; flex-wrap: wrap; }
.pay span { padding: 5px 8px; border-radius: 4px; background: rgba(255,255,255,.07); font: 600 11px/1 var(--font-body); letter-spacing: .04em; color: var(--muted); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > div:first-child { grid-column: span 2; } }

/* ---------- Shop page ---------- */
.page-head { padding: 40px 0 8px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--text); }
.page-head h1 { font-size: clamp(42px, 6vw, 72px); margin: 0 0 8px; }
.page-head p { color: var(--muted); margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 22px 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); position: sticky; top: 76px; z-index: 5; background: var(--bg); }
@media (max-width: 1024px) { .toolbar { top: 64px; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(194,121,242,.4); font-size: 14px; font-weight: 500; color: var(--muted); transition: all .15s; }
.chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--sba-lilac); }
.chip[aria-pressed="true"] { background: var(--sba-gold); color: var(--sba-ink); box-shadow: none; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.select { min-height: 40px; padding: 0 36px 0 12px; border-radius: var(--radius-sm); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23C279F2' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 12px center no-repeat; border: 1px solid rgba(194,121,242,.35); appearance: none; -webkit-appearance: none; color: var(--text); }
.count { font-size: 14px; color: var(--muted); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 64px); padding-top: 28px; align-items: start; }
.pdp > *, .gallery > * { min-width: 0; }
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 14px; position: sticky; top: 100px; }
.thumbs { display: grid; gap: 10px; align-content: start; }
.thumbs button { aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--tile); box-shadow: inset 0 0 0 0 var(--sba-gold); opacity: .65; transition: opacity .15s; position: relative; }
.thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--sba-gold); outline-offset: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.stage { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--tile); position: relative; }
.stage img { width: 100%; height: 100%; object-fit: cover; }
.stage-nav { position: absolute; bottom: 14px; right: 14px; display: flex; gap: 8px; }
.stage-nav button { width: 44px; height: 44px; border-radius: 50%; background: rgba(31,13,47,.85); display: grid; place-items: center; }
.stage-nav button:hover { background: var(--sba-ink); }
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; } .gallery { position: static; grid-template-columns: 1fr; } .thumbs { grid-template-columns: repeat(4, 64px); order: 2; } }

.buy h1 { font-size: clamp(36px, 4.4vw, 56px); margin: 12px 0 12px; }
.buy .price { font-size: 22px; margin-bottom: 6px; }
.buy .tax { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.buy .lead { color: var(--muted); margin: 0 0 26px; }
.opt { margin-bottom: 22px; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 14px; }
.opt-head b { font-weight: 600; }
.opt-head span { color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 56px; min-height: 48px; padding: 0 14px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px rgba(194,121,242,.45); font-weight: 500; transition: all .15s; }
.size:hover { box-shadow: inset 0 0 0 1px var(--sba-white); }
.size[aria-pressed="true"] { background: var(--sba-white); color: var(--sba-ink); box-shadow: none; }
.size:disabled { color: rgba(255,255,255,.35); text-decoration: line-through; cursor: not-allowed; box-shadow: inset 0 0 0 1px rgba(194,121,242,.18); }
.stock { font-size: 13px; margin-top: 10px; min-height: 18px; color: var(--muted); }
.stock.low { color: var(--sba-gold); }
.buy-row { display: grid; grid-template-columns: 132px 1fr; gap: 10px; margin: 6px 0 14px; }
.qty { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; min-height: 52px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px rgba(194,121,242,.45); }
.qty button { height: 100%; font-size: 20px; color: var(--muted); }
.qty button:hover { color: var(--text); }
.qty input { width: 100%; text-align: center; background: none; border: 0; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.assure { display: grid; gap: 10px; padding: 18px 0; margin: 10px 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.assure div { display: flex; gap: 10px; align-items: center; }
.assure svg { width: 20px; height: 20px; color: var(--sba-green); flex: none; }
details.acc { border-bottom: 1px solid var(--line); }
details.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 58px; cursor: pointer; font-weight: 600; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 22px; color: var(--sba-gold); transition: transform .2s; }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .acc-body { padding: 0 0 20px; color: var(--muted); font-size: 15px; }
details.acc ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* Modal (size guide) */
dialog.modal { border: 0; padding: 0; border-radius: var(--radius); background: var(--surface); color: var(--text); width: min(560px, 92vw); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
dialog.modal::backdrop { background: rgba(10,4,16,.7); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 28px; margin: 0; }
.modal-body { padding: 18px 22px 24px; }
table.sizes-t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.sizes-t th, table.sizes-t td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); }
table.sizes-t th { color: var(--sba-gold); font-weight: 600; }

/* ---------- Cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(10,4,16,.6); opacity: 0; transition: opacity .25s; }
.drawer.open .scrim { opacity: 1; }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100vw); background: var(--surface); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease); }
.drawer.open .panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 28px; margin: 0; }
.ship-bar { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ship-bar .track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); margin-top: 8px; overflow: hidden; }
.ship-bar .fill { height: 100%; background: linear-gradient(90deg, var(--sba-gold), var(--sba-green)); transition: width .3s var(--ease); }
.lines { flex: 1; overflow-y: auto; padding: 6px 20px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 84px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); background: var(--tile); }
.line-title { font-weight: 500; line-height: 1.3; }
.line-meta { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.mini-qty { display: inline-grid; grid-template-columns: 34px 30px 34px; align-items: center; height: 36px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(194,121,242,.4); text-align: center; font-size: 14px; }
.mini-qty button { height: 100%; color: var(--muted); }
.mini-qty button:hover { color: var(--text); }
.line-right { display: flex; flex-direction: column; align-items: end; justify-content: space-between; }
.remove { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.remove:hover { color: var(--text); }
.drawer-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }
.subtotal { display: flex; justify-content: space-between; font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.drawer-foot small { display: block; color: var(--muted); margin-bottom: 14px; }
.empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.empty img { width: 120px; margin: 0 auto 18px; opacity: .85; }
.empty .btn { margin-top: 18px; }

/* Search overlay */
.search { position: fixed; inset: 0; z-index: 65; display: none; }
.search.open { display: block; }
.search .scrim { position: absolute; inset: 0; background: rgba(10,4,16,.7); }
.search .panel { position: relative; background: var(--surface); padding: 24px 0 28px; border-bottom: 1px solid var(--line); animation: drop .22s var(--ease); }
.search .bar { display: flex; gap: 10px; align-items: center; }
.search .input { font-size: 18px; }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.search-results a { display: grid; gap: 6px; font-size: 14px; }
.search-results img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); background: var(--tile); }
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Toast */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--sba-white); color: var(--sba-ink); padding: 14px 18px; border-radius: 8px; font-weight: 500; box-shadow: 0 16px 40px rgba(0,0,0,.4); transition: all .25s var(--ease); pointer-events: none; max-width: 92vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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