/* =====================================================
   NEXORA CLOTHING - the NEXORABET480 colour system
   - Black: structure (top bar, headers, footer, hero)
   - Blue: what is chosen or where you are (selected size/colour, active filters, links)
   - Green: money in (Add to bag, Checkout, Pay) and success
   - Gold: highlights (logo, NEW badges, announcement, prices on dark)
   - Purple: kids section accents
   - Red: sale prices, sold out and errors
   White rounded cards on a cool off-white page, pill-shaped buttons.
   ===================================================== */
:root {
  --ink: #1d4ed8;
  --ink-deep: #0b0d12;
  --select: #1d4ed8;
  --select-deep: #1e3a8a;
  --select-soft: #e8efff;
  --green: #16a34a;
  --green-bright: #22c55e;
  --gold: #f6b900;
  --gold-light: #ffd34d;
  --purple: #7c3aed;
  --purple-soft: #f1ebff;
  --red: #dc2626;
  --red-soft: #fdecec;
  --bg: #f4f6fa;
  --card: #ffffff;
  --tile: #eceff5;
  --text: #12151c;
  --muted: #667085;
  --line: #e3e7ee;
  --grad: linear-gradient(115deg, #07080b 0%, #12151c 60%, #1a1f2b 100%);
  --grad-deep: linear-gradient(160deg, #05060a 0%, #0d1018 60%, #141a26 100%);
  --grad-select: linear-gradient(115deg, #1e40af 0%, #1d4ed8 55%, #3b82f6 100%);
  --grad-action: linear-gradient(115deg, #128a3e 0%, #16a34a 55%, #22c55e 100%);
  --radius: 18px;
  --shadow: 0 6px 18px rgba(10, 12, 18, 0.08), 0 1px 3px rgba(10, 12, 18, 0.06);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 800; letter-spacing: .01em; line-height: 1.05; margin: 0 0 .4em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--select); outline-offset: 2px; }

/* ----- buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 1.4em;
  border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-family: var(--display); font-size: 1.05rem;
  letter-spacing: .04em; text-transform: uppercase; cursor: pointer; text-decoration: none !important; transition: transform .12s, filter .12s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-go { background: var(--grad-action); color: #fff; box-shadow: 0 6px 16px rgba(22, 163, 74, .28); }
.btn-gold { background: var(--gold); color: #111317; }
.btn-dark { background: var(--ink-deep); color: #fff; }
.btn-line { background: transparent; border-color: currentColor; color: var(--text); }
.btn-line.on-dark { color: #fff; }
.btn-blue { background: var(--grad-select); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 1em; font-size: .9rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font-weight: 600; }

/* ----- top of the page ----- */
.announce { background: #000; color: var(--gold-light); text-align: center; font-size: .85rem; font-weight: 600; padding: 7px 16px; letter-spacing: .02em; }
.topbar { position: sticky; top: 0; z-index: 40; background: var(--grad); color: #fff; box-shadow: 0 4px 16px rgba(10, 12, 18, .2); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand b { font-family: var(--display); font-size: 1.55rem; font-weight: 800; letter-spacing: .06em; line-height: 1; font-style: italic; }
.brand b span { color: var(--gold); }
.brand small { display: block; font-family: var(--display); font-size: .68rem; letter-spacing: .42em; color: #aab3c5; font-weight: 600; margin-top: 2px; }
.mainnav { display: flex; gap: 4px; margin-left: 8px; }
.mainnav a { color: #dfe4ee; padding: 8px 10px; white-space: nowrap; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.mainnav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.mainnav a.on { background: var(--grad-select); color: #fff; }
.mainnav a.sale { color: var(--gold-light); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.search { position: relative; }
.search input[type=search] { width: 190px; height: 40px; border-radius: 999px; border: 1px solid #2a3142; background: #161a24; color: #fff; padding: 0 14px 0 38px; }
.search input::placeholder { color: #8b94a7; }
.search svg { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: #8b94a7; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; color: #fff; background: transparent; border: 0; cursor: pointer; text-decoration: none !important; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn svg { width: 22px; height: 22px; }
.bag-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--green-bright); color: #04130a; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.bag-count:empty, .bag-count[data-n="0"] { display: none; }
.menu-btn { display: none; }
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(5, 6, 10, .55); }
.drawer nav { position: absolute; top: 0; left: 0; bottom: 0; width: min(86vw, 320px); background: var(--grad-deep); padding: 20px 16px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.drawer nav a { color: #fff; padding: 12px 14px; border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; }
.drawer nav a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.drawer .search input[type=search] { width: 100%; margin-bottom: 10px; }

@media (max-width: 1180px) {
  .mainnav, .tools .search { display: none; }
  .menu-btn { display: inline-grid; }
  .topbar .wrap { gap: 8px; }
}

/* ----- home ----- */
.hero { background: var(--grad-deep); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; min-height: 520px; padding-top: 40px; padding-bottom: 40px; }
.kicker { display: inline-block; font-family: var(--display); font-weight: 700; letter-spacing: .3em; font-size: .85rem; color: var(--gold); text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.2rem); font-style: italic; line-height: .92; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero h1 .blue { color: #3b82f6; }
.hero p { color: #c4cbd8; font-size: 1.12rem; max-width: 30em; margin: 0 0 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-art a { border-radius: var(--radius); background: #161b27; display: block; aspect-ratio: 4 / 5; position: relative; overflow: hidden; border: 1px solid #222939; }
.hero-art a:nth-child(1) { transform: translateY(26px); }
.hero-art a:nth-child(2) { background: linear-gradient(160deg, #1e40af, #1d4ed8 60%, #3b82f6); border: 0; }
.hero-art a:nth-child(3) { background: linear-gradient(160deg, #e0a100, #f6b900 60%, #ffd34d); border: 0; transform: translateY(26px); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-art a::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(5, 6, 10, .75)); pointer-events: none; }
.hero-art a:hover img { transform: scale(1.06); }
.hero-art span { position: absolute; z-index: 1; left: 12px; bottom: 10px; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fff; font-size: 1rem; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; padding-bottom: 48px; }
  .hero-art { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .hero-art a:nth-child(n) { transform: none; }
  .hero-art span { display: none; }
}
.section { padding: 48px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 12px 12px; text-align: center; color: var(--text); text-decoration: none !important; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--select); transform: translateY(-2px); }
.cat img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--tile); border-radius: 12px; margin-bottom: 10px; }
.cat b { font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; letter-spacing: .04em; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 48px auto 8px; }
.perk { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.perk i { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--select-soft); color: var(--select); font-style: normal; }
.perk:nth-child(2) i { background: #e7f6ec; color: var(--green); }
.perk:nth-child(3) i { background: #fff6d6; color: #b78800; }
.perk svg { width: 22px; height: 22px; }
.perk b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; letter-spacing: .03em; }
.perk span { color: var(--muted); font-size: .92rem; }
.banner { margin-top: 48px; border-radius: var(--radius); background: var(--grad-select); color: #fff; padding: 34px 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; position: relative; overflow: hidden; }
.banner h2 { margin: 0 0 4px; font-style: italic; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.banner h2 em { color: var(--gold-light); font-style: italic; }
.banner p { margin: 0; color: #dbe6ff; }
.feature { display: flex; align-items: flex-end; min-height: 340px; margin-top: 48px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none !important;
  background: linear-gradient(90deg, rgba(5, 6, 10, .88) 0%, rgba(5, 6, 10, .55) 45%, rgba(5, 6, 10, .1) 100%), var(--img) center / cover; }
.feature > div { padding: 32px 28px; max-width: 520px; }
.feature h2 { font-style: italic; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 6px; }
.feature h2 em { color: var(--gold); font-style: italic; }
.feature p { color: #d5dae4; margin: 0 0 18px; }
.news { margin: 48px auto 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.news form { display: flex; gap: 8px; }
.news input { flex: 1; min-width: 0; }
@media (max-width: 720px) { .news { grid-template-columns: 1fr; } .news form { flex-direction: column; } }

/* ----- product cards ----- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(10, 12, 18, .12); }
.card .pic { position: relative; background: var(--tile); aspect-ratio: 4 / 5; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; padding: 9%; }
.card .pic img.photo { object-fit: cover; padding: 0; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.badge.sale { background: var(--red); color: #fff; }
.badge.new { background: var(--gold); color: #111317; }
.badge.out { background: var(--ink-deep); color: #fff; }
.badge.kids { background: var(--purple); color: #fff; }
.card .info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .cat-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.card .name { font-weight: 700; line-height: 1.25; }
.price { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; }
.price s { color: var(--muted); font-weight: 600; font-size: .9em; margin-left: 6px; }
.price.on-sale { color: var(--red); }
.dots { display: flex; gap: 5px; margin-top: auto; padding-top: 6px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); }

/* ----- shop page ----- */
.page-head { background: var(--grad); color: #fff; padding: 30px 0 26px; }
.page-head h1 { margin: 0; font-style: italic; }
.page-head p { margin: 4px 0 0; color: #aab3c5; }
.crumbs { font-size: .85rem; color: #8b94a7; margin-bottom: 6px; }
.crumbs a { color: #c4cbd8; }
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding-top: 24px; padding-bottom: 48px; }
.filters { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; align-self: start; position: sticky; top: 84px; }
.filters h3 { font-size: 1rem; letter-spacing: .08em; margin: 16px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--text); }
.chip:hover { border-color: var(--select); }
.chip.on { background: var(--grad-select); border-color: transparent; color: #fff; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar select { width: auto; }
.filter-toggle { display: none; }
.empty { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 20px; text-align: center; }
.empty h2 { font-size: 1.6rem; }
@media (max-width: 860px) {
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
}

/* ----- forms ----- */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
label > input, label > select, label > textarea { margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 14px; font-weight: 500; }
textarea { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--select); box-shadow: 0 0 0 3px var(--select-soft); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--select); margin: 0; }
.msg { border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-weight: 600; font-size: .95rem; }
.msg.err { background: var(--red-soft); color: #9b1c1c; }
.msg.ok { background: #e7f6ec; color: #11602f; }
.msg.info { background: var(--select-soft); color: var(--select-deep); }
.msg:empty { display: none; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.narrow { max-width: 460px; margin: 36px auto 48px; }

/* ----- product page ----- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; padding-top: 24px; padding-bottom: 48px; }
.gallery .main { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 8%; background: var(--tile); }
.gallery .main img.photo { object-fit: cover; padding: 0; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 90px; border-radius: 12px; border: 2px solid transparent; background: var(--tile); padding: 0; overflow: hidden; cursor: pointer; }
.thumbs button.on { border-color: var(--select); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy h1 { font-style: italic; margin-bottom: 6px; }
.buy .price { font-size: 1.8rem; margin-bottom: 16px; }
.opt { margin: 18px 0; }
.opt-head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 3px var(--select); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 54px; height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; }
.size:hover:not(:disabled) { border-color: var(--select); }
.size.on { background: var(--grad-select); color: #fff; border-color: transparent; }
.size:disabled { color: #b0b7c4; text-decoration: line-through; cursor: not-allowed; background: var(--bg); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.qty button { width: 40px; height: 42px; border: 0; background: none; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
.buy-row { display: flex; gap: 12px; align-items: center; margin: 22px 0 10px; }
.buy-row .btn { flex: 1; }
.stock-note { font-weight: 600; font-size: .9rem; min-height: 1.4em; }
.stock-note.low { color: var(--red); }
.desc { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; color: #3a4150; }
.facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.facts svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 20px; } }

/* ----- bag and checkout ----- */
.bag { display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding-top: 24px; padding-bottom: 48px; align-items: start; }
@media (max-width: 900px) { .bag { grid-template-columns: 1fr; } }
.lines { display: grid; gap: 12px; }
.line { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; }
.line img { width: 96px; height: 120px; object-fit: cover; background: var(--tile); border-radius: 12px; }
.line .meta { color: var(--muted); font-size: .9rem; }
.line .problem { color: var(--red); font-weight: 700; font-size: .9rem; }
.line .end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 560px) {
  .line { grid-template-columns: 76px 1fr; }
  .line img { width: 76px; height: 92px; }
  .line .end { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
.summary { position: sticky; top: 84px; }
.summary h2 { font-size: 1.5rem; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-family: var(--display); font-weight: 800; font-size: 1.45rem; }
.free-bar { background: var(--select-soft); color: var(--select-deep); border-radius: 12px; padding: 10px 12px; font-size: .9rem; font-weight: 600; margin: 10px 0; }
.free-bar.done { background: #e7f6ec; color: #11602f; }
.pay-opts { display: grid; gap: 10px; margin-bottom: 16px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; margin: 0; background: var(--card); }
.pay-opt:has(input:checked) { border-color: var(--select); background: var(--select-soft); }
.pay-opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--select); }
.pay-opt b { display: block; }
.pay-opt span { font-weight: 500; color: var(--muted); font-size: .9rem; }
.mini-line { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.mini-line img { width: 48px; height: 60px; object-fit: cover; background: var(--tile); border-radius: 8px; }
.mini-line div { flex: 1; min-width: 0; }

/* ----- order page ----- */
.status-head { border-radius: var(--radius); padding: 26px; color: #fff; background: var(--grad); margin-bottom: 18px; }
.status-head.paid { background: var(--grad-action); }
.status-head.failed, .status-head.cancelled { background: linear-gradient(115deg, #7f1d1d, #b91c1c 60%, #dc2626); }
.status-head h1 { font-style: italic; margin-bottom: 6px; }
.status-head p { margin: 0; opacity: .9; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0 4px; }
.steps div { text-align: center; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.steps div::before { content: ""; display: block; height: 6px; border-radius: 999px; background: var(--line); margin-bottom: 6px; }
.steps div.done { color: var(--green); }
.steps div.done::before { background: var(--green); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--line); color: var(--text); }
.pill.paid, .pill.delivered { background: #e7f6ec; color: #11602f; }
.pill.confirmed, .pill.shipped { background: var(--select-soft); color: var(--select-deep); }
.pill.pending, .pill.unpaid { background: #fff6d6; color: #8a6400; }
.pill.cancelled, .pill.failed, .pill.refunded { background: var(--red-soft); color: #9b1c1c; }

/* ----- footer ----- */
.footer { background: var(--grad-deep); color: #aab3c5; margin-top: 56px; padding: 44px 0 24px; font-size: .95rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.footer h4 { color: #fff; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; font-size: 1.05rem; }
.footer a { color: #c4cbd8; display: block; padding: 3px 0; }
.footer a:hover { color: var(--gold-light); }
.footer .legal { border-top: 1px solid #222939; margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.pay-marks { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-marks span { border: 1px solid #2a3142; border-radius: 6px; padding: 2px 8px; font-size: .75rem; font-weight: 700; color: #dfe4ee; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .cols > :first-child { grid-column: 1 / -1; } }

/* ----- toast ----- */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); background: var(--ink-deep); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); z-index: 80; display: flex; gap: 14px; align-items: center; transition: transform .25s; max-width: calc(100vw - 32px); font-weight: 600; }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--gold-light); font-weight: 800; white-space: nowrap; }

/* ----- help page ----- */
.help { display: grid; gap: 16px; padding-top: 24px; padding-bottom: 48px; max-width: 860px; }
.help h2 { font-size: 1.5rem; }
.size-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.size-table th, .size-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.size-table th { font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; }
.table-wrap { overflow-x: auto; }

/* ----- skeleton while loading ----- */
.skel { background: linear-gradient(90deg, var(--line), #f0f2f6, var(--line)); background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: var(--radius); }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
