/* ==========================================================================
   CarlinKit — theme
   Design token & số đo trích từ carlinkit.store (Shopify, theme class "cc-*").
   Mọi giá trị dưới đây lấy bằng getComputedStyle hoặc chụp màn hình bản gốc
   (khảo sát 2026-11-16) — không ước lượng.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* palette — bản gốc nền tối gần như đen, chữ trắng, điểm nhấn cam */
  --brand:        #ff580d;   /* cam — "Sales", promo strip, giá, nút          */
  --brand-dark:   #e04d0a;   /* hover nút                                      */
  --brand-btn-tx: #fff;

  --ink:          #0f100f;   /* nền chính của toàn trang (gần đen)            */
  --ink-soft:     #1a1b1a;   /* nền thanh header / card                       */
  --ink-softer:   #222322;   /* nền card nhạt hơn 1 bậc (promo, nav)          */
  --line:         rgba(255, 255, 255, .1);

  --white:        #fff;
  --text:         #fff;
  --text-muted:   rgba(255, 255, 255, .65);
  --text-faint:   rgba(255, 255, 255, .4);

  --price-was:    rgba(255, 255, 255, .4);
  --stock-ok:     #39c26a;
  --stock-low:    #ff9f1c;
  --stock-out:    #ff4d4f;

  --marquee-bg:   #f4f3f0;   /* dải logo hãng xe — nền sáng, tương phản bản gốc */
  --marquee-ink:  #0f100f;

  /* type — DM Sans là font duy nhất của theme */
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* layout */
  --page-width:  1400px;
  --gutter:      50px;       /* ≥750px; dưới đó còn 20px                      */
  --radius:      12px;       /* card, media                                   */
  --radius-btn:  999px;      /* nút bo tròn hoàn toàn, đúng bản gốc            */
  --header-h:    104px;

  --shadow-card: rgba(0, 0, 0, .35) 0 8px 20px;
}

/* --------------------------------------------------------------------------
   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);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--ink);
  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; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--brand);
  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;
}

.icon { display: block; width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   3. Layout helper
   -------------------------------------------------------------------------- */
.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 750px) {
  .page-width { padding: 0 var(--gutter); }
}

.section { padding: 50px 0; }

@media (min-width: 768px) {
  .section { padding: 80px 0; }
}

.section-heading {
  color: var(--text);
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}
.section-heading p { margin: 0; }
.section-heading em { font-style: normal; color: var(--brand); }

.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  padding-bottom: var(--ratio, 100%);
}
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   4. Nút
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  background: var(--brand);
  color: var(--brand-btn-tx);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover  { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }

.btn--wide { padding: 14px 40px; }
.btn--full { display: flex; width: 100%; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-announcement {
  background: var(--ink-soft);
  color: var(--text-muted);
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
}
.site-announcement p { margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  transition: top .25s ease;
}
.site-header.is-hidden { top: calc(-1 * var(--header-h)); }

.site-header__bar {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  padding: 20px 0;
}

.header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--text);
  position: relative;
  flex-shrink: 0;
}
.header__icon--menu { width: 18px; height: 16px; }

.header__cart-count {
  position: absolute;
  top: -6px; right: -8px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.header__logo { flex-shrink: 0; }
.header__logo img { width: 150px; height: auto; }

.header__search {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 560px;
  background: var(--ink-softer);
  border-radius: var(--radius-btn);
  padding: 2px 2px 2px 20px;
}
.header__search input {
  flex: 1;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 10px 0;
}
.header__search input::placeholder { color: var(--text-faint); }
.header__search-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}

.header__group        { display: flex; align-items: center; gap: 18px; }
.header__group--end   { justify-content: flex-end; margin-left: auto; }

.site-header__nav {
  border-top: 1px solid var(--line);
  display: none;
}
.site-header__nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.site-header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color .2s ease;
}
.site-header__nav a:hover,
.site-header__nav a.is-highlight { color: var(--brand); }

.site-header__icons {
  background: var(--ink);
  border-top: 1px solid var(--line);
  display: none;
}
.site-header__icons ul {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  flex-wrap: wrap;
}
.site-header__icons-glyph {
  display: inline-block;
  width: 16px; height: 16px;
  margin-right: 8px;
  border-radius: 3px;
  background: var(--brand);
  vertical-align: -3px;
}

.site-header__promo {
  background: var(--brand);
  color: var(--white);
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
}
.site-header__promo .page-width {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.site-header__promo strong { font-weight: 700; }
.site-header__promo-code {
  border: 1px dashed rgba(255,255,255,.6);
  border-radius: var(--radius-btn);
  padding: 4px 14px;
  font-weight: 700;
  letter-spacing: .5px;
}
.site-header__promo-copy {
  text-decoration: underline;
  font-weight: 600;
}

@media (min-width: 990px) {
  .site-header__nav,
  .site-header__icons { display: block; }
  .header__icon--menu { display: none; }
}

@media (max-width: 749px) {
  .site-header__inner { padding: 14px 0; gap: 12px; min-height: 72px; }
  :root { --header-h: 72px; }
  .header__logo img { width: 110px; }
  .header__search { display: none; }
}

/* Drawer menu (nút ☰) */
.menu-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(360px, 88vw);
  z-index: 60;
  background: var(--ink-soft);
  padding: 24px;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}
