/* ═══════════════════════════════════════════════
   MilkyVintage — retro 70s storefront
   ═══════════════════════════════════════════════ */

:root {
  --cream: #F6EEDD;
  --cream-2: #FDF8EC;
  --paper: #FFFDF6;
  --ink: #2E2418;
  --ink-soft: #5C4B38;
  --line: #E4D6BA;

  --orange: #D95B2A;
  --orange-dark: #B84518;
  --mustard: #DFA32B;
  --gold: #F2B33D;
  --olive: #6B7A4F;
  --green: #274435;
  --green-2: #35573F;
  --brown: #7A4A2B;
  --pink: #E9A6A0;
  --purple: #8E6FB0;
  --denim: #4F6D8E;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(46, 36, 24, .12);
  --shadow-lg: 0 24px 60px rgba(46, 36, 24, .18);

  --font-logo: 'Shrikhand', cursive;
  --font-head: 'Fraunces', serif;
  --font-body: 'Karla', sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: var(--cream-2); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* film grain over everything */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -1%); }
  60% { transform: translate(-1%, -2%); }
  80% { transform: translate(1%, 2%); }
}

/* ═══════════ typography helpers ═══════════ */
.kicker {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .6rem;
}
.kicker--light { color: var(--gold); }

.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.h2 em { font-style: italic; font-weight: 400; }

.underline-link {
  position: relative;
  font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 4px;
  cursor: pointer;
}
.underline-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: currentColor;
  transform-origin: right; transition: transform .35s var(--ease-out);
}
.underline-link:hover::after { transform: scaleX(.35); transform-origin: left; }
.underline-link i { font-style: normal; display: inline-block; transition: transform .3s var(--ease-out); }
.underline-link:hover i { transform: translateX(5px); }
.underline-link--light { color: var(--cream-2); }

/* ═══════════ buttons ═══════════ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700; font-size: .92rem;
  letter-spacing: .04em;
  transition: transform .3s var(--ease-bounce), box-shadow .3s, background .3s, color .3s;
  overflow: hidden;
  isolation: isolate;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.96); }

.btn--primary { background: var(--orange); color: var(--cream-2); box-shadow: 0 6px 0 var(--orange-dark); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--orange-dark); }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--orange-dark); }

.btn--dark { background: var(--green); color: var(--cream-2); box-shadow: 0 6px 0 #16281f; }
.btn--dark:hover { transform: translateY(-3px); box-shadow: 0 9px 0 #16281f; }
.btn--dark:active { transform: translateY(2px); box-shadow: 0 3px 0 #16281f; }

.btn--ghost {
  border: 2px solid var(--ink); color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { background: var(--ink); color: var(--cream-2); transform: translateY(-3px); }

.btn--sm { padding: .6rem 1.1rem; font-size: .84rem; }
.btn--full { width: 100%; justify-content: center; }

/* ═══════════ ticker ═══════════ */
.ticker {
  background: var(--orange); color: var(--cream-2);
  overflow: hidden; white-space: nowrap;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .55rem 0;
  position: relative; z-index: 30;
}
.ticker__track { display: inline-flex; animation: ticker 28s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: inline-flex; align-items: center; }
.ticker__group span { padding: 0 1.4rem; }
.ticker__group i { font-style: normal; color: var(--gold); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ═══════════ header ═══════════ */
.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem clamp(1.2rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, padding .3s;
}
.header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(46, 36, 24, .08);
  padding-top: .6rem; padding-bottom: .6rem;
}

.logo {
  font-family: var(--font-logo);
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  line-height: 1;
  display: inline-flex;
  transition: transform .3s var(--ease-bounce);
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 2.5px 2.5px 0 var(--ink);
  white-space: nowrap;
}
.logo:hover { transform: rotate(-2deg) scale(1.04); }
.logo__milky { color: var(--gold); }
.logo__vintage { color: var(--orange); }

.nav { display: flex; gap: clamp(.4rem, 1.5vw, 1rem); }
.nav__link {
  position: relative;
  padding: .45rem .65rem;
  font-weight: 600; font-size: .95rem;
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 3px; border-radius: 3px;
  background: var(--orange);
  transition: width .3s var(--ease-out), left .3s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--orange); }
.nav__link:hover::after, .nav__link.is-active::after { width: 70%; left: 15%; }

.header__actions { display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background .25s, transform .25s var(--ease-bounce);
}
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: rgba(46, 36, 24, .08); transform: translateY(-2px); }

.cart-count {
  position: absolute; top: 1px; right: -1px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  display: grid; place-items: center;
  background: var(--orange); color: var(--cream-2);
  font-size: .68rem; font-weight: 700;
  border-radius: 999px;
  transition: transform .3s var(--ease-bounce);
}
.cart-count.pop { animation: pop .45s var(--ease-bounce); }
@keyframes pop { 40% { transform: scale(1.6); } }

