:root {
  /* Guitar Academy brand */
  --red: #CA0013;
  --red-deep: #8A000D;
  --black: #0A0A0A;
  --grey: #888888;
  --grey-light: #CCCCCC;
  --white: #FFFFFF;

  /* derived surfaces (light theme) */
  --bg: #F4F4F4;           /* very light tint of Light Grey */
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --line: #E0E0E0;
  --text: var(--black);
  --muted: #5E5E5E;        /* darker Grey so small text stays readable on white */
  --red-grad: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);

  --radius: 16px;
  --gutter: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 15% -10%, rgba(202,0,19,.08), transparent 50%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
button { font: inherit; color: inherit; cursor: pointer; }

/* ── Header ─────────────────────────────────────────────── */
.hero {
  padding: calc(22px + env(safe-area-inset-top)) var(--gutter) 0;
  max-width: 760px;
  margin: 0 auto;
}
.logo { display: block; width: 100%; max-width: 420px; height: auto; }
.eyebrow {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}
h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(26px, 7.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.tagline { margin: 6px 0 4px; color: var(--muted); font-size: 15px; }
.tagline span { color: var(--text); font-weight: 600; }

/* ── Notice ─────────────────────────────────────────────── */
.notice {
  max-width: 760px;
  margin: 14px auto 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(202,0,19,.07);
  border: 1px solid rgba(202,0,19,.55);
  font-size: 14px;
  width: calc(100% - 2 * var(--gutter));
}

/* ── Category chips ─────────────────────────────────────── */
.chips {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px var(--gutter);
  max-width: 760px; margin: 0 auto;
  background: linear-gradient(var(--bg) 75%, transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--red-grad); color: var(--white); border-color: var(--red); font-weight: 600; }

/* ── Product grid ───────────────────────────────────────── */
.grid {
  max-width: 760px; margin: 0 auto;
  padding: 4px var(--gutter) 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

.card {
  background: var(--card);
  box-shadow: 0 1px 2px rgba(10,10,10,.04), 0 4px 14px rgba(10,10,10,.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.card.in-basket { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 8px 24px rgba(202,0,19,.14); }
.card.sold-out { opacity: .45; }

.knob { /* amp-knob icon holder */
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 26px;
  background: radial-gradient(circle at 35% 30%, #3a3a3a, #121212 70%);
  border: 2px solid #3d3d3d;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.6), 0 3px 8px rgba(0,0,0,.25);
  margin-bottom: 10px;
  position: relative;
}
.knob::after {
  content: ""; position: absolute; top: 3px; left: 50%;
  width: 2px; height: 8px; background: var(--red); border-radius: 2px;
  transform: translateX(-50%);
}
.card h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.25; }
.card p { margin: 3px 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.35; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 38px; }
.price { font-weight: 700; font-size: 19px; color: var(--text); line-height: 1; letter-spacing: -.01em; }

.add {
  border: 0; background: var(--red-grad); color: var(--white);
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 22px; font-weight: 600; line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(202,0,19,.35);
}
.add:active { transform: scale(.92); }
.stepper {
  display: flex; align-items: center;
  background: var(--white); border: 1px solid var(--red); border-radius: 999px;
}
.stepper button {
  border: 0; background: none; width: 32px; height: 36px;
  font-size: 18px; font-weight: 700; color: var(--red);
}
.stepper span { min-width: 18px; text-align: center; font-weight: 700; font-size: 15px; }
.badge-out {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
  background: var(--grey); color: var(--black); padding: 4px 8px; border-radius: 6px;
}

.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 28px var(--gutter) 0; }

/* ── Sticky basket bar ──────────────────────────────────── */
.bar {
  position: fixed; z-index: 10;
  left: var(--gutter); right: var(--gutter);
  bottom: calc(14px + env(safe-area-inset-bottom));
  max-width: 728px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border: 0; border-radius: 999px;
  background: var(--red-grad); color: var(--white);
  font-weight: 600; font-size: 16px;
  box-shadow: 0 10px 30px rgba(10,10,10,.25), 0 0 0 4px rgba(202,0,19,.15);
  animation: rise .25s ease-out;
}
.bar[hidden] { display: none; }
.bar-count {
  background: var(--white); color: var(--red);
  min-width: 28px; height: 28px; border-radius: 14px; padding: 0 8px;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.bar-label { flex: 1; text-align: left; }
.bar-total { font-size: 19px; font-weight: 700; }
.bar.bump { animation: bump .3s ease-out; }
@keyframes rise { from { transform: translateY(120%); } }
@keyframes bump { 50% { transform: scale(1.04); } }

/* ── Basket sheet ───────────────────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 20; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.45); animation: fade .2s; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 760px; margin: 0 auto;
  max-height: 88vh; overflow-y: auto;
  background: var(--surface);
  border-top: 3px solid var(--red);
  border-radius: 22px 22px 0 0;
  padding: 8px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  animation: slide .25s ease-out;
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateY(100%); } }
.sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 0; font-weight: 700; font-size: 24px; }
.icon-btn { border: 1px solid var(--line); background: var(--bg); width: 36px; height: 36px; border-radius: 50%; color: var(--muted); }

.lines { list-style: none; margin: 10px 0; padding: 0; }
.line {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.line .ic { font-size: 24px; text-align: center; }
.line .nm { font-weight: 600; font-size: 15px; }
.line .sub { color: var(--muted); font-size: 13px; }
.line .stepper { border-color: var(--line); }

.sheet-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; }
.sheet-total span { color: var(--muted); text-transform: uppercase; letter-spacing: .15em; font-size: 13px; font-weight: 600; }
.sheet-total strong { font-weight: 700; font-size: 34px; color: var(--text); line-height: 1; }

.pay {
  width: 100%; border: 0; border-radius: 14px;
  padding: 17px; font-size: 18px; font-weight: 600;
  background: var(--red-grad); color: var(--white);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 20px rgba(202,0,19,.35);
}
.pay:disabled { opacity: .6; cursor: wait; }
.sheet-note { color: var(--muted); font-size: 12.5px; text-align: center; margin: 12px 0 0; }

:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
