/* ==========================================================================
   CHERIKEY — storefront components
   ========================================================================== */

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--pine);
  color: #E9F3E7;
  font-size: .82rem;
  letter-spacing: .02em;
  padding-block: 9px;
  overflow: hidden;
}
.announce__track {
  display: flex; width: max-content;
  animation: marquee 40s linear infinite;
}
.announce__track span { white-space: nowrap; padding-inline: 48px; }
.announce:hover .announce__track { animation-play-state: paused; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(254,251,234,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__logo { height: 52px; width: auto; }
@media (max-width: 480px) { .brand__logo { height: 38px; } }
.brand__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.32rem; letter-spacing: .01em; color: var(--magenta);
  line-height: 1;
}
.brand__tag {
  display: block; font-size: .56rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal-ink); font-weight: 600; margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a {
  font-size: .93rem; font-weight: 500; color: var(--ink);
  padding: 9px 13px; border-radius: var(--r-pill); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--magenta-050); color: var(--magenta-700); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--magenta); font-weight: 600; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  position: relative; transition: background .15s ease;
}
.icon-btn:hover { background: var(--magenta-050); color: var(--magenta-700); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 4px; right: 3px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--magenta); color: #fff;
  font-size: .68rem; font-weight: 700; border-radius: var(--r-pill);
  border: 2px solid var(--cream);
}
.cart-count[data-empty="true"] { display: none; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 10px 16px 20px; margin: 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 8px; border-radius: var(--r-sm); border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);   /* the drifting colour glow lives on .hero::before */
  padding-block: clamp(46px, 7vw, 96px);
}
.hero__inner {
  display: grid; align-items: center; gap: clamp(30px, 5vw, 64px);
  grid-template-columns: 1.02fr .98fr;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--magenta); }
.hero__lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-600); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__points {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
}
.hero__points li {
  display: flex; align-items: center; gap: 8px;
  font-size: .89rem; font-weight: 500; color: var(--ink-600);
}
.hero__points svg { width: 17px; height: 17px; color: var(--leaf); flex: 0 0 auto; }
.hero__art { position: relative; }
.hero__art img, .hero__art svg {
  width: 100%; border-radius: var(--r-lg);
  aspect-ratio: 1386 / 1274; object-fit: cover;
  max-height: 560px;
  box-shadow: var(--shadow-lg);
}
.hero__float {
  position: absolute; bottom: 18px; left: -14px;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 12px 16px; display: flex; align-items: center; gap: 11px;
}
.hero__float b { display: block; font-family: var(--font-display); font-size: .95rem; }
.hero__float span { font-size: .75rem; color: var(--ink-400); }
.stars { color: #E8A93A; letter-spacing: 1px; font-size: .85rem; }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; margin-inline: auto; }
  .hero__float { left: 8px; }
}

