/* Layout: soft shop-front. Brand header with Instagram-style highlight filters, then a photo-led product grid, then how ordering works. */
  :root {
    --bg: #fffafb;          /* blush paper, from the logo ground */
    --surface: #ffffff;
    --blush: #ffeef2;       /* logo circle */
    --pink: #ffc8d6;        /* softened highlight pink */
    --butter: #f8f2bf;      /* softened highlight yellow */
    --sky: #d6e4f6;         /* softened highlight blue */
    --mint: #dcefe4;
    --berry: #a85d78;       /* dusty rose: links, prices, logo text */
    --ink: #4a3a41;
    --muted: #94838a;
    --line: #f6e3e9;
    --btn: #ffc8d6;
    --on-btn: #4a3a41;
    color-scheme: light; /* one pastel look on every device */
    --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
    --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 18px;
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.5 var(--font-body);
  }
  .wrap { max-width: 1080px; margin: 0 auto; padding-inline: 16px; }

  header.top {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 6px; }
  .logo {
    display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--blush);
    font: 600 17px/1 var(--font-display); color: var(--berry);
    letter-spacing: .01em;
  }
  .brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
  .brand b { font: 600 18px/1.2 var(--font-display); display: block; }
  .brand small { color: var(--muted); font-size: 13px; }
  .ig {
    font-weight: 700; font-size: 14px; color: var(--berry); text-decoration: none;
    border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; white-space: nowrap;
  }
  .ig:hover { border-color: var(--pink); }

  .intro { padding-block: 36px 8px; display: grid; gap: 10px; }
  .intro h1 {
    font: 600 clamp(30px, 6vw, 48px)/1.08 var(--font-display);
    margin: 0; text-wrap: balance; max-width: 18ch;
  }
  .intro h1 em { font-style: normal; color: var(--berry); }
  .intro p { margin: 0; color: var(--muted); max-width: 52ch; }
  .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
  .facts span {
    font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
  }

  /* Filters look like the Instagram story highlights: a coloured circle with a heart. */
  .filters { display: flex; gap: 18px; overflow-x: auto; padding: 24px 6px 8px; margin-inline: -6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .hl {
    flex: none; display: grid; justify-items: center; gap: 6px;
    background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
    font: 600 13px/1.2 var(--font-body);
  }
  .hl .dot {
    width: 66px; height: 66px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--c);
    outline: 2px solid transparent; outline-offset: 3px;
    transition: outline-color .15s, transform .15s;
  }
  .hl .dot svg { width: 24px; height: 24px; color: var(--surface); }
  .hl[aria-pressed="true"] .dot { outline-color: var(--berry); }
  .hl:hover .dot { transform: translateY(-2px); }
  .hl:focus-visible { outline: none; }
  .hl:focus-visible .dot { outline-color: var(--berry); }

  .grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 20px 14px; }
  .grid-head h2 { font: 600 22px/1.2 var(--font-display); margin: 0; }
  .grid-head span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

  .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  @media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
  @media (min-width: 980px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

  .card { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
  .photo {
    position: relative; max-width: 100%;
    border-radius: var(--radius); overflow: hidden; background: var(--tint, var(--blush)); padding: 8px;
  }
  .photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 12px; transition: transform .3s; }
  .card:hover .photo img { transform: scale(1.03); }
  .ph { width: 100%; aspect-ratio: 1; border-radius: 12px; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--berry); font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--surface) 55%, transparent); }
  .ph svg { width: 56px; height: 56px; }
  .info { display: grid; grid-template-rows: auto auto 1fr; gap: 2px; padding: 10px 2px 0; }
  .info h3 { font: 600 16px/1.25 var(--font-display); margin: 0; }
  .price { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
  .order {
    align-self: end; margin-top: 10px;
    display: block; text-align: center; text-decoration: none;
    font: 700 14px/1 var(--font-body); color: var(--on-btn); background: var(--btn);
    border-radius: 12px; padding: 12px 10px;
  }
  .order:hover { filter: brightness(.97) saturate(1.2); }
  .order:focus-visible, .ig:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

  .how { margin-block: 56px 24px; padding: 28px 20px; border-radius: 24px; background: linear-gradient(135deg, var(--blush), var(--sky)); }
  .how h2 { font: 600 22px/1.2 var(--font-display); margin: 0 0 18px; }
  .steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: s; }
  .steps li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; counter-increment: s; }
  .steps li::before {
    content: counter(s);
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--surface); color: var(--berry); font: 600 16px/1 var(--font-display);
  }
  .steps b { display: block; }
  .steps span { color: var(--muted); font-size: 14px; }

  footer { padding-block: 24px 40px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
  footer a { color: var(--berry); font-weight: 700; text-decoration: none; }

  .skeleton .photo { aspect-ratio: 1; animation: pulse 1.2s ease-in-out infinite; }
  .skeleton .info span { display: block; height: 14px; border-radius: 7px; background: var(--blush); margin-top: 8px; }
  .skeleton .info span + span { width: 50%; }
  @keyframes pulse { 50% { opacity: .55; } }
  .empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 32px 0; }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Links that wrap catalog photos and names (also used on product pages). */
a.photo { display: block; text-decoration: none; }
.info h3 a { color: inherit; text-decoration: none; }
.info h3 a:hover { color: var(--berry); }

/* Header links and the cart. */
.top-links { display: flex; align-items: center; gap: 8px; }
.cart {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  color: var(--berry); border: 1.5px solid var(--line); border-radius: 50%; text-decoration: none;
}
.cart:hover { border-color: var(--pink); }
.cart svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--berry); color: #fff; font: 700 12px/1 var(--font-body);
}
.cart:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.order.in-cart { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--btn); }
[hidden] { display: none !important; }
