/* Stompaws store. Phone first: most visitors arrive from an Instagram link. */

:root {
  --cream: #fff6e9;
  --ink: #2b2b2b;
  --pink: #ff8fa3;
  --pink-deep: #f76f88;
  --ginger: #f28c28;
  --white: #ffffff;
  --line: rgba(43, 43, 43, 0.14);
  --shadow: 0 10px 30px rgba(43, 43, 43, 0.10);
  --radius: 22px;
  --wide: 1180px;
  --head: "Fredoka", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* the tilted strip and pictures poke past the edge */
}
body[data-page="product"] { padding-bottom: 84px; } /* room for the sticky buy bar on phones */
img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; } /* the cart, scrim and video set their own display */
h1, h2, h3, .btn, .eyebrow, .cart-button, summary, .chip, .price, .tag { font-family: var(--head); }
h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); line-height: 1.04; margin: 0.15em 0 0.3em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.1; margin: 0 0 0.5em; }
h3 { font-size: 1.25rem; margin: 0.4em 0 0.3em; line-height: 1.2; }
p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.todo { border: 1.5px dashed var(--ginger); border-radius: 6px; padding: 0 5px; background: rgba(242, 140, 40, 0.10); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.eyebrow { color: var(--pink-deep); font-weight: 600; letter-spacing: 0.02em; margin: 0; }
.lede { font-size: 1.1rem; }
.fine { font-size: 0.8rem; opacity: 0.7; margin: 0; }
.more, .link-button { background: none; border: 0; padding: 0; font-family: var(--head); font-weight: 600; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.tag { display: inline-block; background: var(--ink); color: var(--cream); font-weight: 600; font-size: 0.78rem; padding: 2px 12px; border-radius: 999px; }

/* Buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 700; font-size: 1.08rem; text-decoration: none; transition: transform 0.12s, box-shadow 0.12s, background 0.12s; }
.btn-primary { background: var(--pink); color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn-primary:hover { background: var(--pink-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 2.5px solid var(--ink); padding: 11.5px 24px; }
.btn-ghost:hover { background: var(--white); }
.btn-small { padding: 8px 18px; font-size: 0.95rem; background: var(--ink); color: var(--cream); }
.btn-small:hover { background: var(--pink); color: var(--ink); }
.btn-buy { flex: 1; }

/* Header */
.announce { background: var(--pink); text-align: center; font-family: var(--head); font-weight: 600; padding: 9px 12px; min-height: 42px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; position: sticky; top: 0; z-index: 20; background: rgba(255, 246, 233, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo img { width: 132px; }
.menu-button { background: none; border: 0; width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; padding: 0; }
.menu-button span { display: block; width: 24px; height: 3px; border-radius: 3px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 2px solid var(--ink); padding: 8px 18px 18px; flex-direction: column; font-family: var(--head); font-weight: 600; font-size: 1.3rem; }
.nav.is-open { display: flex; }
.nav a { text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--pink); text-underline-offset: 6px; }
.cart-button { background: var(--ink); color: var(--cream); border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.cart-count { background: var(--pink); color: var(--ink); border-radius: 999px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: 0.85rem; }
.cart-count.bump { animation: bump 0.45s ease; }

/* Shared section frame */
.section { max-width: var(--wide); margin: 0 auto; padding: 40px 18px; }
.section.tight { padding-top: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.page-head { max-width: 820px; margin: 0 auto; padding: 34px 18px 18px; text-align: center; }
.page-head .lede { opacity: 0.85; }
.page-head.lost { padding: 80px 18px 120px; }
.crumbs { max-width: var(--wide); margin: 0 auto; padding: 14px 18px 0; display: flex; gap: 8px; font-size: 0.88rem; opacity: 0.75; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Home hero */
.hero { display: grid; gap: 26px; max-width: var(--wide); margin: 0 auto; padding: 26px 18px 34px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 14px; }
.page-head .hero-cta { justify-content: center; }
.hero-note { font-size: 0.9rem; opacity: 0.75; margin: 0; }

/* Home: tabbed hero slider */
.hero-slider { max-width: var(--wide); margin: 0 auto; padding: 14px 18px 30px; }
.slider-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.slider-tabs::-webkit-scrollbar { display: none; }
.slider-tabs button { position: relative; flex: none; overflow: hidden; background: var(--white); border: 2px solid var(--line); border-radius: 999px; padding: 8px 18px; font-family: var(--head); font-weight: 600; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.slider-tabs button:hover { border-color: var(--ink); }
.slider-tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.slider-tabs i { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--pink); }
.hero-slider.is-auto .slider-tabs button[aria-selected="true"] i { animation: tabfill var(--slide-ms, 7000ms) linear forwards; }
.hero-slider.is-paused .slider-tabs i { animation-play-state: paused !important; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; display: grid; gap: 26px; align-items: center; padding-top: 18px; opacity: 0; visibility: hidden; transform: translateX(28px); transition: opacity 0.45s, transform 0.45s, visibility 0s 0.45s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s, transform 0.45s; }
.slide-title { font-size: clamp(2.1rem, 7vw, 3.4rem); line-height: 1.04; margin: 0.15em 0 0.3em; }

/* 3D stage: three cards at different depths that lean towards the pointer */
.stage { perspective: 1100px; width: 84%; max-width: 460px; margin: 10px auto 0; aspect-ratio: 1 / 1.02; }
.stage-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 5deg)) rotateY(var(--ry, -12deg)); transition: transform 0.3s ease-out; }
.stage-card { position: absolute; border-radius: 26px; overflow: hidden; border: 3px solid var(--ink); background: var(--white); box-shadow: 0 26px 44px rgba(43, 43, 43, 0.2); }
.stage-card img { width: 100%; height: 100%; object-fit: cover; }
.stage-card.s1 { inset: 5% 18% 9% 3%; box-shadow: 10px 10px 0 var(--pink); }
.stage-card.s2 { width: 42%; aspect-ratio: 1; right: 0; top: 0; transform: translateZ(80px) rotate(6deg); animation: float 6s ease-in-out infinite; }
.stage-card.s3 { width: 38%; aspect-ratio: 1; right: 5%; bottom: 0; transform: translateZ(140px) rotate(-5deg); animation: float 7s ease-in-out infinite; }
.stage-sticker { position: absolute; left: -3%; top: 9%; transform: translateZ(170px) rotate(-6deg); background: var(--ginger); color: var(--white); font-family: var(--head); font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 2.5px solid var(--ink); font-size: 0.9rem; white-space: nowrap; }
.slide.is-active .stage-card, .niche-hero .stage-card { animation-name: deal, float; animation-duration: 0.7s, 6.5s; animation-delay: 0s, 0.7s; animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1.2), ease-in-out; animation-iteration-count: 1, infinite; animation-fill-mode: both, none; }
.stage-card.s1 { animation-name: deal !important; animation-iteration-count: 1 !important; }
.stage-card.s3 { animation-delay: 0.12s, 0.82s !important; }

/* Niche landing pages: a tinted band behind the hero */
.niche-hero { box-shadow: 0 0 0 100vmax var(--band, transparent); clip-path: inset(0 -100vmax); background: var(--band, transparent); }
body[data-niche="cats"] { --band: #ffe6eb; }
body[data-niche="dogs"] { --band: #ffebd4; }
body[data-niche="gym"] { --band: var(--ink); }
body[data-niche="gym"] .niche-hero { color: var(--cream); }
body[data-niche="gym"] .niche-hero .eyebrow { color: var(--ginger); }
body[data-niche="gym"] .niche-hero .btn-ghost { border-color: var(--cream); color: var(--cream); }
body[data-niche="gym"] .niche-hero .btn-ghost:hover { background: var(--cream); color: var(--ink); }
body[data-niche="gym"] .niche-hero .stage-card { border-color: var(--cream); }
body[data-niche="dogs"] .stage-card.s1, body[data-niche="dogs"] .product-card.is-pick { box-shadow: 10px 10px 0 var(--ginger); }
body[data-niche="gym"] .stage-card.s1 { box-shadow: 10px 10px 0 var(--ginger); }
.niche-tiles { display: grid; gap: 14px; margin-bottom: 22px; }
.niche-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 3px solid var(--ink); aspect-ratio: 16 / 10; text-decoration: none; color: var(--cream); background: var(--white); box-shadow: 6px 6px 0 var(--pink); }
.niche-tile.t-dogs { box-shadow: 6px 6px 0 var(--ginger); }
.niche-tile.t-gym { box-shadow: 6px 6px 0 var(--ink); }
.niche-tile img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.45s ease; }
.niche-tile:hover img { scale: 1.07; }
.tile-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 16px 12px; background: linear-gradient(transparent, rgba(43, 43, 43, 0.86)); display: flex; justify-content: space-between; align-items: baseline; font-family: var(--head); }
.tile-text strong { font-size: 1.6rem; }
.tile-text em { font-style: normal; font-size: 0.9rem; }

/* Best sellers: 3D carousel (a plain scrolling row until the script switches it on) */
.flow { position: relative; }
.flow-track { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px; }
.flow-card { position: relative; flex: none; width: 220px; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 14px; }
.flow-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.flow-card h3 { margin: 10px 14px 2px; }
.flow-card p { margin: 0 14px 10px; font-size: 0.84rem; opacity: 0.78; min-height: 2.6em; }
.flow-card .product-card-foot { padding: 0 14px; align-items: center; }
.flow-nav { display: none; }
.flow.is-ready { height: 372px; perspective: 1300px; overflow: hidden; touch-action: pan-y; user-select: none; cursor: grab; }
.flow.is-ready:active { cursor: grabbing; }
.flow.is-ready .flow-track { position: absolute; inset: 0; display: block; overflow: visible; padding: 0; transform-style: preserve-3d; }
.flow.is-ready .flow-card { position: absolute; left: 50%; top: 8px; margin-left: -110px; transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s, box-shadow 0.3s, border-color 0.3s; will-change: transform; }
.flow.is-ready .flow-card.is-front { border-color: var(--ink); box-shadow: 7px 7px 0 var(--pink); }
.flow.is-ready .flow-card:not(.is-front) { cursor: pointer; }
.flow.is-ready .flow-nav { display: grid; place-items: center; position: absolute; top: 42%; z-index: 200; width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--white); font-size: 1.6rem; line-height: 1; font-family: var(--head); box-shadow: 3px 3px 0 var(--pink); }
.flow-nav:hover { background: var(--pink); }
.flow-prev { left: 4px; }
.flow-next { right: 4px; }