.menu-drawer[data-open='true'] { transform: none; }

.menu-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.menu-drawer__head img { width: 130px; }
.menu-drawer__close { width: 18px; height: 18px; color: var(--text); }

.menu-drawer__menu a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.menu-drawer__menu a:hover { color: var(--brand); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.drawer-backdrop[data-open='true'] { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   6. Hero — slideshow (bản tĩnh, in 1 slide)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.hero__media { position: relative; }
.hero__media img { width: 100%; height: auto; display: block; max-height: 640px; object-fit: cover; }

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.3) 45%, transparent 75%);
}
.hero__content { max-width: 560px; }

.hero__eyebrow {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  margin: 0 0 12px;
}

.hero__heading {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 28px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
}
.hero__dot.is-active { background: var(--white); }

@media (max-width: 989px) {
  .hero__heading { font-size: 32px; }
}
@media (max-width: 749px) {
  .hero__media img { max-height: 420px; }
  .hero__overlay { background: linear-gradient(0deg, rgba(0,0,0,.75) 20%, rgba(0,0,0,.25) 70%); align-items: flex-end; padding-bottom: 30px; }
  .hero__heading { font-size: 26px; margin-bottom: 20px; }
}

/* --------------------------------------------------------------------------
   7. "Shop Deals for Early Black Friday" — lưới collection tròn
   -------------------------------------------------------------------------- */
.unlike-any-other {
  background: var(--ink-soft);
  padding: 50px 0;
}
@media (min-width: 768px) {
  .unlike-any-other { padding: 70px 0; }
}

.unlike-any-other-header { margin-bottom: 40px; }
.unlike-any-other-header .section-heading { text-align: left; color: var(--brand); font-size: 26px; }

.unlike-any-other .block-wrapper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.unlike-any-other .block { text-align: center; }
.unlike-any-other .block-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}
.unlike-any-other .block-media img { width: 100%; height: 100%; object-fit: cover; }
.unlike-any-other .block-title {
  font-weight: 700;
  color: var(--brand);
  font-size: 15px;
  line-height: 1.3;
}
.unlike-any-other .block-text {
  font-size: 13px;
  color: var(--text);
  margin-top: 6px;
}

@media (max-width: 989px) {
  .unlike-any-other .block-wrapper { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 749px) {
  .unlike-any-other .block-wrapper {
    display: flex;
    grid-template-columns: none;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 16px;
  }
  .unlike-any-other .block-wrapper::-webkit-scrollbar { display: none; }
  .unlike-any-other .block { flex: 0 0 40%; scroll-snap-align: center; }
}

/* --------------------------------------------------------------------------
   8. Banner "Black Friday Sale" — countdown full-bleed
   -------------------------------------------------------------------------- */
.image-with-blocks .countdown-banner {
  position: relative;
  overflow: hidden;
}
.countdown-banner__media {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
}
.countdown-banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
  max-width: 640px;
  background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.countdown-banner .block-caption {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 14px;
  margin-bottom: 10px;
}
.countdown-banner .section-heading { text-align: left; font-size: 42px; margin-bottom: 10px; }
.countdown-banner__sub { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; }

.countdown-banner__timer {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}
.countdown-banner__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 16px;
  min-width: 64px;
}
.countdown-banner__value { font-size: 26px; font-weight: 900; }
.countdown-banner__label { font-size: 11px; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }

.countdown-banner__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 749px) {
  .countdown-banner__media { max-height: 420px; }
  .countdown-banner__content { padding: 0 24px; background: linear-gradient(0deg, rgba(0,0,0,.75) 30%, rgba(0,0,0,.2) 80%); justify-content: flex-end; padding-bottom: 30px; }
  .countdown-banner .section-heading { font-size: 28px; }
  .countdown-banner__timer { gap: 8px; }
  .countdown-banner__unit { min-width: 50px; padding: 8px 10px; }
  .countdown-banner__value { font-size: 20px; }
}

/* --------------------------------------------------------------------------
   9. Thẻ sản phẩm dùng chung (Trending now / Rollbacks / Featured products)
   -------------------------------------------------------------------------- */
