/* ==========================================================
   MJS Kids — storefront styles
   Colours are taken from the logo.
   ========================================================== */

:root {
  --cream: #faf7f2;
  --paper: #ffffff;
  --ink: #2f2c33;
  --muted: #78737d;
  --line: #ebe5dc;

  /* "blue" = primary (dark ink), "pink" = the single soft rose accent, "yellow" = warm beige */
  --blue: #2f2c33;
  --blue-dark: #1d1b20;
  --blue-soft: #f3efe9;
  --pink: #c27c8d;
  --pink-dark: #a86274;
  --pink-soft: #f7eef0;
  --yellow: #d9c7ab;
  --yellow-soft: #f6f1e8;
  --sand: #d9c7ab;
  --whatsapp: #25d366;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(47, 44, 51, 0.04), 0 8px 24px rgba(47, 44, 51, 0.06);
  --font-fun: 'Quicksand', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-dark);
}

h1,
h2,
h3 {
  font-family: var(--font-fun);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

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

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

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

/* ---------- Bunting (little party flags) ---------- */

.bunting {
  height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='26'%3E%3Cpath d='M0 2 Q48 7 96 2' stroke='%23d9c7a8' fill='none' stroke-width='1.5'/%3E%3Cpath d='M5 3 L29 4 L17 22Z' fill='%23ff6b9a'/%3E%3Cpath d='M37 5 L61 5 L49 24Z' fill='%235aace8'/%3E%3Cpath d='M69 4 L93 3 L81 22Z' fill='%23ffd23f'/%3E%3C/svg%3E")
    repeat-x;
  background-size: 96px 26px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 3px dotted var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(90, 172, 232, 0.25);
}

.brand-name {
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1;
}

.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-top: 4px;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nav a {
  font-family: var(--font-fun);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.2s;
}

.nav a:hover {
  background: var(--yellow-soft);
}

.nav a[aria-current='page'] {
  background: var(--pink-soft);
  color: var(--pink-dark);
}

.bag-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-fun);
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--blue-dark);
  transition: transform 0.15s;
}

.bag-button:hover {
  transform: translateY(-2px);
}

.bag-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--blue-dark);
}

.bag-button svg {
  width: 20px;
  height: 20px;
}

