/*
 * Bdas Branding storefront: marketplace design.
 * Layout: offer ticker, search header, dark category bar with mega menus, light grey
 * shop floor with white cards. Loaded after app.css (which styles content pages and forms).
 */
:root {
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --ink: #1F1E1C;
  --muted: #5B5A57;
  --line: #E5E7EB;
  --red: #E31E25;
  --red-dark: #B3121A;
  --red-soft: #FDECEC;
  --charcoal: #2B2A28;
  --yellow: #FFC83D;
  --teal: #1C7F72;
  --green: #137A3B;
  --green-soft: #E3F4E9;
  --star: #F5A524;
}
body.store { background: var(--bg); color: var(--ink); font-family: "Figtree", "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.5; }
/* In the base layer so the shared button and link styles in app.css always win. */
@layer base {
  :where(.store) a { color: inherit; text-decoration: none; }
  :where(.store) :is(button, input, select, textarea) { font: inherit; color: inherit; }
}
.store button { cursor: pointer; }
.store :focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1320px; margin: 0 auto; width: 100%; }
.store h1, .store h2, .store h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
.store p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { font-size: 13px; color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--charcoal); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* Ticker */
.ticker { background: var(--red); color: #fff; font-size: 14px; font-weight: 700; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: ticker 40s linear infinite; padding-block: 9px; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track > span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.ticker .star { color: var(--yellow); }
.ticker a.tk-btn { background: #fff; color: var(--red-dark); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: 13px; }
.ticker .design-msg { font-weight: 900; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.samplebar { background: #FFF4D6; color: #5A4300; font-size: 13px; }
.samplebar .wrap { padding-block: 7px; }

/* Header */
.mhead { background: var(--surface); border-bottom: 1px solid var(--line); }
.mhead .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; padding-block: 14px; }
.mhead .logo img { height: 46px; width: auto; display: block; }
.msearch { flex: 1 1 420px; display: flex; min-width: 0; border: 2px solid var(--red); border-radius: 10px; overflow: visible; background: #fff; position: relative; }
.msearch select { border: 0; background: var(--bg); padding: 0 10px; font-size: 14px; font-weight: 600; border-right: 1px solid var(--line); max-width: 42%; border-radius: 8px 0 0 8px; }
.msearch input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; outline: none; background: transparent; }
.msearch button { border: 0; background: var(--red); color: #fff; padding: 0 18px; display: flex; align-items: center; border-radius: 0 7px 7px 0; }
.suggest { position: absolute; left: -2px; right: -2px; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px rgba(0,0,0,.12); z-index: 60; padding: 6px; list-style: none; margin: 0; }
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; }
.suggest a:hover, .suggest [aria-selected="true"] a { background: var(--red-soft); }
.suggest small { color: var(--muted); }
.hicons { display: flex; gap: 20px; align-items: center; font-size: 12.5px; font-weight: 700; }
.hicon { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; background: none; border: 0; padding: 0; }
.hicon:hover { color: var(--red); }
.badge-count { position: absolute; top: -6px; right: -9px; background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 6px; min-width: 20px; text-align: center; }

/* Category bar and mega menus */
.catbar { background: var(--charcoal); position: relative; z-index: 30; }
.catbar > .wrap { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catbar > .wrap::-webkit-scrollbar { display: none; }
.cb { background: none; border: 0; color: #fff; font-weight: 700; font-size: 14.5px; padding: 12px 14px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.cb:hover, .cb[aria-expanded="true"] { background: #3d3b38; }
.cb.all { background: var(--red); }
.cb.all:hover { background: var(--red-dark); }
.cb.hl { color: var(--yellow); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 3px solid var(--red); box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.mega .wrap { display: flex; flex-wrap: wrap; gap: 24px; padding-block: 22px; }
.mega-intro { flex: 1 1 260px; display: flex; gap: 14px; align-items: center; background: var(--bg); border-radius: 14px; padding: 16px; }
.mega-intro img { width: 96px; }
.mega-links { flex: 3 1 480px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 18px; align-content: start; }
.mega-links a { padding: 9px 10px; border-radius: 8px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.mega-links a:hover { background: var(--red-soft); color: var(--red-dark); }
.mega-links small { color: var(--muted); font-weight: 500; }

/* Page scaffolding */
.mpage { padding-block: 22px 56px; }
.mpage > .wrap { display: flex; flex-direction: column; gap: 30px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 16px; flex-wrap: wrap; }
.sec-head h2 { font-size: 25px; font-weight: 900; }
.sec-head h1 { font-size: 30px; font-weight: 900; }
.link-red { color: var(--red-dark) !important; font-weight: 800; background: none; border: 0; padding: 0; }
.link-red:hover { text-decoration: underline; }
.mbtn { border: 0; border-radius: 10px; padding: 12px 22px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; line-height: 1.2; }
.mbtn-red { background: var(--red); color: #fff !important; }
.mbtn-red:hover { background: var(--red-dark); }
.mbtn-dark { background: var(--charcoal); color: #fff !important; }
.mbtn-light { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.mbtn-yellow { background: var(--yellow); color: var(--ink) !important; }
.mbtn[disabled], .mbtn.is-disabled { background: #D6D4D0; color: #6B6864 !important; cursor: not-allowed; border: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.flash { padding: 12px 16px; border-radius: 12px; font-weight: 700; display: flex; gap: 10px; align-items: flex-start; }
.flash.ok { background: var(--green-soft); color: var(--green); }
.flash.err { background: var(--red-soft); color: var(--red-dark); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 16px; }
.slider { flex: 2 1 600px; min-width: 0; border-radius: 16px; overflow: hidden; position: relative; min-height: 340px; color: #fff; }
.slide { position: absolute; inset: 0; padding: 38px 42px 54px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; transition: opacity .5s ease; }
.slide[aria-hidden="true"] { opacity: 0; pointer-events: none; }
.slide-text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.pill-tag { align-self: flex-start; background: rgba(255,255,255,.95); color: var(--ink); font-size: 12.5px; font-weight: 800; padding: 5px 12px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase; }
.slide h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 900; letter-spacing: -.02em; line-height: 1.02; }
.slide p { font-size: 17px; max-width: 430px; }
.slide-art { flex: 1 1 240px; position: relative; height: 270px; min-width: 0; }
.slide-art .blob { position: absolute; inset: 10px 10px 10px 30px; border-radius: 50%; background: rgba(255,255,255,.18); }
.slide-art img { position: absolute; }
.dots { position: absolute; left: 42px; bottom: 22px; display: flex; gap: 6px; z-index: 2; }
.dots button { width: 10px; height: 10px; border-radius: 6px; border: 0; padding: 0; background: rgba(255,255,255,.5); transition: width .25s; }
.dots button[aria-current="true"] { width: 28px; background: #fff; }
.hero-side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.promo { flex: 1; border-radius: 16px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.promo .k { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; display: block; }
.promo .t { font-size: 22px; font-weight: 900; line-height: 1.1; display: block; margin-block: 4px 6px; }
.promo .u { font-size: 14.5px; font-weight: 800; text-decoration: underline; }
.promo img { width: 120px; flex-shrink: 0; }
.trust { padding: 16px 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.trust > div { display: flex; gap: 12px; align-items: center; }
.trust .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust b { display: block; font-size: 14.5px; }
.trust span span { font-size: 13px; color: var(--muted); }
.sections4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.s3 { border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.s3-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.s3 h3 { font-size: 22px; font-weight: 900; }
.s3 p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.s3 img { width: 96px; flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 13.5px; font-weight: 700; }
.chip:hover { border-color: var(--red); color: var(--red-dark); }
.circles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 16px; }
.circle { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 700; font-size: 14px; }
.circle .c { width: 108px; height: 108px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.circle img { width: 78px; height: 78px; object-fit: contain; }
.circle:hover .c { border-color: var(--red); }

/* Product cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 16px; }
.pcard { background: var(--surface); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: 0 10px 28px rgba(0,0,0,.09); transform: translateY(-2px); }
.pimg { aspect-ratio: 1 / .82; max-width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.pimg img { width: 70%; height: 80%; object-fit: contain; }
.pimg.sold img { filter: grayscale(1); opacity: .5; }
.tag { position: absolute; top: 11px; left: 11px; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 6px; background: var(--ink); color: #fff; letter-spacing: .03em; text-transform: uppercase; }
.tag.sold { background: #6B6864; }
.pbody { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pbody .sub { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pbody h3 { font-size: 15.5px; font-weight: 800; }
.pbody h3 a:hover { color: var(--red); }
.price { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.price b { font-size: 21px; font-weight: 900; }
.price span { font-size: 12.5px; color: var(--muted); }
.pcard .mbtn, .pcard form .mbtn { margin-top: 8px; padding: 10px; width: 100%; }
.stars { color: var(--star); letter-spacing: 1px; }
.stars .off { color: #D6D4D0; }
.rating-mini { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* Bands and steps */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.band { border-radius: 16px; padding: 30px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band > div { display: flex; flex-direction: column; gap: 10px; flex: 1 1 220px; }
.band h2 { font-size: 28px; font-weight: 900; }
.band img { width: 190px; max-width: 100%; }
.steps { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps li { display: flex; gap: 13px; align-items: flex-start; }
.steps .n { width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.steps b { display: block; }
.steps li span span { font-size: 14px; color: var(--muted); }
.faqlist { display: grid; gap: 10px; }
.faqlist details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.faqlist summary { font-weight: 800; cursor: pointer; }
.faqlist details p { margin-top: 8px; color: var(--muted); }

/* Listing */
.crumbs { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--red); }
.listing { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.side { flex: 1 1 240px; max-width: 100%; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.side h2 { font-size: 15px; font-weight: 800; padding: 4px 8px 8px; }
.side a { text-align: left; padding: 9px 10px; border-radius: 8px; display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.side a:hover { background: var(--bg); }
.side a[aria-current="page"] { background: var(--red-soft); color: var(--red-dark); font-weight: 800; }
.side small { color: var(--muted); }
.side .gap { height: 10px; }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; align-items: center; padding: 10px 14px; }
.toolbar label { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; }
.toolbar select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* Product page */
.pp { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
.pp-media { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pp-main { border-radius: 16px; aspect-ratio: 1 / .9; max-width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.pp-main img { width: 66%; height: 80%; object-fit: contain; }
.pp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-thumbs a { width: 70px; height: 70px; border-radius: 10px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; background: #fff; }
.pp-thumbs img { max-width: 80%; max-height: 80%; }
.pp-buy { flex: 1 1 420px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.pp-buy h1 { font-size: 30px; font-weight: 900; }
.unitprice { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.unitprice b { font-size: 28px; font-weight: 900; }
.unitprice span { color: var(--muted); font-size: 14px; }
.tiers { font-size: 13.5px; background: var(--green-soft); color: var(--green); border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.optgroup { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.optgroup legend, .optgroup .lab { font-weight: 800; font-size: 14.5px; padding: 0; margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-block; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: 14px; cursor: pointer; }
.opt span small { font-weight: 600; opacity: .75; }
.opt input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.qtyrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stepper { display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button { width: 42px; border: 0; background: var(--bg); font-size: 20px; font-weight: 700; }
.stepper input { width: 90px; border: 0; text-align: center; font-weight: 800; font-size: 16px; padding: 10px 4px; }
.help { font-size: 13px; color: var(--muted); }
.help.err, .ferr { color: var(--red-dark); font-weight: 700; font-size: 13px; }
.sizebox { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 12px; background: #FCFCFB; }
.sizehead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.units { display: inline-flex; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.units label { position: relative; }
.units input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.units span { display: block; padding: 6px 12px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.units input:checked + span { background: var(--ink); color: #fff; }
.units input:focus-visible + span { outline: 3px solid var(--red); outline-offset: -3px; }
.dims { display: none; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.sizebox:has(input[name="size_preset"][value="custom"]:checked) .dims, .dims.show { display: flex; }
.dims .fld { width: 112px; display: grid; gap: 4px; }
.dims label { font-weight: 700; font-size: 13px; }
.dims input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 10px; font-weight: 800; background: #fff; }
.dims .x { padding-bottom: 10px; font-weight: 800; color: var(--muted); }
.drop { border: 2px dashed #C9C6C0; border-radius: 12px; padding: 16px; display: flex; gap: 14px; align-items: center; background: var(--bg); cursor: pointer; position: relative; }
.drop:hover, .drop.over { border-color: var(--red); background: var(--red-soft); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .thumb { width: 60px; height: 60px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; border: 1px solid var(--line); }
.drop .thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop b { display: block; }
.drop span span { font-size: 13px; color: var(--muted); }
.nodesign { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #FFF4D6; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.mfield { display: grid; gap: 5px; }
.mfield label { font-weight: 700; font-size: 14px; }
.mfield input, .mfield select, .mfield textarea, textarea.minput { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.mfield [aria-invalid="true"] { border-color: var(--red); }
.calc { border: 2px solid var(--ink); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; }
.calc div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.calc .total { font-size: 20px; font-weight: 900; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.soldbox { background: #F1F0EE; border-radius: 12px; padding: 14px 16px; font-weight: 700; color: #4A4845; }
.desc { padding: 24px; display: grid; gap: 10px; }
.desc h2 { font-size: 20px; font-weight: 900; }
.desc ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; margin: 0; }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; color: var(--muted); }

/* Reviews */
.reviews { padding: 24px; display: grid; gap: 20px; }
.rv-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.rv-score { display: grid; gap: 2px; justify-items: start; }
.rv-score b { font-size: 44px; font-weight: 900; line-height: 1; }
.rv-bars { flex: 1 1 260px; display: grid; gap: 5px; min-width: 0; }
.rv-bar { display: grid; grid-template-columns: 50px 1fr 28px; gap: 8px; align-items: center; font-size: 13px; }
.rv-bar .tr { height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.rv-bar .tr span { display: block; height: 100%; background: var(--star); }
.rv-list { display: grid; gap: 14px; }
.rv-item { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; }
.rv-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.rv-meta b { color: var(--ink); }
.verified { background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 11.5px; border-radius: 999px; padding: 2px 8px; }
.rv-form { border: 1.5px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 12px; }
.rv-form .frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.starpick { border: 0; padding: 0; margin: 0; }
.starpick legend { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.starpick .row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.starpick label { font-size: 30px; line-height: 1; color: #D6D4D0; cursor: pointer; padding: 0 2px; }
.starpick input:checked ~ label, .starpick label:hover, .starpick label:hover ~ label { color: var(--star); }
.starpick input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Cart and checkout */
.two { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.two > .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.two > .aside { flex: 1 1 320px; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.line { padding: 16px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.line .lthumb { width: 92px; height: 92px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.line .lthumb img { width: 76%; height: 76%; object-fit: contain; }
.line .linfo { flex: 1 1 220px; min-width: 0; display: grid; gap: 3px; }
.line .linfo b { font-size: 16px; }
.line .linfo span { font-size: 13.5px; color: var(--muted); }
.line .lright { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.line .amt { font-weight: 900; font-size: 17px; min-width: 90px; text-align: right; }
.line form { display: flex; gap: 6px; align-items: center; }
.qtyin { width: 84px; border: 1.5px solid var(--line); border-radius: 9px; padding: 8px; font-weight: 800; text-align: center; }
.mini { border: 0; border-radius: 8px; padding: 7px 11px; font-weight: 800; font-size: 13px; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; }
.sum .total { font-weight: 900; font-size: 21px; border-top: 1px solid var(--line); padding-top: 10px; }
.sum .gst { color: var(--muted); }
.sum .disc { color: var(--green); font-weight: 700; }
.cpform { display: flex; gap: 8px; }
.cpform input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 12px; text-transform: uppercase; }
.cpapplied { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--green-soft); color: var(--green); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 700; }
.cpapplied form { display: inline; }
.mform { padding: 22px; display: grid; gap: 14px; }
.mform h2 { font-size: 19px; font-weight: 900; }
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.payopt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; }
.payopt:has(input:checked) { border-color: var(--ink); background: #FAFAF9; }
.payopt input { margin-top: 4px; accent-color: var(--red); }
.payopt b { display: block; }
.payopt span span { font-size: 13.5px; color: var(--muted); }

/* Order page, rewards */
.success { padding: 30px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.success .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.success h1 { font-size: 28px; font-weight: 900; }
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.progress li { border-top: 4px solid var(--line); padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.progress li.done { border-color: var(--green); color: var(--green); }
.progress li.now { border-color: var(--red); color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { border-left: 3px solid var(--line); padding-left: 12px; }
.timeline time { display: block; font-size: 12.5px; color: var(--muted); }
.reward { width: min(560px, 100%); justify-self: center; border-radius: 18px; padding: 22px; background: var(--charcoal); color: #fff; display: grid; gap: 14px; justify-items: center; text-align: center; }
.reward h2 { font-size: 22px; font-weight: 900; }
.reward p { color: #E6E3DE; font-size: 14.5px; }
.scratch { position: relative; width: min(320px, 100%); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #FFF4D6; color: var(--ink); }
.scratch .prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px; }
.scratch .prize b { font-size: 24px; font-weight: 900; color: var(--red); line-height: 1.1; }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.scratch .cover { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, #B9B6B0 0 10px, #CFCCC6 10px 18px); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; color: var(--charcoal); }
.linkbtn { background: none; border: 0; padding: 0; color: #fff; text-decoration: underline; font-weight: 700; font-size: 13.5px; }
.wheelwrap { position: relative; width: min(300px, 100%); aspect-ratio: 1; }
.wheelwrap svg.wheel { width: 100%; height: 100%; transition: transform 4.2s cubic-bezier(.17,.67,.12,.99); }
.wheelwrap .pointer { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--yellow); z-index: 1; }
.coupon { width: min(540px, 100%); justify-self: center; border: 2px dashed var(--red); border-radius: 16px; padding: 20px; background: #FFF8F8; display: grid; gap: 10px; text-align: center; justify-items: center; }
.coupon .won { font-size: 22px; font-weight: 900; color: var(--red-dark); }
.coupon .code { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.coupon .code b { font-size: 24px; letter-spacing: .12em; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 14px; font-family: ui-monospace, Menlo, monospace; }
.waiting { background: #FFF4D6; border-radius: 12px; padding: 14px 16px; width: min(560px, 100%); text-align: left; }
.otable { width: 100%; border-collapse: collapse; font-size: 14px; }
.otable th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.otable td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.otable .r { text-align: right; }
.tablebox { overflow-x: auto; }

/* Footer */
.mfoot { background: #1F1E1C; color: #D6D3CE; margin-top: auto; }
.mfoot .wrap { padding-block: 44px 22px; display: flex; flex-direction: column; gap: 28px; }
.fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 26px; font-size: 14px; }
.fcols > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fcols b { color: #fff; }
.fcols a:hover { color: #fff; text-decoration: underline; }
.fbottom { border-top: 1px solid #3A3936; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 13px; }
.pays { display: flex; gap: 8px; flex-wrap: wrap; }
.pays span { border: 1px solid #55534F; border-radius: 6px; padding: 3px 9px; }

/* Content pages that use app.css components get the store font. */
.store .container-x { max-width: 1320px; }

@media (max-width: 640px) {
  .slide-art { display: none; }
  .slider { min-height: 380px; }
  .slide { padding: 26px 22px 50px; }
  .dots { left: 22px; }
  .hicons { width: 100%; justify-content: space-around; }
  .pp-buy { padding: 18px; }
  .reward { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { white-space: normal; }
  .ticker-track { animation: none; display: block; text-align: center; }
  .ticker-track > span[aria-hidden] { display: none; }
  .ticker-track > span { flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 0 16px; }
  .slide, .pcard, .wheelwrap svg.wheel { transition: none; }
}
@media print {
  .ticker, .mhead, .catbar, .mfoot, .samplebar { display: none; }
}
.js .no-js-only { display: none; }
