:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: #f7f8fb;
  --surface: #ffffff;
  --ink: #10162f;
  --muted: #657086;
  --line: #e4e7ee;
  --brand: #a21469;
  --brand-2: #159bd7;
  --mint: #a9ddd5;
  --pink: #f5a4d6;
  --gold: #ffb23f;
  --soft: #f2f6fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.shop-top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(14px);
}

body.account-mode .school-home,
body.account-mode .school-nav,
body.account-mode .category-nav {
  display: none;
}

body.welcome-mode .school-home,
body.welcome-mode .school-nav,
body.welcome-mode .category-nav {
  display: none;
}

body.welcome-mode .client-layout {
  display: none;
}

body.welcome-mode .search {
  visibility: hidden;
}

.welcome-page {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 34px 24px 52px;
}

.welcome-hero {
  display: grid;
  gap: 10px;
  padding: 24px 0 24px;
}

.welcome-hero p,
.welcome-hero h1,
.welcome-hero span {
  margin: 0;
}

.welcome-hero p {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.welcome-hero h1 {
  color: #10162f;
  font-size: 40px;
  line-height: 1.08;
}

.welcome-hero span {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.welcome-actions .primary,
.welcome-actions .secondary {
  width: auto;
  min-width: 160px;
  padding: 0 16px;
}

.welcome-schools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.welcome-school-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 148px;
  border: 1px solid #d9deea;
  border-radius: 8px;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--school-accent, var(--brand)) 14%, white), transparent 56%),
    white;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 24px rgb(15 20 40 / 5%);
}

.welcome-school-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 4px solid var(--school-accent, var(--brand));
  opacity: 0.95;
  pointer-events: none;
}

.welcome-school-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.welcome-school-card.pattern-grid::after {
  background-image:
    linear-gradient(color-mix(in srgb, var(--school-accent, var(--brand)) 16%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--school-accent, var(--brand)) 16%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
}

.welcome-school-card.pattern-lines::after {
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--school-accent, var(--brand)) 11%, transparent) 0 1px,
    transparent 1px 13px
  );
}

.welcome-school-card.pattern-dots::after {
  background-image: radial-gradient(color-mix(in srgb, var(--school-accent, var(--brand)) 18%, transparent) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}

.welcome-school-card.pattern-waves::after {
  background:
    radial-gradient(42px 18px at 30px 22px, color-mix(in srgb, var(--school-accent, var(--brand)) 12%, transparent) 28%, transparent 30%)
      0 0 / 72px 42px;
}

.welcome-school-card:hover {
  border-color: color-mix(in srgb, var(--school-accent, var(--brand)) 64%, #d9deea);
  box-shadow: 0 16px 34px rgb(15 20 40 / 9%);
  transform: translateY(-1px);
}

.school-logo,
.school-copy,
.welcome-school-card b {
  position: relative;
  z-index: 1;
}

.school-logo {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--school-accent, var(--brand)) 13%, white);
  color: var(--school-accent, var(--brand));
  border: 1px solid color-mix(in srgb, var(--school-accent, var(--brand)) 22%, white);
  font-weight: 900;
}

.school-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.school-copy strong {
  font-size: 18px;
  line-height: 1.15;
}

.school-copy em {
  color: #35405a;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.school-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.welcome-school-card b {
  grid-column: 1 / -1;
  align-self: end;
  justify-self: start;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: color-mix(in srgb, var(--school-accent, var(--brand)) 11%, white);
  color: var(--school-accent, var(--brand));
  font-size: 12px;
}

.utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  min-height: 34px;
  padding: 7px 24px;
  border-bottom: 1px solid var(--line);
  color: #111;
  font-size: 14px;
}

.lang-toggle {
  min-height: 30px;
  min-width: 44px;
  border: 1px solid #b8ddf2;
  border-radius: 8px;
  background: #eef9ff;
  color: #0d6f9e;
  font-weight: 900;
}

.brand-row {
  display: grid;
  grid-template-columns: 210px minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.search {
  position: relative;
}

.search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.search input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #7c8391;
  border-radius: 24px;
  padding: 0 50px 0 20px;
  background: white;
}

.icon-action {
  min-height: 44px;
  border: 0;
  background: white;
  color: #0f1428;
  font-weight: 700;
}

.school-home {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 10px;
  align-items: stretch;
  padding: 0 24px 10px;
}

.school-hero-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 12px;
  align-items: center;
  min-height: 68px;
  border: 1px solid #d9deea;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.school-hero-card span {
  grid-row: span 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #fff0f7;
  color: var(--brand);
  font-weight: 900;
}

.school-hero-card strong {
  font-size: 17px;
}

.school-hero-card small {
  color: var(--muted);
  font-weight: 700;
}

.change-school-button {
  min-height: 68px;
  border: 1px solid #d9deea;
  border-radius: 8px;
  padding: 0 14px;
  background: #f8fafc;
  color: var(--brand);
  font-weight: 900;
}