.bag-count {
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.bag-count[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .brand img {
    width: 52px;
    height: 52px;
  }
  .brand-name {
    display: none;
  }
  .nav a {
    padding: 8px 12px;
  }
  .bag-label {
    display: none;
  }
  .bag-button {
    padding: 10px 14px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: var(--font-fun);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(2px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-pink {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 4px 0 var(--pink-dark);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 0 var(--blue-dark);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 0 #1da851;
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--line);
  border: 2px solid var(--line);
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--blue-soft);
  background-image: radial-gradient(rgba(255, 255, 255, 0.85) 2.5px, transparent 3px);
  background-size: 26px 26px;
  padding: 56px 0 90px;
  text-align: center;
}

.hero-small {
  padding: 40px 0 76px;
  background-color: var(--pink-soft);
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  max-width: 14em;
  margin-inline: auto;
}

.hero h1 .pink {
  color: var(--pink);
}

.hero h1 .blue {
  color: var(--blue-dark);
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
  margin: 0 auto 26px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-logo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 18px;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
}

.deco {
  position: absolute;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.deco-cloud1 { width: 120px; top: 30px; left: 4%; }
.deco-cloud2 { width: 90px; top: 70%; right: 6%; animation-delay: -3s; }
.deco-star1 { width: 34px; top: 24%; right: 14%; animation-delay: -1s; }
.deco-star2 { width: 26px; top: 64%; left: 12%; animation-delay: -4s; }
.deco-heart1 { width: 30px; top: 16%; left: 22%; animation-delay: -2s; }
.deco-heart2 { width: 24px; top: 46%; right: 4%; animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

@media (max-width: 640px) {
  .deco-cloud1, .deco-cloud2 { width: 70px; }
  .deco-heart1 { left: 6%; top: 8%; }
}

@media (prefers-reduced-motion: reduce) {
  .deco { animation: none; }
  html { scroll-behavior: auto; }
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 50px;
  display: block;
}

/* ---------- Promise strip ---------- */

.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: -10px auto 50px;
  position: relative;
}

.promise {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  outline: 2px dashed var(--line);
  outline-offset: -8px;
}

.promise-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

.promise:nth-child(1) .promise-icon { background: var(--pink-soft); }
.promise:nth-child(2) .promise-icon { background: var(--blue-soft); }
.promise:nth-child(3) .promise-icon { background: var(--yellow-soft); }

.promise strong {
  font-family: var(--font-fun);
  font-weight: 600;
  display: block;
  font-size: 1.05rem;
}

.promise span {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .promises {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---------- Section titles ---------- */

.section-title {
  text-align: center;
  margin-bottom: 26px;
}

.section-title h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin-bottom: 6px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.squiggle {
  display: block;
  width: 110px;
  height: 14px;
  margin: 0 auto 10px;
}

/* ---------- Filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.pill {
  border: 2px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 7px 18px;
  font-family: var(--font-fun);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.pill:hover {
  border-color: var(--pink);
}

.pill[aria-pressed='true'] {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.size-filter {
  border: 2px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-fun);
  cursor: pointer;
}

/* ---------- Product grid ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  margin-bottom: 70px;
}

@media (max-width: 520px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: left;
  border: 0;
  padding: 0;
}

.card:hover {
  transform: translateY(-5px) rotate(-0.6deg);
}

.card:nth-child(even):hover {
  transform: translateY(-5px) rotate(0.6deg);
}

.card-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--blue-soft);
  margin: 10px 10px 0;
  border-radius: 16px;
  overflow: hidden;
}

.card:nth-child(3n + 2) .card-media { background: var(--pink-soft); }
.card:nth-child(3n + 3) .card-media { background: var(--yellow-soft); }

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.placeholder svg {
  width: 45%;
  fill: rgba(255, 255, 255, 0.9);
  stroke: rgba(61, 58, 75, 0.12);
  stroke-width: 1.5;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  transform: rotate(-4deg);
}

.badge-soldout {
  background: var(--muted);
}

.card.is-soldout .card-media img {
  opacity: 0.55;
  filter: grayscale(0.4);
}

.card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-dark);
  font-weight: 800;
}

.card-name {
  font-family: var(--font-fun);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.25;
  margin: 0;
}

.price {
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--pink-dark);
}

.price s {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: 6px;
}

.card-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}

.card-sizes span {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.card-sizes span.out {
  text-decoration: line-through;
  opacity: 0.5;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  background: var(--paper);
  border-radius: var(--radius);
  outline: 2px dashed var(--line);
  outline-offset: -10px;
}

.empty .big {
  font-size: 3rem;
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 40px;
}

/* ---------- Dialog (product details) ---------- */

dialog {
  border: 0;
  padding: 0;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(61, 58, 75, 0.3);
  width: min(880px, 100% - 24px);
  max-height: calc(100% - 24px);
}

dialog::backdrop {
  background: rgba(61, 58, 75, 0.45);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.close-btn:hover {
  background: var(--pink-soft);
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 26px;
}

@media (max-width: 720px) {
  .pd-grid {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 18px;
  }
}

.pd-main {
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--blue-soft);
}

.pd-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pd-thumbs button {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--cream);
}

.pd-thumbs button[aria-current='true'] {
  border-color: var(--pink);
}

.pd-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-info h2 {
  font-size: 1.8rem;
  padding-right: 40px;
}

.pd-info .price {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.pd-desc {
  color: var(--muted);
  white-space: pre-line;
}

.label {
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 1rem;
  margin: 18px 0 8px;
  display: block;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-options button {
  min-width: 64px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--paper);
  font-family: var(--font-fun);
  font-weight: 500;
  cursor: pointer;
}

.size-options button:hover:not(:disabled) {
  border-color: var(--blue);
}

.size-options button[aria-pressed='true'] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.size-options button:disabled {
  text-decoration: line-through;
  opacity: 0.45;
  cursor: not-allowed;
}

.stock-note {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--pink-dark);
  font-weight: 700;
}

.buy-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.buy-row .btn {
  flex: 1;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.stepper button {
  width: 38px;
  height: 38px;
  border: 0;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50%;
}

.stepper button:hover:not(:disabled) {
  background: var(--yellow-soft);
}

.stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper output {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
}

.stepper.small button {
  width: 30px;
  height: 30px;
  font-size: 1rem;
}

/* ---------- Bag drawer ---------- */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 58, 75, 0.45);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--cream);
  z-index: 51;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -10px 0 40px rgba(61, 58, 75, 0.2);
  visibility: hidden;
}

.drawer-open .drawer {
  transform: none;
  visibility: visible;
}

.drawer-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.drawer-open {
  overflow: hidden;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 0;
}

.drawer-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.drawer-head .close-btn {
  position: static;
  background: var(--paper);
}

.drawer .bunting {
  margin-top: 0;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.drawer-foot {
  padding: 16px 20px 22px;
  background: var(--paper);
  border-top: 3px dotted var(--line);
}

.bag-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--paper);
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 3px 0 rgba(61, 58, 75, 0.05);
}

.bag-thumb {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--blue-soft);
}

