/* ==========================================================================
   SHOP MÁY ẢNH — GEOMETRIC-MODERN Identity
   Font: Sora (unified) · Prefix: ma- · Accent: Optical Teal #0d8a82 / Amber #e8871e
   ========================================================================== */

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--sans); cursor: pointer; }
input, select, textarea { font-family: var(--sans); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; }

/* ---------- Root tokens ---------- */
:root {
  --bg: #f1f3f4;
  --surface: #ffffff;
  --dark: #1c2428;
  --dark2: #12181b;
  --border: #d7dbdc;
  --border-light: #e6e9ea;
  --text: #1c2428;
  --text-2: #5a6569;
  --text-3: #8b9599;
  --accent: #0d8a82;
  --accent-h: #0a6d67;
  --accent-light: #e1f3f1;
  --accent-mid: #14a89e;
  --amber: #e8871e;
  --amber-light: #fdf1e0;
  --danger: #e24b4a;
  --sans: 'Sora', sans-serif;
  --radius-card: 3px;
  --radius-btn: 2px;
}

/* ---------- Layout ---------- */
.ma-container { max-width: 1220px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px); }
.ma-sec { padding: clamp(64px, 9vw, 116px) 0; }
.ma-sec-alt { background: var(--surface); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .06s; }
[data-reveal][data-delay="2"] { transition-delay: .12s; }
[data-reveal][data-delay="3"] { transition-delay: .18s; }
[data-reveal][data-delay="4"] { transition-delay: .24s; }
[data-reveal][data-delay="5"] { transition-delay: .30s; }

/* ---------- Buttons (geometric: radius 2px, subtle tilt on hover) ---------- */
.ma-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 14.5px;
  padding: 14px 28px; border-radius: var(--radius-btn); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .22s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.ma-btn i { font-size: 15px; }
.ma-btn-primary { background: var(--accent); color: #fff; }
.ma-btn-primary:hover { background: var(--accent-h); transform: rotate(1deg); }
.ma-btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.ma-btn-ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); transform: rotate(1deg); }
.ma-btn-dark { background: var(--dark); color: #fff; }
.ma-btn-dark:hover { background: var(--dark2); transform: rotate(1deg); }
.ma-btn-white { background: #fff; color: var(--dark); }
.ma-btn-white:hover { background: var(--amber-light); transform: rotate(1deg); }
.ma-btn-outline-dark { background: transparent; border-color: rgba(255,255,255,.28); color: rgba(255,255,255,.85); }
.ma-btn-outline-dark:hover { border-color: #fff; color: #fff; transform: rotate(1deg); }
.ma-btn-sm { padding: 9px 18px; font-size: 13.5px; }
.ma-btn-lg { padding: 16px 34px; font-size: 15.5px; }
.ma-btn-full { width: 100%; }

/* ---------- Mobile off-canvas nav ---------- */
.ma-mob-nav {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); height: 100vh;
  background: var(--dark); z-index: 1100; transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column; padding: 96px 28px 28px;
}
.ma-mob-nav.open { transform: translateX(0); }
.ma-mob-nav ul { display: flex; flex-direction: column; gap: 4px; }
.ma-mob-nav ul li a {
  display: flex; align-items: center; gap: 12px; padding: 14px 12px;
  color: rgba(255,255,255,.72); font-weight: 500; font-size: 15.5px; border-radius: var(--radius-btn);
  border-left: 3px solid transparent;
}
.ma-mob-nav ul li a.ma-active,
.ma-mob-nav ul li a:hover { color: #fff; background: rgba(255,255,255,.06); border-left-color: var(--accent); }
.ma-mob-actions { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- Nav-4 Minimal Top Line ---------- */
#ma-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent; border-top: 3px solid var(--accent);
  transition: background .28s ease, box-shadow .28s ease, border-color .28s ease;
}
/* Scrim luôn hiện phía sau nav khi chưa scroll — đảm bảo tương phản bất kể hero bên dưới
   là vùng tối (.ma-split-dark) hay sáng, tránh nav "chìm" theo vị trí lát cắt geometric split. */
#ma-nav::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 140px;
  background: linear-gradient(to bottom, rgba(18,24,27,.6) 0%, rgba(18,24,27,.32) 60%, rgba(18,24,27,0) 100%);
  z-index: 1; pointer-events: none;
  opacity: 1; transition: opacity .28s ease;
}
#ma-nav.ma-scrolled {
  background: #fff;
  box-shadow: 0 1px 0 var(--border), 0 12px 28px rgba(28,36,40,.06);
}
#ma-nav.ma-scrolled::before { opacity: 0; }
.ma-nav-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.ma-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--dark); transition: color .2s; }
.ma-logo-dot { width: 9px; height: 9px; background: var(--amber); flex-shrink: 0; }
.ma-nav-links { display: flex; align-items: center; gap: 34px; }
.ma-nav-links a { font-weight: 500; font-size: 14.5px; color: var(--text-2); padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.ma-nav-links a:hover, .ma-nav-links a.ma-active { color: var(--dark); border-bottom-color: var(--accent); }
.ma-nav-actions { display: flex; align-items: center; gap: 14px; }
.ma-nav-icon { position: relative; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: var(--dark); font-size: 18px; border: 1.5px solid var(--border); border-radius: var(--radius-btn); transition: border-color .2s, color .2s; }
.ma-nav-icon:hover, .ma-nav-icon.ma-active { border-color: var(--accent); color: var(--accent); }
.ma-cart-badge { position: absolute; top: -7px; right: -7px; background: var(--amber); color: #fff; font-size: 10.5px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ma-burger { width: 38px; height: 38px; border: 1.5px solid var(--border); border-radius: var(--radius-btn); background: transparent; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.ma-burger span { width: 17px; height: 2px; background: var(--dark); transition: transform .25s, opacity .25s, background .2s; }
.ma-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ma-burger.open span:nth-child(2) { opacity: 0; }
.ma-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Trạng thái chưa scroll: nav đè trực tiếp lên hero (luôn có scrim tối phía sau) → chữ/icon dùng màu sáng.
   Sau khi scroll (.ma-scrolled, nền trắng đặc) mới trả về màu tối như trên các trang con luôn-scrolled. */
#ma-nav:not(.ma-scrolled) .ma-logo,
#ma-nav:not(.ma-scrolled) .ma-nav-links a,
#ma-nav:not(.ma-scrolled) .ma-nav-icon {
  color: #fff;
}
#ma-nav:not(.ma-scrolled) .ma-nav-links a:hover,
#ma-nav:not(.ma-scrolled) .ma-nav-links a.ma-active {
  color: #fff; border-bottom-color: var(--amber);
}
#ma-nav:not(.ma-scrolled) .ma-nav-icon { border-color: rgba(255,255,255,.4); }
#ma-nav:not(.ma-scrolled) .ma-nav-icon:hover,
#ma-nav:not(.ma-scrolled) .ma-nav-icon.ma-active { border-color: var(--amber); color: var(--amber); }
#ma-nav:not(.ma-scrolled) .ma-burger { border-color: rgba(255,255,255,.4); }
#ma-nav:not(.ma-scrolled) .ma-burger span { background: #fff; }

