/* ============================================
   HALOVN — Main Stylesheet
   Mobile-first, BEM-ish naming
   ============================================ */

/* ---------- Design tokens ---------- */
:root {
  --c-primary: #00AEEF;
  --c-primary-dark: #0095cc;
  --c-navy: #1A2B4A;
  --c-navy-light: #243758;
  --c-green: #39B54A;
  --c-green-dark: #2d9c3d;
  --c-white: #FFFFFF;
  --c-light: #F5F7FA;
  --c-border: #E2E8F0;
  --c-text: #1A1A2E;
  --c-muted: #6B7280;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 4px 12px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);

  --container: 1200px;
  --header-h: 104px;

  --t-fast: .2s ease;
  --t: .3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; color: var(--c-navy); }
h1 { font-size: clamp(1.75rem, 4vw + 1rem, 3rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section   { padding: 64px 0; }
.section--light { background: var(--c-light); }
.section--navy  { background: var(--c-navy); color: var(--c-white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--c-white); }
.section-head   { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--c-muted); font-size: 1.05rem; }
.section--navy .section-head p { color: rgba(255,255,255,.75); }
.eyebrow {
  display: inline-block; text-transform: uppercase;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  color: var(--c-primary); margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--primary { background: var(--c-primary); color: var(--c-white); }
.btn--primary:hover { background: var(--c-primary-dark); }
.btn--green   { background: var(--c-green); color: var(--c-white); }
.btn--green:hover { background: var(--c-green-dark); }
.btn--ghost   { background: transparent; color: var(--c-white); border: 2px solid rgba(255,255,255,.6); }
.btn--ghost:hover { background: var(--c-white); color: var(--c-navy); }
.btn--outline { background: transparent; color: var(--c-navy); border: 2px solid var(--c-navy); }
.btn--outline:hover { background: var(--c-navy); color: var(--c-white); }
.btn--lg { padding: 16px 32px; font-size: 1rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
  display: flex; align-items: center;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--c-navy); font-size: 1.15rem; flex-shrink: 0; }
.logo img { height: 80px; width: auto; }
.nav { display: none; gap: 22px; }
.nav a {
  font-weight: 500; color: var(--c-text); padding: 8px 0;
  position: relative; white-space: nowrap;
}
.nav a:hover, .nav a.is-active { color: var(--c-primary); }
.nav a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--c-primary); border-radius: 2px;
}
.header__cta { display: none; }

/* Cart icon link in header */
.cart-link {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--c-navy);
  transition: background var(--t-fast), color var(--t-fast);
  margin-right: 4px;
}
.cart-link:hover { background: var(--c-light); color: var(--c-primary); }
.cart-link svg { width: 24px; height: 24px; }
.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--c-green);
  color: #fff;
  border-radius: 999px;
  font-size: .7rem; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid #fff;
  box-sizing: content-box;
  transition: transform .2s ease;
}
.cart-badge.is-empty { display: none; }
.cart-link:hover .cart-badge { transform: scale(1.1); }

/* Toast notification */
.halovn-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 120%);
  background: var(--c-navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: .95rem; font-weight: 500;
  z-index: 1000;
  max-width: calc(100% - 32px);
  transition: transform .35s cubic-bezier(.22,.7,.3,1), opacity .25s;
  opacity: 0;
}
.halovn-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.halovn-toast__icon {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-green); color: #fff;
  font-weight: 800; font-size: .9rem;
}
.halovn-toast[data-type="info"] .halovn-toast__icon { background: var(--c-primary); }

/* Mobile menu toggle */
.menu-toggle {
  display: flex; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--c-navy); border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--c-white);
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform var(--t);
  overflow-y: auto;
  z-index: 99;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  display: block; padding: 14px 0; font-size: 1.1rem; font-weight: 500;
  border-bottom: 1px solid var(--c-border);
}
.mobile-nav .btn { margin-top: 24px; width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(0,174,239,.08) 0%, rgba(57,181,74,.05) 100%),
    var(--c-light);
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; right: -10%; top: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,174,239,.15), transparent 70%);
  pointer-events: none;
}
.hero__grid { display: grid; gap: 40px; align-items: center; position: relative; }
.hero__title { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); margin-bottom: 16px; }
.hero__title .hl { color: var(--c-primary); }
.hero__lead { font-size: 1.1rem; color: var(--c-muted); margin-bottom: 28px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual {
  background: var(--c-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  aspect-ratio: 16/9;             /* khớp tỉ lệ banner thật */
}
.hero__visual svg { width: 100%; height: 100%; }

/* Hero banner carousel — 3 ảnh, auto-rotate 5s */
.hero__banner { position: relative; }
.hero__banner-track {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero__banner-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;              /* tỉ lệ container đã khớp banner — không cắt */
  object-position: center;
  opacity: 0;
  transition: opacity .8s ease-in-out;
}
.hero__banner-img.is-active { opacity: 1; }

/* Dots indicator */
.hero__banner-dots {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 2;
}
.hero__banner-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  border: 2px solid rgba(255,255,255,.85);
  padding: 0;
  cursor: pointer;
  transition: width var(--t), background var(--t);
}
.hero__banner-dot:hover { background: rgba(255,255,255,.9); }
.hero__banner-dot.is-active {
  width: 28px; border-radius: 999px;
  background: var(--c-primary);
  border-color: #fff;
}

/* ---------- Trust bar ---------- */
.trust {
  background: var(--c-white); border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 32px 0;
}
.trust__grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
.trust__item { display: flex; gap: 12px; align-items: center; }
.trust__icon {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: var(--radius);
  background: rgba(0,174,239,.12);
  display: grid; place-items: center; color: var(--c-primary);
}
.trust__icon svg { width: 24px; height: 24px; }
.trust__num  { font-weight: 700; color: var(--c-navy); font-size: 1.1rem; line-height: 1.2; }
.trust__lbl  { font-size: .85rem; color: var(--c-muted); }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-primary); }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: rgba(0,174,239,.12); color: var(--c-primary);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; }
.card--green .card__icon { background: rgba(57,181,74,.12); color: var(--c-green); }