#cartBadge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #ec68ad;
  color: white;
  font-size: 12px;
}

.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  justify-items: end;
  background: rgb(15 20 40 / 34%);
  backdrop-filter: blur(2px);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(15 20 40 / 38%);
  backdrop-filter: blur(3px);
}

.auth-modal[hidden] {
  display: none;
}

.auth-card {
  width: min(100%, 430px);
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
  box-shadow: 0 24px 70px rgb(15 20 40 / 22%);
}

.auth-card input {
  width: 100%;
}

#authError {
  min-height: 18px;
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
}

.cart-card {
  width: min(100%, 520px);
  height: 100%;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
  padding: 24px;
  background: white;
  box-shadow: -16px 0 32px rgb(15 20 40 / 18%);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cart-head p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-head h2,
.order-history h3 {
  margin: 0;
}

.close-button {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f8fafc;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.close-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.cart-items,
.history-items,
.checkout-form {
  display: grid;
  gap: 10px;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d4d9e3;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.checkout-form textarea {
  min-height: 84px;
  padding-top: 10px;
  resize: vertical;
}

.cart-row,
.history-row {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.cart-row span,
.history-row span {
  color: var(--muted);
  font-size: 13px;
}

.qty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.qty-row button {
  min-height: 32px;
  padding: 0 10px;
}

.cart-total {
  color: var(--brand);
  font-size: 24px;
}

.account-card {
  width: min(100%, 560px);
  gap: 18px;
}

.account-flow {
  display: grid;
  gap: 8px;
}

.account-flow div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.account-flow strong {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  width: max-content;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #e6f6f3;
  color: #087d72;
  font-weight: 800;
}

.order-card {
  border-color: #d8ebe8;
  box-shadow: 0 10px 24px rgb(15 20 40 / 5%);
}

.school-nav,
.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding: 0 24px 10px;
}

.school-nav[hidden] {
  display: none;
}

.school-nav.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  overflow: visible;
}

.category-nav {
  padding-bottom: 14px;
}

.school-nav button,
.category-nav button {
  min-height: 38px;
  min-width: max-content;
  border: 0;
  background: white;
  color: #0b1022;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.school-nav button {
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  text-transform: none;
}

.school-nav.school-grid button {
  min-width: 0;
  min-height: 72px;
  padding: 12px;
  align-content: center;
}

.school-nav button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.school-nav button.active,
.category-nav button.active {
  color: var(--brand);
}

.school-nav button.active {
  border-color: var(--brand);
  background: #fff7fb;
}

.client-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 18px;
}

.account-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 18px;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 22px 0;
}

.account-hero p,
.account-hero h1,
.account-hero span {
  margin: 0;
}

.account-hero p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-hero h1 {
  margin-top: 4px;
  font-size: 34px;
  line-height: 1.1;
}

.account-hero span {
  display: block;
  max-width: 640px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.account-section {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

#accountNewChildButton {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-size: 26px;
  line-height: 1;
}

.profile-panel {
  align-self: start;
  position: sticky;
  top: 174px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-head p,
.panel-head h1,
.section-head p,
.section-head h2 {
  margin: 0;
}

.panel-head p,
.section-head p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-head h1,
.section-head h2 {
  font-size: 22px;
}

#newChildButton {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-size: 26px;
  line-height: 1;
}

.child-form,
.child-list {
  display: grid;
  gap: 10px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
}

.primary,
.secondary,
.size-button,
.mini-card button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.primary {
  background: var(--brand);
  color: white;
}

.secondary {
  background: white;
  color: var(--brand);
  border-color: #d79bc2;
}

.child-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  text-align: left;
}

.child-card.active {
  border-color: var(--brand);
  box-shadow: inset 4px 0 0 var(--brand);
}

.child-card strong {
  font-size: 16px;
}

.child-card span {
  color: var(--muted);
  font-size: 13px;
}

.product-stage {
  min-width: 0;
  overflow: hidden;
}

.crumbs {
  margin: 8px 0 20px;
  color: #333a4c;
  font-size: 14px;
}

.product-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: start;
  min-height: 0;
  scroll-margin-top: 210px;
  background: white;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.catalog-start {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 280px;
  padding: 28px;
  border: 1px dashed #d9deea;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(21 155 215 / 10%), transparent 52%),
    #ffffff;
}

.catalog-start p,
.catalog-start h2,
.catalog-start span {
  margin: 0;
}