/* ---------- HERO — H10 Geometric Split ---------- */
.ma-hero {
  position: relative; overflow: hidden; background: var(--bg);
  padding: 160px 0 96px;
}
.ma-hero-split { position: absolute; inset: 0; z-index: 0; }
.ma-hero-split .ma-split-dark {
  position: absolute; inset: 0; background: var(--dark2);
  clip-path: polygon(0 0, 57% 0, 41% 100%, 0 100%);
}
.ma-hero-split .ma-split-line {
  position: absolute; inset: 0; background: var(--accent);
  clip-path: polygon(57% 0, 58.6% 0, 42.6% 100%, 41% 100%);
}
.ma-hero-split .ma-split-line2 {
  position: absolute; inset: 0; background: var(--amber);
  clip-path: polygon(58.6% 0, 59.2% 0, 43.2% 100%, 42.6% 100%);
}
.ma-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ma-hero-content { max-width: 480px; }
.ma-hero-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--amber);
  background: rgba(232,135,30,.14); border: 1px solid rgba(232,135,30,.35);
  padding: 8px 14px; border-radius: var(--radius-btn); margin-bottom: 22px;
}
.ma-hero-title { font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; color: #fff; margin-bottom: 20px; }
.ma-hero-title em { font-style: normal; color: var(--accent-mid); }
.ma-hero-desc { font-size: 16px; color: rgba(255,255,255,.72); max-width: 420px; margin-bottom: 30px; line-height: 1.75; }
.ma-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.ma-hero-note { font-size: 13.5px; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 8px; }
.ma-hero-visual { position: relative; }
.ma-hero-visual img { border-radius: var(--radius-card); box-shadow: 0 30px 70px rgba(12,16,18,.28); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.ma-hero-float-card {
  position: absolute; left: -28px; bottom: -22px; background: #fff; border-radius: var(--radius-card);
  padding: 16px 20px; display: flex; align-items: center; gap: 12px; box-shadow: 0 18px 44px rgba(12,16,18,.16);
  border-top: 3px solid var(--amber); min-width: 220px;
}
.ma-float-icon { width: 40px; height: 40px; border-radius: var(--radius-btn); background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.ma-hero-float-card strong { display: block; font-size: 15px; color: var(--dark); }
.ma-hero-float-card span { font-size: 12.5px; color: var(--text-2); }

/* ---------- Trust strip ---------- */
.ma-trust { background: var(--dark); padding: 20px 0; }
.ma-trust-row { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.ma-trust-item { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.68); }
.ma-trust-item i { color: var(--accent-mid); font-size: 16px; }

/* ---------- Section header ---------- */
.ma-sec-header { margin-bottom: 44px; }
.ma-sec-header.ma-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ma-sec-header.ma-center { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }
.ma-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px;
}
.ma-eyebrow::before { content: ''; width: 18px; height: 3px; background: var(--amber); display: inline-block; }
.ma-sec-title { font-size: clamp(26px, 3.2vw, 38px); color: var(--dark); }
.ma-sec-title em { font-style: normal; color: var(--accent); }
.ma-sec-sub { font-size: 15.5px; color: var(--text-2); margin-top: 12px; max-width: 520px; }
.ma-center .ma-sec-sub { margin-left: auto; margin-right: auto; }

/* ---------- FEATURE-ICON-ROW ---------- */
.ma-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.ma-feature { padding: 8px 0; }
.ma-feature-icon { width: 52px; height: 52px; border-radius: var(--radius-btn); background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.ma-feature h3 { font-size: 17px; color: var(--dark); margin-bottom: 8px; }
.ma-feature p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ---------- GRID-CARDS — Categories ---------- */
.ma-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ma-cat-card { position: relative; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4/3; border-top: 4px solid var(--accent); transition: border-color .25s ease; }
.ma-cat-card:hover { border-top-color: var(--amber); }
.ma-cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ma-cat-card:hover img { transform: scale(1.06); }
.ma-cat-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,24,27,0) 40%, rgba(18,24,27,.86) 100%); }
.ma-cat-info { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.ma-cat-info h3 { font-size: 18px; margin-bottom: 4px; }
.ma-cat-info span { font-size: 13px; color: rgba(255,255,255,.72); }

/* ---------- STAT-BAR ---------- */
.ma-stats { background: var(--dark); padding: clamp(48px, 6vw, 76px) 0; }
.ma-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.ma-stat { border-left: 1px solid rgba(255,255,255,.12); padding: 0 12px; }
.ma-stat:first-child { border-left: none; }
.ma-stat-num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: #fff; }
.ma-stat-num span { color: var(--accent-mid); }
.ma-stat-label { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 8px; }

/* ---------- BENTO-GRID — Products ---------- */
.ma-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, auto); gap: 20px; }
.ma-bento-large { grid-column: span 2; grid-row: span 2; }
.ma-bento-small { grid-column: span 2; }
@media (min-width: 900px) { .ma-bento-small { grid-column: span 1; } }