/* Product card */
.product {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product__img {
  aspect-ratio: 1/1;
  background: var(--c-light);
  display: grid; place-items: center;
  overflow: hidden;
}
.product__img svg { width: 60%; height: auto; }
.product__img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform var(--t);
}
.product:hover .product__img img { transform: scale(1.04); }
.product__body { padding: 16px; }
.product__cat  {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  color: var(--c-primary); letter-spacing: .05em;
}
.product__name { font-size: .95rem; font-weight: 600; margin: 6px 0; color: var(--c-navy); }
.product__price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: 8px 0 4px;
}
.product__price-current {
  font-weight: 700; color: var(--c-primary); font-size: 1.05rem;
}
.product__price-old {
  text-decoration: line-through; color: var(--c-muted); font-size: .85rem;
}
.product__badge {
  display: inline-block;
  background: var(--c-green); color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  margin-left: auto;
}
.product__cta  {
  display: inline-block; margin-top: 8px; font-size: .85rem;
  color: var(--c-primary); font-weight: 600;
}
.product__actions {
  display: flex; gap: 8px; margin-top: 10px;
}
.product__buy {
  flex: 1; text-align: center;
  background: var(--c-primary); color: #fff;
  font-size: .8rem; font-weight: 600;
  padding: 8px 10px; border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}
.product__buy:hover { background: var(--c-primary-dark); color: #fff; }
.product__wholesale {
  flex: 1; text-align: center;
  background: transparent; color: var(--c-navy);
  font-size: .8rem; font-weight: 600;
  padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  transition: all var(--t-fast);
}
.product__wholesale:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ---------- Brand strip ---------- */
.brands {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: center;
}
.brand {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px 18px;
  height: 90px;                       /* tất cả khung logo cùng cao */
  display: grid; place-items: center;
  font-weight: 700; color: var(--c-muted);
  letter-spacing: .03em;
  transition: border-color var(--t), transform var(--t-fast), box-shadow var(--t);
  overflow: hidden;
}
.brand:hover {
  color: var(--c-navy);
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
/* Khi dùng ảnh logo — chuẩn hoá tất cả cùng kích thước */
.brand img {
  max-width: 100%;
  max-height: 56px;                   /* khoá chiều cao logo */
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter var(--t);
}
.brand:hover img { filter: grayscale(0%); }

/* Modifier: logo cần phóng to thêm 40% (Manhae, BetterYou, Ostelin, USOLAB) */
.brand--lg img { max-height: 78px; }

/* Modifier: logo có nền màu — tràn viền lấp đầy ô, không chừa lề trắng */
.brand--bleed {
  padding: 0;
}
.brand--bleed img {
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;                       /* logo nền màu → không grayscale */
}

/* ---------- Partner CTA (navy) ---------- */
.partner-cta {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-light) 100%);
  color: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
}
.partner-cta h2 { color: var(--c-white); }
.partner-cta p  { color: rgba(255,255,255,.8); max-width: 640px; margin: 0 auto 28px; }
.partner-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Steps / process ---------- */
.steps { display: grid; gap: 24px; counter-reset: step; }
.step {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 20px; right: 24px;
  font-size: 2rem; font-weight: 800; color: rgba(0,174,239,.15);
}
.step h3 { color: var(--c-primary); margin-bottom: 8px; }