.bag-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bag-item h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

.bag-item .meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.bag-item .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.remove-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.totals {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.totals div {
  display: flex;
  justify-content: space-between;
}

.totals .grand {
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 1.25rem;
  padding-top: 6px;
  border-top: 2px dashed var(--line);
  margin-top: 4px;
}

.totals .muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.cod-note {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  background: var(--yellow-soft);
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.bag-empty {
  text-align: center;
  padding: 50px 10px;
}

.bag-empty .big {
  font-size: 3.2rem;
}

/* ---------- Forms ---------- */

.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 5px;
}

.field small {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--paper);
  outline: none;
  transition: border-color 0.15s;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.form-error {
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.back-link {
  border: 0;
  background: none;
  color: var(--blue-dark);
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
  font-weight: 700;
}

.done {
  text-align: center;
  padding: 30px 6px;
}

.done .big {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 10px;
}

.done .order-no {
  display: inline-block;
  font-family: var(--font-fun);
  font-size: 1.3rem;
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: 6px 18px;
  border-radius: 999px;
  margin: 6px 0 14px;
}

.done-actions {
  display: grid;
  gap: 12px;
}

/* ---------- Contact page ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: -20px auto 40px;
  position: relative;
}

@media (max-width: 1060px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  outline: 2px dashed var(--line);
  outline-offset: -10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card .icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.contact-card .icon svg {
  width: 34px;
  height: 34px;
}

.contact-card.wa .icon { background: #dcf8e7; color: #1da851; }
.contact-card.call .icon { background: var(--blue-soft); color: var(--blue-dark); }
.contact-card.visit .icon { background: var(--pink-soft); color: var(--pink-dark); }
.contact-card.insta .icon { background: #fbe6f1; color: #c13584; }

.btn-insta {
  background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af);
  color: #fff;
  box-shadow: 0 4px 0 #a52a6a;
}

.contact-card h2 {
  font-size: 1.4rem;
}

.contact-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.contact-card .big-line {
  font-family: var(--font-fun);
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 500;
  direction: ltr;
}

.contact-card .btn {
  margin-top: auto;
}

.map-frame {
  background: var(--paper);
  padding: 12px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 70px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 20px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper);
  border-top: 3px dotted var(--line);
  padding: 36px 0 26px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 10px;
}

.site-footer .links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 0;
}

.site-footer .links a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-footer .links a:hover {
  color: var(--pink-dark);
}

.site-footer .hearts {
  color: var(--pink);
}

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 30;
  transition: transform 0.2s;
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float svg {
  width: 32px;
  height: 32px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 100;
  transition: transform 0.3s;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.show {
  transform: translate(-50%, 0);
}

[hidden] {
  display: none !important;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}


/* ==========================================================
   Calm theme overrides
   ========================================================== */

a {
  color: var(--pink-dark);
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bunting,
.deco,
.wave,
.squiggle {
  display: none !important;
}

.site-header,
.admin-top,
.site-footer {
  border-color: var(--line);
  border-style: solid;
  border-width: 0 0 1px;
}

.site-footer {
  border-width: 1px 0 0;
}

.brand img {
  box-shadow: none;
  border: 1px solid var(--line);
}

.brand-name span {
  color: var(--muted);
}

/* Flat buttons */
.btn,
.bag-button {
  box-shadow: none !important;
  font-weight: 600;
}

.btn:hover,
.bag-button:hover {
  transform: none;
  opacity: 0.88;
}

.btn:active,
.bag-button:active {
  transform: none;
}

.btn-ghost {
  border: 1px solid var(--line);
}

.btn-insta {
  background: var(--ink);
  color: #fff;
}

.bag-count {
  background: var(--pink);
}

/* Hero: calm split layout */
.hero,
.hero-small {
  background-color: var(--blue-soft);
  background-image: none;
  padding: 64px 0;
  text-align: left;
}

.hero-small {
  text-align: center;
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  margin-inline: 0;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
}

.hero-small h1 {
  margin-inline: auto;
}

.hero p {
  margin-inline: 0;
}

.hero-small p {
  margin-inline: auto;
}

.hero h1 .accent {
  color: var(--pink);
}

.hero-actions {
  justify-content: flex-start;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: min(340px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
}

@media (max-width: 760px) {
  .hero {
    text-align: center;
    padding: 40px 0 48px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-art {
    order: -1;
  }
  .hero-art img {
    width: 170px;
  }
  .hero p {
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
}

/* Cards and boxes: thin borders instead of dashed stitching */
.promise,
.contact-card,
.empty {
  outline: none;
  border: 1px solid var(--line);
  box-shadow: none;
}

.promises {
  margin: 40px auto 56px;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 760px) {
  .promises {
    grid-template-columns: 1fr;
  }
}

.promise-icon,
.promise:nth-child(n) .promise-icon {
  background: var(--blue-soft);
  color: var(--ink);
}

.promise-icon svg {
  width: 24px;
  height: 24px;
}

.contact-cards {
  margin: 40px auto;
}

.contact-card.wa .icon,
.contact-card.call .icon,
.contact-card.visit .icon,
.contact-card.insta .icon {
  background: var(--blue-soft);
  color: var(--ink);
}

.card {
  box-shadow: none;
  border: 1px solid var(--line);
}

.card:hover,
.card:nth-child(even):hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-media,
.card:nth-child(3n + 2) .card-media,
.card:nth-child(3n + 3) .card-media {
  background: var(--blue-soft);
  border-radius: 12px;
}

.card-cat {
  color: var(--muted);
}

.badge {
  transform: none;
  border-radius: 6px;
}

.pill,
.size-filter,
.size-options button,
.stepper,
.field input,
.field textarea {
  border-width: 1px;
}

.pill[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
}

.size-options button[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
}

.nav a:hover {
  background: var(--blue-soft);
}

.nav a[aria-current='page'] {
  background: var(--blue-soft);
  color: var(--ink);
}

.check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-size: 2rem;
  font-weight: 800;
}

.done .order-no {
  background: var(--blue-soft);
  color: var(--ink);
}

.cod-note {
  background: var(--blue-soft);
}

.drawer-foot {
  border-top: 1px solid var(--line);
}

.map-frame {
  box-shadow: none;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 20px;
}

.map-frame iframe {
  border-radius: 14px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
}

.contact-card .btn {
  white-space: nowrap;
}

/* ---------- Sold out (red) and Coming soon ---------- */

:root {
  --red: #d64545;
  --red-soft: #fdecec;
}

.badge-soldout {
  background: var(--red);
}

.card-sizes span.out {
  color: var(--red);
  border-color: #f3c9c9;
  background: var(--red-soft);
}

.stock-note.is-soldout,
.size-options button:disabled {
  color: var(--red);
}

.badge-soon {
  background: var(--ink);
}

.stock-note.is-soon {
  color: var(--ink);
}

.card.is-soon .card-media img {
  filter: saturate(0.85);
}

.size-options button.soon:disabled {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.6;
}

/* ---------- Swipeable photo slider (product popup) ---------- */

.pd-main {
  position: relative;
}

.pd-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pd-track::-webkit-scrollbar {
  display: none;
}

.pd-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.pd-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.pd-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  padding-bottom: 3px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(47, 44, 51, 0.15);
  transition: opacity 0.2s;
}

.pd-arrow.prev { left: 10px; }
.pd-arrow.next { right: 10px; }

.pd-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

/* Phones and tablets swipe instead, so hide the arrows there */
@media (hover: none) {
  .pd-arrow {
    display: none;
  }
}

.pd-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.pd-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(47, 44, 51, 0.15);
  transition: width 0.2s, background 0.2s;
}

.pd-dots span.on {
  width: 18px;
  border-radius: 999px;
  background: var(--ink);
}

/* ---------- Coming soon: dusty blue from the logo ---------- */

:root {
  --soon: #4a7fad;
  --soon-soft: #e6eff7;
}

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

.stock-note.is-soon {
  color: var(--soon);
}

.size-options button.soon:disabled {
  color: var(--soon);
  border-color: #c9dbeb;
  background: var(--soon-soft);
  opacity: 1;
}

.btn.is-soon,
.btn.is-soon:disabled {
  background: var(--soon);
  color: #fff;
  opacity: 0.85;
}

#pdName:focus {
  outline: none;
}

/* ---------- Swipeable photos on the product cards ---------- */

.card {
  cursor: pointer;
}

.card-media {
  position: relative;
}

.card-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.card-track::-webkit-scrollbar {
  display: none;
}

.card-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.card-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.card-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}

.card-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(47, 44, 51, 0.15);
  transition: width 0.2s, background 0.2s;
}

