/* ==========================================================================
   style.css
   Design tokens, shared components (header, footer, cards, drawers)
   and homepage sections. Reference layout width: 1332px.
   ========================================================================== */

:root {
  --primary: #4b2818;
  --secondary: #795039;
  --button: #6e462c;
  --button-hover: #553420;
  --accent: #c89b63;
  --background: #fcf9f4;
  --surface: #ffffff;
  --cream: #f7e3cd;
  --panel: #f4ebe0;
  --text: #241b16;
  --muted: #77716b;
  --border: #e9e0d5;
  --success: #0d8a15;
  --sale: #e5232e;
  --topbar: #24160c;
  --footer: #25180e;
  --star: #fcb310;

  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;

  --container: 1224px;
  --gutter: 24px;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 2px 10px rgba(75, 40, 24, .06);
  --shadow-lg: 0 10px 28px rgba(75, 40, 24, .13);

  --topbar-height: 46px;
  --header-height: 92px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.has-overlay { overflow: hidden; }

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--brand { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
}

.btn--primary { background: var(--button); color: #fff; }
.btn--primary:hover { background: var(--button-hover); }
.btn--small { padding: 7px 12px; font-size: 12px; }

.btn--buy {
  width: 100%;
  min-height: 44px;
  background: var(--success);
  color: #fff;
}

.btn--buy:hover { background: #0a6f11; }

/* Ringed icon used by promo, guide and benefit lists */
.ring {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-size: 19px;
}

/* ---------- Star rating ---------- */
.stars {
  --size: 14px;
  position: relative;
  display: inline-block;
  flex: none;
  width: calc(var(--size) * 5);
  height: var(--size);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e7dfd5' d='M12 1.8l3.1 6.5 7.1.9-5.2 4.9 1.3 7-6.3-3.4-6.3 3.4 1.3-7L1.8 9.2l7.1-.9z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
}

.stars::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--rating) / 5 * 100%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fcb310' d='M12 1.8l3.1 6.5 7.1.9-5.2 4.9 1.3 7-6.3-3.4-6.3 3.4 1.3-7L1.8 9.2l7.1-.9z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
}

.stars--lg { --size: 19px; }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  background: var(--topbar);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-height);
}

.topbar__list {
  display: flex;
  align-items: center;
  gap: 62px;
  margin-left: 40px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.topbar__list li,
.topbar__phone {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar .icon { font-size: 22px; stroke-width: 1.6; }
.topbar__phone { gap: 8px; margin-right: 12px; font-size: 13px; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  transition: box-shadow .2s ease;
}

.header.is-stuck { box-shadow: 0 2px 14px rgba(36, 22, 12, .1); }

.header__inner {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
}

.header__menu { display: none; font-size: 26px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: #17110c;
}

.logo__text { display: flex; flex-direction: column; line-height: 1; }

.logo__word {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: .03em;
}

.logo__sub {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .78em;
}

.logo--light { color: #fff; }

.nav { margin-left: 78px; }

.nav__head { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 29px;
  font-size: 14px;
  font-weight: 600;
}

.nav__list a {
  position: relative;
  display: block;
  padding-block: 6px;
  transition: color .2s ease;
}

.nav__list a::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.nav__list a:hover,
.nav__list a.is-active { color: var(--secondary); }

.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); }

.search {
  display: flex;
  flex: 0 1 290px;
  height: 46px;
  margin-left: auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #ddd5cb;
  border-radius: 24px;
}

.search:focus-within { border-color: var(--secondary); }

.search input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  background: none;
  font-size: 12.5px;
  outline: none;
}

.search input::placeholder { color: #9c958d; }

.search button {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  background: var(--topbar);
  color: #fff;
  font-size: 19px;
}

.search button:hover { background: var(--primary); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 33px;
  margin-right: -12px;
}

.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 40px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.action .icon { font-size: 26px; stroke-width: 1.7; }
.action:hover { color: var(--secondary); }
.action__icon { position: relative; display: block; line-height: 0; }

.action__count {
  position: absolute;
  top: -5px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--sale);
  border-radius: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* ==========================================================================
   Hero slider
   ========================================================================== */
.hero {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 666 / 245;
  overflow: hidden;
  background: #efe3d4;
}

.hero__track { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}

.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: absolute;
  top: 8.6%;
  left: 38.9%;
  width: 26%;
}