/* ---------- Stats ---------- */
.stats {
  display: grid; gap: 24px;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
.stat__num {
  font-size: 2.5rem; font-weight: 800;
  color: var(--c-primary); line-height: 1; margin-bottom: 8px;
}
.section--navy .stat__num { color: #5dd0f6; }
.stat__lbl { font-size: .9rem; color: var(--c-muted); }
.section--navy .stat__lbl { color: rgba(255,255,255,.75); }

/* ---------- Forms ---------- */
.form {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--c-navy); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(0,174,239,.15);
}
.field textarea { min-height: 120px; resize: vertical; }
.form button[type="submit"] { width: 100%; margin-top: 8px; justify-content: center; }
.form__success {
  background: rgba(57,181,74,.1);
  color: var(--c-green-dark);
  padding: 14px 18px; border-radius: var(--radius-sm);
  margin-bottom: 16px; font-weight: 500;
  display: none;
}
.form__success.is-visible { display: block; }

/* ---------- News card ---------- */
.news-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card__img {
  display: block;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--c-primary), var(--c-navy));
  overflow: hidden;
  position: relative;
}
.news-card__img svg {
  width: 60px; height: 60px; opacity: .8;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.news-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__title a { color: inherit; }
.news-card__title a:hover { color: var(--c-primary); }
.news-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-card__date { font-size: .8rem; color: var(--c-muted); }
.news-card__title { font-size: 1.05rem; margin: 8px 0; }
.news-card__cta {
  margin-top: auto; padding-top: 12px;
  font-weight: 600; color: var(--c-primary); font-size: .9rem;
}

/* ---------- Page header (for inner pages) ---------- */
.page-head {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-light) 100%);
  color: var(--c-white);
  padding: 64px 0 56px;
  text-align: center;
}
.page-head h1 { color: var(--c-white); margin-bottom: 12px; }
.page-head p  { color: rgba(255,255,255,.8); max-width: 640px; margin: 0 auto; }

/* ---------- Footer ---------- */
.footer {
  background: var(--c-navy);
  color: rgba(255,255,255,.75);
  padding: 56px 0 24px;
  font-size: .9rem;
}
.footer h4 { color: var(--c-white); font-size: 1rem; margin-bottom: 16px; }
.footer__grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}
.footer__brand img { height: 120px; margin-bottom: 16px; object-fit: contain; }
.footer__brand p { color: rgba(255,255,255,.6); max-width: 320px; }
.footer ul li { margin-bottom: 10px; }
.footer a:hover { color: var(--c-primary); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--c-primary); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; flex-direction: column; gap: 8px;
  text-align: center; font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Two-column generic ---------- */
.two-col {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}
.two-col__media {
  background: var(--c-light); border-radius: var(--radius-lg);
  aspect-ratio: 4/3; overflow: hidden;
  display: grid; place-items: center;
}
.two-col__media svg { width: 70%; height: auto; }
.two-col__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About Mission ---------- */
.about-mission__list {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-direction: column; gap: 14px;
}
.about-mission__list li {
  padding-left: 20px; position: relative; line-height: 1.6;
  font-size: .95rem;
}
.about-mission__list li::before {
  content: "›"; position: absolute; left: 0;
  color: var(--c-primary); font-weight: 700; font-size: 1.1rem;
}

/* ---------- Lists ---------- */
.check-list li {
  position: relative; padding-left: 32px; margin-bottom: 12px;
}
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

/* ---------- Team ---------- */
.team {
  display: grid; gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
.team__member { text-align: center; }
.team__avatar {
  width: 120px; height: 120px; margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-green));
  display: grid; place-items: center;
  color: var(--c-white); font-size: 2rem; font-weight: 700;
  overflow: hidden;
}
.team__avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.team__name { font-weight: 700; color: var(--c-navy); margin-bottom: 4px; }
.team__role { font-size: .85rem; color: var(--c-muted); }

/* ---------- Category filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  background: var(--c-white); color: var(--c-text);
  transition: all var(--t-fast);
}
.filter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-btn.is-active { background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); }

/* ============================================
   Product detail page
   ============================================ */