.card-dots span.on {
  width: 14px;
  border-radius: 999px;
  background: var(--ink);
}

.card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  padding-bottom: 2px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(47, 44, 51, 0.15);
  opacity: 0;
  transition: opacity 0.2s;
}

.card-arrow.prev { left: 8px; }
.card-arrow.next { right: 8px; }

/* Laptop: arrows appear when the mouse is over the card */
@media (hover: hover) {
  .card:hover .card-arrow:not(:disabled) {
    opacity: 1;
  }
}

.card-arrow:disabled {
  pointer-events: none;
}

/* Phones swipe instead */
@media (hover: none) {
  .card-arrow {
    display: none;
  }
}

.card-name {
  margin: 0;
}

.card-open {
  all: unset;
  font-family: var(--font-fun);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.25;
  cursor: pointer;
}

.card-open:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Stock count under the sizes in the product popup */
.stock-note.is-ok {
  color: #2f7d4f;
}

.stock-note.is-hint {
  color: var(--muted);
  font-weight: 400;
}

.totals .free {
  color: #2f7d4f;
  font-weight: 700;
}

.totals .grand small {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
}

/* ---------- Hero: banner slideshow (image only) ----------
   Phones (up to 760px wide): the tall phone image, 4:5 (1080 x 1350).
   Tablets and laptops: the wide laptop image, 12:5 (1920 x 800), edge to edge.
   Images made in the panel have exactly these shapes, so nothing is cut off. */