/* ---------- Trust marquee ---------- */
.trust {
  background: var(--paper);
  border-block: 1px solid var(--line-soft);
  padding-block: 18px; overflow: hidden;
}
.trust__track {
  display: flex; gap: 46px; align-items: center;
  animation: marquee 34s linear infinite;
  width: max-content;
}
.trust__track span {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--font-display); font-size: .84rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink);
}
.trust__track svg { width: 16px; height: 16px; color: var(--magenta); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.trust:hover .trust__track { animation-play-state: paused; }

/* ---------- Product card ---------- */
.product-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.product-card__media {
  position: relative; display: block;
  background: var(--cream-200);
  aspect-ratio: 4 / 3;
}
.product-card__media img, .product-card__media svg { width: 100%; height: 100%; object-fit: cover; }
.product-card__flag {
  position: absolute; top: 12px; left: 12px;
  background: var(--magenta); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
}
.product-card__flag[data-tone="pine"] { background: var(--pine); }
.product-card__flag[data-tone="ink"]  { background: var(--ink); }
.product-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card__body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.product-card__body h3 a { color: inherit; }
.product-card__desc { font-size: .87rem; color: var(--ink-600); margin: 0 0 14px; flex: 1; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.price s { color: var(--ink-400); font-weight: 500; font-size: .9rem; margin-left: 7px; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- Feature blocks ---------- */
.feature {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.feature__icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--magenta-050); color: var(--magenta);
}
.feature__icon svg { width: 23px; height: 23px; }
.feature:nth-child(even) .feature__icon { background: var(--pine-100); color: var(--pine); }
.feature h3 { font-size: 1.06rem; margin-bottom: 6px; }
.feature p { font-size: .9rem; color: var(--ink-600); margin: 0; }

/* ---------- How it works ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 62px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  background: var(--magenta); color: #fff;
}
.section--pine .step::before { background: #fff; color: var(--pine); }
.step h3 { margin-bottom: 6px; }
.step p { font-size: .93rem; color: var(--ink-600); margin: 0; }
.section--pine .step p { color: #CFE3CD; }

/* ---------- Split showcase ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 66px); align-items: center;
}
.split--flip .split__art { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip .split__art { order: 0; } }
.split__art { overflow: hidden; border-radius: var(--r-lg); }
.split__art img, .split__art svg {
  border-radius: var(--r-lg); width: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
  max-height: 520px;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.split__art:hover img { transform: scale(1.03); }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 11px; font-size: .95rem; }
.checklist svg { width: 19px; height: 19px; color: var(--leaf); flex: 0 0 auto; margin-top: 3px; }
.section--pine .checklist svg { color: #9FD4A6; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%; min-width: 620px;
  border-collapse: separate; border-spacing: 0;
  background: var(--paper); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare th, .compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.compare thead th {
  font-family: var(--font-display); font-size: .9rem;
  background: var(--cream-200); color: var(--ink-600);
}
.compare thead th.is-us { background: var(--magenta); color: #fff; font-size: 1rem; }
.compare tbody th { text-align: left; font-weight: 500; font-size: .93rem; color: var(--ink); }
.compare td.is-us { background: var(--magenta-050); font-weight: 600; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.tick  { color: var(--ok); font-weight: 700; }
.cross { color: var(--ink-400); }

/* ---------- Reviews ---------- */
.review { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 24px; }
.review p { font-size: .95rem; margin: 10px 0 16px; }
.review__who { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pine-100); color: var(--pine-700);
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
}
.review__who b { font-size: .88rem; display: block; }
.review__who span { font-size: .75rem; color: var(--ink-400); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden;
}
.faq details[open] { border-color: var(--magenta-100); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 54px 18px 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--magenta); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq__body { padding: 0 20px 20px; color: var(--ink-600); font-size: .94rem; }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter form {
  display: flex; gap: 10px; max-width: 470px; margin: 22px auto 10px; flex-wrap: wrap;
}
.newsletter input { flex: 1 1 210px; border-radius: var(--r-pill); padding-inline: 20px; }
.form-note { font-size: .84rem; margin: 0; }
.form-note[data-state="ok"] { color: #9FD4A6; }
.form-note[data-state="err"] { color: #FFC2C2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C6D2D3; padding-block: clamp(42px, 6vw, 66px) 0; }
.site-footer h4 {
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; margin: 0 0 14px;
}
.site-footer a { color: #C6D2D3; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .brand__name { color: #fff; font-size: 1.5rem; }
.footer-brand p { font-size: .9rem; max-width: 34ch; margin-top: 14px; }
.footer-bottom {
  margin-top: 40px; border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 20px; display: flex; flex-wrap: wrap; gap: 10px 20px;
  justify-content: space-between; font-size: .82rem;
}

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--cream-200); border-bottom: 1px solid var(--line); padding-block: clamp(34px, 5vw, 58px); }
.page-head p { color: var(--ink-600); max-width: 58ch; margin: 0; }
.crumbs { font-size: .82rem; color: var(--ink-400); margin-bottom: 10px; }
.crumbs a { color: var(--ink-400); }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 236px 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .shop-layout { grid-template-columns: 1fr; } }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filters h4 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); margin: 0 0 12px; }
.filter-group { margin-bottom: 26px; }
.filter-btn {
  display: block; width: 100%; text-align: left;
  padding: 9px 13px; margin-bottom: 4px; border: 0; border-radius: var(--r-sm);
  background: transparent; font: inherit; font-size: .92rem; color: var(--ink-600); cursor: pointer;
}
.filter-btn:hover { background: var(--magenta-050); color: var(--magenta-700); }
.filter-btn[aria-pressed="true"] { background: var(--magenta); color: #fff; font-weight: 600; }
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.shop-toolbar select { width: auto; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 880px) { .pdp { grid-template-columns: 1fr; } }
.gallery__main {
  background: var(--cream-200); border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 1 / 1; display: grid; place-items: center;
}
.gallery__main img, .gallery__main svg { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumbs button {
  width: 74px; height: 74px; padding: 0; border-radius: var(--r-md); overflow: hidden;
  border: 2px solid var(--line); background: var(--cream-200); cursor: pointer;
}
.gallery__thumbs button[aria-current="true"] { border-color: var(--magenta); }
.pdp__price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
.pdp__price .price { font-size: 1.7rem; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font: inherit; font-size: .88rem;
}
.swatch[aria-pressed="true"] { border-color: var(--magenta); background: var(--magenta-050); font-weight: 600; }
.swatch i { width: 15px; height: 15px; border-radius: 50%; display: block; border: 1px solid rgba(0,0,0,.12); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; overflow: hidden; }
.qty button {
  width: 42px; height: 46px; border: 0; background: transparent;
  font-size: 1.2rem; color: var(--ink-600); cursor: pointer;
}
.qty button:hover { background: var(--cream-200); color: var(--magenta); }
.qty input { width: 48px; text-align: center; border: 0; padding: 0; font-weight: 600; }
.qty input:focus { box-shadow: none; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.pdp__meta { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.pdp__meta dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; margin: 0; font-size: .9rem; }
.pdp__meta dt { color: var(--ink-400); }
.pdp__meta dd { margin: 0; }

/* ---------- Cart drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(28,42,46,.42); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--cream); z-index: 100; display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;   /* closed: no shadow peeking in, not tabbable */
  transition: transform .25s cubic-bezier(.32,.72,0,1), visibility 0s linear .25s;
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer__head h3 { margin: 0; font-size: 1.1rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 20px; background: var(--paper); }

.line-item { display: grid; grid-template-columns: 68px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.line-item__media { width: 68px; height: 68px; border-radius: var(--r-md); overflow: hidden; background: var(--cream-200); }
.line-item__media img, .line-item__media svg { width: 100%; height: 100%; object-fit: cover; }
.line-item h4 { font-size: .93rem; margin: 0 0 3px; }
.line-item .variant { font-size: .78rem; color: var(--ink-400); margin: 0 0 8px; }
.line-item__qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; }
.line-item__qty button { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; color: var(--ink-600); }
.line-item__qty span { min-width: 26px; text-align: center; font-size: .85rem; font-weight: 600; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: .78rem; color: var(--ink-400); cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--danger); }

.totals { font-size: .93rem; }
.totals div { display: flex; justify-content: space-between; margin-bottom: 8px; }
.totals .grand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }

.empty-state { text-align: center; padding: 42px 16px; color: var(--ink-400); }
.empty-state svg { width: 52px; height: 52px; margin-inline: auto; margin-bottom: 14px; color: var(--line); }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(26px, 4vw, 50px); align-items: start; }
@media (max-width: 880px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-summary { order: -1; } }
.checkout-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 0 0 16px; }
.step-title i {
  width: 26px; height: 26px; border-radius: 50%; background: var(--magenta); color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-style: normal; font-weight: 700;
}
.radio-card {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer; background: #fff;
}
.radio-card:has(input:checked) { border-color: var(--magenta); background: var(--magenta-050); }
.radio-card input { margin-top: 3px; accent-color: var(--magenta); }
.radio-card b { display: block; font-size: .93rem; }
.radio-card span { font-size: .82rem; color: var(--ink-600); }
.radio-card .amt { margin-left: auto; font-weight: 600; font-size: .9rem; }