.ma-prod-card { display: block; background: var(--surface); border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border-light); border-top: 4px solid var(--accent); transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.ma-prod-card:hover { border-top-color: var(--amber); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(28,36,40,.09); }
.ma-prod-thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bg); }
.ma-bento-large .ma-prod-thumb { aspect-ratio: 4/3; }
.ma-prod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.ma-prod-card:hover .ma-prod-thumb img { transform: scale(1.05); }
.ma-prod-badge { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 5px 10px; border-radius: var(--radius-btn); color: #fff; z-index: 2; }
.ma-prod-badge-new { background: var(--accent); }
.ma-prod-badge-sale { background: var(--danger); }
.ma-prod-badge-hot { background: var(--amber); }
.ma-prod-quickadd { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; background: #fff; color: var(--dark); border-radius: var(--radius-btn); display: flex; align-items: center; justify-content: center; font-size: 16px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.ma-prod-card:hover .ma-prod-quickadd { opacity: 1; transform: none; }
.ma-prod-info { padding: 16px 18px 18px; }
.ma-prod-cat { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-bottom: 6px; }
.ma-prod-name { font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.ma-prod-footer { display: flex; align-items: center; justify-content: space-between; }
.ma-prod-price { display: flex; align-items: baseline; gap: 8px; }
.ma-price-now { font-size: 16px; font-weight: 700; color: var(--dark); }
.ma-price-old { font-size: 13px; color: var(--text-3); text-decoration: line-through; }
.ma-price-unit { font-size: 12px; color: var(--text-3); }
.ma-prod-rating { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); }
.ma-prod-rating i { color: var(--amber); font-size: 12px; }

/* ---------- ALTERNATING-STRIPS — Story ---------- */
.ma-story-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.ma-story-row:last-child { margin-bottom: 0; }
.ma-story-row.ma-reverse { direction: rtl; }
.ma-story-row.ma-reverse > * { direction: ltr; }
.ma-story-img { border-radius: var(--radius-card); overflow: hidden; border-top: 4px solid var(--amber); }
.ma-story-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ma-story-badge { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); background: var(--accent-light); padding: 6px 12px; border-radius: var(--radius-btn); margin-bottom: 16px; }
.ma-story-title { font-size: clamp(22px, 2.6vw, 30px); color: var(--dark); margin-bottom: 14px; }
.ma-story-title em { font-style: normal; color: var(--accent); }
.ma-story-text { font-size: 15px; color: var(--text-2); line-height: 1.75; margin-bottom: 18px; }
.ma-story-list { display: flex; flex-direction: column; gap: 10px; }
.ma-story-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
.ma-story-list i { color: var(--accent); margin-top: 3px; }

/* ---------- TIMELINE ---------- */
.ma-timeline { position: relative; max-width: 780px; margin: 0 auto; }
.ma-timeline::before { content: ''; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.ma-timeline-item { position: relative; padding-left: 68px; margin-bottom: 40px; }
.ma-timeline-item:last-child { margin-bottom: 0; }
.ma-timeline-dot { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: var(--radius-btn); background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; z-index: 1; }
.ma-timeline-step { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--amber); margin-bottom: 6px; }
.ma-timeline-content h3 { font-size: 17.5px; color: var(--dark); margin-bottom: 8px; }
.ma-timeline-content p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ---------- HORIZONTAL-SCROLL — Testimonials ---------- */
.ma-testi-track { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.ma-testi-track::-webkit-scrollbar { height: 6px; }
.ma-testi-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.ma-testi-card { flex: 0 0 340px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border-light); border-top: 4px solid var(--accent); border-radius: var(--radius-card); padding: 26px; }
.ma-testi-stars { color: var(--amber); font-size: 13px; margin-bottom: 14px; display: flex; gap: 3px; }
.ma-testi-text { font-size: 14.5px; color: var(--text); line-height: 1.75; margin-bottom: 20px; min-height: 96px; }
.ma-testi-author { display: flex; align-items: center; gap: 12px; }
.ma-testi-avatar { width: 40px; height: 40px; border-radius: var(--radius-btn); background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.ma-testi-name { font-size: 14px; font-weight: 600; color: var(--dark); }
.ma-testi-role { font-size: 12.5px; color: var(--text-3); }

/* ---------- Newsletter ---------- */
.ma-newsletter { background: var(--dark2); padding: clamp(56px, 7vw, 88px) 0; }
.ma-newsletter-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.ma-newsletter-inner .ma-sec-title { color: #fff; }
.ma-newsletter-inner .ma-sec-sub { color: rgba(255,255,255,.62); }
.ma-newsletter-form { display: flex; gap: 12px; margin-top: 28px; }
.ma-newsletter-form input { flex: 1; padding: 14px 18px; border-radius: var(--radius-btn); border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-size: 14.5px; }
.ma-newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.ma-newsletter-form button { padding: 14px 26px; border-radius: var(--radius-btn); border: none; background: var(--accent); color: #fff; font-weight: 600; font-size: 14.5px; transition: transform .2s, background .2s; }
.ma-newsletter-form button:hover { background: var(--accent-h); transform: rotate(1deg); }

/* ---------- Footer — geometric dividers, mid tone ---------- */
.ma-footer { background: var(--surface); border-top: 3px solid var(--dark); padding: 64px 0 0; }
.ma-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 0; padding-bottom: 44px; }
.ma-footer-grid > div { padding: 0 32px; border-left: 1px solid var(--border-light); }
.ma-footer-grid > div:first-child { padding-left: 0; border-left: none; }
.ma-footer-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--dark); margin-bottom: 14px; }
.ma-footer-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; max-width: 280px; }
.ma-footer-social { display: flex; gap: 10px; }
.ma-soc-btn { width: 36px; height: 36px; border: 1.5px solid var(--border); border-radius: var(--radius-btn); display: flex; align-items: center; justify-content: center; color: var(--text-2); transition: border-color .2s, color .2s; }
.ma-soc-btn:hover { border-color: var(--accent); color: var(--accent); }
.ma-footer-col h4 { font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--dark); margin-bottom: 18px; }
.ma-footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.ma-footer-col ul li a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.ma-footer-col ul li a:hover { color: var(--accent); }
.ma-footer-contact li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.ma-footer-contact li i { color: var(--accent); margin-top: 3px; }
.ma-footer-bottom { border-top: 1px solid var(--border-light); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ma-footer-bottom p { font-size: 13px; color: var(--text-3); }
.ma-footer-pay { display: flex; gap: 8px; }
.ma-pay-badge { font-size: 11px; font-weight: 700; color: var(--text-2); border: 1px solid var(--border); border-radius: var(--radius-btn); padding: 5px 10px; }

/* ---------- Zalo float ---------- */
.ma-zalo-float { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; align-items: center; gap: 10px; }
.ma-zalo-btn { width: 54px; height: 54px; border-radius: 50%; background: #0068FF; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 10px 26px rgba(0,104,255,.35); animation: maPulse 2.2s infinite; }
.ma-zalo-tooltip { background: var(--dark); color: #fff; font-size: 12.5px; padding: 7px 12px; border-radius: var(--radius-btn); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; white-space: nowrap; }
.ma-zalo-float:hover .ma-zalo-tooltip { opacity: 1; transform: none; }
@keyframes maPulse { 0%,100% { box-shadow: 0 10px 26px rgba(0,104,255,.35); } 50% { box-shadow: 0 10px 26px rgba(0,104,255,.6), 0 0 0 8px rgba(0,104,255,.08); } }

/* ---------- Page header (shared: san-pham, gio-hang, lien-he) ---------- */
.ma-page-hero { background: var(--dark); padding: 148px 0 44px; }
.ma-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.ma-breadcrumb a { color: rgba(255,255,255,.7); }
.ma-breadcrumb a:hover { color: #fff; }
.ma-page-title { font-size: clamp(26px, 3.4vw, 38px); color: #fff; }
.ma-page-count { font-size: 14px; color: rgba(255,255,255,.55); margin-top: 8px; }

/* On light pages (e.g. detail/cart/contact) breadcrumb sits on light bg */
.ma-breadcrumb.ma-on-light { color: var(--text-3); }
.ma-breadcrumb.ma-on-light a { color: var(--text-2); }
.ma-breadcrumb.ma-on-light a:hover { color: var(--accent); }

/* ---------- Shop layout — san-pham.html ---------- */
.ma-cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; padding: 28px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.ma-cat-tab { padding: 10px 20px; border-radius: var(--radius-btn); border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 600; transition: border-color .2s, color .2s, background .2s; }
.ma-cat-tab:hover { border-color: var(--accent); color: var(--accent); }
.ma-cat-tab.ma-active { background: var(--dark); border-color: var(--dark); color: #fff; }

.ma-shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding-bottom: 80px; }
.ma-filter-sidebar { align-self: start; position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border-light); border-top: 3px solid var(--accent); border-radius: var(--radius-card); padding: 22px; }
.ma-filter-hd { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.ma-filter-clear { font-size: 12.5px; font-weight: 500; color: var(--accent); cursor: pointer; }
.ma-filter-block { padding: 18px 0; border-top: 1px solid var(--border-light); }
.ma-filter-block:first-of-type { border-top: none; padding-top: 0; }
.ma-filter-title { font-size: 13.5px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.ma-filter-opts { display: flex; flex-direction: column; gap: 11px; }
.ma-filter-opt { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.ma-filter-opt input { accent-color: var(--accent); width: 15px; height: 15px; }
.ma-count { margin-left: auto; color: var(--text-3); font-size: 12px; }
.ma-price-range { display: flex; align-items: center; gap: 8px; }
.ma-price-range input { width: 0; flex: 1; padding: 9px 10px; border-radius: var(--radius-btn); border: 1.5px solid var(--border); font-size: 13px; }
.ma-price-range span { color: var(--text-3); }

.ma-swatch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ma-filter-swatch {
  width: 30px; height: 30px; border-radius: var(--radius-btn); border: 2px solid var(--border);
  cursor: pointer; position: relative; transition: border-color .18s, transform .18s;
}
.ma-filter-swatch:hover { transform: translateY(-2px); }
.ma-filter-swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ma-filter-swatch.ma-selected { border-color: var(--accent); }
.ma-filter-swatch.ma-selected::after { content: '\2713'; font-family: Arial, sans-serif; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }

.ma-shop-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.ma-result-count { font-size: 13.5px; color: var(--text-2); }
.ma-sort-select { padding: 10px 14px; border-radius: var(--radius-btn); border: 1.5px solid var(--border); font-size: 13.5px; color: var(--text); background: var(--surface); }
.ma-prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ma-pagination { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 44px; }
.ma-page-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); border-radius: var(--radius-btn); font-size: 13.5px; color: var(--text-2); transition: border-color .2s, background .2s, color .2s; }
.ma-page-btn:hover { border-color: var(--accent); color: var(--accent); }
.ma-page-btn.ma-active { background: var(--dark); border-color: var(--dark); color: #fff; }

/* ---------- Product detail — chi-tiet-san-pham.html ---------- */
.ma-detail-wrap { padding: 148px 0 0; }
.ma-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; margin-bottom: 64px; }
.ma-gallery-main { border-radius: var(--radius-card); overflow: hidden; border-top: 4px solid var(--accent); aspect-ratio: 1/1; background: var(--surface); }
.ma-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.ma-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.ma-thumb { border-radius: var(--radius-btn); overflow: hidden; border: 2px solid var(--border); aspect-ratio: 1/1; padding: 0; background: none; transition: border-color .2s; }
.ma-thumb.ma-active, .ma-thumb:hover { border-color: var(--accent); }
.ma-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ma-detail-info { padding-top: 4px; }
.ma-detail-badges { display: flex; gap: 8px; margin-bottom: 16px; }
.ma-detail-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--accent); background: var(--accent-light); padding: 6px 11px; border-radius: var(--radius-btn); }
.ma-detail-name { font-size: clamp(24px, 2.8vw, 32px); color: var(--dark); margin-bottom: 14px; }
.ma-detail-rating { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); margin-bottom: 20px; }
.ma-detail-rating .ma-stars { color: var(--amber); }
.ma-detail-price { display: flex; align-items: baseline; gap: 10px; padding: 18px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); margin-bottom: 20px; }
.ma-d-price-now { font-size: 30px; font-weight: 800; color: var(--dark); }
.ma-d-price-old { font-size: 16px; color: var(--text-3); text-decoration: line-through; }
.ma-d-price-unit { font-size: 13px; color: var(--text-3); }
.ma-detail-desc { font-size: 14.5px; color: var(--text-2); line-height: 1.8; margin-bottom: 26px; }

.ma-variant-label { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .03em; }

.ma-color-swatches { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.ma-color-swatch {
  width: 38px; height: 38px; border-radius: var(--radius-btn); border: 2px solid var(--border);
  cursor: pointer; position: relative; transition: border-color .18s, transform .18s;
}
.ma-color-swatch:hover { transform: translateY(-2px); }
.ma-color-swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ma-color-swatch.ma-selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.ma-color-swatch.ma-selected::after { content: '\2713'; font-family: Arial, sans-serif; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }

.ma-bundle-chips { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.ma-bundle-chip {
  padding: 11px 18px; border-radius: var(--radius-btn); border: 1.5px solid var(--border);
  font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--surface);
  cursor: pointer; transition: border-color .18s, color .18s, background .18s;
}
.ma-bundle-chip:hover { border-color: var(--accent); color: var(--accent); }
.ma-bundle-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ma-bundle-chip.ma-selected { background: var(--dark); border-color: var(--dark); color: #fff; }

.ma-qty-add { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.ma-qty { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-btn); overflow: hidden; }
.ma-qty button { width: 40px; height: 44px; border: none; background: var(--surface); color: var(--dark); font-size: 18px; }
.ma-qty button:hover { background: var(--accent-light); color: var(--accent); }
.ma-qty input { width: 48px; height: 44px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 14.5px; font-weight: 600; -moz-appearance: textfield; }
.ma-qty input::-webkit-outer-spin-button, .ma-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ma-btn-cart-full { flex: 1; min-width: 200px; }
.ma-btn-wishlist { width: 44px; height: 44px; border-radius: var(--radius-btn); border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 18px; display: flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s; }
.ma-btn-wishlist:hover { border-color: var(--danger); color: var(--danger); }

.ma-trust-list { display: flex; flex-direction: column; gap: 12px; }
.ma-trust-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.ma-trust-list i { color: var(--accent); font-size: 16px; }

/* ---------- Tabs (ARIA wired) ---------- */
.ma-tabs { margin-bottom: 72px; }
.ma-tab-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 30px; flex-wrap: wrap; }
.ma-tab-btn { padding: 14px 22px; font-size: 14.5px; font-weight: 600; color: var(--text-2); background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .2s, border-color .2s; }
.ma-tab-btn:hover { color: var(--dark); }
.ma-tab-btn.ma-active { color: var(--accent); border-bottom-color: var(--accent); }
.ma-tab-panel { display: none; }
.ma-tab-panel.ma-active { display: block; }
.ma-specs-table { width: 100%; border-collapse: collapse; max-width: 760px; }
.ma-specs-table tr { border-bottom: 1px solid var(--border-light); }
.ma-specs-table td { padding: 13px 4px; font-size: 14px; color: var(--text-2); }
.ma-specs-table td:first-child { font-weight: 600; color: var(--dark); width: 220px; }
.ma-review-item { padding: 20px 0; border-bottom: 1px solid var(--border-light); max-width: 760px; }
.ma-review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ma-review-avatar { width: 38px; height: 38px; border-radius: var(--radius-btn); background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.ma-review-name { font-size: 14px; font-weight: 600; color: var(--dark); }
.ma-review-date { font-size: 12.5px; color: var(--text-3); }
.ma-review-text { font-size: 14px; color: var(--text-2); line-height: 1.7; }

.ma-related { padding: 0 0 90px; }
.ma-related-grid, .ma-suggest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Cart — gio-hang.html ---------- */
.ma-cart-wrap { padding: 148px 0 0; }
.ma-cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; padding-bottom: 60px; }
.ma-cart-table-wrap { background: var(--surface); border: 1px solid var(--border-light); border-top: 3px solid var(--accent); border-radius: var(--radius-card); padding: 8px 24px; }
.ma-cart-table { width: 100%; border-collapse: collapse; }
.ma-cart-table thead th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); padding: 18px 8px; border-bottom: 1px solid var(--border-light); }
.ma-cart-table tbody td { padding: 20px 8px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.ma-cart-table tbody tr:last-child td { border-bottom: none; }
.ma-cart-item-wrap { display: flex; align-items: center; gap: 14px; }
.ma-cart-img { width: 66px; height: 66px; object-fit: cover; border-radius: var(--radius-btn); flex-shrink: 0; }
.ma-cart-name { font-size: 14.5px; font-weight: 600; color: var(--dark); }
.ma-cart-meta { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.ma-cart-price { font-size: 14.5px; font-weight: 600; color: var(--dark); white-space: nowrap; }
.ma-cart-qty { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-btn); width: fit-content; overflow: hidden; }
.ma-cart-qty button { width: 32px; height: 36px; border: none; background: var(--surface); color: var(--dark); font-size: 16px; }
.ma-cart-qty button:hover { background: var(--accent-light); color: var(--accent); }
.ma-cart-qty input { width: 40px; height: 36px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 13.5px; }
.ma-cart-del { width: 34px; height: 34px; border: 1.5px solid var(--border); border-radius: var(--radius-btn); background: none; color: var(--text-3); display: flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s; }
.ma-cart-del:hover { border-color: var(--danger); color: var(--danger); }

.ma-trust-badges-strip { display: flex; gap: 28px; flex-wrap: wrap; padding: 22px 0; margin-top: 32px; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.ma-trust-badge-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.ma-trust-badge-item i { color: var(--accent); font-size: 18px; }

.ma-order-summary { background: var(--surface); border: 1px solid var(--border-light); border-top: 3px solid var(--amber); border-radius: var(--radius-card); padding: 26px; position: sticky; top: 96px; }
.ma-summary-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.ma-summary-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-2); padding: 9px 0; }
.ma-coupon-row { display: flex; gap: 8px; margin: 16px 0; }
.ma-coupon-row input { flex: 1; padding: 11px 12px; border-radius: var(--radius-btn); border: 1.5px solid var(--border); font-size: 13.5px; }
.ma-coupon-row button { padding: 11px 16px; border-radius: var(--radius-btn); border: 1.5px solid var(--dark); background: var(--dark); color: #fff; font-size: 13px; font-weight: 600; }
.ma-summary-total { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border-light); }
.ma-summary-total-label { font-size: 15px; font-weight: 700; color: var(--dark); }
.ma-summary-total-val { font-size: 22px; font-weight: 800; color: var(--accent); }
.ma-secure-note { font-size: 12.5px; color: var(--text-3); text-align: center; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; }