.hero-slider {
  --bg: 250, 247, 242;
  position: relative;
  padding: 0 0 28px;
  text-align: center;
  background: rgb(var(--bg));
}

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 12 / 5;
  max-height: 72svh;
  margin-inline: auto;
  overflow: hidden;
  touch-action: pan-y; /* sideways swipes change the photo, up/down still scrolls the page */
  user-select: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.on {
  opacity: 1;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

/* phones/tablets: the bottom of the image fades softly into the cream where the text starts */
.hero-media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(var(--bg), 0), rgb(var(--bg)) 92%);
  pointer-events: none;
  z-index: 1;
}

/* a banner that only has the other screen's image: show it whole, on the cream background */
.hero-slide img.whole {
  object-fit: contain;
}

.hero-slide .v-phone {
  display: none;
}

@media (max-width: 760px) {
  .hero-media {
    aspect-ratio: 4 / 5;
    max-height: none;
  }

  .hero-slide .v-phone {
    display: block;
  }

  .hero-slide .v-laptop {
    display: none;
  }
}

.hero-slider .hero-grid {
  position: relative;
  z-index: 2;
  margin-top: -44px; /* the heading starts inside the soft fade */
  grid-template-columns: 1fr;
  justify-items: center;
}

.hero-slider .hero-actions {
  justify-content: center;
}

.hero-slider h1,
.hero-slider p {
  margin-inline: auto;
}

