/* STUX storefront (getstux.app/home) - plum/cream theme from design mockups.
   Brand colors reused from the existing getstux.app site (#5B1049 plum, #F3E7BE cream). */
:root {
  --bg: #1d0621;
  --surface: #2b0d33;
  --surface-2: #34113c;
  --line: #43204d;
  --plum: #5b1049;
  --plum-soft: #7a2566;
  --cream: #f3e7be;
  --cream-ink: #3e0a32;
  --pink: #e879b8;
  --pink-soft: #ffc9c0;
  --ink: #fffdf8;
  --mute: #b49fb0;
  --good: #6bcb77;
  --amber: #e8b64c;
  --bad: #ff7a7a;
  --radius: 18px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.5 var(--font);
  background: var(--bg);
  color: var(--ink);
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }

/* ---------- header ---------- */
.hdr { padding: 18px 16px 0; }
.hdr-top { display: flex; align-items: center; justify-content: space-between; }
.hdr-logo { height: 46px; width: auto; }
.hdr-icons { display: flex; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 19px; height: 19px; stroke: var(--ink); fill: none; stroke-width: 1.8; }
.icon-btn .dot { position: absolute; }
.search-row { display: flex; gap: 10px; margin-top: 14px; }
.search-box {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 16px; height: 48px;
}
.search-box svg { width: 18px; height: 18px; stroke: var(--mute); fill: none; stroke-width: 2; flex: none; }
.search-box input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0;
  color: var(--ink); font: inherit;
}
.search-box input::placeholder { color: var(--mute); }
.search-go {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  display: flex; align-items: center; justify-content: center; flex: none;
  color: inherit; font: inherit; cursor: pointer;
}

/* ---------- fashion/food tabs ---------- */
.mode-tabs {
  display: flex; margin: 14px 16px 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px;
}
.mode-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: 999px; font-weight: 600; color: var(--mute);
}
.mode-tab svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.mode-tab.active { background: var(--cream); color: var(--cream-ink); }
.mode-tab .soon {
  font-size: 10px; font-weight: 700; background: var(--pink); color: var(--cream-ink);
  border-radius: 999px; padding: 2px 7px; margin-left: 2px;
}

/* ---------- banner ---------- */
.banner { margin: 14px 16px 0; border-radius: var(--radius); overflow: hidden; position: relative; min-height: 188px; display: flex; }
.banner-bg { position: absolute; inset: 0; background: linear-gradient(120deg, var(--plum) 0%, var(--plum-soft) 60%, #93336e 100%); }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 80% center; opacity: .55; }
.banner.has-img .banner-bg img { opacity: 1; }
.banner.has-img .banner-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,6,33,.92) 0%, rgba(29,6,33,.72) 45%, rgba(29,6,33,.18) 70%, rgba(29,6,33,0) 100%); }
.banner-copy { position: relative; padding: 16px 18px; max-width: 58%; align-self: center; }
.banner-eyebrow { font-size: 10px; letter-spacing: .18em; font-weight: 700; color: var(--pink-soft); margin-bottom: 8px; }
.banner-title { font-size: 21px; font-weight: 800; text-shadow: 0 2px 14px rgba(29,6,33,.75); }
.banner-title em { background: var(--cream); color: var(--cream-ink); font-style: italic; padding: 0 8px; border-radius: 6px; display: inline-block; transform: rotate(-1.5deg); }
.banner-sub { color: #e9d8ea; font-size: 12px; margin-top: 6px; text-shadow: 0 1px 10px rgba(29,6,33,.7); }
.banner-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  background: var(--cream); color: var(--cream-ink); font-weight: 700;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; white-space: nowrap;
}
.banner-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); }
.banner-dots i.on { background: var(--cream); width: 16px; border-radius: 999px; }