.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; }
.burger span { width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease-out), opacity .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 45;
  background: var(--cream-2);
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 60px) 60px);
  transition: clip-path .6s var(--ease-out);
  visibility: hidden;
}
.mobile-nav__links { margin-top: auto; padding-top: 4.5rem; }
.mobile-nav__note { margin-bottom: auto; padding-bottom: 1.5rem; }
.mobile-nav.is-open { clip-path: circle(150% at calc(100% - 60px) 60px); visibility: visible; }
.mobile-nav__links { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.mobile-nav__links a {
  font-family: var(--font-head); font-size: 2rem; font-weight: 700;
  padding: .35rem 1rem;
  opacity: 0; transform: translateY(18px);
  transition: opacity .4s, transform .5s var(--ease-out), color .25s;
}
.mobile-nav.is-open .mobile-nav__links a { opacity: 1; transform: none; }
.mobile-nav__links a:hover { color: var(--orange); font-style: italic; }
.mobile-nav__links a:nth-child(1) { transition-delay: .12s; }
.mobile-nav__links a:nth-child(2) { transition-delay: .17s; }
.mobile-nav__links a:nth-child(3) { transition-delay: .22s; }
.mobile-nav__links a:nth-child(4) { transition-delay: .27s; }
.mobile-nav__links a:nth-child(5) { transition-delay: .32s; }
.mobile-nav__links a:nth-child(6) { transition-delay: .37s; }
.mobile-nav__links a:nth-child(7) { transition-delay: .42s; }
.mobile-nav__note { color: var(--ink-soft); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }

/* ═══════════ hero ═══════════ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 75% 20%, rgba(242, 179, 61, .18), transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero__inner {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
}
.hero__globe { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; animation: spinY 6s linear infinite; }
@keyframes spinY { to { transform: rotateY(360deg); } }

.hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.2vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin-bottom: 1.4rem;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--orange); }
.hero__line { display: block; overflow: hidden; }
.hero__line span { display: inline-block; transform: translateY(110%); animation: riseUp 1s var(--ease-out) forwards; }
.hero__line:nth-child(1) span { animation-delay: .1s; }
.hero__line:nth-child(2) span { animation-delay: .22s; }
.hero__line:nth-child(3) span { animation-delay: .34s; }
@keyframes riseUp { to { transform: translateY(0); } }

.hero__sub { max-width: 46ch; color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.8rem; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }

.hero__badges {
  display: flex; gap: 2.2rem;
  list-style: none;
}
.hero__badges li { display: flex; flex-direction: column; }
.hero__badges b { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.1; }
.hero__badges span { font-size: .8rem; color: var(--ink-soft); letter-spacing: .06em; }

/* hero art */
.hero__art { position: relative; min-height: 380px; }
.hero__rainbow { width: min(100%, 520px); height: auto; margin: 0 auto; }
.sunburst { transform-origin: 474px 96px; animation: sunPulse 5s ease-in-out infinite; }
@keyframes sunPulse { 50% { transform: scale(1.06) rotate(4deg); } }
.rainbow-arcs path { stroke-dasharray: 800; stroke-dashoffset: 800; animation: drawArc 1.6s var(--ease-out) forwards; }
.rainbow-arcs path:nth-child(1) { animation-delay: .2s; }
.rainbow-arcs path:nth-child(2) { animation-delay: .35s; }
.rainbow-arcs path:nth-child(3) { animation-delay: .5s; }
.rainbow-arcs path:nth-child(4) { animation-delay: .65s; }
.rainbow-arcs path:nth-child(5) { animation-delay: .8s; }
@keyframes drawArc { to { stroke-dashoffset: 0; } }
.cloud { animation: cloudBob 6s ease-in-out infinite; }
.cloud--right { animation-delay: -3s; }
@keyframes cloudBob { 50% { transform: translateY(-10px); } }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}

/* the vintage pair breathes gently in the breeze */
.hero__muse {
  transform-origin: 280px 620px;
  animation: museSway 7s ease-in-out infinite;
}
.hero__man {
  transform-origin: 280px 620px;
  animation: museSway 7s ease-in-out infinite;
  animation-delay: -3.5s;
}
@keyframes museSway {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50% { transform: translateY(-9px) rotate(.6deg); }
}
.hero__daisy {
  transform-origin: 326px 76px;
  animation: daisySpin 12s linear infinite;
}
@keyframes daisySpin { to { transform: rotate(360deg); } }