/* Laptops: the wide image fills the banner; the text sits on the left on a soft cream fade */
@media (min-width: 1181px) {
  .hero-slider {
    padding: 0;
    text-align: left;
  }

  .hero-media::after {
    top: 0;
    right: auto;
    width: 62%;
    height: auto;
    background: linear-gradient(90deg, rgb(var(--bg)) 0%, rgba(var(--bg), 0.92) 42%, rgba(var(--bg), 0.55) 66%, rgba(var(--bg), 0));
  }

  .hero-slider .hero-grid {
    position: absolute;
    inset: 0;
    margin-top: 0;
    display: grid;
    align-content: center;
    grid-template-columns: minmax(0, 470px);
    justify-content: start;
    justify-items: start;
    pointer-events: none; /* swipes/drags over the image still change the banner */
  }

  .hero-slider .hero-text {
    pointer-events: auto;
  }

  .hero-slider h1,
  .hero-slider p {
    margin-inline: 0;
  }

  .hero-slider .hero-actions {
    justify-content: flex-start;
  }
}

/* Phones: text tucked into a deeper, softer fade; compact so the products show sooner */
@media (max-width: 760px) {
  .hero-slider {
    padding-bottom: 8px;
  }

  .hero-media::after {
    height: 34%;
    background: linear-gradient(
      180deg,
      rgba(var(--bg), 0) 0%,
      rgba(var(--bg), 0.55) 45%,
      rgba(var(--bg), 0.9) 75%,
      rgb(var(--bg)) 100%
    );
  }

  .hero-slider .hero-grid {
    margin-top: -92px;
  }

  .hero-slider h1 {
    font-size: clamp(1.7rem, 7.6vw, 2.1rem);
    line-height: 1.12;
    margin-bottom: 8px;
  }

  .hero-slider p {
    font-size: 1rem;
    margin-bottom: 16px;
    max-width: 22em;
  }

  .hero-slider .btn {
    padding: 11px 30px;
    font-size: 1rem;
  }

  #shop {
    padding-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* ---------- Favorites ---------- */

.fav-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  color: var(--ink);
  background: var(--blue-soft);
  text-decoration: none;
  transition: background 0.2s;
}

.fav-button:hover {
  background: var(--pink-soft);
  color: var(--pink-dark);
}

.fav-button svg {
  width: 21px;
  height: 21px;
}

.fav-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.fav-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 6px rgba(47, 44, 51, 0.15);
  cursor: pointer;
  transition: transform 0.15s;
}

.fav-toggle:active {
  transform: scale(0.88);
}

.fav-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
}

.fav-toggle[aria-pressed='true'] svg {
  fill: var(--pink);
  stroke: var(--pink);
  animation: fav-pop 0.3s ease;
}

@keyframes fav-pop {
  50% { transform: scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .fav-toggle[aria-pressed='true'] svg { animation: none; }
}

.fav-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.fav-save[aria-pressed='true'] {
  background: var(--pink-soft);
  border-color: #efd3da;
  color: var(--pink-dark);
}

.pill-fav[aria-pressed='true'] {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.header-row {
  gap: 10px;
}

@media (max-width: 640px) {
  .fav-button {
    width: 40px;
    height: 40px;
  }
  .nav a {
    padding: 8px 10px;
  }
}

/* ---------- Category tiles (Shop by category) ---------- */

.cat-tiles {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 6px;
}

.cat-tiles::-webkit-scrollbar {
  display: none;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.cat-tile .ic {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cat-tile svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.cat-tile:hover .ic {
  border-color: var(--ink);
}

.cat-tile[aria-pressed='true'] .ic {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.cat-tile:focus-visible {
  outline: none;
}

.cat-tile:focus-visible .ic {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 420px) {
  .cat-tiles {
    gap: 10px;
    justify-content: center;
  }
  .cat-tile {
    min-width: 58px;
    font-size: 0.85rem;
  }
  .cat-tile .ic {
    width: 54px;
    height: 54px;
  }
}

.fav-strip {
  text-align: center;
  margin: -12px 0 20px;
  font-weight: 700;
  color: var(--pink-dark);
}

.link-like {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
}

/* only the "Cash on delivery" card is left: keep it neat and centred */
.promises {
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
}

/* ---------- Age menu (site-styled dropdown, same on phone and laptop) ---------- */

.age-menu {
  position: relative;
}

.age-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
}

.age-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.age-toggle[aria-expanded='true'] svg {
  transform: rotate(180deg);
}

.age-toggle.is-set {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.age-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  width: 220px;
  max-height: 290px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(47, 44, 51, 0.14);
  animation: age-in 0.15s ease;
}

@keyframes age-in {
  from { opacity: 0; transform: translate(-50%, -4px); }
}

.age-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  background: none;
  font-family: var(--font-fun);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
}

.age-list button:hover,
.age-list button:focus-visible {
  background: var(--blue-soft);
  outline: none;
}

.age-list button[aria-selected='true'] {
  font-weight: 700;
  background: var(--blue-soft);
}

/* ---------- Cash on delivery note in the bag ---------- */

.cod-note svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bag-empty .cod-note {
  text-align: left;
  margin-top: 22px;
}

/* space between the banner and "Our little collection" */
#shop {
  padding-top: 48px;
  scroll-margin-top: 80px; /* "Shop now" / the ♥ stop just below the sticky header */
}

@media (max-width: 600px) {
  #shop {
    padding-top: 36px;
  }
}

/* ---------- Estimated delivery note ---------- */

.eta-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 12px;
  font-size: 0.93rem;
}

