/* ============ Tokens ============ */
:root {
  --brown: #4a2622;
  --brown-2: #5e3530;
  --brown-3: #2f1714;
  --sand: #f1e7dd;
  --sand-2: #e8dacb;
  --light: #fcf8f3;
  --cream: #fffaf4;
  --ink: #3a1f1c;
  --muted: #84706a;
  --line: rgba(74, 38, 34, 0.12);
  --sale: #d93a32;
  --gold: #e2a74d;

  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(58, 31, 28, 0.06);
  --shadow: 0 18px 40px -18px rgba(58, 31, 28, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brown-2); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, box-shadow 0.35s var(--ease);
}
.btn svg { font-size: 1.1em; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--dark { background: var(--brown); color: var(--cream); box-shadow: 0 10px 24px -12px rgba(74, 38, 34, 0.7); }
.btn--dark:hover { background: var(--brown-3); transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid var(--brown); color: var(--brown); }
.btn--ghost:hover { background: var(--brown); color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--brown); }
.btn--cream:hover { background: var(--gold); }
.btn--sm { padding: 11px 26px; font-size: 0.88rem; margin-top: 48px; }
.btn--block { width: 100%; }

.round-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brown); color: var(--cream);
  transition: transform 0.3s var(--ease), background 0.3s, opacity 0.3s;
}
.round-btn svg { font-size: 1.1rem; }
.round-btn:hover { transform: scale(1.08); background: var(--brown-3); }
.round-btn:disabled { opacity: 0.35; cursor: default; transform: none; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  transition: background 0.25s;
}
.icon-btn svg { font-size: 1.2rem; }
.icon-btn:hover { background: var(--sand); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.9rem; color: var(--brown);
  border-bottom: 1.5px solid transparent; transition: border-color 0.3s, gap 0.3s;
}
.link-arrow:hover { border-color: currentColor; gap: 12px; }

/* ============ Announcement ============ */
.announce {
  background: var(--brown); color: var(--sand);
  display: flex; align-items: center; justify-content: center; gap: 28px;
  height: 38px; font-size: 0.8rem; letter-spacing: 0.02em;
}
.announce__arrow { color: var(--sand); opacity: 0.7; display: grid; place-items: center; padding: 6px; }
.announce__arrow:hover { opacity: 1; }
.announce__track { position: relative; width: 340px; height: 20px; overflow: hidden; }
.announce__msg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transform: translateY(100%); transition: transform 0.6s var(--ease), opacity 0.6s;
}
.announce__msg.is-active { opacity: 1; transform: none; }
.announce__msg.is-leaving { opacity: 0; transform: translateY(-100%); }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 248, 243, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }

.nav { display: flex; gap: 30px; align-items: center; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
  padding: 8px 0; position: relative;
}
.nav__link svg { font-size: 0.85rem; transition: transform 0.3s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 1.5px; width: 100%;
  background: var(--brown); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: -16px; min-width: 200px;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.3s var(--ease);
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; transition: background 0.2s, padding 0.3s; }
.dropdown a:hover { background: var(--sand); padding-left: 18px; }

.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; color: var(--brown);
  letter-spacing: -0.02em;
}
.logo__mark { width: 30px; height: 30px; stroke: none; }
.logo--light { color: var(--cream); }

.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.header__divider { width: 1px; height: 18px; background: var(--line); }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 1px; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
  background: var(--brown); color: var(--cream); font-size: 0.66rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--light);
}
.cart-count.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

