/* ==========================================================================
   MEKACAO — Component library
   ========================================================================== */

/* ======================================================== 1. TOPBAR ====== */
.topbar {
  background: var(--red-800);
  color: var(--cream-200);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  height: var(--topbar-h);
  display: flex; align-items: center;
  overflow: hidden;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); width: 100%;
}
.topbar__slogan { display: inline-flex; align-items: center; gap: 10px; }
.topbar__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-300); }
.topbar__note { color: var(--blue-300); }
@media (max-width: 720px) { .topbar__note { display: none; } }

/* ======================================================== 2. HEADER ====== */
.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--cream-200);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.header.is-stuck { box-shadow: 0 4px 20px rgba(43,20,17,.10); background: rgba(253,242,220,.96); backdrop-filter: blur(10px); }

.nav {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-4);
}
.nav__side { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__side--right { justify-content: flex-end; }

.nav__logo { display: inline-flex; align-items: center; justify-self: center; }
.nav__logo img { height: 42px; width: auto; }

.nav__link {
  position: relative;
  font-weight: 600; font-size: var(--fs-body);
  color: var(--ink);
  padding: 6px 2px;
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--red-600);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}
.nav__link:hover { color: var(--red-600); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--red-600); }
.nav__link .caret { transition: transform var(--dur-2) var(--ease); }

.nav__icons { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: var(--ink);
  position: relative;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.icon-btn:hover { background: rgba(165,30,38,.09); color: var(--red-600); }
.icon-btn__badge {
  position: absolute; top: 4px; right: 3px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--red-600); color: var(--cream-100);
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
  border: 2px solid var(--cream-200);
}

/* chọn ngôn ngữ */
.lang { display: flex; align-items: center; gap: 4px; }
.lang__btn {
  width: 30px; height: 22px; border-radius: 3px; overflow: hidden;
  opacity: .42; filter: grayscale(.5);
  transition: opacity var(--dur-1) var(--ease), filter var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
  border: 1px solid rgba(43,20,17,.12);
}
.lang__btn:hover { opacity: .8; transform: translateY(-1px); }
.lang__btn.is-active { opacity: 1; filter: none; }
.lang__btn svg { width: 100%; height: 100%; }

/* dropdown "Sản phẩm" */
.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 260px;
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility var(--dur-2);
}
.menu::before {
  content: ""; position: absolute; top: -7px; left: 50%; margin-left: -7px;
  width: 12px; height: 12px; background: var(--cream-100);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.has-menu:hover .menu, .has-menu:focus-within .menu, .menu.is-open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.has-menu:hover .caret { transform: rotate(180deg); }
.menu__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-sm);
  font-weight: 600;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.menu__item:hover { background: var(--red-50); color: var(--red-600); }
.menu__item small { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--ink-mute); }
.menu__thumb {
  width: 40px; height: 40px; border-radius: 90px 90px 6px 6px;
  object-fit: cover; flex: none; background: var(--cream-300);
}

/* nút mở menu mobile */
.burger { display: none; width: 42px; height: 42px; }
.burger span {
  display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto;
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-1) var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ======================================================== 3. BUTTON ====== */
.btn {
  --btn-bg: var(--red-600);
  --btn-fg: var(--cream-100);
  --btn-bd: var(--red-600);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-weight: 600; font-size: var(--fs-body); line-height: 1.2;
  letter-spacing: .01em;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease),
              background var(--dur-2) var(--ease), color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease);
}
/* state-layer kiểu M3 — lớp phủ trượt lên khi hover */
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--red-800);
  transform: translateY(101%);
  transition: transform var(--dur-2) var(--ease-out);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { box-shadow: var(--sh-red); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(1px); box-shadow: none; }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--red-600); --btn-bd: var(--red-600);
}
.btn--ghost::before { background: var(--red-600); }
.btn--ghost:hover { color: var(--cream-100); }

.btn--cream {
  --btn-bg: var(--cream-100); --btn-fg: var(--red-700); --btn-bd: var(--cream-100);
}
.btn--cream::before { background: var(--blue-300); }
.btn--cream:hover { color: var(--red-900); box-shadow: 0 10px 30px rgba(0,0,0,.24); }

.btn--outline-cream {
  --btn-bg: transparent; --btn-fg: var(--cream-100); --btn-bd: rgba(255,248,231,.5);
}
.btn--outline-cream::before { background: var(--cream-100); }
.btn--outline-cream:hover { color: var(--red-700); border-color: var(--cream-100); }

.btn--sm { padding: 9px 18px; font-size: var(--fs-sm); }
.btn--xs { padding: 7px 14px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; }
.btn--lg { padding: 16px 34px; font-size: var(--fs-body-lg); }
.btn--block { display: flex; width: 100%; }
.btn--icon { padding-inline: 16px; }