.sticker {
  position: absolute; font-size: clamp(1.6rem, 3vw, 2.4rem);
  animation: spinFloat 7s ease-in-out infinite;
  user-select: none;
}
.sticker--peace { left: -2%; top: 8%; animation-delay: -1s; }
.sticker--star { right: 8%; top: 2%; animation-delay: -3s; }
.sticker--disc { left: 30%; bottom: -4%; animation-delay: -5s; }
@keyframes spinFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-14px) rotate(10deg); }
}

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero__wave svg { width: 100%; height: 40px; }

/* ═══════════ category tiles ═══════════ */
.cats { background: var(--cream-2); padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.2rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem); }
.cats__grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.9rem, 2vw, 1.4rem);
}
.cat-tile {
  position: relative;
  display: flex; align-items: center; gap: .8rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  color: var(--cream-2);
  text-align: left;
  overflow: hidden;
  transition: transform .35s var(--ease-bounce), box-shadow .35s;
}
.cat-tile::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 255, 255, .12);
  transform: translateY(101%);
  transition: transform .4s var(--ease-out);
}
.cat-tile:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.cat-tile:hover::before { transform: translateY(0); }

.cat-tile--orange { background: var(--orange); }
.cat-tile--mustard { background: var(--mustard); color: #4a3410; }
.cat-tile--green { background: var(--green-2); }
.cat-tile--purple { background: var(--purple); }

.cat-tile__art { position: relative; width: 74px; flex: 0 0 auto; transition: transform .4s var(--ease-bounce); }
.cat-tile:hover .cat-tile__art { transform: rotate(-8deg) scale(1.12); }
.cat-tile__art svg { width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18)); }

.cat-tile__txt { position: relative; }
.cat-tile__txt h3 { font-family: var(--font-head); font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.1; margin-bottom: .35rem; }
.cat-tile__link { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .3rem; }
.cat-tile__link i { font-style: normal; transition: transform .3s var(--ease-out); }
.cat-tile:hover .cat-tile__link i { transform: translateX(5px); }

/* ═══════════ shop ═══════════ */
.shop { background: var(--cream-2); padding: 0 clamp(1.2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); }
.shop__head {
  max-width: 1280px; margin: 0 auto 1.4rem;
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.shop__search {
  position: relative; display: flex; align-items: center;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: .15rem .4rem .15rem 1rem;
  transition: border-color .3s, box-shadow .3s;
  width: min(320px, 100%);
}
.shop__search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(217, 91, 42, .15); }
.shop__search svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-soft); stroke-width: 2; flex: 0 0 auto; }
.shop__search input {
  border: 0; background: none; outline: none;
  font: inherit; color: var(--ink);
  padding: .55rem .6rem;
  width: 100%;
}

.dept-chips {
  max-width: 1280px; margin: 0 auto 1.6rem;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.chip {
  padding: .5rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700; font-size: .88rem;
  transition: background .25s, color .25s, transform .25s var(--ease-bounce), box-shadow .25s;
}
.chip:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.chip.is-active { background: var(--ink); color: var(--cream-2); box-shadow: 0 4px 0 rgba(46,36,24,.35); }

.shop__layout {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: start;
}

/* filters */
.filters {
  position: sticky; top: 90px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.filters__head h3 { font-family: var(--font-head); font-size: 1.25rem; }
.filters__clear { font-size: .8rem; font-weight: 700; color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.filters__clear:hover { color: var(--orange-dark); }
.filters__close { display: none; font-size: 1.1rem; }
.filters__apply { display: none; margin-top: 1rem; width: 100%; justify-content: center; }

.fgroup { border-top: 1px dashed var(--line); padding: .95rem 0; }
.fgroup__title { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .7rem; }

.fcheck {
  display: flex; align-items: center; gap: .6rem;
  padding: .28rem 0;
  cursor: pointer;
  font-size: .95rem;
  transition: transform .2s var(--ease-out), color .2s;
}
.fcheck:hover { transform: translateX(4px); color: var(--orange); }
.fcheck input { position: absolute; opacity: 0; pointer-events: none; }
.fcheck .box {
  width: 19px; height: 19px; flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 6px;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.fcheck .box::after {
  content: "✓"; font-size: .75rem; font-weight: 700; color: var(--cream-2);
  transform: scale(0); transition: transform .25s var(--ease-bounce);
}
.fcheck input:checked + .box { background: var(--orange); border-color: var(--orange); }
.fcheck input:checked + .box::after { transform: scale(1); }
.fcheck input:focus-visible + .box { outline: 3px solid var(--orange); outline-offset: 2px; }
.fcheck .fcount { margin-left: auto; font-size: .78rem; color: var(--ink-soft); }

.fgroup__body--swatches { display: flex; flex-wrap: wrap; gap: .55rem; }
.swatch {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2.5px solid rgba(46, 36, 24, .25);
  transition: transform .25s var(--ease-bounce), box-shadow .25s, border-color .25s;
}
.swatch:hover { transform: scale(1.18) rotate(8deg); }
.swatch.is-active { border-color: var(--ink); box-shadow: 0 0 0 3px var(--cream-2), 0 0 0 5px var(--ink); }
.swatch.is-active::after {
  content: "✓"; position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff; font-size: .72rem; font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

.fgroup__body--sizes, .fgroup__body--eras { display: flex; flex-wrap: wrap; gap: .45rem; }
.sizebtn {
  min-width: 40px; padding: .35rem .6rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-weight: 700; font-size: .84rem;
  transition: all .25s var(--ease-out);
}
.sizebtn:hover { border-color: var(--ink); transform: translateY(-2px); }
.sizebtn.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream-2); }

input[type="range"] {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--orange) var(--fill, 100%), var(--line) var(--fill, 100%));
  outline-offset: 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--cream-2);
  border: 3px solid var(--orange);
  cursor: grab;
  transition: transform .2s var(--ease-bounce);
  box-shadow: 0 2px 6px rgba(46,36,24,.3);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cream-2); border: 3px solid var(--orange); cursor: grab;
}
.range-labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-soft); margin-top: .35rem; }