.header__burger { display: none; width: 38px; height: 38px; flex-direction: column; justify-content: center; gap: 5px; }
.header__burger span { display: block; height: 1.8px; width: 22px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.header__burger.is-open span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* Search */
.search {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.45s var(--ease);
}
.search.is-open { clip-path: inset(0 0 -40px 0); }
.search__inner { display: flex; align-items: center; gap: 14px; padding: 18px 0; }
.search__inner > svg { font-size: 1.3rem; color: var(--muted); }
.search input { flex: 1; border: 0; background: none; font: inherit; font-size: 1.15rem; color: var(--ink); outline: none; }
.search__close { font-size: 0.75rem; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.search__results { display: grid; gap: 4px; padding-bottom: 12px; }
.search__results:empty { display: none; }
.search-hit { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 12px; transition: background 0.2s; }
.search-hit:hover { background: var(--sand); }
.search-hit img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.search-hit b { font-weight: 600; display: block; }
.search-hit span { font-size: 0.85rem; color: var(--muted); }

/* ============ Hero ============ */
.hero {
  display: grid; grid-template-columns: 1fr 1.08fr;
  background: var(--sand); min-height: min(720px, calc(100vh - 114px)); overflow: hidden;
}
.hero__content {
  padding: 80px 48px 80px max(24px, calc((100vw - 1240px) / 2));
  display: flex; flex-direction: column; justify-content: center;
}
.hero__title { font-size: clamp(2.4rem, 4.4vw, 4rem); color: var(--brown); max-width: 13ch; margin-bottom: 22px; }
.hero__text { color: var(--muted); font-size: 1.06rem; max-width: 46ch; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { list-style: none; padding: 0; margin: 52px 0 0; display: flex; gap: 40px; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--brown); font-weight: 600; line-height: 1.1; }
.hero__stats span { font-size: 0.8rem; color: var(--muted); }
.hero__stats li + li { padding-left: 40px; border-left: 1px solid var(--line); }

.hero__media { position: relative; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__wave { position: absolute; left: -1px; top: 0; height: 100%; width: 110px; z-index: 2; }
.hero__badge {
  position: absolute; left: 90px; bottom: 40px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 250, 244, 0.92); backdrop-filter: blur(10px);
  padding: 12px 18px; border-radius: 99px; font-size: 0.85rem; box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}
.hero__badge b { color: var(--brown); }
.hero__badge-dot { width: 9px; height: 9px; border-radius: 50%; background: #3fae5a; box-shadow: 0 0 0 0 rgba(63, 174, 90, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(63, 174, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 174, 90, 0); } }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ============ Marquee ============ */
.marquee { background: var(--brown); color: var(--sand); overflow: hidden; padding: 26px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 500; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 1.4rem; opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: 110px 0; position: relative; }
.section--sand { background: var(--sand); }
.section--light { background: var(--light); }
.section__title { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--brown); }
.section__title.center { margin-bottom: 50px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }

/* Categories */
.cats { display: grid; grid-template-columns: 1fr 2.05fr 1fr; gap: 18px; height: 420px; }
.cat { position: relative; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; background: var(--brown-3); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); z-index: -2; }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 14, 12, 0.6) 0%, rgba(30, 14, 12, 0) 45%); }
.cat:hover img { transform: scale(1.07); }
.cat__label { padding: 26px; color: #fff; }
.cat__label h3 { font-weight: 500; font-size: 1.5rem; margin-bottom: 8px; }
.cat__label span {
  font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  position: relative; padding-bottom: 3px;
}
.cat__label span::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%; background: currentColor; transform-origin: left; transition: transform 0.4s var(--ease); }
.cat:hover .cat__label span::after { transform: scaleX(0.4); }

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  padding: 8px 18px; border-radius: 99px;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--ink);
  transition: background 0.3s, color 0.3s;
}
.tab:hover { background: var(--sand); }
.tab.is-active { background: var(--brown); color: var(--cream); }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }
.card { position: relative; animation: cardIn 0.6s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
.card__img { position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--radius); overflow: hidden; background: var(--sand-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--sale); color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 4px 9px; border-radius: 6px;
}
.badge--new { background: var(--brown); }
.card__fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 250, 244, 0.92);
  display: grid; place-items: center; color: var(--brown);
  opacity: 0; transform: translateY(-6px); transition: all 0.35s var(--ease);
}
.card__fav.is-on { opacity: 1; transform: none; color: var(--sale); }
.card__fav.is-on svg { fill: currentColor; }
.card:hover .card__fav { opacity: 1; transform: none; }
.card__add {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  padding: 12px; border-radius: 99px; background: var(--brown); color: var(--cream);
  font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transform: translateY(14px); transition: all 0.4s var(--ease);
}
.card__add:hover { background: var(--brown-3); }
.card:hover .card__add, .card__add:focus-visible { opacity: 1; transform: none; }
.card__body { padding-top: 14px; }
.card__name { font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; margin-bottom: 4px; }
.card__price { font-size: 0.9rem; font-weight: 600; color: var(--brown); display: flex; gap: 8px; }
.card__price s { color: var(--muted); font-weight: 400; }
.card__price .sale { color: var(--sale); }
.card__rating { font-size: 0.75rem; color: var(--gold); letter-spacing: 1px; margin-bottom: 4px; }