.product-card {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card__media { position: relative; background: var(--white); }
.product-card__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--brand);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-btn);
  z-index: 2;
}
.product-card__info { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__price { display: flex; align-items: baseline; gap: 10px; font-weight: 700; }
.product-card__price-now { color: var(--text); font-size: 17px; }
.product-card__price-was { color: var(--price-was); font-size: 13px; text-decoration: line-through; font-weight: 400; }
.product-card__stock { font-size: 12px; color: var(--stock-low); margin-top: auto; }

/* --------------------------------------------------------------------------
   10. "Trending now…" — lưới sản phẩm
   -------------------------------------------------------------------------- */
.premium-ingredient { background: var(--ink); }

.premium-ingredient .premium-ingredient-subheading {
  text-align: center;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.premium-ingredient .section-heading { margin: 0 0 12px; }
.premium-ingredient .premium-ingredient-content {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 16px;
  text-align: center;
}
.premium-ingredient .premium-ingredient-content p { margin: 0; }

.premium-ingredient .premium-ingredient-inner { margin-top: 36px; }

.premium-ingredient .ingredient-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: stretch;
}

.premium-ingredient .premium-ingredient-button { margin-top: 36px; text-align: center; }

@media (max-width: 1200px) {
  .premium-ingredient .ingredient-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 749px) {
  .premium-ingredient .ingredient-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -20px;
    padding: 0 20px;
  }
  .premium-ingredient .ingredient-grid::-webkit-scrollbar { display: none; }
  .premium-ingredient .ingredient-grid .product-card { flex: 0 0 72%; scroll-snap-align: center; }
}

/* --------------------------------------------------------------------------
   11. "Compatible with your car" — dải logo chạy ngang vô hạn
   -------------------------------------------------------------------------- */
.logo-marquee {
  background: var(--marquee-bg);
  color: var(--marquee-ink);
  padding: 50px 0;
  overflow: hidden;
}
.logo-marquee__header { text-align: center; margin-bottom: 30px; }
.logo-marquee__header .section-heading { color: var(--marquee-ink); }
.logo-marquee__sub { color: rgba(15,16,15,.6); font-size: 15px; margin-top: 8px; }

.logo-marquee__track-wrapper { overflow: hidden; }
.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: logo-marquee 25s linear infinite;
}
.logo-marquee__item { display: flex; align-items: center; justify-content: center; height: 50px; }
.logo-marquee__item img { height: 40px; width: auto; filter: grayscale(1); opacity: .7; }

@keyframes logo-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track { animation: none; }
}

/* --------------------------------------------------------------------------
   12. "Which CarlinKit is the right one for you?" — bảng so sánh
   -------------------------------------------------------------------------- */
.custom-image-section { padding: 50px 0; background: var(--ink-soft); }
@media (min-width: 768px) {
  .custom-image-section { padding: 80px 0; }
}

.custom-image-section .expert-review-header .section-heading p { margin: 0; }
.custom-image-section .section-sub-heading {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.custom-image-section .section-sub-heading p { margin: 0; }

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.compare-card {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compare-card__media { border-radius: var(--radius); overflow: hidden; }
.compare-card__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.compare-card__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  min-height: 3.9em;
}
.compare-card__price { display: flex; justify-content: center; gap: 10px; font-weight: 700; }
.compare-card__price-now { color: var(--text); }
.compare-card__price-was { color: var(--price-was); text-decoration: line-through; font-weight: 400; font-size: 13px; }

@media (max-width: 749px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   13. "Rollbacks & more…" — chữ trái, lưới sản phẩm phải
   -------------------------------------------------------------------------- */
.grid-images-with-blocks {
  background: var(--ink);
  padding: 50px 0;
}
@media (min-width: 768px) {
  .grid-images-with-blocks { padding: 80px 0; }
}

.grid-images-with-blocks .image-with-block-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}
.grid-images-with-blocks .image-with-block-wrapper.image-right { flex-direction: row-reverse; }

.grid-images-with-blocks .rollback-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  flex: 2;
  gap: 20px;
}
.grid-images-with-blocks .block-wrapper { flex: 1; }
.grid-images-with-blocks .block-wrapper > * + * { margin-top: 20px; }

.grid-images-with-blocks .section-heading { text-align: left; color: var(--text); font-size: 30px; }
.grid-images-with-blocks .block-content { color: var(--text-muted); font-size: 16px; }
.grid-images-with-blocks .block-content p { margin: 0; }

@media (max-width: 989px) {
  .grid-images-with-blocks .image-with-block-wrapper,
  .grid-images-with-blocks .image-with-block-wrapper.image-right { flex-direction: column-reverse; }
  .grid-images-with-blocks .rollback-grid { width: 100%; }
}
@media (max-width: 575px) {
  .grid-images-with-blocks .rollback-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   14. "Featured products" — lưới sản phẩm cuối trang
   -------------------------------------------------------------------------- */
.q-and-a-section { background: var(--ink-soft); }

.q-and-a-section .section-heading { margin-bottom: 12px; font-size: 32px; }
.q-and-a-section .q-and-a-section-subheading {
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.q-and-a-section .featured-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .q-and-a-section .featured-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 749px) {
  .q-and-a-section .section-heading { font-size: 26px; }
  .q-and-a-section .featured-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -20px;
    padding: 0 20px;
  }
  .q-and-a-section .featured-grid::-webkit-scrollbar { display: none; }
  .q-and-a-section .featured-grid .product-card { flex: 0 0 72%; scroll-snap-align: center; }
}