/* Cards that lean towards the pointer */
[data-tilt] { transform: perspective(800px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(var(--lift, 0px)); transition: transform 0.18s ease-out, border-color 0.15s, box-shadow 0.15s; }
.product-card, .gallery-main { position: relative; }
.product-card::after, .gallery-main::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.5), transparent 45%); }
.product-card.is-tilting::after, .gallery-main.is-tilting::after { opacity: 1; }
.product-card.is-pick { border-color: var(--ink); box-shadow: 5px 5px 0 var(--pink); }
.product-card.is-yours::before { content: "For you"; position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--pink); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; font-family: var(--head); font-weight: 600; font-size: 0.78rem; }
.product-grid.picks { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Add to cart: the picture flies to the cart and leaves paw prints */
.fly { position: fixed; z-index: 80; border-radius: 50%; object-fit: cover; pointer-events: none; border: 2.5px solid var(--ink); box-shadow: var(--shadow); }
.paw-pop { position: fixed; z-index: 80; pointer-events: none; font-size: 1.1rem; }

/* Sections fade up as they scroll into view (the script adds .reveal, so nothing hides without it) */
.reveal { opacity: 0; translate: 0 26px; transition: opacity 0.6s ease, translate 0.6s ease; }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* Marquee */
.marquee { background: var(--ink); color: var(--cream); overflow: hidden; padding: 13px 0; font-family: var(--head); font-weight: 600; font-size: 1.1rem; transform: rotate(-1deg) scale(1.02); margin: 8px 0 18px; }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: slide 22s linear infinite; }
.marquee-track span { white-space: nowrap; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-card:hover { --lift: -4px; border-color: var(--ink); box-shadow: 5px 5px 0 var(--pink); }
.product-card-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { margin: 0 0 2px; font-size: 1.25rem; }
.product-card h3 a { text-decoration: none; }
.product-card p { font-size: 0.86rem; opacity: 0.78; margin: 0 0 12px; flex: 1; }
.product-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
.price small { display: block; font-family: var(--body); font-weight: 500; font-size: 0.72rem; color: var(--pink-deep); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.chip { background: var(--white); border: 2px solid var(--line); border-radius: 999px; padding: 7px 18px; font-weight: 600; }
.chip.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Price ladder */
.ladder { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ladder li { background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 9px 4px; text-align: center; display: grid; gap: 1px; line-height: 1.25; transition: border-color 0.15s, box-shadow 0.15s; }
.ladder strong { font-family: var(--head); font-size: 0.95rem; }
.ladder span { font-size: 0.8rem; }
.ladder em { font-style: normal; font-family: var(--head); font-weight: 600; font-size: 0.76rem; color: var(--pink-deep); }
.ladder li.is-now { border-color: var(--ink); box-shadow: 3px 3px 0 var(--pink); }
.save { background: var(--pink); padding: 36px 18px; display: grid; gap: 18px; justify-items: start; }
.save h2 { margin-bottom: 0.2em; }
.save p { margin: 0; }
.save .ladder { width: 100%; max-width: 560px; }
.save .ladder li { border-color: var(--ink); }

/* How it works, cards */
.steps, .cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li, .card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: 5px 5px 0 var(--pink); }
.steps p, .card p { margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--cream); font-family: var(--head); font-weight: 700; font-size: 1.2rem; }
.card-icon { font-size: 1.9rem; }

/* Picture beside text */
.split { display: grid; gap: 24px; max-width: 1100px; margin: 0 auto; padding: 34px 18px; align-items: center; }
.split-media img { border-radius: var(--radius); border: 3px solid var(--ink); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transform: rotate(-2deg); box-shadow: 8px 8px 0 var(--pink); }
.versus { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 0.95rem; }
.versus th, .versus td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.versus thead th { font-family: var(--head); font-size: 0.9rem; }
.versus tbody th { font-weight: 500; }
.versus td:nth-child(2), .versus thead th:nth-child(2) { background: rgba(255, 143, 163, 0.22); font-weight: 600; }
.versus td:nth-child(3) { opacity: 0.65; }

.floor { background: var(--pink); display: grid; gap: 20px; padding: 36px 18px; }
.floor-text { max-width: 440px; }
.floor-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.floor-media video, .floor-media img { border-radius: var(--radius); border: 3px solid var(--ink); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: 100%; }
.floor-media img { transform: translateY(18px) rotate(2deg); }

.story { display: grid; gap: 22px; align-items: center; }
.next-up { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 24px; box-shadow: 8px 8px 0 var(--ginger); }
.next-up .tag { background: var(--ginger); color: var(--white); }
.next-up .btn-small { background: var(--pink); color: var(--ink); }

.promise { padding: 36px 18px; }
.promise-card { max-width: 720px; margin: 0 auto; text-align: center; background: var(--white); border: 3px solid var(--ink); border-radius: 28px; padding: 30px 22px; box-shadow: 8px 8px 0 var(--ginger); }
.promise-paw { font-size: 2.2rem; }
.promise-card p { margin: 0; }

.faq { max-width: 780px; }
.faq details { background: var(--white); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 9px; }
.faq details[open] { border-color: var(--ink); }
.faq p { margin: 10px 0 0; }
.faq-group { font-size: 1.3rem; margin: 26px 0 10px; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }

.community { text-align: center; padding: 34px 18px 46px; }
.community-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 900px; margin: 18px auto 0; }
.community-strip img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 16px; border: 2px solid var(--ink); }
.community-strip img:nth-child(odd) { transform: rotate(-2deg); }
.community-strip img:nth-child(even) { transform: rotate(2deg) translateY(6px); }