/* ============ Thanks ============ */
.thanks { background: var(--brown); color: var(--cream); padding: 60px 0; position: relative; margin: 70px 0; }
.wave { position: absolute; left: 0; width: 100%; height: 70px; display: block; }
.wave--top { bottom: calc(100% - 1px); }
.wave--bottom { top: calc(100% - 1px); }
.thanks__title { text-align: center; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; margin-bottom: 44px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: var(--cream); color: var(--ink); border-radius: var(--radius);
  padding: 32px 18px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 0.92rem; font-weight: 500; text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.feature svg { font-size: 2rem; color: var(--brown); stroke-width: 1.4; transition: transform 0.5s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5); }
.feature:hover svg { transform: rotate(-10deg) scale(1.1); }

/* ============ Bundle ============ */
.bundle { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: stretch; }
.bundle__left { display: flex; flex-direction: column; min-width: 0; }
.bundle__head { margin-bottom: 30px; }
.bundle__head .section__title { margin-bottom: 10px; }
.bundle__visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 480px; }
.bundle__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bundle__tag {
  position: absolute; top: 24px; right: 24px;
  width: 104px; height: 104px; border-radius: 50%;
  background: var(--brown); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow); animation: spin 18s linear infinite;
  border: 2px dashed rgba(255, 250, 244, 0.5); outline: 6px solid var(--brown);
}
.bundle__tag span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.bundle__tag strong { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
@keyframes spin { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

/* Carousel */
.carousel__viewport { overflow: hidden; margin: -10px; padding: 10px; }
.carousel__track { display: flex; gap: 22px; transition: transform 0.7s var(--ease); }
.carousel__track > * { flex: 0 0 calc((100% - 66px) / 4); }
#bundleTrack > * { flex-basis: calc((100% - 22px) / 2); }
.carousel__nav { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.carousel__nav--inline { margin-top: 0; }
#bundleTrack .card { text-align: center; }
#bundleTrack .card__price { justify-content: center; }

/* Reviews */
#reviewTrack > * { flex-basis: calc((100% - 44px) / 3); }
.review {
  background: var(--cream); border-radius: var(--radius-lg); padding: 30px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review__stars { color: var(--gold); letter-spacing: 2px; }
.review h3 { font-size: 1.2rem; color: var(--brown); font-weight: 500; }
.review p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.review__who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.review__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review__who b { display: block; font-weight: 600; font-size: 0.92rem; }
.review__who span { font-size: 0.78rem; color: var(--muted); }
.review__quote { margin-left: auto; font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--sand-2); }

/* Spotlight */
.spotlight { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.spotlight__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1; }
.spotlight__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.spotlight__media:hover img { transform: scale(1.05); }
.spotlight__body .section__title { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 16px; }
.spotlight__price { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 0.9rem; }
.spotlight__price strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--brown); font-weight: 600; }
.stars { color: var(--gold); letter-spacing: 1px; }
.ticks { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.ticks li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 500; }
.ticks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brown); }
.sizes { display: flex; gap: 10px; margin-bottom: 26px; }
.size { width: 54px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; transition: all 0.25s; }
.size:hover { border-color: var(--brown); }
.size.is-active { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.spotlight__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; height: 50px; }
.qty button { width: 44px; height: 100%; font-size: 1.2rem; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { position: relative; }
.post__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__img img { transform: scale(1.06); }
.post__card {
  position: relative; margin: -70px 20px 0; background: var(--cream); border-radius: var(--radius);
  padding: 22px 24px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.post:hover .post__card { transform: translateY(-8px); box-shadow: var(--shadow); }
.post time { font-size: 0.78rem; color: var(--muted); }
.post h3 { font-size: 1.18rem; font-weight: 500; margin: 6px 0 12px; color: var(--brown); }

/* ============ Footer ============ */
.footer { background: var(--brown); color: rgba(255, 250, 244, 0.78); position: relative; margin-top: 90px; padding: 30px 0 0; }
.footer .wave { height: 90px; }
.newsletter {
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
  padding: 36px 0 56px; border-bottom: 1px solid rgba(255, 250, 244, 0.14);
}
.newsletter h3 { color: var(--cream); font-size: 1.7rem; font-weight: 500; margin-bottom: 6px; }
.newsletter__form { display: flex; gap: 8px; background: rgba(255, 250, 244, 0.08); padding: 6px; border-radius: 99px; width: min(460px, 100%); }
.newsletter__form input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 0 18px; color: var(--cream); font: inherit; }
.newsletter__form input::placeholder { color: rgba(255, 250, 244, 0.5); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0; }
.footer__grid h4 { color: var(--cream); font-size: 1.05rem; font-weight: 500; margin-bottom: 18px; }
.footer__grid a:not(.logo) { display: block; font-size: 0.92rem; padding: 4px 0; transition: color 0.2s, transform 0.3s var(--ease); }
.footer__grid a:not(.logo):hover { color: var(--cream); transform: translateX(4px); }
.footer__grid p { font-size: 0.92rem; margin-bottom: 12px; }
.footer__brand p { max-width: 36ch; margin: 16px 0 22px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 250, 244, 0.22); display: grid !important; place-items: center; padding: 0 !important; }
.socials a:hover { background: var(--cream); color: var(--brown) !important; transform: none !important; }
.socials svg { font-size: 1.1rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255, 250, 244, 0.14); font-size: 0.82rem; }