/* link kiểu mũi tên */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--red-600);
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--dur-2) var(--ease), gap var(--dur-2) var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: 13px; }
.on-red .link-arrow { color: var(--blue-300); }

/* ==================================================== 4. PRODUCT CARD === */
.p-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease);
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: var(--red-200); }

.p-card__media {
  position: relative;
  margin: 14px 14px 0;
  aspect-ratio: 3 / 4;
  border-radius: 200px 200px 10px 10px;
  overflow: hidden;
  background: var(--cream-200);
}
.p-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-3) var(--ease-out);
}
.p-card:hover .p-card__media img { transform: scale(1.055); }

.p-card__fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: rgba(255,248,231,.9);
  color: var(--red-600);
  backdrop-filter: blur(4px);
  transition: transform var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.p-card__fav:hover { transform: scale(1.12); background: var(--cream-100); }
.p-card__fav svg { width: 17px; height: 17px; }
.p-card__fav.is-on svg { fill: currentColor; }

/* nhãn nằm NGOÀI khung vòm để không bị bo góc cắt mất chữ */
.p-card__tag {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 3;
  white-space: nowrap;
  padding: 5px 12px; border-radius: var(--r-pill);
  box-shadow: 0 2px 10px rgba(43,20,17,.25);
  background: var(--red-600); color: var(--cream-100);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.p-card__tag--blue { background: var(--blue-300); color: var(--red-900); }

.p-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card__name {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  letter-spacing: -.01em; line-height: 1.2;
}
.p-card__meta {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); color: var(--ink-mute);
  letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}
.p-card__meta span + span::before { content: "·"; margin-right: 8px; }
.p-card__foot {
  margin-top: auto; padding-top: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.p-card__price { font-weight: 700; font-size: 1.0625rem; color: var(--ink); white-space: nowrap; }
.p-card__price em { font-style: normal; font-size: .72em; color: var(--ink-mute); margin-left: 2px; }

/* biến thể trên nền đỏ */
.on-red .p-card { background: rgba(255,248,231,.06); border-color: rgba(255,248,231,.20); color: var(--cream-100); }
.on-red .p-card:hover { background: rgba(255,248,231,.10); border-color: rgba(255,248,231,.4); }
.on-red .p-card__price { color: var(--cream-100); }
.on-red .p-card__meta { color: rgba(255,248,231,.6); }

/* card ngang trong giỏ hàng */
.c-card {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
  padding: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.c-card__media { aspect-ratio: 3/4; border-radius: 60px 60px 6px 6px; overflow: hidden; background: var(--cream-200); }
.c-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* ===================================================== 5. FORM CONTROL == */
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.input, .select, .textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-mute); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--red-600);
  box-shadow: 0 0 0 3px rgba(165,30,38,.12);
  background: var(--cream-50);
}
.textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d4a44' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* input gạch chân (kiểu template) */
.input--line {
  background: transparent; border: 0; border-bottom: 1.5px solid var(--line);
  border-radius: 0; padding-inline: 2px;
}
.input--line:focus { box-shadow: none; border-bottom-color: var(--red-600); background: transparent; }

.check, .radio {
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer;
  font-size: var(--fs-body); color: var(--ink-soft); line-height: 1.5;
}
.check input, .radio input, .radio-card input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.check__box, .radio__box {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  border: 1.5px solid var(--ink-mute);
  display: grid; place-items: center;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.check__box { border-radius: 5px; }
.radio__box { border-radius: 50%; }
.check__box::after {
  content: ""; width: 10px; height: 6px;
  border-left: 2px solid var(--cream-100); border-bottom: 2px solid var(--cream-100);
  transform: rotate(-45deg) scale(0); transform-origin: center;
  transition: transform var(--dur-1) var(--ease); margin-top: -2px;
}
.radio__box::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--cream-100); transform: scale(0);
  transition: transform var(--dur-1) var(--ease);
}
.check:hover .check__box, .radio:hover .radio__box, .radio-card:hover .radio__box { border-color: var(--red-600); }
.check input:checked + .check__box,
.radio input:checked + .radio__box,
.radio-card input:checked + .radio__box {
  background: var(--red-600); border-color: var(--red-600);
}
.check input:checked + .check__box::after { transform: rotate(-45deg) scale(1); }
.radio input:checked + .radio__box::after,
.radio-card input:checked + .radio__box::after { transform: scale(1); }
.check input:focus-visible + .check__box,
.radio input:focus-visible + .radio__box,
.radio-card input:focus-visible + .radio__box {
  outline: 2px solid var(--red-600); outline-offset: 2px;
}

