/* ===== Design tokens ===== */
:root {
  --ink: #111111;
  --ink-soft: #4a4a4a;
  --line: #e4e4e2;
  --bg: #f4f3f1;
  --paper: #ffffff;
  --dark: #141414;
  --dark-soft: #9a9a9a;
  --accent: #111111;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .28);
  --wrap: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ===== Announcement ===== */
.announce {
  background: var(--dark);
  color: #f2f2f2;
  font-size: 11px;
  letter-spacing: .12em;
}
.announce__inner { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.announce__msg { font-weight: 500; }
.announce__links { display: flex; gap: 10px; align-items: center; }
.announce__links a { opacity: .8; transition: opacity .2s; }
.announce__links a:hover { opacity: 1; }
.announce__links span { opacity: .35; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 243, 241, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 74px;
}
.nav { display: flex; gap: 30px; }
.nav__link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  position: relative;
  padding: 4px 0;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--ink);
  transition: width .3s var(--ease);
}
.nav__link:hover::after { width: 100%; }

.logo {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .1em;
  padding-left: .1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo__img { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; display: block; }
.logo__img--footer { height: 60px; width: 60px; margin-bottom: 16px; }

/* dripping wordmark — liquid blobs merged by an SVG goo filter */
.drip-logo { position: relative; display: inline-block; font-weight: 800; font-size: 25px; letter-spacing: .01em; line-height: 1; color: var(--ink); }
.drip-logo__text { position: relative; z-index: 1; }
.goo-defs { position: absolute; width: 0; height: 0; }
.goo {
  position: absolute; left: 0; right: 0; top: 68%; height: 46px;
  filter: url(#goo-filter); pointer-events: none; color: inherit;
}
.blob { position: absolute; top: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: currentColor; }
/* the resting bead that hangs off the letters (always there = "drippy") */
.blob--a { top: -3px; width: 9px; height: 9px; margin-left: -4.5px; }
/* the bead that swells, stretches a neck and pinches off */
.blob--f { animation: gooDrip 4.2s cubic-bezier(.45,.05,.75,.6) infinite; }
@keyframes gooDrip {
  0%   { transform: translateY(-4px) scale(.15); }   /* hidden (goo threshold clips it) */
  18%  { transform: translateY(-2px) scale(1); }     /* bead swells at the letter */
  34%  { transform: translateY(5px)  scale(1.1); }   /* pulls down — goo stretches a neck */
  52%  { transform: translateY(13px) scale(.95); }   /* pinches off */
  74%  { transform: translateY(26px) scale(.85); }   /* falls */
  100% { transform: translateY(42px) scale(.4); }    /* fades out low + small */
}
.drip-logo--footer { color: #fff; font-size: 24px; margin-bottom: 16px; }
@media (prefers-reduced-motion: reduce) { .blob--f { animation: none; } .blob--f { display: none; } }

.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.icon-btn {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  color: var(--ink-soft);
  transition: color .2s;
}
.icon-btn:hover { color: var(--ink); }
.icon-btn__cart em { font-style: normal; }

.burger { display: none; flex-direction: column; gap: 4px; padding: 6px; }
.burger span { width: 22px; height: 2px; background: var(--ink); transition: .3s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  min-height: 620px;
  display: grid;
  align-content: center;
  padding-top: 40px;
  padding-bottom: 60px;
}
.hero__kicker {
  position: absolute;
  top: 60px; left: 28px;
  display: flex; flex-direction: column;
  font-size: 12px; font-weight: 700; letter-spacing: .32em;
  line-height: 2.1;
  z-index: 3;
}
.hero__kicker span:first-child { text-decoration: underline; text-underline-offset: 4px; }

.hero__word {
  font-size: clamp(120px, 27vw, 360px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .82;
  text-align: center;
  position: relative;
  z-index: 1;
  color: var(--ink);
  user-select: none;
}

.hero__figure {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  height: 108%;
  width: auto;
  max-width: none;
  z-index: 2;
  object-fit: contain;
  filter: grayscale(1) contrast(1.03);
  -webkit-mask-image: radial-gradient(120% 120% at 50% 40%, #000 60%, transparent 100%);
  mask-image: radial-gradient(120% 120% at 50% 40%, #000 60%, transparent 100%);
  pointer-events: none;
}

.hero__meta {
  position: absolute;
  bottom: 120px; right: 28px;
  display: flex; flex-direction: column;
  font-size: 12px; font-weight: 700; letter-spacing: .3em;
  line-height: 1.9;
  text-align: right;
  z-index: 3;
}
.hero__cta {
  position: absolute;
  bottom: 46px; left: 28px;
  display: flex; align-items: center; gap: 26px;
  z-index: 3;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  padding: 15px 30px;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { transform: translateY(-2px); background: #000; }
.btn--ghost { padding: 12px 0; border-bottom: 1.5px solid var(--ink); }
.btn--ghost span { transition: transform .25s var(--ease); }
.btn--ghost:hover span { transform: translateX(6px); }
.btn--block { width: 100%; justify-content: center; }

/* ===== Categories ===== */
.cats { background: var(--dark); color: #f2f2f2; }
.cats__inner {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.cat {
  display: flex; align-items: center; gap: 20px;
  padding: 46px 30px;
  position: relative;
}
.cat:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 22%; bottom: 22%;
  width: 1px; background: rgba(255,255,255,.12);
}
.cat img {
  width: 84px; height: 108px; object-fit: cover;
  filter: grayscale(1);
  flex-shrink: 0;
}
.cat__body h3 { font-size: 22px; font-weight: 800; letter-spacing: .06em; }
.cat__body p { font-size: 13px; color: var(--dark-soft); margin: 6px 0 12px; }
.link-arrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  border-bottom: 1.5px solid currentColor; padding-bottom: 3px;
  transition: opacity .2s;
}
.link-arrow:hover { opacity: .65; }

/* ===== Banner ===== */
.banner { position: relative; min-height: 480px; display: flex; align-items: center; overflow: hidden; }
.banner__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: grayscale(1) brightness(.92);
  z-index: 0;
}
.banner::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(244,243,241,.96) 0%, rgba(244,243,241,.7) 34%, rgba(244,243,241,0) 62%);
}
.banner__inner { position: relative; z-index: 2; }
.banner__copy { max-width: 420px; }
.banner__kicker { font-size: 12px; font-weight: 700; letter-spacing: .3em; }
.banner__title { font-size: clamp(52px, 8vw, 96px); font-weight: 900; letter-spacing: -.03em; line-height: .92; margin: 16px 0 18px; }
.banner__copy p { font-size: 15px; color: var(--ink-soft); margin-bottom: 26px; max-width: 340px; }

/* ===== Trust ===== */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 34px 28px;
}
.trust__item { display: flex; align-items: center; gap: 14px; padding: 0 8px; }
.trust__item:not(:last-child) { border-right: 1px solid var(--line); }
.trust__item svg { color: var(--ink); flex-shrink: 0; }
.trust__item strong { display: block; font-size: 12px; letter-spacing: .1em; }
.trust__item span { font-size: 12px; color: var(--ink-soft); }

/* ===== Products ===== */
.products { padding: 70px 0 80px; }
.products__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; }
.products__head h2 { font-size: 30px; font-weight: 800; letter-spacing: .04em; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
}
.card { background: var(--paper); position: relative; transition: transform .3s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #ececea;
}
.card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.card__img--alt { z-index: 0; }
.card__img--main { z-index: 1; }
.card:hover .card__img { transform: scale(1.05); }
/* only fade to the 2nd photo when there is one */
.card__media:has(.card__img--alt):hover .card__img--main { opacity: 0; }
.card__badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  background: rgba(255,255,255,.92); padding: 5px 10px;
}
.card__badge--new { background: var(--ink); color: #fff; }
.card__wish {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.card__wish:hover { transform: scale(1.08); }
.card__wish.is-active { background: var(--ink); color: #fff; }
.card__add {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  padding: 12px; text-align: center;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.card:hover .card__add { opacity: 1; transform: translateY(0); }
.card__body { padding: 14px 4px 4px; }
.card__brand { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--ink); }
.card__name { font-size: 13px; color: var(--ink-soft); margin: 3px 0 8px; min-height: 34px; }
.card__row { display: flex; align-items: center; justify-content: space-between; }
.card__price { font-size: 15px; font-weight: 700; }
.card__cond { font-size: 10px; letter-spacing: .06em; color: var(--ink-soft); text-transform: uppercase; }

/* ===== Newsletter ===== */
.newsletter { background: var(--dark); color: #f2f2f2; text-align: center; padding: 72px 0; }
.newsletter h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; letter-spacing: -.02em; }
.newsletter p { color: var(--dark-soft); margin: 14px 0 28px; }
.newsletter__form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter__form input {
  flex: 1; background: transparent; border: 1px solid rgba(255,255,255,.28);
  color: #fff; padding: 14px 18px; font-size: 14px; font-family: inherit;
}
.newsletter__form input::placeholder { color: var(--dark-soft); }
.newsletter__form .btn--solid { background: #fff; color: var(--ink); }
.newsletter__form .btn--solid:hover { background: #eee; }
.newsletter__note { color: #fff; margin-top: 18px; font-weight: 600; }

/* ===== Footer ===== */
.footer { background: #0d0d0d; color: #cfcfcf; padding: 62px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand .logo--footer { display: inline-block; color: #fff; font-size: 22px; margin-bottom: 16px; }
.footer__brand p { font-size: 13px; max-width: 320px; color: #9a9a9a; }
.footer__col h4 { font-size: 12px; letter-spacing: .14em; color: #fff; margin-bottom: 16px; }
.footer__col a { display: block; font-size: 13px; color: #9a9a9a; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 52px; padding: 22px 28px; font-size: 12px; color: #7a7a7a;
}

/* ===== Cart drawer ===== */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.4);
  opacity: 0; transition: opacity .3s;
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(400px, 90vw);
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 15px; letter-spacing: .12em; }
.drawer__close { font-size: 16px; }
.drawer__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__empty { color: var(--ink-soft); font-size: 14px; padding: 40px 0; text-align: center; }
.d-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.d-item img { width: 66px; height: 82px; object-fit: cover; flex-shrink: 0; }
.d-item__info { flex: 1; }
.d-item__brand { font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.d-item__name { font-size: 12px; color: var(--ink-soft); margin: 2px 0 6px; }
.d-item__price { font-size: 13px; font-weight: 700; }
.d-item__remove { font-size: 11px; color: var(--ink-soft); text-decoration: underline; align-self: flex-start; }
.drawer__foot { padding: 22px 24px; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 15px; }

/* ===== Mobile menu ===== */
.mobile-nav { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.mobile-nav.is-open { visibility: visible; }
.mobile-nav__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .3s; }
.mobile-nav.is-open .mobile-nav__backdrop { opacity: 1; }
.mobile-nav__panel {
  position: absolute; top: 0; left: 0; height: 100%; width: min(320px, 82vw);
  background: var(--bg); padding: 80px 28px 28px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(-100%); transition: transform .35s var(--ease);
}
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__close { position: absolute; top: 24px; right: 24px; font-size: 18px; }
.mobile-nav__panel a { font-size: 24px; font-weight: 800; letter-spacing: .04em; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* ===== Search overlay ===== */
.search { position: fixed; inset: 0; z-index: 95; visibility: hidden; }
.search.is-open { visibility: visible; }
.search__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .3s; }
.search.is-open .search__backdrop { opacity: 1; }
.search__panel {
  position: absolute; top: 0; left: 0; right: 0; background: var(--bg);
  padding: 26px 0 34px; transform: translateY(-100%); transition: transform .4s var(--ease);
  max-height: 92vh; overflow-y: auto;
}
.search.is-open .search__panel { transform: translateY(0); }
.search__bar { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--ink); padding: 8px 0; }
.search__bar svg { color: var(--ink-soft); flex-shrink: 0; }
.search__bar input { flex: 1; border: none; background: transparent; font-size: clamp(18px, 3vw, 26px); font-family: inherit; font-weight: 500; outline: none; }
.search__close { font-size: 18px; color: var(--ink-soft); }
.search__results { margin-top: 26px; }
.search__hint { color: var(--ink-soft); font-size: 14px; padding: 10px 0; }
.product-grid--search { grid-template-columns: repeat(4, 1fr); }

/* ===== Login / account modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; visibility: hidden; display: grid; place-items: center; padding: 20px; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; z-index: 1; background: var(--paper); width: min(420px, 100%);
  padding: 40px 34px; box-shadow: var(--shadow);
  transform: translateY(14px) scale(.98); opacity: 0; transition: transform .3s var(--ease), opacity .3s;
}
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 18px; right: 20px; font-size: 16px; color: var(--ink-soft); }
.login { text-align: center; }
.login__logo { font-size: 24px; font-weight: 800; letter-spacing: .1em; padding-left: .1em; display: inline-block; }
.login h3 { font-size: 22px; font-weight: 800; margin: 18px 0 6px; }
.login p { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.login__gbtn { display: flex; justify-content: center; min-height: 44px; }
.gbtn-demo {
  display: inline-flex; align-items: center; gap: 10px; width: 100%; justify-content: center;
  border: 1px solid var(--line); padding: 12px; font-size: 14px; font-weight: 600;
  border-radius: 4px; transition: background .2s, border-color .2s;
}
.gbtn-demo:hover { background: #f6f6f4; border-color: #d0d0cd; }
.login__social { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.login__soc { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; padding: 12px; border-radius: 4px; cursor: pointer; transition: background .2s, border-color .2s; }
.login__soc:hover { background: #f6f6f4; border-color: #d0d0cd; }
.login__soc svg { flex-shrink: 0; }
.login__divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ink-soft); font-size: 12px; }
.login__divider::before, .login__divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.login__form { display: flex; flex-direction: column; gap: 10px; }
.login__form input { border: 1px solid var(--line); padding: 13px 15px; font-size: 14px; font-family: inherit; }
.login__form input:focus { outline: none; border-color: var(--ink); }
.login__fine { font-size: 11px; color: var(--ink-soft); margin-top: 18px; }
.login__msg { font-size: 13px; color: #9a1f1f; margin-top: 14px; }
.login__msg--ok { color: #1a7a3a; }
.login__toggle { font-size: 13px; color: var(--ink-soft); margin-top: 16px; }
.login__toggle a { font-weight: 600; text-decoration: underline; color: var(--ink); }

/* ===== My Orders (account) page ===== */
.account-page { padding: 40px 0 80px; }
.account-page > .wrap { max-width: 780px; }
.account-page__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.acct-guest { max-width: 440px; margin: 10px auto 0; }
.acct-signin { text-align: center; margin: 22px 0 0; }
.account-page__who { font-size: 13px; color: var(--ink-soft); }
.muted-note { color: var(--ink-soft); font-size: 14px; padding: 20px 0; }
.acct-empty { text-align: center; padding: 50px 20px; background: var(--paper); border: 1px solid var(--line); }
.acct-empty p { color: var(--ink-soft); margin-bottom: 20px; font-size: 15px; }
.acct-order { background: var(--paper); border: 1px solid var(--line); padding: 22px; margin-bottom: 18px; }
.acct-order__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acct-order__ref { font-weight: 700; font-size: 14px; letter-spacing: .04em; margin-right: 12px; }
.acct-order__date { font-size: 13px; color: var(--ink-soft); }
.acct-order__note { font-size: 13px; color: var(--ink-soft); margin: 10px 0 16px; }
.acct-order__items { border-top: 1px solid var(--line); }
.acct-order__items .co-line { padding: 12px 0; }
.acct-badge { font-size: 11px; }
.acct-badge--good { background: rgba(12,163,12,.14); color: #0a7a0a; }
.acct-badge--warning { background: rgba(184,134,11,.16); color: #8a6400; }
.acct-badge--critical { background: rgba(208,59,59,.14); color: #b02a2a; }
.acct-badge--info { background: rgba(42,120,214,.14); color: #245fa8; }
.acct-badge--neutral { background: rgba(82,81,78,.14); color: #52514e; }
.acct-track-btn { margin-top: 14px; display: inline-flex; }
.btn--outline { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); justify-content: center; }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* Account (logged-in) */
.account { text-align: center; }
.account__avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 700;
}
.account__avatar img { width: 100%; height: 100%; object-fit: cover; }
.account h3 { font-size: 20px; font-weight: 800; }
.account p { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.account__links { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-bottom: 20px; }
.account__links a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  padding: 13px 22px; border-radius: 4px; z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Wishlist drawer extras ===== */
.d-item__move { font-size: 11px; font-weight: 600; text-decoration: underline; margin-top: 4px; }

/* ===== Category page hero ===== */
.page-hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.75); z-index: 0; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,20,20,.15), rgba(20,20,20,.72)); }
.page-hero__inner { position: relative; z-index: 2; color: #fff; padding: 40px 28px 44px; }
.crumb { display: flex; gap: 10px; align-items: center; font-size: 12px; letter-spacing: .1em; opacity: .85; margin-bottom: 14px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.page-hero__word { font-size: clamp(52px, 10vw, 120px); font-weight: 900; letter-spacing: -.03em; line-height: .9; }
.page-hero__lede { max-width: 560px; font-size: 15px; color: rgba(255,255,255,.86); margin-top: 12px; }

/* ===== Catalog toolbar ===== */
.catalog { padding: 30px 0 80px; }
.catalog__toolbar { display: flex; flex-direction: column; gap: 16px; padding-top: 30px; padding-bottom: 26px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; padding: 8px 14px; border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.catalog__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.muted { font-size: 13px; color: var(--ink-soft); }
.sorter { font-size: 12px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; letter-spacing: .06em; }
.sorter select { border: 1px solid var(--line); padding: 8px 10px; font-family: inherit; font-size: 13px; background: var(--paper); }
.empty-note { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 50px 0; }

/* ===== multi-attribute filter panel ===== */
.filt-panel { background: var(--paper); border: 1px solid var(--line); }
.filt-row { display: flex; align-items: flex-start; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.filt-row:last-child { border-bottom: none; }
.filt-label { flex-shrink: 0; width: 78px; text-align: center; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 8px 6px; border-radius: 3px; margin-top: 2px; }
.filt-opts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1; }
.filt-tag { background: transparent; border: 1px solid transparent; border-radius: 3px; padding: 6px 12px; font-size: 13px; color: var(--ink-soft); cursor: pointer; transition: background .15s, color .15s; }
.filt-tag:hover { color: var(--ink); background: var(--bg); }
.filt-tag.is-on { background: var(--ink); color: #fff; }
.filt-guide { margin-left: auto; background: none; border: none; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }

/* ===== size guide modal ===== */
.sg-modal { position: fixed; inset: 0; z-index: 120; visibility: hidden; display: grid; place-items: center; padding: 20px; }
.sg-modal.is-open { visibility: visible; }
.sg-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s; }
.sg-modal.is-open .sg-backdrop { opacity: 1; }
.sg-panel { position: relative; z-index: 1; background: var(--paper); width: min(560px, 100%); max-height: 88vh; overflow-y: auto; padding: 32px; box-shadow: var(--shadow); transform: translateY(12px); opacity: 0; transition: transform .3s var(--ease), opacity .3s; }
.sg-modal.is-open .sg-panel { transform: none; opacity: 1; }
.sg-close { position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 18px; color: var(--ink-soft); cursor: pointer; }
.sg-body h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.sg-note { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.sg-scroll { overflow-x: auto; }
.sg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sg-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 10px 12px; border-bottom: 2px solid var(--ink); }
.sg-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sg-measure { background: var(--bg); border: 1px solid var(--line); padding: 18px 20px; margin-bottom: 22px; }
.sg-measure h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.sg-measure ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.sg-measure li { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 640px) {
  .filt-row { flex-direction: column; gap: 8px; }
  .filt-label { width: auto; align-self: flex-start; }
  .filt-guide { margin-left: 0; }
}

/* ===== Checkout ===== */
.checkout { padding: 40px 0 80px; }
.crumb--dark { color: var(--ink-soft); }
.crumb--dark a { color: var(--ink-soft); }
.checkout__title { font-size: clamp(34px, 6vw, 56px); font-weight: 900; letter-spacing: -.02em; margin: 8px 0 30px; }
.checkout__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.checkout__summary, .checkout__pay { background: var(--paper); padding: 28px; border: 1px solid var(--line); }
.checkout__summary h3, .checkout__pay h3 { font-size: 13px; letter-spacing: .12em; margin-bottom: 18px; text-transform: uppercase; }
.co-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.co-line img { width: 58px; height: 72px; object-fit: cover; flex-shrink: 0; }
.co-line__info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.co-line__brand { font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.co-line__name { font-size: 12px; color: var(--ink-soft); }
.co-line__price { font-size: 14px; font-weight: 700; }
.checkout__total { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; font-size: 15px; }
.checkout__total strong { font-size: 22px; }
.checkout__lead { font-size: 14px; color: var(--ink-soft); max-width: 620px; margin: -14px 0 30px; line-height: 1.6; }
.checkout__note { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }

/* ----- order request form ----- */
.req-form { display: flex; flex-direction: column; gap: 16px; }
.req-form label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
.req-form input, .req-form textarea {
  font-family: inherit; font-size: 15px; font-weight: 400; letter-spacing: normal; text-transform: none;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 2px; padding: 13px 15px; width: 100%;
  transition: border-color .2s;
}
.req-form input::placeholder, .req-form textarea::placeholder { color: #b3b1ab; }
.req-form input:focus, .req-form textarea:focus { outline: none; border-color: var(--ink); }
.req-form textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.req-form .btn { margin-top: 8px; }
.checkout__fine { font-size: 11px; color: var(--ink-soft); margin-top: 18px; }
.checkout__empty { color: var(--ink-soft); font-size: 14px; padding: 16px 0; }
.checkout__empty a { text-decoration: underline; }
.checkout__msg { margin-top: 16px; padding: 14px 16px; font-size: 13px; border-radius: 4px; }
.checkout__msg--info { background: #f2f2ee; color: var(--ink); }
.checkout__msg--info code { background: #e2e2dd; padding: 1px 5px; border-radius: 3px; font-size: 12px; }
.checkout__msg--err { background: #fbeaea; color: #9a1f1f; }
.checkout__done { grid-column: 1 / -1; text-align: center; padding: 50px 20px; background: var(--paper); border: 1px solid var(--line); }
.checkout__tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 30px; display: grid; place-items: center; margin: 0 auto 20px; }
.checkout__done h2 { font-size: 28px; font-weight: 900; margin-bottom: 10px; }
.checkout__done p { color: var(--ink-soft); max-width: 440px; margin: 0 auto 8px; font-size: 14px; }
.checkout__ref { margin-bottom: 24px !important; }
.checkout__done-sub { margin-bottom: 24px !important; }
.checkout__refblock { max-width: 460px; margin: 0 auto 24px; padding: 18px; background: var(--bg); border: 1px dashed var(--ink); display: flex; flex-direction: column; gap: 6px; }
.checkout__reflabel { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.checkout__refcode { font-size: 24px; font-weight: 800; letter-spacing: .06em; }
.checkout__refhint { font-size: 12px; color: var(--ink-soft); }
.checkout__refhint a { text-decoration: underline; font-weight: 600; }
.acct-signin { margin-bottom: 30px; font-size: 14px; color: var(--ink-soft); }
.link-inline { background: none; border: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; font-weight: 600; cursor: pointer; }
.acct-track { max-width: 460px; background: var(--paper); border: 1px solid var(--line); padding: 26px; }
.acct-track h2 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.acct-track__form { margin-top: 18px; }
.acct-track-btn { margin-top: 14px; display: inline-flex; }
.checkout__recap { max-width: 460px; margin: 0 auto 26px; text-align: left; border-top: 1px solid var(--line); }
.checkout__recap .co-line { padding: 14px 0; }
.checkout__recap .checkout__total { padding-top: 16px; }
.checkout__steps { max-width: 460px; margin: 0 auto 24px; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.cstep { display: flex; align-items: flex-start; gap: 14px; }
.cstep__n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.cstep strong { display: block; font-size: 14px; }
.cstep em { font-style: normal; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 820px) { .checkout__grid { grid-template-columns: 1fr; } }

@media (max-width: 1080px) { .product-grid--search { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .product-grid--search { grid-template-columns: repeat(2, 1fr); }
  .catalog__meta { flex-direction: row; }
  .modal__panel { padding: 34px 24px; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav--left { display: none; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .logo { text-align: left; }
  .icon-btn span { display: none; }
  .burger { display: flex; }
  .cats__inner { grid-template-columns: 1fr; }
  .cat:not(:last-child)::after { display: none; }
  .cat:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .trust__inner { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .trust__item:nth-child(2) { border-right: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .announce__inner { height: auto; min-height: 34px; padding: 7px 0; }
  .announce__msg { font-size: 9.5px; letter-spacing: .06em; text-align: center; line-height: 1.5; }
  .hero__inner { min-height: 460px; }
  .hero__kicker, .hero__meta { font-size: 10px; letter-spacing: .22em; }
  /* keep the giant "tiao" wordmark front-and-centre on phones */
  .hero__figure { opacity: .26; height: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero__word { z-index: 3; font-size: clamp(96px, 34vw, 200px); }
  .hero__cta { position: static; margin-top: 20px; padding: 0 28px; flex-wrap: wrap; }
  .hero__meta { bottom: 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .products__head h2 { font-size: 22px; }
  .card__add { opacity: 1; transform: none; }
  .announce__links { display: none; }
  .announce__inner { justify-content: center; }
  .newsletter__form { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