.filters-backdrop {
  position: fixed; inset: 0; z-index: 54;
  background: rgba(46, 36, 24, .45);
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
}
.filters-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* toolbar */
.shop__toolbar {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.filters-toggle { display: none; }
.filters-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.shop__count { font-size: .9rem; color: var(--ink-soft); }
.sort { margin-left: auto; display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; }
.sort select {
  font: inherit; font-weight: 700;
  padding: .45rem 2rem .45rem .9rem;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E2418' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center / 14px;
  color: var(--ink);
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .25s;
}
.sort select:hover, .sort select:focus { border-color: var(--orange); outline: none; }

/* active filter pills */
.active-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.active-filters:empty { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--green); color: var(--cream-2);
  border-radius: 999px;
  padding: .3rem .5rem .3rem .8rem;
  font-size: .8rem; font-weight: 700;
  animation: pillIn .35s var(--ease-bounce);
}
.pill button { color: inherit; opacity: .7; font-size: .85rem; line-height: 1; padding: 2px 4px; }
.pill button:hover { opacity: 1; }
@keyframes pillIn { from { transform: scale(.6); opacity: 0; } }

/* ═══════════ product cards ═══════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.p-card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
  animation: cardIn .55s var(--ease-out) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.p-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--ink); }

.p-card__media {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(242, 179, 61, .14), transparent 55%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(46, 36, 24, .022) 14px 28px),
    var(--cream);
  overflow: hidden;
  cursor: pointer;
}
.p-card__art { width: 68%; transition: transform .5s var(--ease-out); transform-origin: 50% 6%; }
.p-card:hover .p-card__art { animation: hangerSwing 1.6s var(--ease-out); }
@keyframes hangerSwing {
  0% { transform: rotate(0); } 18% { transform: rotate(5deg) translateY(-4px); }
  40% { transform: rotate(-4deg); } 62% { transform: rotate(2.5deg); }
  80% { transform: rotate(-1.2deg); } 100% { transform: rotate(0); }
}
.p-card__art svg { width: 100%; height: auto; filter: drop-shadow(0 10px 12px rgba(46, 36, 24, .16)); }

.p-card__badge {
  position: absolute; top: 12px; left: 12px;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--gold); color: #4a3410;
  transform: rotate(-4deg);
}
.p-card__badge--rare { background: var(--orange); color: var(--cream-2); }
.p-card__badge--one { background: var(--purple); color: var(--cream-2); }

.p-card__era {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: .95rem; color: var(--ink-soft);
  background: var(--cream-2);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: .15rem .6rem;
  transition: transform .3s var(--ease-bounce), background .3s, color .3s;
}
.p-card:hover .p-card__era { transform: rotate(6deg) scale(1.08); background: var(--ink); color: var(--cream-2); }

.p-card__heart {
  position: absolute; bottom: 12px; right: 12px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--cream-2);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  transition: transform .3s var(--ease-bounce), background .3s;
  z-index: 2;
}
.p-card__heart svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; transition: fill .25s, stroke .25s; }
.p-card__heart:hover { transform: scale(1.15) rotate(-6deg); }
.p-card__heart.is-loved { background: var(--pink); border-color: var(--pink); animation: pop .45s var(--ease-bounce); }
.p-card__heart.is-loved svg { fill: var(--orange); stroke: var(--orange); }

.p-card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: .7rem;
  border-radius: 12px;
  background: var(--ink); color: var(--cream-2);
  font-weight: 700; font-size: .85rem;
  letter-spacing: .06em;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transform: translateY(calc(100% + 16px));
  transition: transform .38s var(--ease-out), background .25s;
  z-index: 1;
}
.p-card__quick:hover { background: var(--orange); }
.p-card:hover .p-card__quick, .p-card:focus-within .p-card__quick { transform: translateY(0); }
.p-card:hover .p-card__heart, .p-card:focus-within .p-card__heart { transform: translateY(-52px); }
.p-card:hover .p-card__heart:hover { transform: translateY(-52px) scale(1.15) rotate(-6deg); }

.p-card__body { padding: 1rem 1.1rem 1.15rem; }
.p-card__name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.25; margin-bottom: .2rem; }
.p-card__meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .65rem; }
.p-card__price { font-weight: 700; font-size: 1rem; color: var(--orange-dark); }
.p-card__dept { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

.p-card__dots { display: flex; gap: .4rem; }
.dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(46, 36, 24, .2);
  transition: transform .25s var(--ease-bounce), border-color .25s, box-shadow .25s;
}
.dot:hover { transform: scale(1.25); }
.dot.is-active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }

/* empty state */
.shop__empty { text-align: center; padding: 4rem 1rem; }
.shop__empty-art { font-size: 3rem; margin-bottom: 1rem; animation: floaty 4s ease-in-out infinite; }
.shop__empty h3 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: .4rem; }
.shop__empty p { color: var(--ink-soft); margin-bottom: 1.4rem; }

