/* Giftnest, new version.
   Opens on "Good things grow", with the site growing out of a frame. Each shop has its
   own colour and a real 3D product, under a navigation bar that never leaves the top. */

@font-face {
  font-family: "Aftersick";
  src: local("Aftersick"), local("Aftersick DEMO Regular"), local("AftersickDEMO-Regular");
  font-display: swap;
}

:root {
  --off-white: #FBF8F3;
  --paper: #FBF8F3;
  --navy: #2F2D55;
  --blue: #9CB4E6;
  --green: #DFECDA;
  --lime: #D9DE50;
  --blush: #F3D3D5;
  --pink: #D995BB;
  --burgundy: #6F1926;
  --orange: #F15846;

  /* General text and buttons: charcoal. Shop colours live in the themes below. */
  --ink: #2B2A2E;
  --ink-soft: #6D6C70;
  --line: #C9C6C0;
  --tile: #E8E7E4;

  --display: "Aftersick", "Gloock", Georgia, serif;
  --body: "Quicksand", system-ui, sans-serif;

  --edge: clamp(12px, 1.6vw, 24px);
  --pill-h: 44px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --swoop: cubic-bezier(.7, 0, .2, 1);
}

/* Each shop's colours, from the shop's colour references: the page's colour (`--page`),
   its big name in `--page-name` (if set), the top bar in `--page-nav` (if set) and
   smaller text in `--on-page`. */
