:root {
  --ink: #14231e;
  --muted: #66746f;
  --paper: #f6f3ec;
  --surface: #fffdf8;
  --line: #dedbd1;
  --brand: #0f3b2f;
  --brand-2: #1d5e4b;
  --accent: #e8ad4a;
  --accent-soft: #f7e7c5;
  --danger: #a33b2f;
  --shadow: 0 18px 50px rgba(24, 42, 35, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(232, 173, 74, .16), transparent 28rem),
    linear-gradient(180deg, #fbf9f4 0%, var(--paper) 100%);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(222, 219, 209, .8);
  background: rgba(251, 249, 244, .9);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: white;
  background: var(--brand);
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: -.04em;
}
.brand-copy strong { display: block; font-size: .96rem; }
.brand-copy span { display: block; color: var(--muted); font-size: .76rem; }
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--brand);
  font-weight: 700;
}
.cart-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--accent);
  font-size: .75rem;
}

.hero, .catalog-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(32px, 8vw, 110px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(54px, 10vw, 120px) clamp(20px, 5vw, 72px) 52px;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--brand-2);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}
h1, h2, h3 { font-family: "Fraunces", serif; margin: 0; }
h1 {
  max-width: 780px;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  line-height: .96;
  letter-spacing: -.055em;
}
.hero p, .catalog-hero p {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}
.hero-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--brand);
  box-shadow: var(--shadow);
}
.hero-card::before, .hero-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero-card::before {
  width: 330px; height: 330px;
  right: -95px; top: -90px;
  background: var(--accent);
}
.hero-card::after {
  width: 230px; height: 230px;
  left: -80px; bottom: -90px;
  border: 38px solid rgba(255,255,255,.1);
}
.hero-uniform {
  position: absolute;
  inset: 45px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
}
.hero-uniform .number {
  color: rgba(255,255,255,.12);
  font-family: "Fraunces", serif;
  font-size: 9rem;
  font-weight: 700;
  line-height: .72;
}
.hero-uniform strong { max-width: 260px; font: 700 2rem/1.05 "Fraunces", serif; }

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px clamp(20px, 5vw, 72px) 100px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.section-head p { max-width: 480px; margin: 0; color: var(--muted); line-height: 1.6; }
.school-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.school-card {
  position: relative;
  min-height: 220px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(24,42,35,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.school-card:hover { transform: translateY(-4px); border-color: #c5bda9; box-shadow: var(--shadow); }
.school-card .initial {
  position: absolute;
  right: 14px;
  bottom: -28px;
  color: rgba(15,59,47,.06);
  font: 700 8rem/1 "Fraunces", serif;
}
.school-card h3 { max-width: 270px; font-size: 1.55rem; }
.school-card p { max-width: 270px; margin: 12px 0 24px; color: var(--muted); line-height: 1.5; }
.link-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  color: var(--brand);
  background: transparent;
  font-weight: 800;
}

.catalog-hero { padding-bottom: 28px; }
.catalog-hero h1 { font-size: clamp(2.6rem, 6vw, 5.3rem); }
.school-badge {
  justify-self: end;
  display: grid;
  place-items: center;
  width: min(280px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  color: white;
  background: var(--brand);
  box-shadow: inset 0 0 0 18px rgba(255,255,255,.08), var(--shadow);
  text-align: center;
}
.school-badge span { display: block; color: var(--accent); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.school-badge strong { max-width: 190px; margin-top: 8px; font: 700 1.8rem/1.1 "Fraunces", serif; }
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 700;
}
.filter.active { color: white; border-color: var(--brand); background: var(--brand); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  background:
    linear-gradient(145deg, rgba(15,59,47,.08), rgba(232,173,74,.16)),
    var(--paper);
}
.shirt {
  position: relative;
  width: 118px; height: 128px;
  border-radius: 24px 24px 16px 16px;
  background: var(--brand);
  box-shadow: 0 18px 28px rgba(15,59,47,.2);
}
.shirt::before, .shirt::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 48px; height: 66px;
  border-radius: 15px;
  background: inherit;
}
.shirt::before { left: -30px; transform: rotate(30deg); }
.shirt::after { right: -30px; transform: rotate(-30deg); }
.shirt .crest {
  position: absolute;
  z-index: 2;
  top: 34px; left: 20px;
  width: 22px; height: 27px;
  border: 3px solid var(--accent);
  border-radius: 7px 7px 11px 11px;
}
.stock-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(255,253,248,.9);
  font-size: .72rem;
  font-weight: 800;
}
.product-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.product-body h3 { font: 700 1.15rem/1.3 "DM Sans", sans-serif; }
.sku { margin: 6px 0 18px; color: var(--muted); font-size: .78rem; }
.product-meta { display: flex; gap: 10px; margin-bottom: 18px; }
.product-meta span { padding: 6px 9px; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: .75rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; }
.price { font-size: 1.25rem; font-weight: 800; }
.add-button, .primary-button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--brand);
  font-weight: 800;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  justify-items: end;
  background: rgba(9,24,19,.52);
}
.drawer {
  display: flex;
  flex-direction: column;
  width: min(480px, 100vw);
  height: 100%;
  padding: 24px;
  background: var(--surface);
  box-shadow: -24px 0 60px rgba(0,0,0,.18);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2 { font-size: 2rem; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.cart-list { display: grid; gap: 12px; margin: 24px 0; overflow: auto; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; }
.cart-item small { display: block; margin-top: 4px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.cart-summary { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; margin-bottom: 18px; font-size: 1.15rem; font-weight: 800; }
.primary-button { width: 100%; min-height: 50px; }
.empty { margin: auto; color: var(--muted); text-align: center; }

.checkout {
  max-width: 840px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}
.checkout h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
.steps { display: flex; gap: 8px; margin: 28px 0; }
.step { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.step.active { background: var(--accent); }
.form-card { padding: clamp(22px, 5vw, 42px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.form-card h2 { margin-bottom: 8px; font-size: 2rem; }
.form-card > p { margin: 0 0 26px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 800; }
.field input, .field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: white;
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(29,94,75,.12); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.secondary-button { min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 13px; background: transparent; font-weight: 800; }
.notice { padding: 14px 16px; border-radius: 14px; color: var(--brand); background: var(--accent-soft); line-height: 1.5; }
.success { text-align: center; }
.success-icon { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 24px; border-radius: 50%; color: white; background: var(--brand); font-size: 2rem; }
.footer { padding: 30px 20px 46px; color: var(--muted); text-align: center; font-size: .82rem; }

@media (max-width: 900px) {
  .hero, .catalog-hero { grid-template-columns: 1fr; }
  .hero-card { min-height: 300px; }
  .school-badge { justify-self: start; width: 220px; }
  .school-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .brand-copy span { display: none; }
  .hero { padding-top: 54px; }
  .hero-card { min-height: 270px; }
  .hero-uniform .number { font-size: 7rem; }
  .section-head, .toolbar { align-items: stretch; flex-direction: column; }
  .school-grid, .product-grid, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .product-visual { min-height: 190px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions button { width: 100%; }
}