.breadcrumb {
  padding: 16px 0;
  font-size: .85rem;
  color: var(--c-muted);
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb__sep { margin: 0 8px; color: var(--c-border); }
.breadcrumb__current { color: var(--c-navy); font-weight: 500; }

.pd-grid {
  display: grid;
  gap: 0;                     /* sát ảnh — mobile info bám luôn vào ảnh */
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}
@media (min-width: 1024px) {
  .pd-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* Gallery — chuẩn theo mẫu Vagisil pH Balance */
.pd-gallery__main {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 60%;             /* giảm 40% kích thước */
  margin: 0 auto;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid; place-items: center;
  user-select: none;
}
.pd-gallery__thumbs { max-width: 60%; margin-left: auto; margin-right: auto; }
.pd-gallery__main img {
  width: 100%; height: 100%;
  object-fit: cover; padding: 0;
  display: block;
  animation: pd-slide-in .35s cubic-bezier(.22,.7,.3,1) both;
}
.pd-gallery__main img.is-slide-left  { animation-name: pd-slide-in-left; }
.pd-gallery__main img.is-slide-right { animation-name: pd-slide-in-right; }

@keyframes pd-slide-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pd-slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pd-slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.pd-gallery__main svg { width: 60%; height: auto; }

/* Prev / next arrows */
.pd-gallery__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  color: var(--c-navy);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease, transform .2s ease;
  z-index: 2;
}
.pd-gallery__main:hover .pd-gallery__arrow { opacity: 1; }
.pd-gallery__arrow:hover {
  background: var(--c-primary); color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.pd-gallery__arrow:active { transform: translateY(-50%) scale(.96); }
.pd-gallery__arrow svg { width: 22px; height: 22px; }
.pd-gallery__arrow--prev { left: 12px; }
.pd-gallery__arrow--next { right: 12px; }
.pd-gallery__arrow[disabled] { opacity: .35 !important; cursor: not-allowed; }

/* On mobile / touch screens — always show arrows */
@media (hover: none), (max-width: 768px) {
  .pd-gallery__arrow { opacity: 1; }
}

/* Counter chip */
.pd-gallery__counter {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(26,43,74,.85);
  color: #fff;
  font-size: .8rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* Thumbnails — horizontal scroll strip */
.pd-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 4px; /* room for scrollbar */
  scrollbar-width: thin;
}
.pd-gallery__thumbs::-webkit-scrollbar { height: 6px; }
.pd-gallery__thumbs::-webkit-scrollbar-thumb {
  background: var(--c-border); border-radius: 3px;
}
.pd-gallery__thumbs::-webkit-scrollbar-thumb:hover { background: var(--c-muted); }

.pd-thumb {
  flex: 0 0 80px;
  width: 80px; height: 80px;
  background: var(--c-light);
  border: 2px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color var(--t-fast), transform var(--t-fast);
  padding: 0;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pd-thumb svg { width: 70%; height: auto; }
.pd-thumb:hover { border-color: var(--c-primary); transform: translateY(-1px); }
.pd-thumb.is-active {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 2px rgba(0,174,239,.15);
}

/* ============================================
   Info side — Pharmacity-style layout
   ============================================ */

/* Top row: green Chính hãng pill + brand tag */
.pd-toprow {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 0;
  margin-bottom: 10px;
}
.pd-genuine {
  display: inline-flex; align-items: center; gap: 6px;
  background: #E6F6E8; color: var(--c-green-dark);
  font-size: .85rem; font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(57,181,74,.25);
}
.pd-genuine svg { width: 16px; height: 16px; }
.pd-brand-tag { font-size: .9rem; color: var(--c-text); }
.pd-brand-tag strong { color: var(--c-navy); font-weight: 700; }

/* Title */
.pd-title-lg {
  font-size: clamp(1.1rem, 1vw + .85rem, 1.4rem);
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--c-navy);
}

/* Meta line: SKU · favorites */
.pd-meta-line {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: .9rem; color: var(--c-muted);
  margin-bottom: 14px;
}
.pd-meta-line strong { color: var(--c-text); font-weight: 600; }
.pd-meta-line .sep { color: var(--c-border); }

/* Certificate badge stack */
.pd-cert-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  margin-bottom: 12px;
}
.pd-cert-badge__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: radial-gradient(circle, #fff 30%, #C8102E 30%, #C8102E 60%, #fff 60%);
  border-radius: 50%;
  font-size: .55rem; font-weight: 800;
  color: #C8102E; text-align: center; line-height: 1.1;
  flex-shrink: 0;
}
.pd-cert-badge__icon span {
  background: #fff; padding: 1px 3px; border-radius: 2px;
}
.pd-cert-badge__txt {
  font-size: .8rem; line-height: 1.3;
}
.pd-cert-badge__txt strong { display: block; color: var(--c-navy); font-weight: 700; }
.pd-cert-badge__txt small { color: var(--c-primary); font-weight: 600; }

.pd-cert-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 500;
  color: var(--c-primary);
  margin-bottom: 18px;
}
.pd-cert-link:hover { text-decoration: underline; }
.pd-cert-link svg { width: 16px; height: 16px; }

/* Flash Sale banner */
.pd-flash {
  background: linear-gradient(90deg, #FF6A1A 0%, #FF8A3D 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.pd-flash__title {
  font-size: 1.15rem; font-weight: 800; letter-spacing: .02em;
  display: flex; align-items: center; gap: 8px;
}
.pd-flash__title svg { width: 22px; height: 22px; }
.pd-flash__timer { display: flex; align-items: center; gap: 4px; font-weight: 800; }
.pd-flash__timer-cell {
  background: rgba(0,0,0,.25);
  padding: 6px 10px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  min-width: 44px; text-align: center;
}
.pd-flash__timer-sep { font-size: 1.1rem; opacity: .8; }

/* Price card — flat, không viền */
.pd-price-card {
  background: transparent;
  border: 0;
  padding: 4px 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
}
.pd-price-now {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 6px;
}
.pd-price-now__val {
  font-size: 2.2rem; font-weight: 800;
  color: #E04A14; line-height: 1;
}
.pd-price-now__unit {
  color: var(--c-muted); font-size: 1rem; font-weight: 500;
}
.pd-price-now__old {
  text-decoration: line-through;
  color: var(--c-muted);
  font-size: 1rem; margin-left: 8px;
}
.pd-price-now__save {
  display: inline-block;
  background: var(--c-green); color: #fff;
  font-size: .75rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  margin-left: 8px; vertical-align: middle;
}
.pd-price-note {
  font-size: .82rem; color: var(--c-muted); line-height: 1.5; margin: 6px 0 10px;
}
.pd-hot-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FFE2D2; color: #E04A14;
  font-size: .8rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}