/* Product page */
.product { display: grid; gap: 22px; padding: 14px 18px 30px; max-width: var(--wide); margin: 0 auto; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 2px solid var(--line); aspect-ratio: 1; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.gallery-note { position: absolute; left: 12px; bottom: 12px; background: var(--ink); color: var(--cream); font-family: var(--head); font-weight: 600; font-size: 0.82rem; padding: 3px 12px; border-radius: 999px; }
.thumb { position: relative; padding: 0; border: 2.5px solid transparent; border-radius: 14px; overflow: hidden; background: var(--white); aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--ink); }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); font-size: 1.3rem; background: rgba(43, 43, 43, 0.25); }
.buybox h1 { margin-top: 0; }
.legday { background: var(--ink); color: var(--cream); display: grid; gap: 22px; padding: 36px 18px; align-items: center; }
.legday .eyebrow { color: var(--ginger); }
.legday-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.legday-media img { border-radius: var(--radius); border: 3px solid var(--cream); aspect-ratio: 1; object-fit: cover; width: 100%; }
.legday-media a:last-child img { transform: rotate(3deg) translateY(10px); }
.for { font-family: var(--head); font-weight: 500; background: var(--white); border-left: 5px solid var(--pink); border-radius: 0 12px 12px 0; padding: 8px 12px; }
.price-line { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 10px; }
.price-now { font-family: var(--head); font-weight: 700; font-size: 2rem; }
.price-note { opacity: 0.75; }
.buy-row { display: flex; gap: 12px; margin: 16px 0 0; align-items: center; }
.qty { display: inline-flex; align-items: center; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; flex: none; }
.qty button { background: none; border: 0; width: 42px; height: 46px; font-size: 1.3rem; font-family: var(--head); }
.qty button:hover { background: var(--pink); }
.qty output { min-width: 26px; text-align: center; font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
.qty.small button { width: 32px; height: 34px; font-size: 1.1rem; }
.arrives { text-align: center; margin: 14px 0 0; font-size: 0.95rem; }
.trust { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust li { background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; font-size: 0.74rem; line-height: 1.3; display: grid; gap: 4px; }
.trust li > span:first-child { font-size: 1.3rem; }
.trust strong { display: block; font-family: var(--head); font-size: 0.84rem; }
.details { border-top: 1px solid var(--line); padding: 12px 0; }
.details:last-of-type { border-bottom: 1px solid var(--line); }
.details ul { margin: 10px 0 0; padding-left: 20px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--white); border-top: 2px solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform 0.25s ease; }
.sticky-buy.is-shown { transform: none; }
.sticky-buy div { display: flex; flex-direction: column; line-height: 1.2; font-family: var(--head); min-width: 0; }
.sticky-buy .btn { padding: 11px 18px; font-size: 1rem; box-shadow: 0 4px 0 var(--ink); flex: none; }

/* Bundle builder */
.builder-sizes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 22px; }
.builder-sizes button { background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 12px 10px; display: grid; gap: 1px; text-align: center; line-height: 1.25; }
.builder-sizes strong { font-family: var(--head); font-size: 1.15rem; }
.builder-sizes span { font-family: var(--head); font-weight: 600; }
.builder-sizes em { font-style: normal; font-size: 0.8rem; opacity: 0.75; }
.builder-sizes button.is-on { border-color: var(--ink); box-shadow: 4px 4px 0 var(--pink); }
.builder-body { display: grid; gap: 22px; }
.builder-body h2 { font-size: 1.3rem; margin: 0 0 4px; }
.picker-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.picker-hint { font-size: 0.86rem; opacity: 0.75; margin: 0 0 8px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { display: flex; align-items: center; gap: 8px; background: var(--white); border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px 4px 4px; font-family: var(--head); font-weight: 600; }
.slot img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.slot.is-active { border-color: var(--ink); background: var(--pink); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.swatch { padding: 0 0 7px; background: var(--white); border: 2px solid var(--line); border-radius: 16px; overflow: hidden; font-family: var(--head); font-weight: 600; transition: transform 0.15s, border-color 0.15s; }
.swatch img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 5px; }
.swatch:hover { transform: translateY(-2px); border-color: var(--ink); }
.swatch.pop { animation: bump 0.35s ease; }
.builder-foot { position: sticky; bottom: 0; z-index: 5; margin: 22px -18px 0; background: var(--white); border-top: 2px solid var(--ink); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.builder-foot div { display: grid; line-height: 1.25; }
.builder-foot strong { font-family: var(--head); font-size: 1.4rem; }
.builder-foot span { font-size: 0.85rem; color: var(--pink-deep); font-weight: 600; }

/* Gift guide */
.gift-picks { display: grid; gap: 14px; }
.gift-pick { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: 5px 5px 0 var(--pink); }
.gift-pick h2 { font-size: 1.45rem; margin-bottom: 0.2em; }
.gift-tiles { display: flex; gap: 10px; }
.gift-tiles a { flex: 0 1 150px; text-decoration: none; font-family: var(--head); font-weight: 600; text-align: center; }
.gift-tiles img { border-radius: 14px; border: 2px solid var(--line); aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 4px; }
.gift-tiles a:hover img { border-color: var(--ink); }

/* About, contact, policies */
.about-hero { display: grid; gap: 22px; max-width: 1000px; margin: 0 auto; padding: 28px 18px; align-items: center; }
.about-hero img { border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--pink); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.contact { display: grid; gap: 26px; max-width: 980px; }
.contact-form { display: grid; gap: 14px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: 6px 6px 0 var(--pink); }
.contact-form label { display: grid; gap: 5px; font-family: var(--head); font-weight: 600; }
.contact-form input, .contact-form textarea { border: 2px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--cream); font-family: var(--body); font-weight: 400; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); outline: none; }
.contact-side h2 { font-size: 1.2rem; margin: 0 0 4px; }
.contact-side p { margin-bottom: 20px; }
.policy { max-width: 720px; margin: 0 auto; padding: 34px 18px 60px; }
.policy h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
.policy h2 { margin-top: 1.6em; font-size: 1.4rem; }
.policy li { margin-bottom: 0.4em; }
.draft { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 12px; }