/* ═══════════ collection banner ═══════════ */
.collection { padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3rem); background: var(--cream-2); }
.collection__inner {
  position: relative;
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(105deg, var(--gold) 0 46%, var(--green-2) 46% 100%);
  box-shadow: var(--shadow);
}
.collection__copy { padding: clamp(2rem, 4.5vw, 4rem); color: #4a3410; }
.collection__copy .h2 { margin-bottom: .8rem; }
.collection__copy p { max-width: 40ch; margin-bottom: 1.6rem; font-weight: 500; }
.collection__art {
  position: relative;
  min-height: 320px; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 2%;
  padding: 2rem 1.5rem;
}
.collection__art > div { width: 26%; animation: floaty 6s ease-in-out infinite; }
.collection__art > div:nth-child(2) { animation-delay: -2s; width: 30%; }
.collection__art > div:nth-child(3) { animation-delay: -4s; }
.collection__art svg { filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .28)); }

/* ═══════════ mystery crate ═══════════ */
.mystery { background: var(--cream-2); padding: 0 clamp(1.2rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem); }
.mystery__inner {
  max-width: 1280px; margin: 0 auto;
  background: var(--purple);
  color: var(--cream-2);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mystery__inner::before {
  content: "?";
  position: absolute; right: -30px; bottom: -110px;
  font-family: var(--font-head); font-style: italic;
  font-size: 18rem; line-height: 1;
  opacity: .08;
}
.mystery .kicker { color: var(--gold); }
.mystery .h2 em { color: var(--gold); }
.mystery__art { position: relative; display: grid; place-items: center; min-height: 260px; }
.mystery__crate {
  width: min(320px, 82%);
  animation: crateBob 4.5s ease-in-out infinite;
}
.mystery__inner:hover .mystery__crate { animation: crateShake .55s ease-in-out infinite; }
@keyframes crateBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes crateShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-2.5deg) translateY(-5px); }
  75% { transform: rotate(2.5deg) translateY(-2px); }
}
.mystery__q {
  position: absolute;
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  color: var(--gold);
  animation: spinFloat 6s ease-in-out infinite;
  user-select: none;
}
.mystery__q--1 { font-size: 2.6rem; left: 8%; top: 4%; }
.mystery__q--2 { font-size: 1.8rem; right: 10%; top: 16%; animation-delay: -2s; }
.mystery__q--3 { font-size: 2.1rem; left: 14%; bottom: 6%; animation-delay: -4s; }
.mystery__lead { opacity: .9; max-width: 48ch; margin: .8rem 0 1.2rem; }
.mystery__list {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem 1.4rem;
  margin-bottom: 1.4rem;
}
.mystery__list li { position: relative; padding-left: 1.5rem; font-size: .95rem; }
.mystery__list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.mystery__price { display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1.3rem; }
.mystery__price b { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--gold); }
.mystery__price span { opacity: .85; font-weight: 600; }
.mystery__note { margin-top: .9rem; font-size: .78rem; opacity: .75; letter-spacing: .1em; text-transform: uppercase; }