/* Variant selector */
.pd-variant {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin-bottom: 16px;
}
.pd-variant__label { font-weight: 600; color: var(--c-navy); font-size: .95rem; }
.pd-variant__group { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-variant__btn {
  padding: 8px 22px;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-white);
  color: var(--c-text);
  font-weight: 600; font-size: .9rem;
  transition: all var(--t-fast);
  cursor: pointer;
}
.pd-variant__btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.pd-variant__btn.is-active {
  background: rgba(0,174,239,.08);
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* CTA row — outline + filled */
.pd-cta {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}
@media (min-width: 480px) { .pd-cta { grid-template-columns: 1fr 1fr; } }
.pd-cta .btn { justify-content: center; padding: 14px 20px; font-size: 1rem; }
.pd-cta__cart {
  background: var(--c-white); color: var(--c-primary);
  border: 2px solid var(--c-primary);
}
.pd-cta__cart:hover { background: rgba(0,174,239,.08); }
.pd-cta__buy {
  background: var(--c-primary); color: #fff;
}
.pd-cta__buy:hover { background: var(--c-primary-dark); }

/* legacy class kept for badges placement on detail (we still use pd-badges in some places) */
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pd-badge {
  display: inline-block;
  background: rgba(0,174,239,.12);
  color: var(--c-primary);
  font-size: .75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.pd-badge--green { background: rgba(57,181,74,.15); color: var(--c-green-dark); }
.pd-badge--navy  { background: var(--c-navy); color: #fff; }

.pd-title { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); margin-bottom: 12px; }
.pd-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: .9rem; color: var(--c-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 20px;
}
.pd-meta strong { color: var(--c-navy); font-weight: 600; }

.pd-short { color: var(--c-text); margin-bottom: 24px; }

.pd-price-box {
  background: linear-gradient(135deg, rgba(0,174,239,.08), rgba(57,181,74,.05));
  border: 1px solid rgba(0,174,239,.2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.pd-price__current {
  font-size: 2rem; font-weight: 800;
  color: var(--c-primary); line-height: 1;
}
.pd-price__old {
  text-decoration: line-through; color: var(--c-muted);
  margin-left: 12px; font-size: 1.05rem;
}
.pd-price__save {
  display: inline-block;
  background: var(--c-green); color: #fff;
  font-size: .75rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  margin-left: 8px; vertical-align: middle;
}
.pd-promo {
  margin-top: 14px;
  padding: 10px 14px;
  background: #fff;
  border: 1px dashed var(--c-primary);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--c-navy);
  display: flex; gap: 8px; align-items: flex-start;
}
.pd-promo svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--c-primary); margin-top: 2px; }

/* Quantity */
.pd-qty {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.pd-qty label { font-weight: 600; color: var(--c-navy); }
.pd-qty__ctrl {
  display: inline-flex; align-items: center;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.pd-qty__btn {
  width: 40px; height: 40px;
  background: var(--c-light); color: var(--c-navy);
  font-size: 1.2rem; font-weight: 700;
}
.pd-qty__btn:hover { background: var(--c-border); }
.pd-qty__input {
  width: 56px; height: 40px;
  border: 0; text-align: center;
  font-size: 1rem; font-weight: 600;
  border-left: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
}
.pd-qty__input:focus { outline: none; }

.pd-actions {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}
@media (min-width: 480px) { .pd-actions { grid-template-columns: 1fr 1fr; } }

/* Quick info box */
.pd-quickinfo {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.pd-quickinfo dl {
  display: grid; gap: 10px;
  grid-template-columns: 1fr;
  margin: 0;
}
@media (min-width: 480px) { .pd-quickinfo dl { grid-template-columns: 1fr 1fr; } }
.pd-quickinfo dt {
  font-size: .8rem; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.pd-quickinfo dd {
  margin: 2px 0 0;
  font-weight: 600; color: var(--c-navy);
  font-size: .95rem;
}

/* Detail sections */
.pd-section {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
}
.pd-section h2 {
  font-size: 1.15rem; color: var(--c-navy);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-primary);
  margin-bottom: 16px;
  display: inline-block;
}
.pd-section p, .pd-section li { color: var(--c-text); }
.pd-section ul { padding-left: 0; }
.pd-section ul li {
  position: relative; padding-left: 24px; margin-bottom: 8px;
}
.pd-section ul li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/9px no-repeat;
}

/* Reviews */
.pd-review {
  border-top: 1px solid var(--c-border);
  padding: 14px 0;
}
.pd-review:first-of-type { border-top: 0; padding-top: 0; }
.pd-review__head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.pd-review__name { font-weight: 700; color: var(--c-navy); }
.pd-review__stars { color: #f5b800; font-size: .9rem; letter-spacing: 2px; }
.pd-review__comment { color: var(--c-text); margin: 0; }

.pd-empty { color: var(--c-muted); font-style: italic; }

/* ============================================
   Cart page
   ============================================ */
.cart-title {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  color: var(--c-navy);
  margin: 8px 0 24px;
}
.cart-title__count {
  color: var(--c-muted); font-weight: 500; font-size: 1rem;
}
.muted { color: var(--c-muted); }

.cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
@media (min-width: 1024px) {
  .cart-grid { grid-template-columns: 1fr 360px; align-items: start; }
}

.cart-items {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  grid-template-areas:
    "img body"
    "img qty"
    "line line";
  gap: 14px 16px;
  padding: 18px;
  border-bottom: 1px solid var(--c-border);
  align-items: center;
}
.cart-item:last-of-type { border-bottom: 0; }
@media (min-width: 768px) {
  .cart-item {
    grid-template-columns: 96px 1fr auto auto;
    grid-template-areas: "img body qty line";
    gap: 18px;
  }
}
.cart-item__img {
  grid-area: img;
  display: block;
  width: 88px; height: 88px;
  border-radius: var(--radius-sm);
  background: var(--c-light);
  overflow: hidden;
}
@media (min-width: 768px) { .cart-item__img { width: 96px; height: 96px; } }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__img svg { width: 100%; height: 100%; }

.cart-item__body { grid-area: body; min-width: 0; }
.cart-item__brand {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  color: var(--c-primary); letter-spacing: .04em;
}
.cart-item__name {
  display: block; font-size: 1rem; font-weight: 600;
  color: var(--c-navy); margin: 4px 0;
}
.cart-item__name:hover { color: var(--c-primary); }
.cart-item__variant {
  font-size: .85rem; color: var(--c-muted); margin-bottom: 4px;
}
.cart-item__variant strong { color: var(--c-text); }
.cart-item__price {
  font-size: .95rem; font-weight: 600; color: var(--c-text);
}
.cart-item__price s { font-weight: 400; font-size: .85rem; margin-left: 6px; }

.cart-item__qty {
  grid-area: qty;
  display: inline-flex; align-items: center;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  justify-self: start;
}
.cart-item__qty-btn {
  width: 36px; height: 36px;
  background: var(--c-light);
  color: var(--c-navy);
  font-size: 1.1rem; font-weight: 700;
  border: 0; cursor: pointer;
}
.cart-item__qty-btn:hover { background: var(--c-border); }
.cart-item__qty-input {
  width: 48px; height: 36px;
  border: 0; text-align: center;
  font-size: .95rem; font-weight: 600;
  border-left: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
}
.cart-item__qty-input:focus { outline: none; }

.cart-item__line {
  grid-area: line;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
@media (min-width: 768px) {
  .cart-item__line { flex-direction: column; align-items: flex-end; gap: 8px; }
}
.cart-item__line-total {
  font-size: 1.1rem; font-weight: 700; color: var(--c-primary);
  white-space: nowrap;
}
.cart-item__remove {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 0; background: transparent;
  color: var(--c-muted); cursor: pointer;
  display: grid; place-items: center;
  transition: color var(--t-fast), background var(--t-fast);
}
.cart-item__remove:hover { color: #c0392b; background: rgba(192,57,43,.08); }
.cart-item__remove svg { width: 18px; height: 18px; }

.cart-actions-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  padding: 18px;
  background: var(--c-light);
}
.cart-actions-bottom .btn--ghost {
  background: transparent; color: var(--c-muted); border: 1px solid var(--c-border);
}
.cart-actions-bottom .btn--ghost:hover { color: #c0392b; border-color: #c0392b; }

/* Summary aside */
.cart-summary {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.cart-summary h3 {
  font-size: 1.1rem; color: var(--c-navy);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 16px;
}
.cart-summary__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .95rem; color: var(--c-text);
  margin-bottom: 10px;
}
.cart-summary__total {
  border-top: 1px solid var(--c-border);
  margin-top: 14px; padding-top: 14px;
  font-size: 1.05rem;
}
.cart-summary__total strong {
  font-size: 1.4rem; color: var(--c-primary); font-weight: 800;
}
.cart-summary__note {
  margin: 10px 0 18px; font-size: .85rem; color: var(--c-muted);
  background: var(--c-light); padding: 10px 12px; border-radius: var(--radius-sm);
}
.cart-summary__btn { width: 100%; justify-content: center; }
.cart-summary__continue {
  display: block; text-align: center;
  margin-top: 10px; font-size: .9rem; font-weight: 500;
  color: var(--c-navy);
}
.cart-summary__continue:hover { color: var(--c-primary); }
.cart-summary__wholesale {
  display: block; text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-border);
  font-size: .85rem; font-weight: 500;
  color: var(--c-muted);
}
.cart-summary__wholesale:hover { color: var(--c-primary); text-decoration: underline; }

/* ============================================
   Checkout page
   ============================================ */
.checkout-title {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  color: var(--c-navy);
  margin: 8px 0 24px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
@media (min-width: 1024px) {
  .checkout-grid { grid-template-columns: 1fr 400px; align-items: start; }
}

.checkout-form { display: flex; flex-direction: column; gap: 16px; }

.checkout-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.checkout-card__title {
  font-size: 1.05rem;
  color: var(--c-navy);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}

/* Field error styling */
.field__error {
  display: block;
  min-height: 1em;
  margin-top: 4px;
  font-size: .8rem;
  color: #c0392b;
  font-weight: 500;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}

/* Radio card group (shipping/payment method) */
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.radio-card:hover { border-color: var(--c-primary); }
.radio-card input[type="radio"] {
  margin: 4px 0 0;
  flex-shrink: 0;
  accent-color: var(--c-primary);
  width: 18px; height: 18px;
}
.radio-card:has(input:checked) {
  border-color: var(--c-primary);
  background: rgba(0,174,239,.06);
}
.radio-card__body { display: flex; flex-direction: column; gap: 2px; }
.radio-card__body strong { color: var(--c-navy); font-size: .98rem; font-weight: 600; }
.radio-card__body span { font-size: .85rem; color: var(--c-muted); }

/* Summary aside */
.checkout-summary {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.checkout-summary__title {
  font-size: 1.05rem; color: var(--c-navy);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}
.checkout-items {
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 2px;
}
.checkout-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
}
.checkout-item:last-child { border-bottom: 0; }
.checkout-item__img {
  position: relative;
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--c-light);
  overflow: hidden;
}
.checkout-item__img img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item__img svg { width: 100%; height: 100%; }
.checkout-item__qty {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--c-navy);
  color: #fff;
  border-radius: 999px;
  font-size: .7rem; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid #fff;
  box-sizing: content-box;
}
.checkout-item__body { min-width: 0; }
.checkout-item__name {
  font-size: .9rem; font-weight: 600; color: var(--c-navy);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.checkout-item__variant {
  font-size: .78rem; color: var(--c-muted); margin-top: 2px;
}
.checkout-item__price {
  font-size: .78rem; color: var(--c-muted); margin-top: 2px;
}
.checkout-item__line {
  font-size: .9rem; font-weight: 700; color: var(--c-primary);
  white-space: nowrap;
  align-self: center;
}
.checkout-summary__rows {
  border-top: 1px solid var(--c-border);
  padding-top: 14px;
  margin-bottom: 16px;
}
.checkout-summary__terms {
  margin-top: 12px;
  font-size: .8rem; color: var(--c-muted);
  text-align: center;
  line-height: 1.5;
}
.checkout-summary__terms a {
  color: var(--c-primary); font-weight: 500;
}

/* Empty state */
.cart-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 48px;
}
.cart-empty svg {
  width: 80px; height: 80px;
  color: var(--c-muted);
  opacity: .4;
  margin-bottom: 16px;
}
.cart-empty h2 { color: var(--c-navy); margin-bottom: 8px; }
.cart-empty p { color: var(--c-muted); margin-bottom: 24px; max-width: 420px; margin-left: auto; margin-right: auto; }

/* ============================================
   News detail (article page)
   ============================================ */
.news-article {
  max-width: 820px;
  margin: 0 auto 40px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.news-article__head {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--c-border);
}
.news-article__cat {
  display: inline-block;
  background: rgba(0,174,239,.12);
  color: var(--c-primary);
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 12px;
}
.news-article__title {
  font-size: clamp(1.4rem, 2vw + 1rem, 2rem);
  line-height: 1.3;
  color: var(--c-navy);
  margin: 0 0 14px;
}
.news-article__meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: .9rem; color: var(--c-muted);
}
.news-article__hero {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}
.news-article__hero img {
  width: 100%; height: auto;
  display: block;
}
.news-article__hero--fallback,
.news-article__hero-fallback {
  display: grid; place-items: center;
  width: 100%; height: 100%;
}
.news-article__hero svg { width: 80px; height: 80px; opacity: .8; color: #fff; }

.news-article__body {
  padding: 28px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--c-text);
}
.news-article__body p {
  margin: 0 0 18px;
}
.news-article__body p:first-of-type {
  font-size: 1.1rem;
  color: var(--c-navy);
  font-weight: 500;
}
.news-article__body p:first-of-type::first-letter {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--c-primary);
  float: left;
  line-height: 1; padding: 4px 8px 0 0;
}

.news-article__figure {
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
}
.news-article__figure img {
  width: 100%; height: auto; display: block;
}
.news-article__h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-navy);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-primary);
}
.news-article__list {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.news-article__list li {
  padding-left: 20px; position: relative;
  line-height: 1.65;
}
.news-article__list li::before {
  content: '›'; position: absolute; left: 0;
  color: var(--c-primary); font-weight: 700; font-size: 1.1rem;
}

.news-article__foot {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--c-border);
  background: var(--c-light);
}
.news-article__source {
  font-size: .88rem; color: var(--c-muted);
  margin: 0 0 16px;
}
.news-article__source a {
  color: var(--c-primary); word-break: break-all;
}
.news-article__share {
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* Related articles section */
.news-related {
  max-width: 1100px;
  margin: 0 auto 48px;
}
.news-related h2 {
  font-size: 1.3rem;
  color: var(--c-navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-primary);
  display: inline-block;
}

/* ============================================
   Invoice / Order success page
   ============================================ */

.invoice-success {
  background: linear-gradient(135deg, rgba(57,181,74,.1), rgba(0,174,239,.06));
  border: 1px solid rgba(57,181,74,.25);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 16px 0 24px;
  display: flex; align-items: center; gap: 18px;
}
.invoice-success__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-green);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.invoice-success__icon svg { width: 28px; height: 28px; }
.invoice-success__body h1 {
  font-size: 1.3rem; color: var(--c-navy);
  margin: 0 0 6px;
}
.invoice-success__body p {
  margin: 2px 0; color: var(--c-text); font-size: .95rem;
}