/* ============ Drawer ============ */
.overlay { position: fixed; inset: 0; background: rgba(30, 14, 12, 0.45); backdrop-filter: blur(3px); z-index: 90; opacity: 0; visibility: hidden; transition: all 0.4s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 100;
  background: var(--cream); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.55s var(--ease);
  box-shadow: -20px 0 60px rgba(30, 14, 12, 0.2);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.4rem; color: var(--brown); }
.drawer__progress { padding: 16px 24px; font-size: 0.85rem; border-bottom: 1px solid var(--line); }
.drawer__bar { height: 6px; background: var(--sand-2); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.drawer__bar i { display: block; height: 100%; background: var(--brown); border-radius: inherit; transition: width 0.6s var(--ease); }
.drawer__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__empty { text-align: center; padding: 60px 0; color: var(--muted); }
.drawer__empty svg { font-size: 3rem; color: var(--sand-2); margin-bottom: 12px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); animation: cardIn 0.4s var(--ease); }
.line img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.line b { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 6px; }
.line .qty { height: 32px; width: fit-content; }
.line .qty button { width: 30px; font-size: 1rem; }
.line__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-weight: 600; color: var(--brown); }
.line__remove { font-size: 0.75rem; color: var(--muted); text-decoration: underline; font-weight: 400; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.drawer__total strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--brown); }
.drawer__foot .small { margin-bottom: 16px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  background: var(--brown); color: var(--cream); padding: 13px 22px; border-radius: 99px;
  font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow);
  white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis;
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }

/* Image fallback */
img.is-broken { opacity: 0; }
.img-fallback { background: linear-gradient(135deg, var(--sand-2), #d9c2ab); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .carousel__track > * { flex-basis: calc((100% - 44px) / 3); }
  #reviewTrack > * { flex-basis: calc((100% - 22px) / 2); }
  .spotlight { gap: 40px; }
}

@media (max-width: 900px) {
  .header__burger { display: flex; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: center; font-size: 1.5rem; }
  .nav {
    position: fixed; top: 114px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 20px 24px;
    background: var(--light); transform: translateX(-100%); transition: transform 0.5s var(--ease); overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav > a, .nav__item { width: 100%; border-bottom: 1px solid var(--line); }
  .nav__link { font-family: var(--font-display); font-size: 1.4rem; padding: 16px 0; }
  .nav__link::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__content { padding: 60px 24px 50px; }
  .hero__media { height: 380px; }
  .hero__wave { display: none; }
  .hero__badge { left: 20px; bottom: 20px; }
  .cats { grid-template-columns: 1fr 1fr; height: auto; }
  .cat { height: 280px; }
  .cat--b { grid-column: 1 / -1; order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .bundle { grid-template-columns: 1fr; }
  .bundle__visual { min-height: 340px; }
  .spotlight { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .section { padding: 80px 0; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .announce { gap: 8px; }
  .announce__track { width: 260px; }
  .header__divider, .header__actions .icon-btn[aria-label="Account"] { display: none; }
  .hero__stats { gap: 20px; }
  .hero__stats li + li { padding-left: 20px; }
  .hero__stats strong { font-size: 1.4rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .card__add { opacity: 1; transform: none; padding: 9px; font-size: 0.78rem; left: 8px; right: 8px; bottom: 8px; }
  .card__fav { opacity: 1; transform: none; }
  .carousel__track > *, #reviewTrack > * { flex-basis: calc((100% - 22px) / 2); }
  #reviewTrack > * { flex-basis: 100%; }
  .cats { grid-template-columns: 1fr; }
  .cat { height: 230px; }
  .posts { grid-template-columns: 1fr; }
  .section__head { margin-bottom: 30px; }
  .newsletter h3 { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