/* Cart: drawer and page */
.scrim { position: fixed; inset: 0; background: rgba(43, 43, 43, 0.45); z-index: 40; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--cream); z-index: 50; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2); animation: drawer 0.25s ease; }
.cart > header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart > header h2 { margin: 0; font-size: 1.5rem; }
.cart > header button { background: none; border: 0; font-size: 1.3rem; }
.cart-nudge { background: var(--pink); font-family: var(--head); font-weight: 600; padding: 10px 18px; font-size: 0.95rem; }
.cart-nudge:empty { display: none; }
.cart-nudge .bar { display: block; height: 8px; background: rgba(255, 255, 255, 0.6); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.cart-nudge .bar i { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width 0.3s ease; }
.cart .cart-lines { flex: 1; overflow: auto; padding: 14px 18px; }
.cart-lines { display: grid; gap: 10px; align-content: start; }
.cart-empty { opacity: 0.75; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--white); border: 2px solid var(--line); border-radius: 16px; padding: 10px; }
.line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.line-name { font-family: var(--head); font-weight: 600; text-decoration: none; display: block; }
.line-each { font-size: 0.82rem; opacity: 0.75; }
.line-side { display: grid; justify-items: end; gap: 6px; }
.line-side strong { font-family: var(--head); }
.line .remove { background: none; border: 0; text-decoration: underline; font-size: 0.8rem; padding: 0; opacity: 0.7; }
.cart > footer { padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.cart-row { display: flex; justify-content: space-between; font-size: 0.95rem; }
[data-cart-saving] { color: var(--pink-deep); font-weight: 600; }
.cart-total { display: flex; justify-content: space-between; font-family: var(--head); font-size: 1.3rem; }
.cart-ship { margin: 0; font-size: 0.9rem; }
.cart-page { display: grid; gap: 24px; }
.cart-page .cart-nudge { border-radius: 14px; margin-bottom: 12px; }
.cart-page .more { display: inline-block; margin-top: 16px; }
.summary { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; box-shadow: 6px 6px 0 var(--pink); align-self: start; }
.summary h2 { font-size: 1.4rem; margin: 0; }
.summary .trust { margin: 6px 0 0; }

/* Dialog, offer, toast */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(43, 43, 43, 0.45); }
.modal-card { position: relative; background: var(--cream); border: 3px solid var(--ink); border-radius: 26px; padding: 26px 20px 20px; width: min(440px, 100%); box-shadow: 8px 8px 0 var(--pink); }
.modal-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.2rem; }
.match-options { display: grid; gap: 8px; }
.match-options button { text-align: left; background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; font-family: var(--head); font-weight: 600; font-size: 1rem; }
.match-options button:hover { border-color: var(--ink); transform: translateX(3px); }
.offer { position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 35; background: var(--pink); border: 3px solid var(--ink); border-radius: 22px; padding: 18px 18px 16px; box-shadow: 6px 6px 0 var(--ink); max-width: 400px; animation: rise 0.35s ease; }
body[data-page="product"] .offer { bottom: 92px; }
.offer h2 { font-size: 1.4rem; margin: 0 26px 6px 0; }
.offer p { font-size: 0.9rem; margin: 0 0 10px; }
.offer-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 1.1rem; }
[data-news] div { display: flex; gap: 8px; flex-wrap: wrap; }
[data-news] input { flex: 1 1 170px; min-width: 0; padding: 11px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); }
[data-news] .btn { padding: 10px 18px; font-size: 0.95rem; }
[data-news] .news-done { margin: 10px 0 0; }
.code { background: var(--white); color: var(--ink); border: 2px dashed var(--ink); border-radius: 8px; padding: 2px 10px; font-family: var(--head); letter-spacing: 0.05em; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--cream); font-family: var(--head); font-weight: 600; padding: 11px 20px; border-radius: 999px; box-shadow: var(--shadow); animation: rise 0.25s ease; white-space: nowrap; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding: 40px 18px 24px; margin-top: 30px; }
.footer-grid { max-width: var(--wide); margin: 0 auto 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }
.footer-brand, .footer-news { grid-column: 1 / -1; }
.footer-brand img { filter: brightness(0) invert(1); margin-bottom: 10px; }
.footer-brand p { max-width: 340px; opacity: 0.85; }
.footer-insta { font-family: var(--head); font-weight: 600; color: var(--pink); }
.site-footer h2 { font-size: 1.05rem; margin: 0 0 8px; color: var(--pink); }
.site-footer nav { display: grid; gap: 7px; align-content: start; }
.site-footer nav a { text-decoration: none; opacity: 0.9; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .btn-dark { background: var(--pink); color: var(--ink); }
.site-footer .fine { text-align: center; }

@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes drawer { from { transform: translateX(100%); } }
@keyframes rise { from { translate: 0 30px; opacity: 0; } }
@keyframes tabfill { to { width: 100%; } }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes deal { from { opacity: 0; scale: 0.7; rotate: 14deg; } }
@keyframes sway { 0%, 100% { transform: rotateX(5deg) rotateY(-14deg); } 50% { transform: rotateX(2deg) rotateY(12deg); } }

@media (hover: none) {
  .stage-inner { animation: sway 9s ease-in-out infinite; }
}

@media (min-width: 560px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .gift-picks { grid-template-columns: repeat(2, 1fr); }
  .builder-sizes { grid-template-columns: repeat(4, 1fr); }
  .niche-tiles { grid-template-columns: repeat(3, 1fr); }
  .niche-tiles:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  body[data-page="product"] { padding-bottom: 0; }
  .menu-button { display: none; }
  .nav { display: flex; position: static; flex-direction: row; gap: 24px; padding: 0; border: 0; background: none; font-size: 1rem; font-weight: 500; }
  .nav a { border: 0; padding: 0; }
  .logo img { width: 160px; }
  .site-header { padding: 14px 32px; }
  .section { padding: 60px 32px; }
  .section.tight { padding-top: 12px; }
  .page-head { padding: 56px 32px 22px; }
  .crumbs { padding: 20px 32px 0; }
  .hero { grid-template-columns: 1fr 0.82fr; gap: 56px; padding: 48px 32px 60px; }
  .hero h1, .slide-title { font-size: clamp(3rem, 5.2vw, 4.4rem); }
  .hero-slider { padding: 22px 32px 56px; }
  .stage { width: 100%; margin-top: 0; }
  .slide { grid-template-columns: 1fr 0.82fr; gap: 56px; padding-top: 30px; }
  .flow.is-ready { height: 384px; }
  .product-grid.picks { grid-template-columns: repeat(auto-fit, minmax(190px, 240px)); justify-content: center; gap: 22px; }
  .product-grid.also { grid-template-columns: repeat(6, 1fr); }
  .lede { font-size: 1.2rem; }
  .product-grid { grid-template-columns: repeat(6, 1fr); }
  .product-grid.five { grid-template-columns: repeat(5, 1fr); }
  #shopGrid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .swatches { grid-template-columns: repeat(5, 1fr); }
  .save { grid-template-columns: 1fr auto auto; align-items: center; justify-items: stretch; gap: 36px; padding: 44px max(32px, calc((100vw - 1116px) / 2)); }
  .save .ladder { width: 480px; }
  .steps, .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .split { grid-template-columns: 380px 1fr; gap: 64px; padding: 60px 32px; }
  .floor { grid-template-columns: 1fr 1.1fr; align-items: center; padding: 64px max(32px, calc((100vw - 1116px) / 2)); gap: 48px; }
  .legday { grid-template-columns: 1fr 1fr; padding: 64px max(32px, calc((100vw - 1116px) / 2)); gap: 56px; }
  .story { grid-template-columns: 1.3fr 1fr; gap: 56px; }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 22px 32px 56px; align-items: start; }
  .gallery { position: sticky; top: 96px; }
  .sticky-buy { display: none; }
  .builder-body { grid-template-columns: 1fr 1.4fr; gap: 44px; }
  .builder-foot { margin: 28px 0 0; border: 2px solid var(--ink); border-radius: var(--radius); bottom: 16px; box-shadow: 6px 6px 0 var(--pink); }
  .gift-picks { gap: 22px; }
  .about-hero { grid-template-columns: 1fr 360px; gap: 56px; padding: 56px 32px; }
  .contact { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .cart-page { grid-template-columns: 1.5fr 1fr; gap: 40px; max-width: 1040px; }
  .offer { left: 24px; right: auto; bottom: 24px; }
  body[data-page="product"] .offer { bottom: 24px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.6fr; gap: 32px; }
  .footer-brand, .footer-news { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .cart, .cart-count.bump, .swatch.pop, .offer, .toast, .stage-card, .stage-inner, .slider-tabs i { animation: none !important; }
  .slide, .reveal, [data-tilt], .flow.is-ready .flow-card { transition: none; }
  .reveal { opacity: 1; translate: 0 0; }
}