/* ---------- Contact — lien-he.html ---------- */
.ma-quick-bar { background: var(--dark); padding: 18px 0; margin-top: 148px; }
.ma-quick-bar .ma-container { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.ma-quick-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.75); }
.ma-quick-item i { color: var(--accent-mid); font-size: 17px; }
.ma-quick-item strong { color: #fff; font-weight: 600; }

.ma-contact-wrap { padding: 56px 0 0; }
.ma-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; }
.ma-contact-info h1 { font-size: clamp(24px, 2.8vw, 32px); color: var(--dark); margin-bottom: 16px; font-weight: 700; line-height: 1.2; }
.ma-contact-info > p { font-size: 14.5px; color: var(--text-2); line-height: 1.75; margin-bottom: 28px; max-width: 440px; }
.ma-contact-details { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.ma-contact-detail { display: flex; gap: 14px; }
.ma-contact-icon { width: 44px; height: 44px; border-radius: var(--radius-btn); background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.ma-contact-detail-text strong { display: block; font-size: 14.5px; color: var(--dark); margin-bottom: 3px; }
.ma-contact-detail-text p { font-size: 13.5px; color: var(--text-2); }
.ma-contact-map { border-radius: var(--radius-card); overflow: hidden; border-top: 4px solid var(--accent); }
.ma-contact-map iframe { width: 100%; height: 260px; border: none; display: block; }

.ma-contact-form { background: var(--surface); border: 1px solid var(--border-light); border-top: 4px solid var(--amber); border-radius: var(--radius-card); padding: 32px; }
.ma-contact-form h2 { font-size: 19px; color: var(--dark); margin-bottom: 22px; }
.ma-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ma-form-group { margin-bottom: 18px; }
.ma-form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.ma-form-group input, .ma-form-group select, .ma-form-group textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-btn); border: 1.5px solid var(--border); font-size: 14px; color: var(--text); background: var(--bg); }
.ma-form-group input:focus, .ma-form-group select:focus, .ma-form-group textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.ma-form-group textarea { min-height: 110px; resize: vertical; }