.hero__slide--alt .hero__content { left: 6.4%; width: 32%; top: 11%; }

.hero__title {
  font-family: var(--font-serif);
  font-size: 4.86cqw;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.005em;
  color: #2a1a10;
}

.hero__text {
  margin-top: .75cqw;
  font-size: 1.27cqw;
  line-height: 1.4;
  color: #2c221b;
}

.hero__cta {
  margin-top: 1.1cqw;
  padding: 1cqw 1.45cqw;
  border-radius: .6cqw;
  font-size: max(11px, 1.08cqw);
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  background: #4b2d1b;
}

.hero__arrow {
  position: absolute;
  top: 48%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 3cqw;
  height: 3cqw;
  background: rgba(255, 255, 255, .86);
  border-radius: 50%;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 1.6cqw;
  transform: translateY(-50%);
  transition: transform .2s ease;
}

.hero__arrow:hover { transform: translateY(-50%) scale(1.08); }
.hero__arrow--prev { left: 1.5cqw; }
.hero__arrow--next { top: 52.6%; right: 1.5cqw; }

.hero__benefits {
  position: absolute;
  left: 4.2cqw;
  bottom: 2.2cqw;
  z-index: 2;
  display: flex;
  gap: 2.5cqw;
  color: #fff;
  font-size: max(10.5px, .86cqw);
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.hero.is-light .hero__benefits { color: #33261d; text-shadow: none; }
.hero__benefits li { display: flex; align-items: center; gap: .75cqw; }

.hero__benefits .icon {
  width: 2.5cqw;
  height: 2.5cqw;
  padding: .45cqw;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  stroke-width: 1.7;
}

.hero.is-light .hero__benefits .icon { border-color: currentColor; }

/* ==========================================================================
   Shared section layout
   ========================================================================== */
.section { padding-top: 34px; }

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section__head--stacked { align-items: flex-start; }

.section__title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: #1f1610;
}

.section__sub { margin-top: 2px; font-size: 14px; font-weight: 500; }

.section__link {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #33261d;
  transition: color .2s ease, gap .2s ease;
}

.section__link:hover { color: var(--secondary); gap: 11px; }

/* ---------- Categories ---------- */
.section--categories { padding-top: 22px; padding-bottom: 27px; }
.section--categories .section__head { margin-bottom: 13px; }

.categories {
  display: flex;
  justify-content: space-between;
  padding-inline: 2px;
}

.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 170px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}

.category img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform .3s ease, box-shadow .3s ease;
}

.category:hover img { transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow-lg); }
.category:hover span { color: var(--secondary); }

/* ---------- Secondary promo ---------- */
.promo {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 666 / 115;
  overflow: hidden;
  background: var(--panel);
}

.promo__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo__content {
  position: absolute;
  top: 7.6%;
  left: 45.6%;
  width: 34%;
}

.promo__title {
  font-family: var(--font-serif);
  font-size: 3.68cqw;
  font-weight: 400;
  line-height: 1.07;
  color: #2a1a10;
}

.promo__text {
  margin-top: .62cqw;
  font-size: 1.06cqw;
  font-weight: 500;
  color: #33261d;
}

.promo .btn {
  margin-top: .85cqw;
  padding: .8cqw 1.3cqw;
  font-size: .94cqw;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: #4b2d1b;
}

.promo__benefits {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 81.7%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5cqw;
  padding-bottom: .7cqw;
  font-size: max(10.5px, .96cqw);
  font-weight: 600;
  color: #33261d;
}

.promo__benefits li { display: flex; align-items: center; gap: 1cqw; }

.promo__benefits .ring {
  width: 3.4cqw;
  height: 3.4cqw;
  font-size: 1.5cqw;
}

/* ---------- Featured products ---------- */
.section--featured { padding-top: 24px; }
.section--featured .section__head { margin-bottom: 17px; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; }

.tabs__btn {
  padding: 8px 17px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: #4c4038;
  transition: background-color .2s ease, color .2s ease;
}