.eta-note svg,
.cod-note svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.done .eta-note {
  justify-content: center;
  margin: 4px 0 0;
}

/* ---------- No blue flash when tapping on phones ---------- */

html {
  -webkit-tap-highlight-color: transparent;
}

a,
button,
[role='button'],
.card {
  -webkit-tap-highlight-color: transparent;
}

/* a tapped button shouldn't keep a focus ring; keyboard users still get one */
:focus:not(:focus-visible) {
  outline: none;
}

/* estimated delivery line, right under "Delivery" in the bag totals */
.totals .eta-row span:last-child {
  font-weight: 700;
}

/* ---------- Input borders: warm taupe that matches the theme (still clearly visible) ---------- */

:root {
  --input-border: #9c8c7a;
}

input:not([type='checkbox']):not([type='radio']):not([type='file']),
textarea,
select {
  border-color: var(--input-border) !important;
}

/* the box you're typing in turns the site's soft rose */
input:not([type='checkbox']):not([type='radio']):not([type='file']):focus,
textarea:focus,
select:focus {
  border-color: var(--pink) !important;
  box-shadow: 0 0 0 3px rgba(194, 124, 141, 0.18);
}

/* light theme for built-in controls, so dropdown lists are never drawn black */
:root {
  color-scheme: light;
}

/* ---------- Category menu (same look as the Age menu, with an icon per category) ---------- */

.cat-menu .age-toggle span {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-list {
  left: 0;
  transform: none;
  width: 250px;
  max-height: 340px;
  animation-name: cat-in;
}

@keyframes cat-in {
  from { opacity: 0; transform: translateY(-4px); }
}

.cat-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}

.opt-ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
}

.opt-ic svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.cat-list button[aria-selected='true'] .opt-ic {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

@media (max-width: 420px) {
  .cat-menu .age-toggle span {
    max-width: 130px;
  }
}

/* ---------- Banner without heading text: just a light fade and the "Shop now" button ---------- */

.hero-slider .hero-actions {
  margin-top: 0;
}

/* phones/tablets: a short, soft fade at the bottom of the photo */
.hero-media::after {
  height: 16%;
  background: linear-gradient(180deg, rgba(var(--bg), 0), rgba(var(--bg), 0.85) 80%, rgb(var(--bg)));
}

.hero-slider .hero-grid {
  margin-top: -26px;
}

@media (max-width: 760px) {
  .hero-media::after {
    height: 18%;
    background: linear-gradient(180deg, rgba(var(--bg), 0), rgba(var(--bg), 0.8) 75%, rgb(var(--bg)));
  }

  .hero-slider .hero-grid {
    margin-top: -30px;
  }
}

/* laptops: a light fade on the left behind the button */
@media (min-width: 1181px) {
  .hero-media::after {
    width: 38%;
    height: auto;
    background: linear-gradient(90deg, rgba(var(--bg), 0.75) 0%, rgba(var(--bg), 0.4) 55%, rgba(var(--bg), 0));
  }

  .hero-slider .hero-grid {
    margin-top: 0;
    align-content: end;
    padding-bottom: 48px;
  }
}