/* ═══════════ journal ═══════════ */
.journal { background: var(--cream-2); padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3rem); }
.journal__head {
  max-width: 1280px; margin: 0 auto 1.8rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.journal__grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.j-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s;
  cursor: pointer;
}
.j-card:hover { transform: translateY(-8px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.j-card__img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  transition: filter .4s;
}
.j-card__img::before { content: ""; position: absolute; inset: 0; transition: transform .6s var(--ease-out); }
.j-card:hover .j-card__img::before { transform: scale(1.08) rotate(1deg); }
.j-card__img--rack::before { background: linear-gradient(160deg, var(--olive), var(--green)); }
.j-card__img--jacket::before { background: linear-gradient(160deg, var(--brown), #4a2c17); }
.j-card__img--vinyl::before { background: linear-gradient(160deg, var(--purple), #503a6e); }
.j-card__img::after {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 3.4rem;
  transition: transform .5s var(--ease-bounce);
}
.j-card__img--rack::after { content: "🧥"; }
.j-card__img--jacket::after { content: "🏍️"; }
.j-card__img--vinyl::after { content: "🎷"; }
.j-card:hover .j-card__img::after { transform: scale(1.25) rotate(-8deg); }
.j-card__tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--cream-2); color: var(--ink);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}
.j-card__body { padding: 1.2rem 1.3rem 1.4rem; }
.j-card__body h3 { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.3; margin-bottom: .45rem; transition: color .25s; }
.j-card:hover .j-card__body h3 { color: var(--orange); }
.j-card__body p { font-size: .92rem; color: var(--ink-soft); margin-bottom: .9rem; }

/* ═══════════ about ═══════════ */
.about { background: var(--cream-2); padding: 0 clamp(1.2rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem); }
.about__inner {
  max-width: 1280px; margin: 0 auto;
  background: var(--green);
  color: var(--cream-2);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about__inner::before {
  content: "✦";
  position: absolute; right: -30px; top: -50px;
  font-size: 14rem; opacity: .07;
  animation: spinSlow 30s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.about__story .h2 { margin-bottom: 1rem; }
.about__story p { max-width: 52ch; opacity: .85; margin-bottom: 1.4rem; }
.about__quote {
  border-left: 3px solid var(--gold);
  padding-left: clamp(1.2rem, 3vw, 2rem);
  align-self: center;
}
.about__quotemark { width: 38px; color: var(--gold); margin-bottom: 1rem; }
.about__quote blockquote { font-family: var(--font-head); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.45; margin-bottom: 1rem; }
.stars { color: var(--gold); letter-spacing: .2em; }
.about__quote cite { display: block; font-style: normal; font-weight: 700; margin-top: .3rem; letter-spacing: .08em; }

/* ═══════════ newsletter ═══════════ */
.news { background: var(--cream-2); padding: 0 clamp(1.2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); }
.news__inner {
  position: relative;
  max-width: 1280px; margin: 0 auto;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
}
.news__blob {
  position: absolute; left: -60px; top: -80px;
  width: 260px; height: 260px;
  background: var(--pink);
  border-radius: 46% 54% 60% 40% / 50% 40% 60% 50%;
  opacity: .55;
  animation: blob 9s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { border-radius: 46% 54% 60% 40% / 50% 40% 60% 50%; transform: rotate(0); }
  50% { border-radius: 55% 45% 42% 58% / 45% 58% 42% 55%; transform: rotate(12deg) scale(1.06); }
}
.news__copy { position: relative; }
.news__form { position: relative; display: flex; flex-wrap: wrap; gap: .7rem; }
.news__form input {
  flex: 1 1 220px;
  font: inherit;
  padding: .95rem 1.3rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.news__form input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(39, 68, 53, .15); }
.news__note { flex-basis: 100%; font-size: .78rem; color: var(--ink-soft); }
.news__note.is-success { color: var(--green-2); font-weight: 700; }
.news__stamp {
  position: absolute; right: 34px; bottom: 24px;
  width: 110px; height: 110px;
  border: 2px dashed var(--orange);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--orange);
  font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  text-align: center;
  transform: rotate(-12deg);
  animation: spinSlow 40s linear infinite reverse;
  opacity: .8;
  padding: 12px;
}

/* ═══════════ footer ═══════════ */
.footer {
  position: relative;
  background: var(--green);
  color: var(--cream-2);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3rem) 0;
  overflow: hidden;
}
.footer__inner {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: 2.5rem;
}
.logo--footer { font-size: 1.6rem; margin-bottom: .9rem; text-shadow: 2.5px 2.5px 0 rgba(0, 0, 0, .4); -webkit-text-stroke: 1.2px rgba(0,0,0,.5); }
.footer__brand p { opacity: .75; font-size: .92rem; max-width: 26ch; margin-bottom: 1.2rem; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1.5px solid rgba(253, 248, 236, .3);
  border-radius: 50%;
  transition: background .3s, transform .3s var(--ease-bounce), border-color .3s;
}
.footer__social a:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-4px) rotate(8deg); }
.footer__social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.footer__col h4 {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.footer__col a {
  display: block;
  padding: .22rem 0;
  font-size: .93rem;
  opacity: .8;
  transition: opacity .25s, transform .25s var(--ease-out), color .25s;
}
.footer__col a:hover { opacity: 1; color: var(--gold); transform: translateX(5px); }
.footer__col address { font-style: normal; opacity: .8; font-size: .93rem; line-height: 1.7; }
.footer__hours { opacity: .8; font-size: .93rem; margin-top: .7rem; line-height: 1.7; }

.footer__bottom {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
  border-top: 1px solid rgba(253, 248, 236, .18);
  padding: 1.3rem 0 5.5rem;
  font-size: .84rem; opacity: .8;
}
.footer__bottom div { display: flex; gap: 1.5rem; }
.footer__bottom a:hover { color: var(--gold); }

.footer__watermark {
  position: absolute; left: 50%; bottom: -.18em;
  transform: translateX(-50%);
  font-family: var(--font-logo);
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: 1;
  color: rgba(253, 248, 236, .05);
  white-space: nowrap;
  pointer-events: none;
}

/* ═══════════ cart drawer ═══════════ */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(46, 36, 24, .5);
  opacity: 0; pointer-events: none;
  transition: opacity .4s;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71;
  width: min(420px, 92vw);
  background: var(--cream-2);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .5s var(--ease-out), visibility 0s .5s;
  box-shadow: -20px 0 60px rgba(46, 36, 24, .25);
}
.cart-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .5s var(--ease-out);
}
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 2px dashed var(--line);
}
.cart-drawer__head h3 { font-family: var(--font-head); font-size: 1.4rem; }
.cart-drawer__head span { color: var(--ink-soft); font-size: 1rem; }