/* ---------- men/women cards ---------- */
.gender-row { display: flex; gap: 12px; margin: 4px 16px 0; }
.gender-card {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px 6px 6px; text-align: left;
}
.gender-card.active { background: var(--cream); color: var(--cream-ink); border-color: var(--cream); }
.gender-card img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.gender-card .g-name { font-size: 15px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gender-card svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* ---------- sections ---------- */
.sec { margin-top: 22px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px; }
.sec-title { font-size: 19px; font-weight: 800; }
.sec-link { color: var(--pink); font-weight: 600; font-size: 13px; }
.cat-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 14px 16px 10px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-tile { flex: none; width: 88px; text-align: center; }
.cat-tile img {
  width: 88px; height: 88px; border-radius: 16px; object-fit: cover;
  background: var(--surface); border: 1px solid var(--line);
}
.cat-tile span { display: block; margin-top: 7px; padding: 0 2px 6px; line-height: 1.3; font-size: 12px; font-weight: 600; color: var(--ink); }

/* ---------- discover cards ---------- */
.disc-row { display: flex; gap: 12px; overflow-x: auto; padding: 14px 16px 4px; scrollbar-width: none; }
.disc-row::-webkit-scrollbar { display: none; }
.disc-card {
  flex: none; width: 150px; height: 110px; border-radius: 16px; overflow: hidden; position: relative;
  background: var(--surface); border: 1px solid var(--line); text-align: left; display: block;
}
.disc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.disc-card .dc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20,3,24,.9)); }
.disc-card .dc-copy { position: absolute; left: 12px; bottom: 10px; right: 40px; }
.disc-card .dc-title { font-size: 14px; font-weight: 800; }
.disc-card .dc-sub { font-size: 10.5px; color: #d9c6dc; }
.disc-card .dc-arrow {
  position: absolute; right: 10px; bottom: 10px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
}
.disc-card .dc-arrow svg { width: 13px; height: 13px; stroke: var(--cream-ink); stroke-width: 2.4; fill: none; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px 4px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative; display: block; text-align: left; width: 100%; padding: 0;
}
.card-img { position: relative; aspect-ratio: 4/4.6; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge-off {
  position: absolute; top: 10px; left: 10px; background: var(--cream); color: var(--cream-ink);
  font-weight: 800; font-size: 12px; padding: 4px 8px; border-radius: 8px; transform: rotate(-2deg);
}
.heart {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(29,6,33,.55); display: flex; align-items: center; justify-content: center;
}
.heart svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.heart.on svg { fill: var(--pink); stroke: var(--pink); }
.card-body { padding: 10px 12px 12px; }
.card-name { font-size: 13.5px; font-weight: 700; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; min-height: 2.6em; }
.card-sub { font-size: 11.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-rows { margin-top: 8px; display: grid; gap: 2px; }
.price-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); }
.price-row .val { font-weight: 600; color: var(--ink); }
.price-row .val s { color: var(--mute); font-weight: 500; }
.student-price {
  margin-top: 8px; background: var(--cream); color: var(--cream-ink); border-radius: 10px;
  padding: 7px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%;
}
.student-price .sp-label {
  white-space: normal; width: min-content; line-height: 1.2;
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
}
.student-price .sp-val { white-space: nowrap; min-width: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.2px; }
@media (max-width: 479px) {
  .gender-card svg { display: none; }
}
@media (max-width: 380px) {
  .gender-card { gap: 8px; padding: 8px 8px; }
  .gender-card img { width: 34px; height: 34px; }
  .gender-card .g-name { font-size: 15px; }

  .student-price { padding: 7px 6px; gap: 6px; }
  .student-price .sp-label { font-size: 8px; letter-spacing: 0.2px; }
  .student-price .sp-val { font-size: 13px; letter-spacing: -0.3px; }
}
.student-price.pending { background: var(--surface-2); color: var(--mute); }
.card.no-offer .student-price { background: var(--surface-2); color: var(--mute); font-size: 12px; }

/* ---------- filter chips / sort ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--mute);
}
.chip.active { background: var(--cream); color: var(--cream-ink); border-color: var(--cream); }
.sort-row { display: flex; justify-content: flex-end; padding: 10px 16px 0; }
.sort-row select {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 600;
}

/* ---------- bottom nav ---------- */
.bnav {
  position: fixed; bottom: calc(12px + env(safe-area-inset-bottom)); left: 0; right: 0; z-index: 30;
  width: calc(100% - 24px); max-width: 536px; margin: 0 auto;
  background: rgba(43,13,51,.94); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 26px;
  box-shadow: 0 14px 36px rgba(0,0,0,.5);
  display: flex; padding: 8px 8px;
}
.bnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--mute); font-size: 10.5px; font-weight: 600; padding: 4px 0;
}
.bnav a svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.bnav a.active { color: var(--pink); }
.page-pad { height: 108px; }

/* ---------- misc ---------- */
.state { padding: 40px 16px; text-align: center; color: var(--mute); }
.load-pill { display: inline-block; width: 120px; height: 14px; border-radius: 999px; background: var(--surface-2); animation: pulse 1.2s ease-in-out infinite; }
.state.err { color: var(--bad); }
.skel { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4/5.6; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.back-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.back-btn svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 2.2; }
.page-title { font-size: 22px; font-weight: 800; }

/* ---------- categories page ---------- */
.cat-layout { display: flex; margin-top: 14px; align-items: flex-start; }
.cat-side { width: 132px; flex: none; position: sticky; top: 0; }
.cat-side button {
  display: block; width: 100%; text-align: left; padding: 12px 16px;
  color: var(--mute); font-size: 13px; font-weight: 600; border-left: 3px solid transparent;
}
.cat-side button.active { color: var(--ink); border-left-color: var(--pink); background: var(--surface); }
.cat-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 0 14px 4px; }
.cat-cell { text-align: center; display: block; }
.cat-cell img {
  width: 100%; aspect-ratio: 1/1.05; border-radius: 16px; object-fit: cover;
  background: var(--surface); border: 1px solid var(--line);
}
.cat-cell span { display: block; margin: 7px 0 4px; font-size: 12.5px; font-weight: 600; }
.cat-cell.no-img { aspect-ratio: 1/1.05; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; padding: 12px; }
.cat-cell.no-img span { margin: 0; }
.cat-tile.no-img img { display: none; }