/* radio dạng thẻ (chọn vận chuyển / thanh toán) */
.radio-card {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 18px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; background: var(--surface);
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.radio-card:hover { border-color: var(--red-300); }
.radio-card:has(input:checked) { border-color: var(--red-600); background: var(--red-50); }
.radio-card__text { flex: 1; }
.radio-card__text strong { display: block; font-weight: 600; color: var(--ink); }
.radio-card__text small { color: var(--ink-mute); }

/* chip chọn (khối lượng / % cacao) */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 9px 18px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: var(--fs-sm); color: var(--ink-soft);
  transition: all var(--dur-1) var(--ease);
}
.chip:hover { border-color: var(--red-400); color: var(--red-600); }
.chip.is-active { background: var(--red-600); border-color: var(--red-600); color: var(--cream-100); }

/* bộ đếm số lượng */
.counter {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); overflow: hidden;
}
.counter button {
  width: 40px; height: 42px; display: grid; place-items: center;
  color: var(--ink-soft); font-size: 18px; line-height: 1;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.counter button:hover { background: var(--red-50); color: var(--red-600); }
.counter input {
  width: 46px; text-align: center; border: 0; background: transparent;
  font-weight: 700; -moz-appearance: textfield;
}
.counter input::-webkit-outer-spin-button, .counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ======================================================= 6. RATING ====== */
.stars { display: inline-flex; gap: 3px; color: var(--red-500); }
.stars svg { width: 18px; height: 18px; }
.stars--lg svg { width: 28px; height: 28px; }
.stars--input button { line-height: 0; color: var(--line); transition: color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.stars--input button:hover { transform: scale(1.15); }
.stars--input button.is-on { color: var(--red-500); }

/* ==================================================== 7. ACCORDION ====== */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; text-align: left;
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700;
  color: var(--ink);
  transition: color var(--dur-1) var(--ease);
}
.acc__head:hover { color: var(--red-600); }
.acc__icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.acc__item.is-open .acc__icon { transform: rotate(180deg); background: var(--red-600); border-color: var(--red-600); color: var(--cream-100); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-3) var(--ease-out); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__body { padding: 0 4px 26px; color: var(--ink-soft); max-width: 72ch; }
.acc__body p + p { margin-top: 12px; }

/* ================================================== 8. BREADCRUMB ======= */
.crumb {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-sm); color: var(--ink-mute);
  padding-block: 22px;
}
.crumb a { transition: color var(--dur-1) var(--ease); }
.crumb a:hover { color: var(--red-600); }
.crumb__sep { opacity: .5; }

/* ==================================================== 9. CAROUSEL ======= */
.rail { position: relative; }
.rail__track {
  display: flex; gap: var(--sp-5);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: 6px 20px;
  scrollbar-width: none;
  scroll-padding-left: var(--gutter);
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; flex: 0 0 clamp(230px, 25vw, 288px); }
.rail__nav { display: flex; gap: 9px; }
.rail__btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--ink);
  display: grid; place-items: center; background: var(--surface);
  transition: all var(--dur-1) var(--ease);
}
.rail__btn:hover { background: var(--red-600); border-color: var(--red-600); color: var(--cream-100); }
.rail__btn[disabled] { opacity: .35; pointer-events: none; }
.on-red .rail__btn { background: transparent; border-color: rgba(255,248,231,.4); color: var(--cream-100); }
.on-red .rail__btn:hover { background: var(--cream-100); color: var(--red-700); }

/* đầu section: tiêu đề trái + nav phải */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-5); margin-bottom: var(--sp-6); flex-wrap: wrap;
}
.sec-head__text { max-width: 60ch; display: flex; flex-direction: column; gap: 12px; }

/* ================================================== 10. BANNER ========== */
.banner {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  min-height: clamp(320px, 34vw, 460px);
  display: flex; align-items: center;
  isolation: isolate;
}
.banner__bg { position: absolute; inset: 0; z-index: -2; }
.banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(54,10,13,.86) 0%, rgba(54,10,13,.55) 42%, rgba(54,10,13,.06) 78%);
}
.banner__inner { padding: clamp(28px, 4vw, 56px); max-width: 620px; color: var(--cream-100); }

/* ================================================= 11. FOOTER =========== */
.footer {
  background: var(--red-600);
  color: var(--cream-100);
  position: relative; overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.5fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(56px, 6vw, 84px) 44px;
  position: relative; z-index: 1;
}
.footer__brand-title {
  font-family: var(--font-display); font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 700; letter-spacing: -.02em; margin-bottom: 20px;
}
.footer__logo { height: 46px; width: auto; margin-bottom: 20px; }
.footer__contact li {
  display: flex; align-items: flex-start; gap: 12px;
  padding-block: 9px; color: rgba(255,248,231,.86); font-size: var(--fs-body);
}
.footer__contact svg { flex: none; margin-top: 3px; opacity: .8; }
.footer__co {
  margin-top: 22px; font-weight: 700; font-size: var(--fs-xs);
  letter-spacing: .12em; text-transform: uppercase; color: var(--cream-200);
}
.footer__h {
  font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 700;
  letter-spacing: .04em; margin-bottom: 18px;
}
.footer__links li + li { margin-top: 11px; }
.footer__links a {
  color: var(--red-200); font-size: var(--fs-body);
  transition: color var(--dur-1) var(--ease), padding-left var(--dur-2) var(--ease);
}
.footer__links a:hover { color: var(--cream-100); padding-left: 6px; }