.invoice-doc {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.invoice-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--c-navy);
}
@media (min-width: 640px) {
  .invoice-head { grid-template-columns: 1fr auto; gap: 32px; }
}
.invoice-head__brand { display: flex; align-items: center; gap: 14px; }
.invoice-head__brand img { height: 48px; width: auto; }
.invoice-head__brand strong {
  display: block;
  color: var(--c-navy);
  font-size: 1.05rem; font-weight: 800;
}
.invoice-head__brand small {
  display: block;
  color: var(--c-muted);
  font-size: .82rem; line-height: 1.5;
}

.invoice-head__meta { text-align: left; }
@media (min-width: 640px) { .invoice-head__meta { text-align: right; } }
.invoice-head__meta h2 {
  font-size: 1.2rem;
  color: var(--c-primary);
  letter-spacing: .08em;
  margin: 0 0 8px;
}
.invoice-head__meta div {
  font-size: .9rem; color: var(--c-text);
  margin-bottom: 4px;
}
.invoice-head__meta div span { color: var(--c-muted); }
.invoice-status {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  font-size: .8rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
}

.invoice-section { margin-bottom: 28px; }
.invoice-section h3 {
  font-size: .85rem;
  color: var(--c-primary);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 0 0 10px;
}
.invoice-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px;
  background: var(--c-light);
  border-radius: var(--radius-sm);
}
@media (min-width: 768px) { .invoice-info { grid-template-columns: repeat(3, 1fr); } }
.invoice-info p { margin: 0 0 4px; font-size: .92rem; color: var(--c-text); }
.invoice-info p.muted { color: var(--c-muted); font-size: .85rem; }

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.invoice-table th,
.invoice-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--c-border);
}
.invoice-table thead th {
  background: var(--c-navy);
  color: #fff;
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  text-align: left;
  padding: 10px;
}
.invoice-table tbody tr:hover { background: var(--c-light); }
.invoice-table__name {
  font-weight: 600; color: var(--c-navy);
  margin-bottom: 2px;
}
.invoice-table__meta {
  font-size: .8rem; color: var(--c-muted);
}
.invoice-table tfoot td {
  padding: 8px 10px;
  border-bottom: 0;
  font-size: .92rem;
  color: var(--c-text);
}
.invoice-table__total td {
  border-top: 2px solid var(--c-navy);
  padding-top: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-navy);
}
.invoice-table__total td:last-child { color: var(--c-primary); font-size: 1.2rem; }