.catalog-start p {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-start h2 {
  max-width: 620px;
  font-size: 30px;
  line-height: 1.12;
}

.catalog-start span {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.45;
}

.gallery {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.thumbs {
  display: grid;
  gap: 18px;
  align-content: start;
}

.thumb {
  width: 64px;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 8px;
  background: white;
  padding: 4px;
}

.thumb.active {
  border-color: var(--brand);
}

.thumb img,
.main-image img,
.placeholder-product {
  width: 100%;
  height: 100%;
}

.thumb .placeholder-product,
.mini-image .placeholder-product {
  font-size: 22px;
}

.thumb img,
.main-image img {
  object-fit: contain;
}

.main-image {
  display: grid;
  place-items: center;
  height: 430px;
  min-height: 0;
  overflow: hidden;
  background: #fbfcff;
  border-radius: 8px;
}

.placeholder-product {
  display: grid;
  place-items: center;
  max-width: 620px;
  max-height: 430px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgb(162 20 105 / 9%), transparent 55%),
    linear-gradient(45deg, #f7f8fb, #ffffff);
  color: var(--brand);
  font-size: 92px;
  font-weight: 900;
}

.product-info {
  display: grid;
  gap: 14px;
  padding-top: 0;
  min-width: 0;
}

.product-kicker {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.product-info h2 {
  margin: 0;
  color: #17213d;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: 0;
}

.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px;
}

.badge {
  min-height: 24px;
  border-radius: 7px;
  padding: 3px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.badge.pink {
  background: var(--pink);
}

.badge.mint {
  background: var(--mint);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.price {
  font-size: 32px;
  font-weight: 900;
}

.stock-box {
  display: grid;
  gap: 6px;
}

.stock-box div {
  min-height: 42px;
  border: 1px solid #cfd5df;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcff;
  font-weight: 800;
}

.divider {
  height: 1px;
  background: #d9dde6;
}

.size-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
}

.size-head span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
}

.colors,
.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-button,
.size-button {
  min-width: 62px;
  display: grid;
  gap: 3px;
  padding: 8px 12px;
  background: white;
  border-color: #252a38;
  color: #111;
}

.color-button {
  min-width: 126px;
  background: var(--swatch-bg, white);
  border-color: var(--swatch-border, var(--line));
  color: var(--swatch-text, var(--ink));
  text-align: left;
}

.color-button strong {
  text-transform: capitalize;
}

.color-button span,
.size-button span {
  font-size: 12px;
  font-weight: 600;
}

.size-button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.color-button span {
  color: color-mix(in srgb, var(--swatch-text, var(--ink)) 72%, transparent);
}

.color-button.active {
  background: var(--swatch-bg, white);
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgb(174 24 112 / 22%);
  color: var(--swatch-text, var(--ink));
}

.size-button.active span {
  color: rgb(255 255 255 / 82%);
}

.school-note {
  padding: 12px;
  border: 1px solid #cfe5f6;
  border-radius: 8px;
  background: #f3fbff;
  color: #17466d;
  line-height: 1.45;
}

.recommend-band {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 22px 0 40px;
}

#recommendMeta {
  color: var(--muted);
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  align-items: start;
}

.mini-card {
  display: grid;
  grid-template-rows: auto minmax(42px, auto) auto auto auto;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.mini-card.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.mini-image {
  display: grid;
  place-items: center;
  height: 180px;
  overflow: hidden;
  background: var(--soft);
  border-radius: 8px;
}

.mini-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mini-card h3 {
  min-height: 42px;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 8px;
  background: #151936;
  color: white;
  box-shadow: 0 20px 50px rgb(0 0 0 / 22%);
}

@media (max-width: 1120px) {
  .brand-row {
    grid-template-columns: 190px minmax(120px, 1fr) auto auto;
  }

  .client-layout,
  .product-shell,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .utility {
    display: none;
  }

  .brand-row {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    gap: 10px;
  }

  .logo,
  .search {
    grid-column: 1 / -1;
  }

  .icon-action {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .school-home {
    grid-template-columns: 1fr;
    padding: 0 12px 10px;
  }

  .welcome-page {
    padding: 18px 12px 34px;
  }

  .welcome-hero {
    padding-top: 18px;
  }

  .welcome-hero h1 {
    font-size: 30px;
  }

  .welcome-schools {
    grid-template-columns: 1fr;
  }

  .school-hero-card {
    min-height: 74px;
  }

  .change-school-button {
    min-height: 42px;
  }

  .school-nav,
  .category-nav {
    display: flex;
    overflow-x: auto;
    padding: 0 12px 12px;
  }

  .school-nav button,
  .category-nav button {
    min-width: max-content;
  }

  .school-nav.school-grid:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .school-nav button {
    min-width: 0;
    min-height: 64px;
  }

  .client-layout {
    padding: 12px;
  }

  .client-layout > .profile-panel {
    display: none;
  }

  .account-page {
    padding: 12px;
  }

  .account-hero {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .account-hero h1 {
    font-size: 28px;
  }

  .product-shell {
    gap: 18px;
    min-height: 0;
    padding: 14px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .thumbs {
    display: flex;
    order: 2;
    overflow-x: auto;
  }

  .main-image {
    min-height: 320px;
  }

  .product-info h2 {
    font-size: 28px;
  }

}
