/* Mini Wear
   Brand: navy #123F78, blue #0879D8, pink #F41459, yellow #FFC400,
   sky #75D2F5, green #79B936, purple #74318A, cream #FFF9EF.
   Navy carries text. Yellow is a highlight, never small text on white. */

:root {
  --navy: #123f78;
  --blue: #0879d8;
  --pink: #f41459;
  --yellow: #ffc400;
  --sky: #75d2f5;
  --green: #79b936;
  --purple: #74318a;
  --cream: #fff9ef;
  --white: #ffffff;
  --line: rgb(18 63 120 / 0.14);
  --line-strong: rgb(18 63 120 / 0.32);
  --sky-wash: #e7f6fd;
  --yellow-wash: #fff3c4;
  --shadow: 0 1px 2px rgb(18 63 120 / 0.05), 0 12px 32px rgb(18 63 120 / 0.07);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --header-h: 5.25rem;
  --z-header: 10;
  --z-backdrop: 20;
  --z-panel: 30;
  --z-toast: 40;
  --z-skip: 50;
  color-scheme: light;
  accent-color: var(--navy);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--navy);
  background: var(--cream);
  text-wrap: pretty;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
a,
summary,
label,
select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button,
.btn {
  user-select: none;
}

h1,
h2,
h3,
.tagline {
  text-wrap: balance;
  line-height: 1.25;
  font-weight: 800;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.35rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

a:visited {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.footer :focus-visible {
  outline-color: #fff;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  z-index: var(--z-skip);
  top: calc(8px + env(safe-area-inset-top));
  inset-inline-start: 12px;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

#main:focus {
  outline: none;
}

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline-start: max(16px, env(safe-area-inset-right));
  padding-inline-end: max(16px, env(safe-area-inset-left));
}

.section {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 1.25rem;
}

.lede {
  max-width: 38rem;
  margin-top: 0.55rem;
}

.announce {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 0.55rem max(16px, env(safe-area-inset-right));
  font-size: 0.98rem;
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.logo img {
  height: 68px;
  width: auto;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.15rem;
  margin-inline-start: 0.5rem;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  padding-block: 0.4rem;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.header-search {
  display: none;
  position: relative;
}

.header-search input,
.menu-search input,
.field input,
.field textarea,
.field select,
.qty input {
  font-size: 1rem;
  min-height: 48px;
  border: 2px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding-inline: 16px;
}

.header-search input,
.menu-search input {
  width: min(280px, 36vw);
  padding-inline-start: 42px;
}

.field textarea {
  border-radius: 20px;
  min-height: 96px;
  padding-block: 12px;
  resize: vertical;
}

.field select {
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 6l5 5 5-5' stroke='%23123F78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-inline-end: 40px;
}

.search-icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  transform: translateY(-50%);
  color: var(--navy);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

@media (min-width: 960px) {
  .nav {
    margin-inline-end: auto;
  }

  .header-actions {
    margin-inline-start: 0;
  }
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  padding: 0;
  cursor: pointer;
}

.badge {
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  min-width: 1.2rem;
  height: 1.2rem;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
}

.nav-toggle {
  display: inline-flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}

.btn-primary,
a.btn-primary:visited {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-highlight {
  background: var(--yellow);
  color: var(--navy);
  min-height: 40px;
  padding-inline: 0.9rem;
}

.btn-block {
  width: 100%;
}

.age-tile,
.cat,
.icon-btn,
.btn {
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}

.btn:active,
.age-tile:active,
.cat:active,
.icon-btn:active {
  transform: scale(0.97);
}

.hero {
  position: relative;
  background: var(--sky);
  overflow: hidden;
  padding-top: 0.5rem;
}

.bunting {
  width: min(920px, calc(100% - 24px));
  margin-inline: auto;
  display: block;
}

.hero-layout {
  display: grid;
  gap: 8px;
  padding-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-copy {
  text-align: center;
  padding-block: 0.25rem 0.5rem;
}

.hero-logo {
  width: min(250px, 68vw);
  height: auto;
  margin-inline: auto  ;
}

.tagline {
  font-family: "Baloo 2", "Cairo", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  margin-top: 0.2rem;
}

.hero-copy h1 {
  margin-top: 0.45rem;
}

.hero-copy .lede {
  margin-inline: auto;
  margin-top: 0.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 1.15rem;
}

.hero-garments {
  display: none;
}

.hero-clouds {
  height: 64px;
  background:
    radial-gradient(42px 42px at 8% 120%, var(--cream) 70%, transparent 72%),
    radial-gradient(70px 54px at 24% 140%, var(--cream) 70%, transparent 72%),
    radial-gradient(56px 48px at 42% 130%, var(--cream) 70%, transparent 72%),
    radial-gradient(80px 58px at 62% 145%, var(--cream) 70%, transparent 72%),
    radial-gradient(60px 50px at 80% 135%, var(--cream) 70%, transparent 72%),
    radial-gradient(70px 54px at 96% 150%, var(--cream) 70%, transparent 72%);
}

.hero-copy > * {
  animation: rise 420ms var(--ease-out) both;
}

.hero-copy > *:nth-child(2) { animation-delay: 50ms; }
.hero-copy > *:nth-child(3) { animation-delay: 100ms; }
.hero-copy > *:nth-child(4) { animation-delay: 150ms; }
.hero-copy > *:nth-child(5) { animation-delay: 200ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.age-grid,
.cat-grid {
  display: grid;
  gap: 12px;
}

.age-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.age-tile,
.cat {
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 28px;
}

.age-tile {
  min-height: 118px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.age-tile strong {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.age-tile:nth-child(1) { background: var(--yellow-wash); }
.age-tile:nth-child(2) { background: var(--sky-wash); }

.cat {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 92px;
  padding: 8px 12px 8px 8px;
}

.cat img {
  width: 72px;
  height: 86px;
  object-fit: contain;
  background: var(--sky-wash);
  border-radius: 16px;
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}

.cat span {
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-grid > li {
  display: flex;
  min-width: 0;
}

.card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}

.card-media {
  background: var(--sky-wash);
  border-radius: 16px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 480;
  object-fit: contain;
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 4px 4px;
  flex: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.92rem;
}

.card h3 {
  font-size: 1.05rem;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgb(18 63 120 / 0.35);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.45);
}

.swatch.is-off,
.swatch-name.is-off {
  opacity: 0.4;
}

.swatch-name,
.swatch-more {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

.price {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}

.offer-note {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--yellow-wash);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.5;
}

.price-was {
  display: inline-block;
  margin-inline-end: 0.45rem;
  font-weight: 600;
  font-size: 0.86em;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price-lg {
  font-size: 1.45rem;
  margin-top: 8px;
}

.card-title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.35;
}

.order-list {
  margin: 0;
  padding-inline-start: 1.2rem;
  display: grid;
  gap: 4px;
}

.section,
#ages {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.text-link {
  font-weight: 800;
  text-underline-offset: 4px;
}

.stitch-panel {
  display: grid;
  gap: 18px;
  border: 2px dashed rgb(18 63 120 / 0.45);
  border-radius: 32px;
  padding: 18px;
  background: var(--white);
}

.outfit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.outfit-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: end;
}

.outfit-art img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: var(--sky-wash);
  border-radius: 20px;
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}

.facts {
  display: grid;
  gap: 12px;
}

.fact {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
}

.fact svg {
  width: 36px;
  height: 36px;
}

.fact strong {
  display: block;
  font-size: 1.05rem;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.size-table caption {
  text-align: start;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.size-table th,
.size-table td {
  padding: 12px 14px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.size-table th {
  background: var(--sky-wash);
  font-weight: 800;
}

.note {
  margin-top: 12px;
  max-width: 40rem;
}

.shop-layout {
  display: grid;
  gap: 20px;
  padding-bottom: 3rem;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.shop-toolbar h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-inline-end: auto;
}

.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.sort select {
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background-color: var(--white);
  padding-inline: 14px 36px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 6l5 5 5-5' stroke='%23123F78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
}

.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 8px 16px 16px;
}

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

.filters h2 {
  font-size: 1.25rem;
  padding-top: 8px;
}

.filter-group {
  margin: 0;
  padding: 12px 0 0;
  border: 0;
}

.filter-group legend {
  font-weight: 800;
  padding: 0;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}

.filter-option input {
  width: 1.15rem;
  height: 1.15rem;
}

.filters-close {
  display: none;
}

.empty {
  text-align: start;
  background: var(--white);
  border: 1px dashed var(--line-strong);
  border-radius: 28px;
  padding: 22px;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 1rem;
  font-size: 0.95rem;
}

.crumbs a {
  text-underline-offset: 3px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 2.5rem;
  overflow-x: clip;
}

.product-layout > * {
  min-width: 0;
}

.gallery {
  background: var(--sky-wash);
  border-radius: 28px;
  padding: 12px;
  max-width: 100%;
}

.gallery-stage {
  position: relative;
}

.gallery-count {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  pointer-events: none;
}

.gallery-rail {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  border-radius: 16px;
  scrollbar-width: thin;
}

.gallery-rail img {
  width: 100%;
  min-width: 0;
  flex: 0 0 100%;
  height: auto;
  aspect-ratio: 400 / 480;
  object-fit: contain;
  scroll-snap-align: start;
  border-radius: 16px;
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
  background: var(--white);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.gallery-thumbs a {
  flex: none;
  width: 72px;
  height: 84px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-inline: 10px;
  border-radius: 999px;
  background: var(--yellow-wash);
  font-weight: 800;
  font-size: 0.92rem;
}

.buy {
  display: grid;
  gap: 14px;
  margin-top: 1rem;
}

.buy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.buy-actions .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}

.piece-title {
  margin: 0;
  font-weight: 800;
}

.pair-extra {
  display: grid;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.js .pair-only,
.js .pair-extra {
  display: none;
}

.js .buy:has(.pair-extra.is-open) .pair-only,
.js .pair-extra.is-open {
  display: grid;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.sizes legend {
  width: 100%;
  padding: 0;
  margin-bottom: 4px;
  font-weight: 800;
}

.size {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.size input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.size:has(input:checked) {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.size:has(input:disabled) {
  text-decoration: line-through;
  cursor: not-allowed;
  background: #f3efe6;
}

.size:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.js .size-color {
  display: none;
}

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

.qty {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}

.qty button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--navy);
}

.qty input {
  width: 3.2rem;
  min-height: 44px;
  border: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.field-error {
  color: var(--navy);
  background: var(--yellow-wash);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 700;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea,
.sizes.invalid {
  border-color: var(--pink);
}

.sizes.invalid {
  border: 2px solid var(--pink);
  border-radius: 20px;
  padding: 8px;
}

.care {
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.care summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.care summary::-webkit-details-marker {
  display: none;
}

.care summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-inline-end: 2px solid var(--navy);
  border-block-end: 2px solid var(--navy);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms var(--ease-out);
  flex: none;
}

.care[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.care p {
  padding-bottom: 10px;
}

.stock-note {
  font-variant-numeric: tabular-nums;
}

.skeleton {
  background: linear-gradient(90deg, #f3efe6, #fff, #f3efe6);
  background-size: 200% 100%;
  border-radius: 16px;
  min-height: 1rem;
}

.skeleton.media {
  min-height: 320px;
  border-radius: 28px;
}

.related {
  padding-bottom: 3rem;
}

.checkout-layout {
  display: grid;
  gap: 22px;
  padding-bottom: 3rem;
}

.summary,
.checkout-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
}

.summary h2,
.checkout-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.summary-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}

.summary-line img {
  width: 64px;
  height: 76px;
  object-fit: contain;
  background: var(--sky-wash);
  border-radius: 12px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
}

.fields {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 800;
}

.req {
  font-weight: 700;
  font-size: 0.85rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
}

.pay-note {
  background: var(--sky-wash);
  border-radius: 18px;
  padding: 12px 14px;
}

.form-errors {
  background: var(--yellow-wash);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 800;
}

.success {
  max-width: 38rem;
  display: grid;
  gap: 12px;
  padding-block: 2rem 3rem;
}

.success h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 2.2rem 0 calc(2rem + env(safe-area-inset-bottom));
  border-top: 6px solid var(--yellow);
}

.footer a {
  color: var(--white);
  text-underline-offset: 3px;
}

.footer-grid {
  display: grid;
  gap: 22px;
}

.footer .tagline {
  color: var(--white);
  margin-top: 8px;
}

.footer-logo {
  width: 120px;
  height: auto;
  background: transparent;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.legal {
  margin-top: 1.4rem;
  font-size: 0.92rem;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-backdrop);
  background: rgb(18 63 120 / 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease-out);
}

.backdrop[data-open] {
  opacity: 1;
  pointer-events: auto;
}

.drawer,
.mobile-nav {
  position: fixed;
  z-index: var(--z-panel);
  top: 0;
  bottom: 0;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  transition: transform 500ms var(--ease-drawer);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.drawer {
  left: 0;
  width: min(26rem, 100%);
  transform: translateX(0);
  box-shadow: var(--shadow);
}

.drawer[data-closed] {
  transform: translateX(-100%);
  pointer-events: none;
}

.mobile-nav {
  right: 0;
  width: min(22rem, 100%);
  transform: translateX(100%);
  padding-inline: 16px;
}

.mobile-nav[data-open] {
  transform: translateX(0);
}

.drawer-head,
.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2,
.menu-head h2 {
  font-size: 1.3rem;
}

.drawer-body,
.menu-body {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px 14px 14px;
  flex: 1;
}

.menu-body {
  display: grid;
  align-content: start;
  gap: 8px;
}

.menu-body a {
  display: flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

.menu-search {
  margin-top: 12px;
}

.menu-search input {
  width: 100%;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 72px;
  height: 86px;
  object-fit: contain;
  background: var(--sky-wash);
  border-radius: 14px;
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}

.line-title {
  font-weight: 800;
}

.line-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.linkish {
  border: 0;
  background: none;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px 0;
  font-weight: 800;
}

.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 12px 14px 14px;
  display: grid;
  gap: 8px;
}

.fine {
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  z-index: var(--z-toast);
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  margin-inline: auto;
  width: min(28rem, calc(100% - 32px));
  background: var(--navy);
  color: var(--white);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: opacity 400ms ease, transform 400ms ease;
}

.toast[data-open] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast p {
  margin: 0;
}

.toast .btn {
  flex: none;
  white-space: nowrap;
}

html.lock,
html.lock body {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 720px) {
  h1, h2, h3, .tagline { text-wrap: wrap; }
}

@media (min-width: 720px) {
  .logo img { height: 84px; }
  .age-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stitch-panel { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding: 28px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .header-search { display: block; }
  .nav-toggle { display: none; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
  .product-layout { grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); align-items: start; }
  .gallery { position: sticky; top: calc(var(--header-h) + 12px); }
  .checkout-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px) minmax(0, 1fr);
    align-items: center;
  }
  .hero-garments {
    display: grid;
    gap: 4px;
    justify-items: center;
  }
  .hero-garments img {
    width: min(190px, 100%);
    height: auto;
  }
}

@media (max-width: 959px) {
  .js .filters {
    position: fixed;
    z-index: var(--z-panel);
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(85dvh, 40rem);
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: 28px 28px 0 0;
    transform: translateY(110%);
    transition: transform 500ms var(--ease-drawer);
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .js .filters[data-open] {
    transform: translateY(0);
  }

  .js .filters-close {
    display: inline-flex;
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #1a528f; }
  .btn-secondary:hover { background: var(--sky-wash); }
  .btn-highlight:hover { background: #ffd24d; }
  .reviews-fab:hover { background: #ffd24d; }
  .icon-btn:hover { background: rgb(18 63 120 / 0.06); }
  .card:hover { border-color: var(--line-strong); }
  .age-tile:hover,
  .cat:hover { border-color: var(--navy); }
  .nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
  .hero-garments a { transition: transform 160ms var(--ease-out); }
  .hero-garments a:hover { transform: translateY(-4px); }
  .hero-garments a:active { transform: scale(0.97); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > * {
    animation: none;
  }

  .btn,
  .age-tile,
  .cat,
  .icon-btn,
  .drawer,
  .mobile-nav,
  .filters,
  .backdrop,
  .buy-bar,
  .care summary::after,
  .hero-garments a {
    transition: none;
  }

  .toast {
    transform: none;
    transition: opacity 150ms ease;
  }

  .btn:active,
  .age-tile:active,
  .cat:active,
  .icon-btn:active,
  .hero-garments a:hover,
  .hero-garments a:active {
    transform: none;
  }
}

@media (min-width: 960px) {
  .filters-open { display: none; }
  .header-search input { width: min(220px, 24vw); }
}

a.icon-btn { text-decoration: none; }

.flash {
  background: var(--yellow-wash);
  color: var(--navy);
  padding: 0.75rem max(16px, env(safe-area-inset-right));
  font-weight: 700;
}

.flash.bad { background: #ffe3ea; }

.filter-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.coupon-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.coupon-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding-inline: 16px;
  font: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--navy);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 1.25rem;
}

.auth-wrap { max-width: 34rem; margin-inline: auto; padding-bottom: 3rem; }

.account-grid {
  display: grid;
  gap: 18px;
  padding-bottom: 3rem;
}

.side-links {
  display: grid;
  gap: 4px;
  align-content: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 12px;
}

.side-links a {
  text-decoration: none;
  font-weight: 800;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding-inline: 12px;
  border-radius: 999px;
}

.side-links a[aria-current="page"] {
  background: var(--navy);
  color: var(--white);
}

.pill-muted { background: #e7eef6; }
.pill-ok { background: #e7f6d8; }
.pill-warn { background: var(--yellow-wash); }
.pill-bad { background: #ffe3ea; }

.stars { font-weight: 800; letter-spacing: 1px; }

.reviews-fab {
  position: fixed;
  z-index: 15;
  left: max(16px, env(safe-area-inset-left));
  bottom: calc(16px + env(safe-area-inset-bottom));
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.buy-bar {
  display: none;
}

@media (max-width: 959px) {
  .buy-bar {
    position: fixed;
    z-index: 15;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--cream);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgb(18 63 120 / 0.08);
    transform: translateY(110%);
    pointer-events: none;
    transition: transform 400ms var(--ease-out);
  }

  .buy-bar.is-on {
    transform: translateY(0);
    pointer-events: auto;
  }

  .buy-bar .price {
    margin: 0;
    padding: 0;
    min-width: 0;
  }

  .buy-bar .btn {
    flex: none;
  }

  body:has(.buy-bar.is-on) {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }

  body:has(.buy-bar.is-on) .reviews-fab,
  body:has(.buy-bar.is-on) .toast {
    bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }
}

.review-card {
  display: grid;
  gap: 4px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.review-card p {
  margin: 0;
}

.order-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.table-scroll { overflow: auto; }
.timeline { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.timeline li { display: flex; justify-content: space-between; gap: 12px; }

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

@media (min-width: 960px) {
  .account-grid { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
}