.invoice-foot {
  padding-top: 18px;
  border-top: 1px solid var(--c-border);
  font-size: .82rem; color: var(--c-muted);
  font-style: italic;
}
.invoice-foot p { margin: 4px 0; }

.invoice-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.invoice-actions .btn { flex: 1 1 220px; justify-content: center; }

.invoice-notfound {
  text-align: center;
  padding: 64px 24px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin: 32px 0 48px;
}
.invoice-notfound__icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(192,57,43,.08);
  color: #c0392b;
  display: grid; place-items: center;
}
.invoice-notfound__icon svg { width: 36px; height: 36px; }
.invoice-notfound h1 {
  color: var(--c-navy);
  font-size: 1.4rem; margin-bottom: 10px;
}
.invoice-notfound p {
  color: var(--c-muted);
  max-width: 480px; margin: 0 auto 24px;
}
.invoice-notfound__actions {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

/* ---------- Print styles ---------- */
@media print {
  body { background: #fff !important; }
  .no-print { display: none !important; }
  .invoice-doc {
    border: 0;
    padding: 0;
    margin: 0;
  }
  .invoice-table thead th { background: #1A2B4A !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .container { padding: 0 !important; max-width: 100% !important; }
  main { padding-top: 0 !important; }
}

/* ---------- Scroll-reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================
   Responsive breakpoints
   ============================================ */

/* Tablet ≥ 640px */
@media (min-width: 640px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .stats   { grid-template-columns: repeat(4, 1fr); }
  .brands  { grid-template-columns: repeat(3, 1fr); }
  .team    { grid-template-columns: repeat(4, 1fr); }
  .form__row { grid-template-columns: repeat(2, 1fr); }
}

/* Laptop ≥ 1024px */
@media (min-width: 1024px) {
  .section   { padding: 88px 0; }
  .nav       { display: flex; }
  .header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-nav  { display: none; }
  .hero__grid  { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .grid--3     { grid-template-columns: repeat(3, 1fr); }
  .grid--4     { grid-template-columns: repeat(4, 1fr); }
  .brands      { grid-template-columns: repeat(6, 1fr); }
  .two-col     { grid-template-columns: 1fr 1fr; gap: 64px; }
  .footer__grid{ grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ============================================================
   Language Switcher (VI / EN toggle)
   ============================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 6px;
}
.lang-btn {
  background: none;
  border: 1.5px solid transparent;
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 700;
  font-size: .72rem;
  cursor: pointer;
  color: var(--c-navy);
  letter-spacing: .05em;
  transition: background .2s, color .2s, border-color .2s;
  font-family: inherit;
  line-height: 1.6;
}
.lang-btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.lang-btn.is-active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.lang-sep {
  color: var(--c-muted);
  font-size: .7rem;
  user-select: none;
  opacity: .5;
}
@media (max-width: 639px) {
  .lang-switcher { margin-right: 4px; }
  .lang-btn { padding: 2px 6px; font-size: .68rem; }
}