.cart-drawer__ship { padding: 1rem 1.4rem 0; font-size: .85rem; }
.cart-drawer__ship b { color: var(--orange); }
.shipbar { height: 8px; border-radius: 4px; background: var(--line); margin-top: .5rem; overflow: hidden; }
.shipbar__fill {
  height: 100%; width: 0%;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, var(--orange) 0 10px, var(--gold) 10px 20px);
  background-size: 28px 28px;
  transition: width .6s var(--ease-out);
  animation: stripes 1.2s linear infinite;
}
@keyframes stripes { to { background-position: 28px 0; } }

.cart-drawer__items { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: .9rem; }
.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: .9rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: .7rem;
  animation: cardIn .4s var(--ease-out);
}
.cart-item.is-removing { transition: all .35s var(--ease-out); opacity: 0; transform: translateX(40px); }
.cart-item__art { background: var(--cream); border-radius: 10px; display: grid; place-items: center; padding: 6px; }
.cart-item__art svg { width: 100%; height: auto; }
.cart-item__info h4 { font-family: var(--font-head); font-size: .98rem; line-height: 1.2; }
.cart-item__info p { font-size: .78rem; color: var(--ink-soft); margin: .15rem 0 .45rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 26px; height: 26px; font-weight: 700; transition: background .2s; }
.qty button:hover { background: var(--line); }
.qty span { min-width: 26px; text-align: center; font-size: .85rem; font-weight: 700; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item__price { font-weight: 700; color: var(--orange-dark); }
.cart-item__remove { font-size: .78rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.cart-item__remove:hover { color: var(--orange); }

.cart-drawer__empty { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; text-align: center; color: var(--ink-soft); }
.cart-drawer__empty span { font-size: 3rem; animation: floaty 4s ease-in-out infinite; }
.cart-drawer.is-empty .cart-drawer__empty { display: flex; }
.cart-drawer.is-empty .cart-drawer__items, .cart-drawer.is-empty .cart-drawer__ship { display: none; }

.cart-drawer__foot { padding: 1.2rem 1.4rem; border-top: 2px dashed var(--line); }
.cart-drawer__total { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: .9rem; }
.cart-drawer__total b { font-family: var(--font-head); font-size: 1.3rem; }

/* ═══════════ quick view modal ═══════════ */
.modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 1.2rem;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s .45s;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(46, 36, 24, .55);
  opacity: 0; transition: opacity .35s;
}
.modal__card {
  position: relative;
  width: min(820px, 100%);
  max-height: min(88vh, 720px);
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  transform: translateY(40px) scale(.95); opacity: 0;
  transition: transform .45s var(--ease-out), opacity .35s;
  box-shadow: var(--shadow-lg);
}
.modal.is-open { pointer-events: auto; visibility: visible; transition: none; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__card { transform: none; opacity: 1; }

.qv { display: grid; grid-template-columns: 1fr 1fr; flex: 1; min-height: 0; overflow-y: auto; }
.qv__media {
  position: relative;
  display: grid; place-items: center;
  padding: 2.5rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(242, 179, 61, .16), transparent 55%),
    var(--cream);
  min-height: 340px;
}
.qv__media > div { width: 78%; }
.qv__era { position: absolute; top: 16px; left: 16px; font-family: var(--font-head); font-style: italic; font-weight: 700; background: var(--cream-2); border: 1.5px solid var(--line); border-radius: 999px; padding: .2rem .7rem; }
.qv__body { padding: 2rem 2.2rem; }
.qv__close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--cream-2);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font-size: 1rem;
  transition: transform .3s var(--ease-bounce), background .3s, color .3s;
  z-index: 2;
}
.qv__close:hover { transform: rotate(90deg); background: var(--ink); color: var(--cream-2); }
.qv__name { font-family: var(--font-head); font-size: 1.7rem; line-height: 1.15; margin-bottom: .3rem; }
.qv__price { font-size: 1.3rem; font-weight: 700; color: var(--orange-dark); margin-bottom: .9rem; }
.qv__desc { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.3rem; }
.qv__label { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.qv__label b { color: var(--ink); }
.qv__colors { display: flex; gap: .5rem; margin-bottom: 1.2rem; }
.qv__colors .dot { width: 28px; height: 28px; }
.qv__sizes { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; }
.qv__note { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .82rem; color: var(--ink-soft); }
.qv__note svg { width: 16px; height: 16px; fill: none; stroke: var(--olive); stroke-width: 2; }

/* ═══════════ toast ═══════════ */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  transform: translate(-50%, 80px);
  background: var(--ink); color: var(--cream-2);
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: .92rem;
  opacity: 0;
  transition: transform .45s var(--ease-bounce), opacity .35s;
  pointer-events: none;
  max-width: 90vw; text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ═══════════ to top ═══════════ */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--orange); color: var(--cream-2);
  border-radius: 50%;
  box-shadow: var(--shadow);
  transform: translateY(90px);
  transition: transform .4s var(--ease-bounce), background .3s;
}
.to-top.is-visible { transform: translateY(0); }
.to-top:hover { background: var(--ink); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ═══════════ scroll reveal ═══════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ═══════════ responsive ═══════════ */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: flex; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-bottom: 3rem; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__badges { justify-content: center; gap: 1.6rem; }
  .hero__art { width: min(480px, 88vw); margin: 0 auto; min-height: 0; }

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

  .shop__layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: 55;
    max-height: 82vh; overflow-y: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border: 0;
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .5s var(--ease-out), visibility 0s .5s;
    box-shadow: 0 -20px 60px rgba(46, 36, 24, .3);
    padding-bottom: 1.6rem;
  }
  .filters.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform .5s var(--ease-out);
  }
  .filters__close { display: block; }
  .filters__apply { display: inline-flex; }
  .filters-toggle { display: inline-flex; }

  .collection__inner { grid-template-columns: 1fr; background: var(--gold); }
  .collection__art { background: var(--green-2); min-height: 260px; }

  .journal__grid { grid-template-columns: 1fr; max-width: 560px; }

  .mystery__inner { grid-template-columns: 1fr; }
  .mystery__art { min-height: 220px; }

  .about__inner { grid-template-columns: 1fr; }
  .about__quote { border-left: 0; border-top: 3px solid var(--gold); padding: 1.5rem 0 0; }

  .news__inner { grid-template-columns: 1fr; }
  .news__stamp { display: none; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .ticker { font-size: .68rem; }
  .header { gap: .6rem; padding-inline: .9rem; }
  .header__actions { gap: 0; }
  .icon-btn--account { display: none; }
  .logo { font-size: 1.3rem; }
  .mobile-nav__note { padding: 0 1.2rem; text-align: center; letter-spacing: .06em; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .p-card__body { padding: .8rem .85rem .9rem; }
  .p-card__name { font-size: .92rem; }
  .p-card__quick { font-size: .78rem; padding: .55rem; }
  .cats__grid { grid-template-columns: 1fr; }
  .cat-tile { padding: 1rem 1.1rem; }
  .shop__toolbar { flex-wrap: wrap; }
  .sort { margin-left: 0; flex-basis: 100%; }
  .sort select { flex: 1; }
  .hero__badges { gap: 1.2rem; }
  .mystery__list { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
  .qv { grid-template-columns: 1fr; }
  .qv__media { min-height: 260px; }
  .qv__body { padding: 1.5rem 1.4rem 2rem; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__line span { transform: none; }
}