.subscribe { display: flex; gap: 0; margin-bottom: 26px; }
.subscribe input {
  flex: 1; min-width: 0;
  padding: 14px 18px; border: 0;
  background: var(--red-100); color: var(--red-900);
  border-radius: var(--r-pill) 0 0 var(--r-pill);
}
.subscribe input::placeholder { color: var(--red-700); opacity: .62; }
.subscribe input:focus { outline: none; box-shadow: 0 0 0 3px rgba(152,187,227,.55); position: relative; z-index: 1; }
.subscribe button {
  padding: 0 22px; border-radius: 0 var(--r-pill) var(--r-pill) 0;
  background: var(--red-900); color: var(--cream-100);
  display: grid; place-items: center;
  transition: background var(--dur-1) var(--ease);
}
.subscribe button:hover { background: var(--blue-300); color: var(--red-900); }

.socials { display: flex; gap: 10px; margin-bottom: 30px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,248,231,.32);
  transition: all var(--dur-2) var(--ease);
}
.socials a:hover { background: var(--cream-100); color: var(--red-600); border-color: var(--cream-100); transform: translateY(-3px); }

.paylogos { display: flex; flex-wrap: wrap; gap: 8px; }
.paylogos span {
  height: 30px; padding: 0 11px; border-radius: 5px;
  background: var(--cream-100); color: var(--red-800);
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
}

.footer__bottom {
  border-top: 1px solid rgba(255,248,231,.22);
  padding-block: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
  font-size: var(--fs-sm); color: rgba(255,248,231,.7);
  position: relative; z-index: 1;
}
.footer__wave { position: absolute; right: -60px; bottom: -40px; width: 520px; opacity: .10; z-index: 0; pointer-events: none; }

/* ================================================= 12. EMPTY STATE ====== */
.empty {
  display: grid; place-items: center; gap: 18px; text-align: center;
  padding: clamp(40px, 6vw, 80px) 24px;
  background: var(--cream-200); border-radius: var(--r-lg);
}
.empty svg { color: var(--red-600); }
.empty p { color: var(--ink-soft); }

/* ================================================= 13. NOTE / ALERT ===== */
.note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 15px 18px; border-radius: var(--r-md);
  background: var(--blue-100); border: 1px solid var(--blue-200);
  color: var(--red-900); font-size: var(--fs-sm);
}

/* ================================================= 14. TOAST ============ */
.toast-host {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 20px; border-radius: var(--r-pill);
  background: var(--red-800); color: var(--cream-100);
  box-shadow: var(--sh-3); font-weight: 600; font-size: var(--fs-sm);
  animation: toast-in .35s var(--ease-out) both;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.toast.is-out { animation: toast-out .3s var(--ease) forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ============================================== 15. RESPONSIVE ========== */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__side--left .nav__link, .nav__side--left .has-menu { display: none; }
  .nav__side--right .nav__link { display: none; }
  .nav__logo { justify-self: center; }
  .nav__side--left { gap: 8px; }

  .mobile-nav {
    position: fixed; inset: calc(var(--header-h) + var(--topbar-h)) 0 0;
    background: var(--cream-100);
    padding: 24px var(--gutter) 40px;
    display: flex; flex-direction: column; gap: 4px;
    transform: translateX(-100%);
    transition: transform var(--dur-3) var(--ease-out);
    z-index: 55; overflow-y: auto;
  }
  .mobile-nav.is-open { transform: none; }
  .mobile-nav a {
    padding: 15px 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
    border-bottom: 1px solid var(--line);
  }
  .c-card { grid-template-columns: 76px 1fr; }
  .c-card__end { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
}
@media (min-width: 901px) { .mobile-nav { display: none; } }
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; }
  .sec-head { align-items: flex-start; }
  /* thu gọn header: tìm kiếm + yêu thích đã có trong menu mobile */
  .nav__icons > [aria-label="Tìm kiếm"],
  .nav__icons > [aria-label="Yêu thích"] { display: none; }
  .nav__logo img { height: 34px; }
  .icon-btn { width: 36px; height: 36px; }
  .lang__btn { width: 26px; height: 19px; }
  .burger { width: 36px; }
  .subscribe input { padding-inline: 14px; }
}
@media (max-width: 420px) {
  .lang { display: none; }
}
