/* ==========================================================================
   The Loaded Tea Shop — theme
   Design tokens trích từ theloadedteashop.com
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'TanSongBird';
  src: url('../fonts/tansongbird.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* palette */
  --sky:        #bfedfe;   /* nền xanh nhạt chủ đạo   */
  --sky-deep:   #eabeff;
  --purple:     #9319fa;   /* tím thương hiệu         */
  --pink:       #fdcaee;
  --pink-hot:   #ffb3ef;
  --ink:        #3f0791;   /* tím đậm — màu chữ chính */
  --btn:        #7e22ce;
  --btn-hover:  #6b21a8;
  --star:       #ffd36b;
  --white:      #fffefd;
  --black:      #000000;

  /* gradients */
  --g-announce:  linear-gradient(90deg, #45d2e4 0%, #3651fd 100%);
  --g-hero:      linear-gradient(90deg, #901afd 0%, #f702ad 100%);
  --g-easy:      linear-gradient(180deg, #bfedfe 35%, #ffb3ef 100%);
  --g-guarantee: linear-gradient(90deg, #ec9a32 0%, #f503af 100%);
  --g-soft:      linear-gradient(0deg, #eabeff 50%, #bfedfe 100%);

  /* type */
  --font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'TanSongBird', 'Fraunces', Georgia, serif;

  /* Font display rất rộng (~0.92em/ký tự) — cỡ min phải đủ nhỏ để từ dài
     nhất ("Addictively", "Ingredients") không làm tràn ngang ở 360px. */
  --fs-h1: clamp(1.95rem, 5vw, 4.4rem);
  --fs-h2: clamp(1.75rem, 4vw, 3.25rem);
  --fs-h3: clamp(1.5rem, 3.2vw, 2.6rem);
  --fs-h4: clamp(1.35rem, 2.4vw, 2rem);
  --fs-lead: clamp(1rem, 1.6vw, 1.25rem);

  /* layout */
  --wrap: 1280px;
  --wrap-wide: 1600px;
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 84px;

  --ease: cubic-bezier(0, 0, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

/* TanSongBird có ascender/descender rất cao — line-height phải rộng,
   nếu không các dòng sẽ chồng lên nhau. */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}
.wrap--wide { max-width: var(--wrap-wide); }

.section        { position: relative; padding-block: clamp(48px, 7vw, 96px); }
.section--sky   { background: var(--sky); }
.section--pink  { background: var(--pink); }
.section--purple{ background: var(--purple); }
.section--soft  { background: var(--g-soft); }

.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  padding: 1.1em 2.4em 0.9em;
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 6px 18px rgba(63, 7, 145, 0.22);
}
.btn:hover  { background: var(--btn-hover); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(63, 7, 145, 0.3); }
.btn:active { transform: translateY(0); }

.btn--ink   { background: var(--ink); }
.btn--ink:hover { background: #2e0569; }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #f4e9ff; }

/* --------------------------------------------------------------------------
   5. Stars
   -------------------------------------------------------------------------- */
.stars { display: inline-flex; gap: 2px; line-height: 0; }
.star  { width: 16px; height: 16px; fill: var(--star); }
.star--empty { fill: rgba(0, 0, 0, 0.15); }

/* ==========================================================================
   SECTION 1 — Announcement bar
   ========================================================================== */
.announcement {
  position: relative;
  z-index: 30;
  background: var(--g-announce);
  color: #fff;
}
.announcement__inner {
  display: block;
  padding: 10px 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
a.announcement__inner:hover { text-decoration: underline; }

@media (max-width: 479px) {
  .announcement__inner { font-size: 12.5px; padding-inline: 12px; letter-spacing: 0; }
}

/* ==========================================================================
   SECTION 2 — Header
   ========================================================================== */
.header {
  position: relative;
  z-index: 25;
  background: var(--white);
}
.header--sticky { position: sticky; top: 0; }

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding: 8px 20px;
}

.header__nav      { justify-self: start; }
.header__brand    { justify-self: center; }
.header__actions  { justify-self: end; display: flex; align-items: center; gap: 6px; }

.header__logo img {
  width: clamp(78px, 8vw, 118px);
  transition: transform 0.3s var(--ease);
  transform-origin: center;
}
.is-scrolled .header__logo img { transform: scale(0.78); }

.nav-list { display: flex; align-items: center; gap: 32px; }
.nav-list a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding-block: 6px;
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--purple);
  transition: width 0.25s var(--ease);
}
.nav-list a:hover::after { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.2s var(--ease);
}
.icon-btn:hover { background: rgba(147, 25, 250, 0.1); }
.icon-btn svg   { width: 22px; height: 22px; }

.cart-btn { position: relative; }
.cart-btn__count {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.burger { display: none; }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(320px, 84vw);
  background: var(--purple);
  color: #fff;
  padding: 24px;
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease);
  z-index: 60;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; color: #fff; }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__list { display: grid; gap: 4px; margin-top: 48px; }
.drawer__list a {
  display: block;
  padding: 14px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 17px;
}
.drawer__list a:hover { background: rgba(255, 255, 255, 0.14); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  z-index: 55;
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   SECTION — Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--g-hero);
  color: #fff;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 8px;
  padding-top: clamp(32px, 5vw, 64px);
}
/* grid item mặc định min-width:auto — chữ display dài sẽ phình track ra
   ngoài container, nên phải ép về 0. */
.hero__copy,
.hero__media { min-width: 0; }
.hero__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.7rem);
  letter-spacing: 0.05em;
  line-height: 1.7;
  margin-bottom: 0;
}
.hero__title {
  font-size: var(--fs-h1);
  margin-bottom: 0.2em;
}
.hero__body {
  font-size: var(--fs-lead);
  font-weight: 600;
  max-width: 34ch;
  margin-bottom: 2em;
}
.hero__media { position: relative; }
.hero__media img { width: 100%; }