/* ---------- discover ---------- */
.hero-disc { margin: 16px; border-radius: var(--radius); overflow: hidden; position: relative; min-height: 140px; display: flex; }
.hero-disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.hero-disc .hd-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,3,24,.15), rgba(20,3,24,.92)); }
.hero-disc .hd-copy { position: relative; align-self: flex-end; padding: 20px; }
.hd-badge { display: inline-block; background: var(--pink); color: var(--cream-ink); font-size: 10px; font-weight: 800; letter-spacing: .12em; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.hd-title { font-size: 28px; font-weight: 800; }
.hd-title em { background: var(--cream); color: var(--cream-ink); font-style: italic; padding: 0 8px; border-radius: 6px; }
.hd-sub { color: #e9d8ea; font-size: 13px; margin-top: 6px; }

/* ---------- food ---------- */
.food-wrap { padding: 44px 22px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.food-torn { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.food-torn span {
  font-size: 34px; font-weight: 900; line-height: 1.12; letter-spacing: -.01em;
  background: var(--cream); color: var(--cream-ink); display: inline-block; padding: 3px 18px;
}
.food-torn .food-line1 { transform: rotate(-1.6deg); clip-path: polygon(0 12%, 3% 0, 97% 4%, 100% 18%, 99% 86%, 96% 100%, 4% 96%, 1% 82%); }
.food-torn .food-line2 { transform: rotate(1.2deg) translateX(10px); clip-path: polygon(1% 8%, 4% 0, 98% 6%, 100% 22%, 98% 88%, 95% 100%, 3% 94%, 0 78%); }
.food-brush {
  margin-top: 16px; display: inline-block; background: var(--pink); color: #2a0a22;
  font-weight: 800; font-size: 16px; padding: 7px 22px; transform: rotate(-1.2deg);
  clip-path: polygon(0 30%, 2% 8%, 98% 0, 100% 26%, 99% 74%, 97% 100%, 2% 92%);
}
.food-sub { color: #d9c4da; font-size: 14px; line-height: 1.55; margin-top: 22px; max-width: 300px; }
.hype-btn {
  margin: 30px auto 0; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8a2b75, var(--plum) 70%);
  border: 2px solid var(--plum-soft);
  box-shadow: 0 0 44px rgba(122,37,102,.75), inset 0 2px 10px rgba(255,255,255,.12);
  color: var(--ink); font-size: 17px; font-weight: 800;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: transform .08s ease;
}
.hype-btn:active { transform: scale(.94); }
.hype-btn.done { background: radial-gradient(circle at 35% 30%, #4d8a52, #1f4a26 70%); border-color: #3c6e41; box-shadow: 0 0 44px rgba(107,203,119,.4); }
.hype-btn svg { width: 26px; height: 26px; fill: var(--pink); stroke: none; }
.hype-note { margin-top: 18px; color: var(--mute); font-size: 12.5px; }

/* ---------- desktop ---------- */
@media (max-width: 479px) {
  .banner-copy { padding: 12px 16px; max-width: 64%; }
  .banner-eyebrow { margin-bottom: 6px; }
  .banner-title { font-size: 19px; }
  .banner-sub { font-size: 11.5px; margin-top: 5px; }
  .banner-cta { margin-top: 10px; padding: 8px 14px; font-size: 12.5px; }
}

@media (max-width: 340px) {
  .banner { min-height: 168px; }
  .banner-copy { padding: 12px 14px; max-width: 66%; }
  .banner-eyebrow { margin-bottom: 5px; }
  .banner-title { font-size: 17px; }
  .banner-sub { font-size: 11px; margin-top: 4px; }
}

@media (min-width: 768px) {
  body { max-width: 960px; } .bnav { max-width: 896px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .hdr-logo { height: 54px; }
  .banner-copy { max-width: 60%; }
}
@media (min-width: 1200px) {
  body { max-width: 1120px; } .bnav { max-width: 1056px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Muse assets */
.food-hero-img { width: min(58vw, 240px); border-radius: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.45); display: block; margin: 0 auto; }
.gender-card img { object-position: center 22%; }

/* category editorial banner (navigation imagery, not a product) */
.cat-hero { margin: 14px 16px 0; border-radius: var(--radius); overflow: hidden; position: relative; min-height: 120px; display: flex; }
.cat-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,6,33,.08) 30%, rgba(29,6,33,.82) 100%); }
.cat-hero .ch-label { position: relative; z-index: 1; align-self: flex-end; padding: 12px 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }


/* 2026-11-02: full-frame banner art (baked-in copy, no overlay) */
.banner-art { display: block; min-height: 0; }
.banner-art img { width: 100%; height: auto; display: block; }

/* bottom View more CTA under home preview grid (Pranjal 2026-11-04) */
.more-btn {
  display: block; margin: 14px 16px 4px; padding: 13px; border-radius: 16px;
  background: var(--cream); color: var(--cream-ink); font-weight: 800; font-size: 14px;
  text-align: center;
}

/* hide empty home grid status strip so it leaves no gap above the bottom CTA */
#gridState:empty { display: none; }

/* text-only gender pills (Pranjal 2026-11-04): balanced padding without the avatar */
.gender-card { padding: 10px 16px; }