/* --------------------------------------------------------------------------
   15. Footer — newsletter + cột link + payment
   -------------------------------------------------------------------------- */
.site-footer__newsletter {
  background: var(--ink-softer);
  padding: 50px 0;
  text-align: center;
}
.site-footer__newsletter h2 { color: var(--brand); font-size: 28px; margin-bottom: 10px; }
.site-footer__newsletter p { color: var(--text-muted); margin-bottom: 20px; }
.newsletter-form {
  display: flex;
  align-items: center;
  max-width: 420px;
  margin: 0 auto;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 4px 4px 4px 20px;
}
.newsletter-form input {
  flex: 1;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  padding: 10px 0;
}
.newsletter-form input::placeholder { color: var(--text-faint); }
.newsletter-form button {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-footer {
  background: var(--ink);
  padding: 60px 0 0;
}

.site-footer__top {
  padding-bottom: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 50px 80px;
}
.site-footer__about { flex: 1.4; min-width: 240px; }
.site-footer__about img { margin-bottom: 20px; }
.site-footer__about p { color: var(--text-muted); font-size: 14px; max-width: 320px; }
.site-footer__social { display: flex; gap: 16px; margin-top: 16px; }
.site-footer__social a {
  font-size: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-footer__social a::before {
  content: '';
  width: 14px; height: 14px;
  background: var(--text-muted);
  border-radius: 2px;
}

.site-footer__blocks { flex: 3; display: flex; flex-wrap: wrap; gap: 40px 60px; }
.site-footer__block { flex: 1; min-width: 180px; }

.site-footer__heading {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 18px;
}
.site-footer__block a {
  display: inline-block;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 32px;
  transition: color .2s ease;
}
.site-footer__block a:hover { color: var(--white); }

.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  margin-top: 20px;
}
.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__note {
  color: var(--text-faint);
  font-size: 13px;
}

.list-payment {
  display: flex;
  flex-wrap: wrap;
  margin: -5px;
}
.list-payment li { display: flex; padding: 5px; }
.list-payment img { width: 38px; height: 24px; }

@media (max-width: 749px) {
  .site-footer { padding: 40px 0 0; }
  .site-footer__top { gap: 32px; }
  .site-footer__bottom-inner { justify-content: center; text-align: center; }
  .list-payment { justify-content: center; }
}

/* --------------------------------------------------------------------------
   16. Modal (cookie consent)

   GIỮ NGUYÊN 100% từ bản gốc của project — không đổi theo carlinkit.store.
   Yêu cầu bắt buộc: tuyệt đối không sửa popup cookie consent.
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(0, 0, 0, .4);
  overflow: auto;
}
.modal[data-open='true'] { display: block; }

.modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 20px;
  text-align: center;
}
.modal__figure {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: max-content;
  margin: 0 auto;
}
.modal__close {
  color: var(--white);
  font-size: 20px;
  font-weight: 400;
  border: 1px solid var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  cursor: pointer;
  line-height: 1;
}
.modal__image {
  overflow-y: auto;
  max-height: calc(100vh - 40px);
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}
.modal__image img { border-radius: 10px; }

/* Cookie consent — dùng <dialog> nên trình duyệt lo phần overlay + focus trap */
.cookie-dialog {
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  overflow: visible;
}
.cookie-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.cookie-dialog:focus { outline: none; }

.cookie-card {
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  text-align: left;
  box-shadow: rgba(33, 35, 38, .2) 0 20px 40px -20px;
}
.cookie-card h2 {
  margin: 0 0 12px;
  color: #2e2a39;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}
.cookie-card p {
  margin: 0 0 20px;
  color: #2e2a39;
  font-size: 14px;
  line-height: 24px;
}
.cookie-card a { color: #007dc0; text-decoration: underline; }
.cookie-card__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-card__actions .btn { flex: 1; border-radius: 2px; }
.btn--ghost {
  background: transparent;
  color: #2e2a39;
  border: 1.5px solid #2e2a39;
}
.btn--ghost:hover { background: #2e2a39; color: #fff; }

@media (max-width: 575px) {
  .cookie-card { padding: 24px; }
  .cookie-card__actions .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   17. Hiện dần khi cuộn tới (bản gốc dùng IntersectionObserver của Dawn)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(0, 0, .3, 1), transform .6s cubic-bezier(0, 0, .3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

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