@media (max-width: 767px) {
  .hero__inner  { text-align: center; padding-bottom: 0; }
  .hero__body   { margin-inline: auto; }
  .hero__cta    { display: flex; justify-content: center; margin-bottom: 24px; }
  .hero__media  { margin-inline: -20px; }
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: end;
    gap: 24px;
    min-height: clamp(420px, 46vw, 640px);
  }
  .hero__copy  { padding-bottom: clamp(40px, 6vw, 88px); }
  .hero__media { align-self: end; margin-bottom: -1px; }
}

/* ==========================================================================
   SECTION 3 — What is Loaded Tea?
   ========================================================================== */
.whatis { background: var(--sky); }
.whatis__head { text-align: center; margin-bottom: clamp(24px, 4vw, 48px); }
.whatis__title { font-size: var(--fs-h2); margin-bottom: 0.3em; }
.whatis__sub   { font-size: var(--fs-lead); font-weight: 600; margin: 0; }

.whatis__grid {
  display: grid;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
}
.whatis__grid > * { min-width: 0; }

.whatis__media { position: relative; }
.whatis__main { margin-inline: auto; max-width: 520px; width: 100%; }

.whatis__decor {
  position: absolute;
  width: clamp(64px, 8vw, 112px);
  pointer-events: none;
  z-index: 2;
}
.whatis__decor--a { left: -6%;  bottom: -6%; }
.whatis__decor--b { right: -6%; bottom: -10%; }

.feature-list { display: grid; gap: 14px; }

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 6px 18px rgba(63, 7, 145, 0.08);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.feature:hover { transform: translateY(-3px); background: #fff; }

.feature__check {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--purple);
  display: grid;
  place-items: center;
}
.feature__check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; }

.feature__text { font-weight: 700; line-height: 1.25; font-size: clamp(0.9rem, 1.4vw, 1.05rem); }
.feature__text span { display: block; font-weight: 500; opacity: 0.85; }

@media (min-width: 900px) {
  .whatis__grid { grid-template-columns: 1fr minmax(280px, 460px) 1fr; }
  .feature-list--right .feature { flex-direction: row-reverse; text-align: right; }
}

/* ==========================================================================
   SECTION 4 — Build Your Own Bundle
   ========================================================================== */