.ma-faq-bg { background: var(--surface); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.ma-faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ma-faq-item { border: 1.5px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--bg); }
.ma-faq-item.open { border-color: var(--accent); }
.ma-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: none; border: none; text-align: left; font-size: 14.5px; font-weight: 600; color: var(--dark); }
.ma-faq-icon { width: 26px; height: 26px; border-radius: var(--radius-btn); background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .25s; }
.ma-faq-item.open .ma-faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.ma-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; font-size: 14px; color: var(--text-2); line-height: 1.7; padding: 0 20px; }
.ma-faq-item.open .ma-faq-a { max-height: 240px; padding: 0 20px 20px; }

.ma-cta-dark { background: var(--dark2); padding: clamp(60px, 7vw, 92px) 0; }
.ma-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.ma-cta-content .ma-eyebrow { color: var(--amber); }
.ma-cta-content .ma-eyebrow::before { background: var(--accent); }
.ma-cta-content h2 { font-size: clamp(24px, 3vw, 34px); color: #fff; margin-bottom: 16px; }
.ma-cta-content h2 em { font-style: normal; color: var(--accent-mid); }
.ma-cta-content p { font-size: 14.5px; color: rgba(255,255,255,.65); line-height: 1.75; margin-bottom: 26px; max-width: 440px; }
.ma-cta-images { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ma-cta-images img { border-radius: var(--radius-card); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.ma-cta-images img:nth-child(2) { margin-top: 26px; }

/* ---------- Article / legal pages — chinh-sach-bao-mat.html, dieu-khoan.html ---------- */
.ma-article { max-width: 800px; margin: 0 auto; }
.ma-article-meta { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--text-3); margin-bottom: 32px; }
.ma-article p { font-size: 15px; line-height: 1.8; color: var(--text-2); margin-bottom: 16px; }
.ma-article h2 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; letter-spacing: -.01em; color: var(--dark); margin: 40px 0 14px; }
.ma-article h2:first-of-type { margin-top: 8px; }
.ma-article ul { padding-left: 20px; margin: 0 0 16px; }
.ma-article li { font-size: 15px; line-height: 1.8; color: var(--text-2); margin-bottom: 8px; }
.ma-article strong { color: var(--dark); font-weight: 600; }
.ma-article a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.ma-article a:hover { opacity: .8; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1140px) {
  .ma-bento { grid-template-columns: repeat(2, 1fr); }
  .ma-bento-large { grid-column: span 2; }
  .ma-related-grid, .ma-suggest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .ma-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .ma-prod-grid { grid-template-columns: repeat(2, 1fr); }
  .ma-shop-layout { grid-template-columns: 220px 1fr; gap: 28px; }
  .ma-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .ma-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .ma-stat:nth-child(3) { border-left: none; }
  .ma-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .ma-footer-grid > div:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 900px) {
  .ma-hero-grid { grid-template-columns: 1fr; }
  .ma-hero-split .ma-split-dark { clip-path: polygon(0 0, 100% 0, 100% 46%, 0 62%); }
  .ma-hero-split .ma-split-line, .ma-hero-split .ma-split-line2 { display: none; }
  .ma-hero-content { max-width: 100%; }
  .ma-hero-visual { max-width: 420px; }
  .ma-hero-float-card { left: 0; }
  .ma-detail-grid, .ma-story-row, .ma-story-row.ma-reverse, .ma-contact-grid, .ma-cta-grid { grid-template-columns: 1fr; }
  .ma-story-row.ma-reverse { direction: ltr; }
  .ma-story-row.ma-reverse .ma-story-img { order: -1; }
  .ma-cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ma-nav-links { display: none; }
  .ma-burger { display: flex; }
  .ma-shop-layout { grid-template-columns: 1fr; }
  .ma-filter-sidebar { position: static; }
}
@media (max-width: 768px) {
  .ma-cat-grid, .ma-prod-grid, .ma-related-grid, .ma-suggest-grid { grid-template-columns: repeat(2, 1fr); }
  .ma-feature-grid { grid-template-columns: 1fr; }
  .ma-form-row { grid-template-columns: 1fr; }
  .ma-footer-grid { grid-template-columns: 1fr; }
  .ma-footer-grid > div { border-left: none; padding-left: 0; }
  .ma-gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .ma-cart-table thead { display: none; }
  .ma-cart-table, .ma-cart-table tbody, .ma-cart-table tr, .ma-cart-table td { display: block; width: 100%; }
  .ma-cart-table tbody td { border-bottom: none; padding: 6px 8px; }
  .ma-cart-table tbody tr { padding: 16px 0; border-bottom: 1px solid var(--border-light); }
}
@media (max-width: 560px) {
  .ma-cat-grid, .ma-prod-grid, .ma-related-grid, .ma-suggest-grid, .ma-stats-grid { grid-template-columns: 1fr; }
  .ma-stat { border-left: none; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }
  .ma-stat:first-child { border-top: none; padding-top: 0; }
  .ma-newsletter-form { flex-direction: column; }
  .ma-hero-actions { flex-direction: column; align-items: stretch; }
  .ma-quick-bar .ma-container { flex-direction: column; gap: 14px; align-items: flex-start; }
}

/* ---------- Nav search (icon + dropdown panel) ---------- */
.ma-nav-search-btn { background: none; padding: 0; }
.ma-search-panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 3;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(28,36,40,.08); padding: 18px 0;
  transform: translateY(-8px); opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
}
.ma-search-panel:not([hidden]) { transform: translateY(0); opacity: 1; pointer-events: auto; }
.ma-search-panel-form { display: flex; align-items: center; gap: 12px; }
.ma-search-panel-form > i { color: var(--text-3); font-size: 17px; }
.ma-search-panel-input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--sans); font-size: 16px; color: var(--text); }
.ma-search-panel-submit { background: var(--accent); color: #fff; border: none; padding: 8px 18px; border-radius: var(--radius-btn); font-family: var(--sans); font-size: 14px; font-weight: 600; transition: background .2s; }
.ma-search-panel-submit:hover { background: var(--accent-h); }
.ma-search-panel-close { background: none; border: none; font-size: 22px; color: var(--text-3); line-height: 1; padding: 0 4px; }
.ma-search-panel-close:hover { color: var(--text); }

/* ---------- Product search box (sidebar filter, san-pham.html) ---------- */
.ma-search-box { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--border); border-radius: var(--radius-btn); padding: 9px 12px; }
.ma-search-box i { color: var(--text-3); font-size: 15px; }
.ma-search-box .ma-search-input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--sans); font-size: 13.5px; color: var(--text); }
.ma-search-empty { text-align: center; padding: 60px 0; color: var(--text-3); font-size: 14.5px; }