body[data-theme="games"] { --page: #9CB4E6; --on-page: #5C131F; }
body[data-theme="home"] { --page: #B1AA5A; --on-page: #2B2A2E; --page-name: #DFECDA; --page-nav: #FFFFFF; }
body[data-theme="baby"] { --page: #EED2D3; --on-page: #5C131F; }
body[data-theme="corporate"] { --page: #5C131F; --on-page: #F15846; }

*, *::before, *::after { box-sizing: border-box; }
/* Room for the scrollbar is kept even while the opening holds the page still, so the page
   doesn't shift sideways when scrolling comes on (where scrollbars take up space). */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
html.lock, html.lock body { overflow: hidden; height: 100%; overscroll-behavior: none; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 500 .875rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
svg { fill: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
h1:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: .005em;
  margin: 0;
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--off-white);
  padding: 10px 16px; border-radius: 99px; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Colour layers ---------- */

/* The page's colour, then the 3D layer, drawn in front of the page so each product sits
   over its shop's name. */
.page-bg, .gl { position: fixed; inset: 0; }
.page-bg {
  z-index: 2;
  background: var(--page);
  transition: background-color .8s;
}
.gl { z-index: 5; width: 100%; height: 100%; pointer-events: none; }
.fb-item { position: fixed; z-index: 5; pointer-events: none; }

main { position: relative; z-index: 4; }

/* ---------- Navigation: always here, on every page ---------- */

.nav {
  --nav-ink: var(--page-nav, var(--on-page));
  --nav-fill: var(--page);
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px var(--edge);
  transition: background-color .35s, box-shadow .35s, opacity .7s var(--ease), translate .7s var(--ease);
}
body.nav-solid .nav {
  --nav-ink: var(--ink);
  --nav-fill: var(--paper);
  background: rgb(251 248 243 / .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgb(43 42 46 / .08);
}
.nav-logo { grid-column: 2; grid-row: 1; justify-self: center; display: block; color: var(--nav-ink); transition: color .5s; border-radius: 4px; }
.nav-logo svg { display: block; width: 122px; height: 30px; }
.nav-start { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; gap: 6px; }
/* Phones only: opens the list of shops. */
.nav-menu { display: none; }
/* Shop links are outlined pills in the bar's colour; only the shop you are on is filled. */
.nav-links a {
  display: inline-flex; align-items: center;
  height: var(--pill-h);
  padding: 0 18px;
  border: 1px solid var(--nav-ink);
  border-radius: 99px;
  background: transparent;
  color: var(--nav-ink);
  font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s;
}
.nav-links a:hover { background: color-mix(in srgb, var(--nav-ink) 12%, transparent); }
.nav-links a.is-active { background: var(--nav-ink); color: var(--nav-fill); }
.nav-links .short { display: none; }

.pill-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--pill-h);
  padding: 0 18px;
  border: 1.5px solid currentColor; border-radius: 99px;
  background: transparent;
  cursor: pointer;
  font-size: .9rem; font-weight: 600; text-decoration: none;
  transition: background-color .3s, color .3s, border-color .3s;
}
.nav-end { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 6px; }
.nav-bag { color: var(--nav-ink); border-width: 1px; font-weight: 500; }
.nav-bag svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-bag:hover { background: color-mix(in srgb, var(--nav-ink) 12%, transparent); }
/* Music on and off: four small bars that move while it plays. */
.nav-sound {
  width: var(--pill-h); padding: 0; gap: 3px;
  color: var(--nav-ink); border-width: 1px;
}
.nav-sound:hover { background: color-mix(in srgb, var(--nav-ink) 12%, transparent); }
.nav-sound i { width: 2px; height: 14px; border-radius: 2px; background: currentColor; scale: 1 .45; transition: scale .4s var(--ease); }
/* At rest the bars keep the shape of a sound wave; while music plays they move. */
.nav-sound i:nth-child(2) { scale: 1 .85; }
.nav-sound i:nth-child(3) { scale: 1 .6; }
.nav-sound i:nth-child(4) { scale: 1 .3; }
.nav-sound.is-on i { animation: soundBar .9s ease-in-out infinite alternate; }
.nav-sound.is-on i:nth-child(2) { animation-delay: -.45s; animation-duration: .7s; }
.nav-sound.is-on i:nth-child(3) { animation-delay: -.2s; animation-duration: 1.1s; }
.nav-sound.is-on i:nth-child(4) { animation-delay: -.6s; animation-duration: .8s; }
@keyframes soundBar { from { scale: 1 .25; } to { scale: 1 1; } }
.bag-count {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px currentColor;
  font-size: .7rem; font-weight: 700; line-height: 20px; text-align: center;
}
.bag-count:empty { display: none; }

/* ---------- A shop's page ---------- */

.page-hero {
  position: relative;
  touch-action: pan-y;
  min-height: 100svh;
  color: var(--on-page);
}
/* The shop's name runs across the screen and its product sits in front of it (the 3D
   layer is above the page on shop pages). app.js sets --name-y (the name's middle) and
   shrinks the name if it wouldn't fit. On tall screens it sits on two centred lines, with
   the product resting over the top of the first. */
.page-name {
  position: absolute; left: 0; right: 0; top: var(--name-y, 50%);
  margin: 0;
  font-size: min(9.6vw, 17.5vh);
  line-height: .9;
  white-space: nowrap;
  text-align: center;
  color: var(--page-name, var(--on-page));
  transform: translateY(-50%);
  animation: nameIn .9s var(--ease) .3s both;
}
.page-name span { display: inline-block; }
@keyframes nameIn { from { opacity: 0; transform: translateY(calc(-50% + 26px)); } }
@media (max-aspect-ratio: 4/5) {
  .page-name { font-size: min(17vw, 9.5vh); line-height: .98; }
  .page-name span { display: table; margin: 0 auto; }
  .page-name[data-lines="1"] span { display: inline-block; margin: 0; }
}
/* Each shop's flower stands where its product will be while the 3D loads during the
   opening (app.js sets --flower-y and --flower-size), then turns into the product. */
.page-flower {
  display: none;
  position: absolute; left: 50%; top: var(--flower-y, 50%);
  width: var(--flower-size, 30vmin); height: auto;
  translate: -50% -50%;
  pointer-events: none; user-select: none;
}
body.flowers .page-flower { display: block; }
/* Just the colour and the flower: the name and the short line rise in (app.js) once the
   product has taken the flower's place. */
body.bare :is(.page-name, .page-copy) { opacity: 0; }
/* Back and next, small, at either side of the product. Dragging the product sideways does
   the same (app.js), and the arrow keys. */
.page-step {
  position: absolute; top: var(--step-y, var(--flower-y, 50%)); z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 10px;
  border: 0; background: none; cursor: pointer;
  color: var(--page-nav, var(--on-page)); /* light on Home & Living, like its bar */
  font-size: .84rem; font-weight: 500;
  translate: 0 -50%;
  transition: opacity .6s var(--ease);
}
.page-step[data-step="-1"] { left: clamp(4px, 1.4vw, 20px); }
.page-step[data-step="1"] { right: clamp(4px, 1.4vw, 20px); }
.page-step svg { width: 14px; height: 14px; transition: translate .25s var(--ease); }
.page-step[data-step="-1"] svg { rotate: 180deg; }
.page-step:hover span { text-decoration: underline; text-underline-offset: 4px; }
.page-step[data-step="-1"]:hover svg { translate: -3px 0; }
.page-step[data-step="1"]:hover svg { translate: 3px 0; }
body.intro-on .page-step { opacity: 0; visibility: hidden; transition: none; }
/* The top of a shop page can be dragged sideways to change shop. */
@media (pointer: fine) {
  .page-hero { cursor: grab; }
  .page-hero.is-dragging { cursor: grabbing; }
}
.page-hero { -webkit-user-select: none; user-select: none; }
/* The short line and its link sit at the bottom right. */
.page-copy {
  position: absolute; right: 9vw; bottom: clamp(28px, 7vh, 60px);
  width: min(19rem, 40vw);
  animation: pageIn .9s var(--ease) .3s both;
}
@keyframes pageIn { from { opacity: 0; transform: translateY(26px); } }
.page-copy p { margin: 0 0 4px; font-size: .98rem; line-height: 1.5; }
.page-jump {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 0; border: 0;
  background: none; color: inherit; cursor: pointer;
  font-size: .98rem; font-weight: 600;
}
.page-jump svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.page-jump:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.page-jump:hover svg { transform: translateX(3px); }

/* Paper panel. Sections meet on a straight line. */
.panel {
  background: var(--paper);
  padding: clamp(44px, 5vw, 72px) clamp(16px, 5vw, 72px) clamp(56px, 6vw, 86px);
}
.panel-in { max-width: 1120px; margin: 0 auto; }

/* Filter and sort sit at the top of the products and scroll away with them. */
.tools {
  position: relative; z-index: 6;
  display: flex; gap: 6px;
  margin-bottom: 18px;
  pointer-events: none;
}
.tool { position: relative; pointer-events: auto; }
.tool-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 40px; min-width: 176px;
  padding: 0 16px 0 20px;
  border: 0; border-radius: 99px; cursor: pointer;
  background: #fff;
  color: var(--ink);
  font-size: .86rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 2px 14px -4px rgb(43 42 46 / .22), inset 0 0 0 1px rgb(43 42 46 / .08);
  transition: box-shadow .3s;
}
.tool-pill svg { width: 18px; height: 18px; flex-shrink: 0; }
.tool-pill:hover, .tool-pill[aria-expanded="true"] { box-shadow: 0 2px 14px -4px rgb(43 42 46 / .25), inset 0 0 0 1.5px var(--ink); }

/* How it works: a real sequence, so it gets numbers. */
.how { margin-top: clamp(52px, 7vw, 88px); padding-top: 26px; border-top: 1px solid var(--line); }
.how h3 { margin: 0 0 20px; font-size: .86rem; font-weight: 700; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; counter-reset: how; }
.how-steps li { counter-increment: how; }
.how-steps li::before {
  content: counter(how);
  display: grid; place-items: center;
  width: 30px; height: 30px; margin-bottom: 12px;
  border-radius: 50%;
  background: var(--page); color: var(--on-page);
  font-size: .78rem; font-weight: 700;
}
.how-steps h4 { margin: 0 0 4px; font-size: .86rem; font-weight: 700; }
.how-steps p { margin: 0; max-width: 26ch; font-size: .78rem; color: var(--ink-soft); }

/* The bottom of a page already wears the colours of the shop it leads to. */
.page-end[data-next="games"] { --end-bg: #9CB4E6; --end-fg: #5C131F; }
.page-end[data-next="home"] { --end-bg: #B1AA5A; --end-fg: #2B2A2E; }
.page-end[data-next="baby"] { --end-bg: #EED2D3; --end-fg: #5C131F; }
.page-end[data-next="corporate"] { --end-bg: #5C131F; --end-fg: #F15846; }
.page-end {
  position: relative;
  background: var(--end-bg);
  color: var(--end-fg);
  padding: clamp(72px, 9vw, 130px) clamp(20px, 3vw, 44px) clamp(44px, 5vw, 72px);
}
.next { display: block; text-align: center; text-decoration: none; margin-bottom: clamp(96px, 12vw, 180px); }
.next small { display: block; margin-bottom: 8px; font-size: .86rem; font-weight: 600; }
.next .display { display: inline-block; font-size: clamp(2.6rem, 7vw, 6.4rem); transition: transform .5s var(--ease); }
.next:hover .display { transform: translateY(-4px) rotate(-1deg); }

/* Lower navigation. */
.foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 40px clamp(56px, 8vw, 140px);
  padding-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}
.foot-word { display: block; width: min(100%, 280px); border-radius: 4px; }
.foot-word svg { display: block; width: 100%; aspect-ratio: 735 / 178; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: .92rem; font-weight: 600; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Opening: "Gift nest" ---------- */

/* While it plays, intro.js scales the page's colour, the 3D layer and the top of the
   page into the space between the two words, cutting through the shops before it grows
   to fill the screen under a frosted pane. The frost fades away at full size and the
   navigation comes in. All of its movement runs as compositor animations, so it stays
   smooth while the 3D is built. */
body.intro-on { background: var(--paper); }
body.intro-on .nav { opacity: 0; translate: 0 -14px; visibility: hidden; transition: none; }
body.intro-on .view > :not(.page-hero) { display: none; }
body.intro-on :is(.page-name, .page-copy) { animation: none; }
body.intro-on .page-bg { transition: none; }
body.intro-on :is(.page-bg, .gl, .fb-item, main) { opacity: 0; }

/* Above the navigation, so the bar comes in under the fading frost. */
.intro { position: fixed; inset: 0; z-index: 45; overflow: hidden; pointer-events: none; }
.intro-rise { position: absolute; inset: 0; }
.intro-word {
  position: absolute; left: 0; top: 0;
  margin: 0;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: min(5.6vw, 10vh); line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}
.intro-word span { display: block; opacity: 0; }
/* The blurred copy of each word, which fades out as the word comes into focus. */
.intro-word .soft { position: absolute; inset: 0; filter: blur(14px); }
/* The frost: a pane over the product that grows until it covers the screen. */
.intro-pane {
  position: absolute; inset: 0;
  opacity: 0;
  background: rgb(255 255 255 / .14);
  -webkit-backdrop-filter: blur(18px) saturate(1.1) brightness(1.06);
  backdrop-filter: blur(18px) saturate(1.1) brightness(1.06);
}
/* The dotted arrow in front of the frost. Its dots shimmer, in a wave along the arrow
   (--d), if the 3D is still loading once the frost covers the screen. */
.intro-dots { position: absolute; inset: 0; margin: auto; width: 112px; height: 112px; opacity: 0; }
.intro-dots-in {
  display: grid; grid-template: repeat(8, 1fr) / repeat(8, 1fr);
  width: 100%; height: 100%;
  filter: drop-shadow(0 2px 12px rgb(43 42 46 / .14));
}
.intro-dots i { width: 68%; height: 68%; margin: auto; border-radius: 50%; background: #fff; }
.intro.is-waiting .intro-dots i { animation: dotShimmer .9s ease-in-out var(--d) infinite alternate; }
@keyframes dotShimmer { to { opacity: .4; } }
/* On tall screens the words sit above and below the site. */
@media (max-aspect-ratio: 4/5) {
  .intro-word { font-size: min(16vw, 8vh); }
}
@media (prefers-reduced-motion: reduce) {
  .intro-dots i { animation: none !important; }
}

/* From the current site: menus */
.pop {
  position: absolute; left: 0; top: calc(100% + 8px);
  min-width: 100%; width: max-content; max-width: 300px;
  display: grid; gap: 14px;
  padding: 10px;
  border-radius: 18px;
  background: rgb(255 255 255 / .96);
  color: var(--ink);
  box-shadow: 0 18px 40px -16px rgb(43 42 46 / .35), inset 0 0 0 1px rgb(43 42 46 / .06);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(-6px); visibility: hidden;
  transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s;
}
.pop.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .35s var(--ease); }
.pop-list { display: grid; }
.pop-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 9px 12px;
  border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left;
  font-size: .82rem; font-weight: 600;
}
.pop-list button:hover { background: rgb(47 45 85 / .06); }
.pop-list button[aria-pressed="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.colours { display: flex; flex-wrap: wrap; gap: 6px; }
.colours button {
  width: 18px; height: 18px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .3);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.colours button:hover { transform: scale(1.15); }
.colours button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .3), 0 0 0 2px #fff, 0 0 0 3px var(--ink); }
.pop-colours { padding: 10px 12px 2px; border-top: 1px solid rgb(43 42 46 / .1); }
.pop-colours p { margin: 0 0 8px; font-size: .74rem; font-weight: 600; }
.pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 4px; font-size: .74rem; font-weight: 600; color: var(--ink-soft); }
.pop-foot .link { color: var(--ink); }


/* From the current site: shop, baby, corporate */
/* Quiet name at the top of each shop, so you always know what you're browsing. */
.shop-label { max-width: 930px; margin: 0 0 20px; font-size: .86rem; font-weight: 700; }
.shop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; max-width: 930px; margin-bottom: 20px; }
.shop-head .shop-label { margin: 0; }
.count { margin: 0; font-size: .74rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* The filters in use, each with its own way out. */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; max-width: 930px; margin: -8px 0 20px; }
.active-filters[hidden] { display: none; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 10px 0 13px;
  border: 1px solid var(--ink); border-radius: 99px;
  background: none; cursor: pointer;
  font-size: .74rem; font-weight: 600;
  transition: background-color .25s, color .25s;
}
.filter-chip span { font-size: .95rem; line-height: 1; }
.filter-chip:hover { background: var(--ink); color: var(--off-white); }
.active-filters .link { font-size: .74rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px clamp(12px, 1.4vw, 20px);
  max-width: 930px;
}

.card { display: grid; gap: 6px; align-content: start; }
.media {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--tile);
}
/* Studio photos are on white; multiply lets the tile colour show through. */
.media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply;
  transition: opacity .5s, transform .9s var(--ease);
}
.media img.cut { object-fit: contain; padding: 9%; mix-blend-mode: normal; }
.media .alt { opacity: 0; }
/* Hover only where there's a real pointer: on a phone, a tap would leave it stuck. */
@media (hover: hover) {
  /* Swap to the second photo: the first fades out so the two never blend. */
  .card:hover .media .alt { opacity: 1; }
  .card:hover .media img:has(+ .alt) { opacity: 0; }
  .card:hover .media img { transform: scale(1.03); }
}

.ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: color-mix(in oklab, var(--c, #999) 40%, #8A8890);
}
.ph small { position: absolute; left: 10px; bottom: 8px; display: flex; align-items: center; gap: 6px; font-size: .62rem; font-weight: 600; color: #8A8890; }
.ph i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .25); }

.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-title {
  padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.card-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.card h3 {
  margin: 4px 0 0;
  font-size: .74rem; font-weight: 600; line-height: 1.35;
  text-transform: uppercase; letter-spacing: .02em;
}
.price { font-size: .74rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Line the price up with the first line of the name, even when the name wraps. */
.card h3 + .price { align-self: flex-start; margin-top: 4px; line-height: 1.35; }
.note { margin: 0; font-size: .68rem; color: var(--ink-soft); line-height: 1.4; max-width: 22em; }

.swatches { display: flex; gap: 4px; }
.swatches button {
  width: 13px; height: 13px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .35);
}
.swatches button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .35), 0 0 0 1.5px var(--off-white), 0 0 0 2.5px var(--ink); }
.add {
  border: 0; background: none; padding: 2px 0; cursor: pointer;
  font-size: .72rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.add:hover { text-decoration-thickness: 2px; }

/* Under a filtered grid: "Show more", or a way out when nothing matches. */
.grid-after { max-width: 930px; display: grid; justify-items: center; }
.grid-after .more { flex: none; margin-top: 40px; width: auto; }
.none { margin: 10px 0 0; font-size: .82rem; color: var(--ink-soft); justify-self: start; }
.none[hidden], .more[hidden] { display: none; }
.link {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
}

/* Baby: choose a basket, who it's for and any notes, then send on WhatsApp. */
.baskets { border: 0; margin: 0; padding: 0; min-width: 0; }
.basket { position: relative; cursor: pointer; }
.basket input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.basket .media { display: block; outline: 1.5px solid transparent; outline-offset: 4px; transition: outline-color .25s; }
.basket:hover .media { outline-color: var(--line); }
.basket:has(input:checked) .media { outline-color: var(--ink); }
.basket:has(input:focus-visible) .media { outline: 2px solid var(--ink); }
.basket .card-row { display: grid; row-gap: 2px; }
.b-name { margin-top: 4px; font-size: .74rem; font-weight: 600; line-height: 1.35; text-transform: uppercase; letter-spacing: .02em; }
/* What the basket comes in. */
.basket .pack { display: block; margin-top: 6px; font-size: .72rem; font-weight: 600; color: var(--ink); }

.nest-form {
  display: grid; gap: 22px;
  max-width: 560px;
  margin-top: 44px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.nest-for { border: 0; margin: 0; padding: 0; }
.nest-for legend, .nest-notes { padding: 0; margin-bottom: 10px; font-size: .74rem; font-weight: 700; }
.nest-notes { display: grid; gap: 10px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 99px;
  font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--off-white); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.nest-notes textarea, .nest-notes input {
  width: 100%; padding: 10px 12px; resize: vertical;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: .8rem; font-weight: 500;
}
.nest-notes textarea:focus, .nest-notes input:focus, .nest-notes select:focus { outline: none; border-color: var(--ink); }
.nest-notes select {
  width: 100%; max-width: 280px; padding: 10px 36px 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232B2A2E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 11px;
  appearance: none; -webkit-appearance: none;
  font-size: .8rem; font-weight: 500; cursor: pointer;
}
.nest-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.nest-send .wa { flex: none; display: inline-flex; align-items: center; text-decoration: none; }
.nest-send p { flex: 1 1 220px; margin: 0; font-size: .72rem; color: var(--ink-soft); }

/* Corporate */
.corp .display { font-size: clamp(1.9rem, 3vw, 2.7rem); margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; max-width: 930px; border-top: 1px solid var(--line); }
.steps li { border-bottom: 1px solid var(--line); }
.steps button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 16px 2px;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
}
.steps .n { font-variant-numeric: tabular-nums; }
.steps button svg { margin-left: auto; width: 18px; height: 18px; transition: transform .35s var(--ease); }
.steps li.is-open button svg { transform: rotate(90deg); }
.step-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.step-body > p { overflow: hidden; margin: 0; max-width: 30rem; color: var(--ink-soft); font-size: .8rem; }
.steps li.is-open .step-body { grid-template-rows: 1fr; }
.steps li.is-open .step-body > p { padding: 0 2px 18px; }

.btn-request {
  margin-top: 28px;
  padding: 11px 26px;
  border: 0; border-radius: 99px; cursor: pointer;
  background: #5C131F; color: #F15846; /* the corporate shop's colours */
  font-size: .82rem; font-weight: 600;
  transition: transform .25s var(--ease), background-color .25s;
}
.btn-request:hover { transform: translateY(-2px); background: #45101A; }

.corp-form { max-width: 930px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fields label { display: grid; gap: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.fields .wide { grid-column: 1 / -1; }
.fields input, .fields select, .fields textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff;
  font-size: .82rem; font-weight: 500; text-transform: none; letter-spacing: 0;
  transition: border-color .2s;
}
.fields textarea { resize: vertical; }
.fields input:focus, .fields select:focus, .fields textarea:focus { outline: none; border-color: var(--ink); }
.fields [aria-invalid="true"] { border-color: var(--orange); }
.demo-note { margin: 0 0 14px; padding: 9px 12px; border-radius: 10px; background: rgb(217 222 80 / .28); font-size: .74rem; font-weight: 600; color: var(--ink); }
.demo-note[hidden] { display: none; }
.checkout-intro { margin: 0 0 18px; font-size: .78rem; color: var(--ink-soft); }
.corp-form .demo-note { margin: 16px 0 0; }
.form-msg { min-height: 1.5em; margin: 14px 0 0; font-size: .8rem; }
.form-msg.ok { color: #3D6B35; }
.form-msg.err { color: #B3321F; }
.corp-form .btn-request { margin-top: 12px; }


/* From the current site: bag and product sheets */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 11px 20px; border-radius: 22px;
  background: var(--ink); color: var(--off-white);
  font-size: .8rem; font-weight: 600; text-align: center;
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .45s var(--ease), opacity .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Bag and checkout sheet ---------- */

.overlay { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s .6s; }
.overlay.is-open { visibility: visible; transition: none; }
.scrim {
  position: absolute; inset: 0;
  background: rgb(43 42 46 / .32);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .5s var(--ease);
}
.overlay.is-open .scrim { opacity: 1; }
.sheet {
  position: absolute; top: var(--edge); right: var(--edge); bottom: var(--edge);
  width: min(460px, calc(100% - var(--edge) * 2));
  display: grid; grid-template-rows: auto auto 1fr auto;
  background: var(--off-white);
  border-radius: 18px;
  box-shadow: 0 30px 80px -30px rgb(20 18 40 / .5);
  transform: translateX(calc(100% + 40px));
  transition: transform .6s var(--ease);
  outline: none;
}
.overlay.is-open .sheet { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 8px; }
.sheet-head .display { font-size: 1.6rem; }
.close {
  height: 34px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: 99px; background: none; cursor: pointer;
  font-size: .78rem; font-weight: 600;
  transition: background-color .25s, color .25s;
}
.close:hover { background: var(--ink); color: var(--off-white); }

.sheet-steps {
  list-style: none; margin: 0; padding: 10px 24px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  counter-reset: st;
}
.sheet-steps li {
  counter-increment: st;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  color: var(--ink-soft);
  transition: color .3s, border-color .3s;
}
.sheet-steps li::before { content: counter(st) ". "; }
.sheet-steps li.is-done, .sheet-steps li[aria-current="step"] { color: var(--ink); border-color: var(--ink); }

.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px; }
.pane[hidden] { display: none; }
.lines { list-style: none; margin: 0; padding: 0; }
.line {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.line-media { position: relative; width: 72px; height: 72px; background: var(--tile); overflow: hidden; }
.line-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.line-media img.cut { object-fit: contain; padding: 8%; mix-blend-mode: normal; }
.line h3 { margin: 0; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.line .opt { margin: 2px 0 10px; font-size: .7rem; color: var(--ink-soft); }
.line .opt span { display: block; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; }
.qty button { width: 28px; height: 26px; border: 0; background: none; cursor: pointer; font-size: .9rem; }
.qty span { min-width: 18px; text-align: center; font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.line-end { display: grid; justify-items: end; align-content: space-between; }
.line-end .price { font-size: .76rem; }
.remove { border: 0; background: none; padding: 0; cursor: pointer; font-size: .7rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.empty { display: none; padding: 40px 0; text-align: center; color: var(--ink-soft); }
.pane[data-pane="bag"].is-empty .empty { display: block; }
.empty .pill-solid { margin-top: 8px; flex: none; }

.checkout fieldset { border: 0; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout legend { padding: 0; margin-bottom: 10px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.checkout label { display: grid; gap: 5px; font-size: .7rem; font-weight: 600; color: var(--ink-soft); }
.checkout .wide { grid-column: 1 / -1; }
.checkout input, .checkout select, .checkout textarea {
  width: 100%; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: .8rem; font-weight: 500; color: var(--ink);
}
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { outline: none; border-color: var(--ink); }
.checkout [aria-invalid="true"] { border-color: var(--orange); }
.checkout .form-msg { margin: 0; }

.done { display: grid; justify-items: center; text-align: center; padding: 40px 0; }
.done svg { width: 54px; height: 60px; color: var(--ink); }
.done-title { font-size: 2rem; margin: 18px 0 8px; }
.done-text { max-width: 22rem; margin: 0 0 22px; color: var(--ink-soft); font-size: .82rem; }
.done .pill-solid { flex: none; }

.sheet-foot { padding: 14px 24px 22px; border-top: 1px solid var(--line); }
.totals { margin: 0 0 14px; display: grid; gap: 4px; font-size: .78rem; }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--ink-soft); }
.totals dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.totals .grand { padding-top: 6px; margin-top: 4px; border-top: 1px solid var(--line); font-size: .86rem; }
.totals .grand dt { color: var(--ink); font-weight: 700; }
.sheet-actions { display: flex; gap: 8px; }
.pill-solid, .pill-line {
  flex: 1;
  height: 44px; padding: 0 20px;
  border-radius: 99px; cursor: pointer;
  font-size: .82rem; font-weight: 600;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.pill-solid { border: 1.5px solid var(--ink); background: var(--ink); color: var(--off-white); }
.pill-solid:hover { background: transparent; color: var(--ink); }
.pill-solid:disabled { opacity: .4; cursor: not-allowed; }
.pill-line { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.pill-line:hover { background: var(--ink); color: var(--off-white); }
.pill-line[hidden], .pill-solid[hidden], .qty[hidden], .sheet-foot[hidden] { display: none; }
/* "Price on request": just the price line, no quantity or Add to bag. */
.pdp-buy:has(.qty[hidden]) { margin-bottom: 0; }
html.bag-open { overflow: hidden; }


/* Product details sheet: shares the bag's overlay and sheet styles. */
.pdp .sheet { width: min(520px, calc(100% - var(--edge) * 2)); grid-template-rows: auto 1fr auto; }
.pdp .sheet-head { align-items: flex-start; gap: 16px; }
.pdp .close { flex-shrink: 0; }
.pdp-media { cursor: default; }
.pdp-views { display: flex; gap: 8px; margin-top: 8px; }
.pdp-views[hidden] { display: none; }
.pdp-views button {
  position: relative; width: 64px; height: 64px; padding: 0; overflow: hidden; cursor: pointer;
  border: 0; background: var(--tile);
  outline: 1.5px solid transparent; outline-offset: 2px;
}
.pdp-views button[aria-pressed="true"] { outline-color: var(--ink); }
.pdp-views img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pdp-views img.cut { object-fit: contain; padding: 8%; mix-blend-mode: normal; }
.pdp-note { margin: 16px 0; max-width: 36em; font-size: .82rem; color: var(--ink-soft); }
.pdp-colour { margin: 0 0 8px; font-size: .74rem; font-weight: 700; }
.pdp .swatches { flex-wrap: wrap; gap: 8px; }
.pdp .swatches button { width: 20px; height: 20px; }
.pdp-details { margin: 18px 0 0; font-size: .78rem; }
.pdp-details:empty { display: none; }
.pdp-details div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.pdp-details dt { color: var(--ink-soft); }
.pdp-details dd { margin: 0; font-weight: 600; text-align: right; }
.pdp-buy { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pdp-buy .price { font-size: .86rem; font-weight: 700; }


/* ---------- Adjustments to the shared shop styles ---------- */

.grid, .shop-head, .active-filters, .grid-after, .steps, .corp-form, .nest { max-width: none; }
.grid { gap: 44px clamp(12px, 1.6vw, 22px); }
.shop-head { margin-bottom: 14px; }
.corp .display { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 20px; }
.baskets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.overlay { z-index: 80; }
.toast { z-index: 70; }

/* ---------- Responsive ---------- */

/* The shop links share the left of the bar with nothing else: short names once the full
   ones would run into the logo. */
@media (max-width: 1240px) {
  .nav-links .full { display: none; }
  .nav-links .short { display: inline; }
}

@media (max-width: 1040px) {
  .nav-links a { padding: 0 13px; font-size: .84rem; }
  .nav-logo svg { width: 104px; }
}

@media (max-width: 860px) {
  :root { --pill-h: 38px; }
  /* Two rows on phones: logo and bag, then all four shops, always visible. */
  /* One row on phones: the menu and the shop you're on, the logo in the middle, then
     music and the bag. The menu opens the list of shops under the bar. */
  .nav { grid-template-columns: 1fr auto 1fr; padding: 10px 12px; gap: 8px; }
  .nav-logo svg { width: 92px; height: 23px; }
  .nav-menu {
    display: grid; align-content: center; justify-items: center; gap: 4px;
    width: 36px; height: 36px; padding: 0;
    border: 1px solid var(--nav-ink); border-radius: 50%;
    background: var(--nav-ink); color: var(--nav-fill); cursor: pointer;
  }
  .nav-menu i { display: block; width: 15px; height: 1.5px; border-radius: 1px; background: currentColor; transition: translate .3s var(--ease), rotate .3s var(--ease), opacity .2s; }
  .nav.is-open .nav-menu i:nth-child(1) { translate: 0 5.5px; rotate: 45deg; }
  .nav.is-open .nav-menu i:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-menu i:nth-child(3) { translate: 0 -5.5px; rotate: -45deg; }
  .nav-links a { height: 36px; padding: 0 16px; font-size: .84rem; }
  /* The shop you're on stays put beside the menu button; the other three wait tucked under
     it and drop down into a column when the menu opens, one after another (--slot is
     their place in the column, set in app.js). */
  .nav-links { position: relative; }
  .nav-links a:not(.is-active) {
    position: absolute; left: 0; top: 0;
    background: var(--nav-fill);
    box-shadow: 0 10px 24px -14px rgb(43 42 46 / .45);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: translate .3s var(--ease), opacity .2s, visibility 0s .3s;
  }
  .nav.is-open .nav-links a:not(.is-active) {
    translate: 0 calc(var(--slot, 1) * 42px);
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: translate .45s var(--ease) calc(var(--slot, 1) * 40ms), opacity .3s calc(var(--slot, 1) * 40ms), visibility 0s;
  }
  .nav.is-open .nav-links a:not(.is-active):hover { background: color-mix(in srgb, var(--nav-ink) 12%, var(--nav-fill)); }
  .nav-bag { height: 36px; padding: 0 12px; gap: 6px; font-size: .8rem; }
  .nav-bag > span:first-child { display: none; }
  .nav-sound { width: 36px; height: 36px; }
  .nav-bag svg { width: 18px; height: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 10px; }
  .fields { grid-template-columns: 1fr; }
  .checkout fieldset { grid-template-columns: 1fr; }
  .baskets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-steps { grid-auto-flow: row; gap: 18px; }
  .how-steps li { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
  .how-steps li::before { grid-row: 1 / 3; margin: 0; }
  .how-steps p { max-width: none; }
  .foot { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .foot-word { grid-column: 1 / -1; width: 190px; }
  .tool { position: static; }
  .tool-pill { width: 100%; min-width: 0; gap: 10px; padding: 0 14px; height: 38px; font-size: .8rem; }
  .tools .tool { flex: 1; }
  .pop { left: 0; width: min(300px, calc(100vw - 32px)); max-width: none; min-width: 0; max-height: calc(100svh - var(--nav-h) - 70px); overflow-y: auto; overscroll-behavior: contain; }
  .colours { gap: 10px; }
  .colours button { width: 26px; height: 26px; }
  .pop-list button { padding: 11px 12px; }
  /* Comfortable tap sizes; 16px inputs stop phones zooming in on focus. */
  .swatches { gap: 8px; }
  .swatches button { position: relative; width: 18px; height: 18px; }
  .swatches button::after { content: ""; position: absolute; inset: -4px; }
  .card .card-row { flex-wrap: wrap; row-gap: 4px; }
  .add { padding: 6px 0; }
  .note { font-size: .72rem; }
  .filter-chip { height: 34px; }
  .fields input, .fields select, .fields textarea,
  .checkout input, .checkout select, .checkout textarea,
  .nest-notes input, .nest-notes textarea, .nest-notes select { font-size: 16px; }
  /* Phones: just the arrows (their names are read out by screen readers). */
  .page-step span { display: none; }
  .page-step svg { width: 16px; height: 16px; }
  .page-copy { left: 16px; right: auto; width: min(21rem, calc(100vw - 32px)); bottom: max(28px, 9svh); }
}

/* Very narrow phones. */
@media (max-width: 340px) {
  .nav-links a { font-size: .72rem; padding: 0 2px; }
}

/* Phones: short shop names so all four fit at a readable size. */
@media (max-width: 480px) {
  .nav-links .full { display: none; }
  .nav-links .short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .page-copy { animation: none !important; }
  .page-bg, .sheet, .scrim, .nav { transition: none !important; }
  .nav-sound.is-on i { animation: none; scale: 1 .7; }
}