.bundle { background: var(--g-soft); }
.bundle__head  { text-align: center; margin-bottom: clamp(20px, 3vw, 36px); }
.bundle__title { font-size: var(--fs-h2); margin-bottom: 0.25em; }
.bundle__sub   { font-weight: 700; font-size: var(--fs-lead); margin: 0; }

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 40px);
  flex-wrap: wrap;
}
.tab {
  position: relative;
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.tab:hover { background: #fff; }
.tab[aria-selected='true'] { background: var(--ink); color: #fff; }
.tab__flag {
  position: absolute;
  top: -9px; right: -6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 20px);
}
@media (min-width: 640px)  { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(63, 7, 145, 0.09);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(63, 7, 145, 0.18); }

.card__media { position: relative; aspect-ratio: 1; background: #f6f1fb; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.card__badge--decaf { background: #fff; color: var(--purple); box-shadow: 0 2px 8px rgba(0,0,0,.12); }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  min-width: 0;
  padding: 14px 14px 16px;
}
/* break-word chỉ ngắt khi từ thật sự không vừa 1 dòng — nhẹ hơn `anywhere`
   và không ảnh hưởng min-content của lưới. */
.card__name,
.card__notes li { overflow-wrap: break-word; }

@media (max-width: 479px) {
  .card__body  { padding: 12px 10px 14px; }
  .card__notes li { font-size: 10px; padding: 3px 7px; }
  .card__cta   { padding: 10px; font-size: 12px; }
}

.card__name {
  font-family: var(--font-display);
  /* 3.6vw bám theo bề rộng cột lúc lưới đang là 2 cột (<640px),
     nhờ vậy tên dài như "Mermaid" không bị ngắt giữa từ. */
  font-size: clamp(0.7rem, calc(3.6vw - 1.5px), 1.3rem);
  letter-spacing: 0.04em;
}

.card__rating { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: 0.75; }

.card__notes { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.card__notes li {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(147, 25, 250, 0.09);
}

.card__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.card__price del  { font-size: 13px; opacity: 0.5; }
.card__price ins  { font-size: 18px; font-weight: 800; text-decoration: none; color: var(--purple); }

.card__cta {
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.2s var(--ease);
}
.card__cta:hover:not(:disabled) { background: var(--btn-hover); }
.card__cta:disabled { background: #cfc7da; color: #6b6478; cursor: not-allowed; }

.bundle__footer { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }

/* ==========================================================================
   SECTION 5 — Reviews
   ========================================================================== */
.reviews { background: var(--purple); color: #fff; overflow: hidden; }
.reviews__head { text-align: center; margin-bottom: clamp(24px, 3vw, 40px); }
.reviews__title { font-size: var(--fs-h2); color: #fff; margin-bottom: 0.3em; }
.reviews__sub  { font-size: 15px; opacity: 0.85; margin: 0; }

.reviews__viewport { overflow: hidden; }
.reviews__track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.review {
  flex: 0 0 auto;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
@media (min-width: 768px) { .review { width: 340px; } }

.review__title { font-weight: 800; font-size: 16px; }
.review__body  { font-size: 14px; line-height: 1.6; margin: 0; flex: 1; }
.review__meta  { font-size: 12px; opacity: 0.7; }
.review__product { font-size: 13px; font-weight: 700; color: var(--purple); }

.reviews__nav { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.reviews__nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background-color 0.2s var(--ease);
}
.reviews__nav button:hover { background: rgba(255, 255, 255, 0.34); }
.reviews__nav svg { width: 18px; height: 18px; }

/* ==========================================================================
   SECTION 6 — Super easy
   ========================================================================== */
.easy { background: var(--g-easy); }
.easy__head  { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); position: relative; }
.easy__title { font-size: var(--fs-h2); margin-bottom: 0.4em; }
.easy__sub   { font-size: var(--fs-lead); margin: 0; }

.easy__decor {
  position: absolute;
  top: -18px; left: 0;
  width: clamp(48px, 5.5vw, 78px);
  pointer-events: none;
}
@media (max-width: 599px) { .easy__decor { display: none; } }

.easy__grid { display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; }
.easy__grid > * { min-width: 0; }
@media (min-width: 768px) { .easy__grid { grid-template-columns: 1fr 1fr; } }

.steps { display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 20px 10px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, 0.72); transform: translateX(4px); }
.step img  { width: clamp(48px, 6vw, 68px); }
.step span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  letter-spacing: 0.05em;
}

.easy__media img {
  border-radius: 16px;
  margin-inline: auto;
  max-height: clamp(340px, 42vw, 540px);
  width: auto;
  object-fit: cover;
}
.easy__cta { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }

/* ==========================================================================
   SECTION 7 — Clean Ingredients
   ========================================================================== */
.clean { background: var(--pink); }
.clean__title { font-size: var(--fs-h2); text-align: center; margin-bottom: clamp(24px, 4vw, 44px); }

.clean__grid { display: grid; gap: clamp(20px, 3vw, 44px); align-items: center; justify-items: center; }
@media (min-width: 768px) { .clean__grid { grid-template-columns: minmax(0, 420px) minmax(0, 380px); justify-content: center; } }

.clean__media img { max-width: 420px; width: 100%; }

.badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.badge  { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.badge img { width: clamp(64px, 8vw, 92px); }
.badge span {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* ==========================================================================
   SECTION 8 — The Loaded Tea Promise
   ========================================================================== */
.promise { background: var(--sky); overflow: hidden; }
.promise__inner { position: relative; text-align: center; }

.promise__block + .promise__block { margin-top: clamp(28px, 4vw, 48px); }
.promise__heading { font-size: var(--fs-h3); margin-bottom: 0.4em; }
.promise__body {
  font-weight: 600;
  font-size: var(--fs-lead);
  max-width: 46ch;
  margin-inline: auto;
}

.promise__fruit { position: absolute; width: clamp(58px, 7vw, 110px); pointer-events: none; opacity: 0.95; }
.promise__fruit--1 { top: -10px;  right: -10px; }
.promise__fruit--2 { top: 26%;    left: -20px; }
.promise__fruit--3 { bottom: 6%;  right: -10px; }
.promise__fruit--4 { bottom: -20px; left: 4%; }

@media (max-width: 899px) {
  .promise__fruit--2,
  .promise__fruit--3 { display: none; }
}

/* ==========================================================================
   SECTION 9 — Happiness 100% Guaranteed
   ========================================================================== */
.guarantee { background: var(--g-guarantee); color: #fff; }
.guarantee__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  text-align: center;
  padding-block: clamp(36px, 5vw, 60px);
}
.guarantee__media img { width: clamp(160px, 22vw, 260px); }
.guarantee__title { font-size: var(--fs-h3); color: #fff; margin-bottom: 0.4em; }
.guarantee__body  { font-weight: 600; font-size: clamp(0.95rem, 1.4vw, 1.05rem); max-width: 52ch; margin-bottom: 1.6em; }

@media (min-width: 768px) {
  .guarantee__inner { flex-direction: row; text-align: left; justify-content: center; }
  .guarantee__body  { margin-inline: 0; }
  .guarantee__copy  { max-width: 34em; }
}

/* ==========================================================================
   SECTION 10 — Footer
   ========================================================================== */
.footer { background: var(--black); color: #fff; padding-block: clamp(36px, 5vw, 56px) 0; }

.footer__grid { display: grid; gap: 28px; }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: auto repeat(2, minmax(0, 1fr)); gap: 48px; }
}

.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__brand img:first-child { width: 92px; }
.footer__brand img + img       { width: 72px; }

.footer__col-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.05em;
  color: #fff;
  text-align: left;
}
.footer__col-title svg { width: 16px; transition: transform 0.25s var(--ease); fill: #fff; flex: 0 0 auto; }
.footer__col.is-open .footer__col-title svg { transform: rotate(180deg); }

.footer__links {
  display: grid;
  gap: 10px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
}
.footer__col.is-open .footer__links { max-height: 420px; padding-bottom: 12px; }

.footer__links a { font-size: 14px; opacity: 0.85; transition: opacity 0.2s var(--ease); }
.footer__links a:hover { opacity: 1; text-decoration: underline; }

.footer__bestseller {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--purple);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .footer__col-title { pointer-events: none; padding-top: 0; }
  .footer__col-title svg { display: none; }
  .footer__links { max-height: none !important; padding-bottom: 0 !important; }
}

.footer__social { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 14px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s var(--ease);
}
.footer__social a:hover { background: rgba(255, 255, 255, 0.24); }
.footer__social img { width: 17px; height: 17px; }

.footer__bottom {
  margin-top: 28px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  opacity: 0.7;
  text-align: center;
}

/* ==========================================================================
   SECTION 11 — Cookie consent (modal che toàn màn hình)
   ========================================================================== */
/* <dialog> chưa mở đã là display:none theo UA stylesheet, nhưng trình duyệt cũ
   không hỗ trợ <dialog> thì không có rule đó — thiếu dòng này dialog sẽ đổ
   thẳng vào giữa trang. */
.cookie-consent:not([open]) { display: none; }

.cookie-consent {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: clamp(26px, 4vw, 38px) clamp(22px, 3.5vw, 34px);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(63, 7, 145, 0.35);
  text-align: center;
}
.cookie-consent:focus { outline: none; }   /* nhận focus khi mở, không cần viền */

.cookie-consent::backdrop {
  background: rgba(20, 2, 46, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Cỡ chữ cố ý nhỏ hơn --fs-h4: rộng hơn ~1.5rem là tiêu đề vỡ 2 dòng trong
   card 520px. line-height giữ 1.7 như h2 chung — TanSongBird ascender/descender
   rất cao, bóp xuống là hai dòng chồng lên nhau. */
.cookie-consent__title {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  margin-bottom: 10px;
  text-wrap: balance;
}

.cookie-consent__text { margin: 0 0 22px; font-size: 15px; line-height: 1.6; }
.cookie-consent__text a { color: var(--purple); font-weight: 600; text-decoration: underline; }

/* flex-basis 150px + wrap: màn hẹp không đủ chỗ cho 2 nút thì tự xuống dòng
   thành 2 nút full-width thay vì tràn ngang. */
.cookie-consent__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cookie-consent__actions .btn {
  flex: 1 1 150px;
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  letter-spacing: 0.06em;
  padding: 1.05em 1.4em 0.9em;
  white-space: nowrap;   /* .btn có line-height:1, để vỡ dòng là chữ tràn ra ngoài nút */
}

/* Nút "chỉ cookie thiết yếu" nhạt hơn để Accept vẫn là hành động chính. */
.cookie-consent__actions .btn--soft {
  background: rgba(147, 25, 250, 0.1);
  color: var(--ink);
  box-shadow: none;
}
.cookie-consent__actions .btn--soft:hover { background: rgba(147, 25, 250, 0.18); }

/* Dialog đi từ display:none nên muốn có transition phải khai báo @starting-style
   + allow-discrete. Trình duyệt chưa hỗ trợ thì dialog hiện ngay, không vỡ gì. */
@media (prefers-reduced-motion: no-preference) {
  .cookie-consent {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
                overlay 0.28s var(--ease) allow-discrete, display 0.28s var(--ease) allow-discrete;
  }
  .cookie-consent[open] { opacity: 1; transform: none; }
  @starting-style {
    .cookie-consent[open] { opacity: 0; transform: translateY(14px) scale(0.97); }
  }

  .cookie-consent::backdrop {
    opacity: 0;
    transition: opacity 0.28s var(--ease),
                overlay 0.28s var(--ease) allow-discrete, display 0.28s var(--ease) allow-discrete;
  }
  .cookie-consent[open]::backdrop { opacity: 1; }
  @starting-style {
    .cookie-consent[open]::backdrop { opacity: 0; }
  }
}

/* ==========================================================================
   Responsive — header
   ========================================================================== */
@media (max-width: 989px) {
  .header__nav .nav-list { display: none; }
  .burger { display: inline-flex; }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
}