/* ---------- Order confirmation / tracking ---------- */
.confirm-hero { text-align: center; max-width: 620px; margin-inline: auto; }
.confirm-hero .tick-circle {
  width: 68px; height: 68px; border-radius: 50%; background: var(--pine-100); color: var(--pine);
  display: grid; place-items: center; margin: 0 auto 20px;
}
.confirm-hero .tick-circle svg { width: 32px; height: 32px; }
.tracker { display: flex; margin: 30px 0; }
.tracker__step { flex: 1; text-align: center; position: relative; font-size: .82rem; color: var(--ink-400); }
.tracker__step::before {
  content: ""; display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--line); margin: 0 auto 10px; position: relative; z-index: 2;
}
.tracker__step::after {
  content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 1;
}
.tracker__step:first-child::after { display: none; }
.tracker__step.is-done { color: var(--pine); font-weight: 600; }
.tracker__step.is-done::before { background: var(--pine); }
.tracker__step.is-done::after { background: var(--pine); }

/* ---------- Toast ---------- */
.toast-host { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast {
  background: var(--ink); color: #fff; padding: 13px 18px; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); font-size: .9rem; display: flex; align-items: center; gap: 10px;
  animation: toast-in .22s ease both;
}
.toast svg { width: 18px; height: 18px; color: #9FD4A6; flex: 0 0 auto; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Motion
   Everything here is decorative. prefers-reduced-motion (theme.css) collapses
   every duration to ~0, so users who opt out see the final state instantly.
   ========================================================================== */

/* ---------- Hero entrance ---------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes art-in {
  from { opacity: 0; transform: translateY(18px) scale(.965); }
  to   { opacity: 1; transform: none; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes glow-drift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-3%, 4%); }
  100% { transform: translate(0, 0); }
}

.hero .rise { animation: rise-in .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.hero__art { animation: art-in .9s cubic-bezier(.2,.7,.2,1) .15s both; }
.hero__float { animation: rise-in .6s ease .9s both, bob 4.5s ease-in-out 1.6s infinite; }
.hero::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 40% at 78% 22%, rgba(229,44,120,.12), transparent 70%),
    radial-gradient(34% 34% at 14% 82%, rgba(85,135,84,.16), transparent 70%);
  animation: glow-drift 18s ease-in-out infinite;
  pointer-events: none;
}
.hero > .wrap { position: relative; }

/* Elements waiting to slide in sit 28px outside their column. `clip` keeps
   that from widening the page on phones without turning main into a
   scroll container (which `hidden` would, breaking the sticky header). */
main { overflow-x: clip; }

/* ---------- Reveal on scroll ----------
   .reveal          fade up
   .reveal--left    slide in from the left
   .reveal--right   slide in from the right
   .reveal--scale   settle in from slightly smaller
   .reveal-stagger  children reveal one after another */
.reveal, .reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.reveal--left  { transform: translateX(-28px); }
.reveal--right { transform: translateX(28px); }
.reveal--scale { transform: scale(.94); }
.reveal.is-in, .reveal-stagger.is-in > * { opacity: 1; transform: none; }

.reveal-stagger > :nth-child(1) { --d: 0s; }
.reveal-stagger > :nth-child(2) { --d: .08s; }
.reveal-stagger > :nth-child(3) { --d: .16s; }
.reveal-stagger > :nth-child(4) { --d: .24s; }
.reveal-stagger > :nth-child(5) { --d: .32s; }
.reveal-stagger > :nth-child(6) { --d: .40s; }
.reveal-stagger > :nth-child(7) { --d: .48s; }
.reveal-stagger > :nth-child(8) { --d: .56s; }
.reveal-stagger > :nth-child(n+9) { --d: .62s; }

/* Steps: number badge pops in slightly after the text */
.step::before { transition: transform .5s cubic-bezier(.34,1.56,.64,1) .2s; }
.reveal-stagger:not(.is-in) .step::before { transform: scale(.4); }

/* ---------- Hover motion ---------- */
.product-card__media { overflow: hidden; }
.product-card__media img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__flag { transition: transform .3s ease; }
.product-card:hover .product-card__flag { transform: translateY(-2px); }

.feature { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.feature__icon { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.feature:hover .feature__icon { transform: rotate(-6deg) scale(1.08); }

.review { transition: transform .25s ease, box-shadow .25s ease; }
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn:hover svg { transform: translateX(2px); }
.btn svg { transition: transform .2s ease; }

.icon-btn svg { transition: transform .25s ease; }
.icon-btn:hover svg { transform: scale(1.12); }

/* FAQ: the +/− turns into the other */
.faq summary::after { transition: transform .3s ease, color .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }

/* ---------- Cart badge bump ---------- */
@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.cart-count.bump { animation: bump .4s cubic-bezier(.34,1.56,.64,1); }

/* ---------- Drawer contents slide in with the panel ---------- */
.drawer .line-item { animation: rise-in .35s ease both; }
.drawer .line-item:nth-child(2) { animation-delay: .05s; }
.drawer .line-item:nth-child(3) { animation-delay: .1s; }
.drawer .line-item:nth-child(n+4) { animation-delay: .15s; }

/* ---------- Page header underline draw ---------- */
.page-head h1 { position: relative; display: inline-block; }
.page-head h1::after {
  content: ""; display: block; height: 4px; width: 56px; border-radius: 2px;
  background: var(--magenta); margin-top: 10px;
  transform-origin: left; animation: draw .6s cubic-bezier(.2,.7,.2,1) .2s both;
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 110; background: rgba(28,42,46,.45);
  display: flex; align-items: flex-start; justify-content: center;
  padding: max(12vh, 60px) 16px 16px;
  backdrop-filter: blur(4px);
}
.search-box {
  width: min(600px, 100%); background: var(--paper); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; animation: rise-in .22s ease both;
}
.search-box__row { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 18px; border-bottom: 1px solid var(--line-soft); }
.search-box__row > svg { width: 20px; height: 20px; color: var(--magenta); flex: none; }
.search-box__row input { border: 0; padding: 12px 4px; font-size: 1.05rem; box-shadow: none !important; }
.search-box__row input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search-results { max-height: 60vh; overflow-y: auto; padding: 8px; }
.search-hit {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center;
  padding: 8px 10px; border-radius: var(--r-md); color: var(--ink); text-decoration: none;
}
.search-hit:hover { background: var(--magenta-050); text-decoration: none; }
.search-hit img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--cream-200); }
.search-all { display: block; text-align: center; padding: 12px; font-weight: 600; font-size: .9rem; }

/* ---------- Reviews ---------- */
.stars-row { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars-row .star { width: 16px; height: 16px; color: var(--line); display: inline-block; }
.stars-row .star.is-on { color: #E8A93A; }
.stars-row svg { width: 100%; height: 100%; display: block; }
.review-list .review { margin-bottom: 14px; }
.rating-pick { display: flex; gap: 4px; margin-bottom: 14px; }
.rating-pick button { width: 34px; height: 34px; border: 0; background: none; padding: 4px; cursor: pointer; color: var(--line); transition: transform .15s ease, color .15s ease; }
.rating-pick button.is-on { color: #E8A93A; }
.rating-pick button:hover { transform: scale(1.15); color: #E8A93A; }
.rating-pick svg { width: 100%; height: 100%; }
.review-form { align-self: start; }

/* ---------- App download badges ---------- */
.app-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.app-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 18px 10px 14px;
  text-decoration: none; min-width: 168px; transition: transform .15s ease, background .15s ease;
}
.app-badge:hover { transform: translateY(-2px); background: #2C3E43; text-decoration: none; }
.app-badge svg { width: 26px; height: 26px; flex: none; }
.app-badge small { display: block; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; opacity: .75; line-height: 1; }
.app-badge b { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.15; }
.app-badge[aria-disabled="true"] { background: var(--cream-200); color: var(--ink-600); pointer-events: none; }
.app-badge[aria-disabled="true"] small { opacity: 1; color: var(--magenta); font-weight: 700; }

/* ---------- App icon (NFC E-Tag) in a split section ---------- */
.split__art:has(.app-icon) {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  background: var(--cream); border: 1px solid var(--line);
}
.split__art img.app-icon {
  width: min(46%, 240px); aspect-ratio: 1; max-height: none;
  border-radius: 22%; box-shadow: var(--shadow-lg);
}
.split__art:hover img.app-icon { transform: none; }

/* ---------- Product grids ----------
   Cards keep their size however few products the store has; with auto-fit a
   lone product would stretch across the whole row. */
#product-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 270px)); justify-content: center; }
#shop-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Small phones (≤400px): shrink the logo so the header icons fit without sideways scroll */
@media (max-width: 400px) {
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand__logo { height: 32px; max-width: 100%; }
  .header-actions { gap: 2px; }
}

/* Product gallery: show the whole photo (Wix photos come in different shapes) */
.gallery__main { aspect-ratio: 4 / 3; position: relative; }
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Touch screens: no hover lifts, which otherwise stick after a tap */
@media (hover: none) {
  .btn:hover, .product-card:hover, .feature:hover, .review:hover, .app-badge:hover,
  .rating-pick button:hover, .included div:hover { transform: none; }
  .btn:hover svg, .icon-btn:hover svg, .feature:hover .feature__icon,
  .product-card:hover .product-card__media img, .product-card:hover .product-card__flag { transform: none; }
}

/* Review photos (shop + product page) */
.review__photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.review__photos a { display: block; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--cream-200); }
.review__photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.review__photos a:hover img { transform: scale(1.05); }
@media (max-width: 420px) { .review__photos a { width: 72px; height: 72px; } }
/* Full-size photo viewer */
.zoom { position: fixed; inset: 0; z-index: 200; background: rgba(15,22,24,.88); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 12px; object-fit: contain; }
.zoom__x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Customer review form: photo picker */
.rv-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rv-previews { display: contents; }
.rv-thumb { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--cream-200); }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-thumb button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 11px; border: 0;
  background: rgba(28,42,46,.75); color: #fff; font: 600 .8rem/22px var(--font-body); cursor: pointer; padding: 0; }
.rv-add { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 12px; border: 1.5px dashed var(--line);
  background: #fff; color: var(--ink-600); font-size: .72rem; font-weight: 600; text-align: center; line-height: 1.2; cursor: pointer; padding: 6px; }
.rv-add:hover, .rv-add:focus-within { border-color: var(--magenta); color: var(--magenta); }
.rv-add[hidden] { display: none; }
.rv-photos { margin-bottom: 18px; }