.tabs__btn:hover { background: var(--panel); }
.tabs__btn.is-active { background: var(--topbar); color: #fff; font-weight: 600; }

.filter-note { margin: -6px 0 12px; font-size: 13px; color: var(--muted); }
.filter-note a { color: var(--primary); font-weight: 600; text-decoration: underline; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.product-grid__empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

/* Shared product card */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: var(--surface);
  border: 1px solid #f0e9e0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease, transform .25s ease;
}

.card .stars { --size: 16px; }

.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.card__badge {
  position: absolute;
  top: 12px;
  left: 10px;
  z-index: 1;
  padding: 2px 8px;
  background: #f30f12;
  border-radius: 3px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}

.card__wish {
  position: absolute;
  top: 12px;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 18px;
  transition: transform .2s ease, color .2s ease;
}

.card__wish .icon { stroke-width: 1.8; }
.card__wish:hover { transform: scale(1.14); color: var(--sale); }
.card__wish.is-active { color: var(--sale); }
.card__wish.is-active .icon { fill: currentColor; }

.card__image { display: block; }

.card__image img {
  width: 100%;
  height: 136px;
  object-fit: contain;
  transition: transform .3s ease;
}

.card:hover .card__image img { transform: scale(1.04); }

.card__body { display: flex; flex: 1; flex-direction: column; padding-top: 10px; }

.card__name {
  min-height: 38px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.card__name a:hover { color: var(--secondary); }

.card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.card__price { margin-top: 6px; }

.card__price strong {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--sale);
}

.card__price del {
  margin-left: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.card__add {
  gap: 9px;
  width: 100%;
  min-height: 38px;
  margin-top: auto;
  font-size: 13px;
}

.card__price + .card__add { margin-top: 10px; }
.card__add .icon { font-size: 16px; }

/* ---------- Brands ---------- */
.section--brands { padding-top: 26px; }
.section--brands .section__head { margin-bottom: 14px; }

.brands {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.brand {
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #f0e9e0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease, transform .25s ease;
}

.brand:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.brand img { width: 100%; height: 108px; object-fit: contain; }

/* ---------- Shades ---------- */
.section--shades { padding-top: 26px; }
.section--shades .section__head { margin-bottom: 18px; }

.shades {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.shade {
  display: block;
  padding: 6px 6px 0;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease, transform .25s ease;
}

.shade:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.shade img {
  width: 100%;
  height: 146px;
  object-fit: cover;
  border-radius: 4px;
}

.shade__body { display: block; padding: 11px 0 11px; text-align: center; }
.shade__body strong { display: block; font-size: 13.5px; font-weight: 600; }
.shade__body small { display: block; font-size: 11.5px; color: var(--muted); }

/* ---------- Guide ---------- */
.guide {
  display: grid;
  grid-template-columns: 232fr 200fr 234fr;
  container-type: inline-size;
  aspect-ratio: 666 / 145;
  margin-top: 30px;
  overflow: hidden;
  background: var(--panel) url('../images/banners/guide-left.webp') left center / 34.84% 100% no-repeat;
}

.guide__intro { padding: 2.7cqw 3cqw 0 4.2cqw; color: #2a1a10; }

.guide__title {
  font-family: var(--font-serif);
  font-size: 3cqw;
  font-weight: 400;
  line-height: 1.1;
}

.guide__intro p {
  margin-top: .7cqw;
  font-size: 1.27cqw;
  font-weight: 500;
  line-height: 1.45;
}

.guide .btn {
  margin-top: 1cqw;
  padding: .75cqw 1.3cqw;
  font-size: .95cqw;
  background: #4b2d1b;
}

.guide__model { min-height: 0; }
.guide__model img { width: 100%; height: 100%; object-fit: cover; }

.guide__tips {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .55cqw;
  padding: 0 1.2cqw 0 2.5cqw;
  background: #f3ece0 url('../images/banners/guide-right.webp') center / cover no-repeat;
}

.guide__tips li { display: flex; align-items: center; gap: 1.5cqw; }

.guide__tips .ring {
  width: 4cqw;
  height: 4cqw;
  font-size: 1.7cqw;
}

.guide__tips strong { display: block; font-size: max(11px, 1.02cqw); font-weight: 600; }
.guide__tips p { font-size: max(10.5px, .95cqw); color: #4a3f38; }

/* ---------- Reviews ---------- */
.section--reviews { padding-top: 21px; }

.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review {
  display: flex;
  gap: 18px;
  padding: 18px 20px 28px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.review > img {
  flex: none;
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 50%;
}

.review h3 { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.review__city { font-size: 12px; color: var(--muted); }
.review .stars { margin-top: 6px; }
.review__text { margin-top: 6px; font-size: 13px; line-height: 1.5; color: #4c4038; }

/* ---------- FAQ ---------- */
.section--faq { padding-top: 26px; padding-bottom: 32px; }

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 20px;
  align-items: start;
}

.faq--single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

.faq__item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.faq__item h3 { font-size: inherit; font-weight: inherit; }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 47px;
  padding: 8px 22px;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
}

.faq__question .icon { font-size: 16px; transition: transform .25s ease; }
.faq__item.is-open .faq__question .icon { transform: rotate(180deg); }

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}

.faq__answer > div { min-height: 0; overflow: hidden; }
.faq__answer p { padding: 0 22px 16px; font-size: 13px; color: var(--muted); }
.faq__item.is-open .faq__answer { grid-template-rows: 1fr; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding-top: 38px;
  background: var(--footer);
  color: #e9dfd5;
}

.footer__grid {
  display: grid;
  grid-template-columns: 306fr 176fr 222fr 252fr 268fr;
  align-items: start;
}

.footer__brand { padding-right: 36px; }
.footer__brand p { margin-top: 18px; font-size: 13px; line-height: 1.5; }

.socials { display: flex; gap: 14px; margin-top: 18px; }

.socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  color: var(--footer);
  font-size: 16px;
  transition: background-color .2s ease;
}

.socials a:hover { background: var(--accent); }

.footer__col h3 {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.footer__col ul { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer__col a, .footer__col button { transition: color .2s ease; }
.footer__col a:hover, .footer__col button:hover { color: var(--accent); }
.footer__contact ul { gap: 14px; }
.footer__contact li { display: flex; align-items: center; gap: 12px; }
.footer__contact .icon { font-size: 16px; color: #fff; }

.footer__news p { font-size: 13px; line-height: 1.45; }

.newsletter {
  display: flex;
  height: 48px;
  margin-top: 12px;
  padding: 4px;
  background: #fff;
  border-radius: var(--radius-sm);
}

.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 12.5px;
  outline: none;
}

.newsletter button {
  flex: none;
  padding: 0 14px;
  background: #c79f76;
  border-radius: 4px;
  color: #2a1a10;
  font-size: 12.5px;
  font-weight: 600;
  transition: background-color .2s ease;
}

.newsletter button:hover { background: var(--accent); }
.footer__news .newsletter__msg { min-height: 18px; margin-top: 4px; font-size: 11.5px; color: #b6e5b4; }
.footer__news .newsletter__msg.is-error { color: #ffb3a8; }

.footer__news .payments { display: flex; flex-direction: row; gap: 8px; margin-top: 2px; }
.payments img { width: 52px; height: 30px; }

.footer__copy {
  margin-top: 34px;
  padding-block: 26px 34px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  color: #cfc4b9;
}

/* ==========================================================================
   Quantity, drawers and toast
   ========================================================================== */
.qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd5cb;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.qty button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 36px;
  font-size: 14px;
  transition: color .2s ease;
}

.qty button:hover { color: var(--secondary); }
.qty--small button { width: 28px; height: 28px; font-size: 12px; }
.qty--small span { min-width: 22px; font-size: 13px; font-weight: 600; text-align: center; }

.scrim, .nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(36, 22, 12, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}

.drawer.is-open ~ .scrim,
.scrim:has(~ .drawer.is-open),
.nav-scrim.is-visible { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  background: var(--surface);
  box-shadow: -10px 0 30px rgba(36, 22, 12, .18);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .28s ease, visibility .28s;
}

.drawer.is-open { transform: none; visibility: visible; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer__head h2 { font-size: 18px; font-weight: 700; }
.drawer__head button { font-size: 22px; line-height: 0; }
.drawer__body { flex: 1; padding: 6px 20px; overflow-y: auto; }
.drawer__empty { padding: 48px 0; color: var(--muted); text-align: center; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--border); }

.drawer__total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
}

.drawer__note { margin: 4px 0 12px; font-size: 12px; color: var(--muted); }

.line {
  display: flex;
  gap: 14px;
  padding-block: 14px;
  border-bottom: 1px solid var(--border);
}

.line img { width: 72px; height: 72px; object-fit: contain; }
.line__body { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.line__name { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.line small { font-size: 12px; color: var(--muted); }
.line strong { font-size: 14px; color: var(--sale); }

.line__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.line__remove { font-size: 17px; color: var(--muted); line-height: 0; }
.line__remove:hover { color: var(--sale); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  background: var(--topbar);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
