/* =====================================================
   ĐẶC SẢN PHÚ YÊN — DESIGN SYSTEM
   ===================================================== */
:root {
  --bg: #f6f7f3;
  --card: #ffffff;
  --text: #1f2a24;
  --muted: #69746f;
  --line: #dde5df;
  --main: #126b48;
  --main2: #0b4c34;
  --main-light: #e8f5ee;
  --orange: #f36f21;
  --orange-light: #fff3eb;
  --red: #e03c3c;
  --yellow: #ffd166;
  --yellow-light: #fff8e7;
  --shadow-sm: 0 2px 8px rgba(16,24,40,.05);
  --shadow: 0 8px 24px rgba(16,24,40,.07);
  --shadow-lg: 0 16px 40px rgba(16,24,40,.12);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --trans: all .2s ease;
  /* Aliases used in ecom components */
  --green: #126b48;
  --border: #dde5df;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* =====================================================
   LAYOUT
   ===================================================== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { margin-top: 24px; }

/* =====================================================
   TOP BAR
   ===================================================== */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.topbar .wrap {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar-right a {
  color: var(--muted);
  transition: color .2s;
}
.topbar-right a:hover { color: var(--main2); }
.topbar-right a + a { border-left: 1px solid var(--line); padding-left: 18px; }
.topbar-badge {
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(16,24,40,.07);
}
.header-main {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  max-width: 1240px;
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  color: var(--main2);
  white-space: nowrap;
}
.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f8f73 0%, #07d68b 60%, #ffd166 100%);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15,143,115,.35);
}
.logo-text { line-height: 1.1; }
.logo-text small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .4px;
}

/* Search */
.search-bar {
  height: 48px;
  border: 2px solid var(--main);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  overflow: hidden;
  transition: box-shadow .2s;
}
.search-bar:focus-within {
  box-shadow: 0 0 0 4px rgba(15,143,115,.12);
}
.search-bar input {
  border: 0;
  outline: 0;
  flex: 1;
  padding: 0 16px;
  font: 500 14px 'Be Vietnam Pro', sans-serif;
  color: var(--text);
  background: transparent;
}
.search-bar input::placeholder { color: #94a3b8; }
.search-bar button {
  border: 0;
  background: var(--main);
  color: #fff;
  padding: 0 22px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .3px;
  transition: background .2s;
}
.search-bar button:hover { background: var(--main2); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-cart {
  height: 48px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  transition: var(--trans);
  position: relative;
  white-space: nowrap;
}
.btn-cart:hover {
  border-color: var(--main);
  color: var(--main2);
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.btn-login {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--main);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s;
  white-space: nowrap;
}
.btn-login:hover { background: var(--main2); }

/* Nav */
.site-nav {
  background: #fff;
  border-top: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: var(--trans);
  border-bottom: 2px solid transparent;
}
.nav-inner a:hover,
.nav-inner a.active {
  color: var(--main2);
  border-bottom-color: var(--main);
}
.nav-inner a.nav-flash {
  color: var(--red);
}
.nav-badge {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 800;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 16px;
  margin-top: 18px;
}

/* Sidebar Categories */
.side-categories {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.side-cat-title {
  padding: 15px 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-list { padding: 6px; }
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  transition: var(--trans);
}
.cat-list a:hover {
  background: var(--main-light);
  color: var(--main2);
  padding-left: 16px;
}
.cat-list a .cat-name { display: flex; align-items: center; gap: 8px; }
.cat-list a .cat-ico { font-size: 17px; }
.cat-list a .cat-arrow { color: var(--muted); font-size: 13px; transition: .2s; }
.cat-list a:hover .cat-arrow { transform: translateX(3px); color: var(--main); }

/* Hero Banner */
.hero-banner {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 340px;
  background-color: var(--main2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
}
/* overlay: đậm bên trái (chữ rõ) → trong suốt bên phải (hình rõ) */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8,56,38,.92) 0%,
    rgba(11,76,52,.80) 35%,
    rgba(11,76,52,.40) 65%,
    rgba(11,76,52,.05) 100%
  );
  pointer-events: none;
}
.hero-content {
  padding: 32px 36px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.hero-banner h1 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 12px;
  letter-spacing: -.5px;
  max-width: 560px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-banner p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  max-width: 540px;
  margin-bottom: 24px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero {
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 14.5px;
  border: 0;
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.btn-hero.primary {
  background: #fff;
  color: var(--main2);
  box-shadow: 0 4px 20px rgba(255,255,255,.35);
}
.btn-hero.primary:hover { background: #f0fdf8; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,255,255,.45); }
.btn-hero.secondary {
  background: #ffcc00;
  color: #7c3500;
  box-shadow: 0 4px 20px rgba(255,200,0,.45);
}
.btn-hero.secondary:hover { background: #ffe033; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,200,0,.6); }

/* Hero Slides indicator */
.hero-dots {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}
.hero-dot {
  width: 24px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.4);
  transition: .3s;
}
.hero-dot.active {
  background: #fff;
  width: 36px;
}

/* Deal Sidebar */
.deal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.deal-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.deal-card-header {
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--main), #07b882);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}
.coupon-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.coupon-item {
  background: linear-gradient(135deg, #fff8ed, #fff3e0);
  border: 1.5px dashed #ffb347;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.coupon-code {
  font-size: 16px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: .5px;
}
.coupon-desc {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.coupon-copy {
  margin-left: auto;
  border: 1.5px solid var(--orange);
  background: transparent;
  color: var(--orange);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  transition: var(--trans);
  flex-shrink: 0;
}
.coupon-copy:hover { background: var(--orange); color: #fff; }

.mini-promo {
  background: linear-gradient(135deg, #e8faf5, #d0f5e8);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.mini-promo strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--main2);
  margin-bottom: 6px;
}
.mini-promo p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.mini-promo-img {
  width: 100%;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-top: 10px;
}

/* =====================================================
   TRUST STRIP
   ===================================================== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 0;
}
.trust-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}
.trust-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--main-light);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.trust-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.trust-text span {
  font-size: 12px;
  color: var(--muted);
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sec-head h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-head h2 .sec-icon { font-size: 22px; }
.sec-head-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 14px;
  border-radius: 4px;
  max-width: 60px;
}
.sec-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--main2);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.sec-link:hover { gap: 8px; }

/* =====================================================
   CATEGORY GRID
   ===================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
}
.category-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--trans);
}
.category-card:hover {
  border-color: var(--main);
  background: var(--main-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.category-card .cat-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--main-light);
  display: grid;
  place-items: center;
  font-size: 26px;
  transition: var(--trans);
}
.category-card:hover .cat-icon {
  background: var(--main);
}
.category-card span {
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  line-height: 1.3;
}

/* =====================================================
   FLASH SALE
   ===================================================== */
.flash-sale-box {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.flash-header {
  background: linear-gradient(135deg, #c0392b, #e74c3c, #ff6b6b);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flash-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash-title-group strong {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}
.flash-title-group span {
  color: rgba(255,255,255,.85);
  font-size: 13px;
}
.flash-timer {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.timer-block {
  background: #111827;
  color: #fff;
  border-radius: 8px;
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
}
.timer-sep {
  font-weight: 900;
  font-size: 18px;
  color: rgba(255,255,255,.7);
}
.flash-products {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

/* =====================================================
   PRODUCT CARD
   ===================================================== */
.product-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--trans);
  position: relative;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-thumb {
  height: 172px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}
.product-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-thumb > img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 800;
  z-index: 2;
}
.product-badge.new { background: var(--main); }
.product-badge.hot { background: var(--orange); }
.product-badge.gift { background: #8b5cf6; }

.product-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--trans);
  opacity: 0;
  backdrop-filter: blur(4px);
}
.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist:hover { background: #fff; transform: scale(1.1); }

.product-body { padding: 12px; }
.product-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
  margin-bottom: 8px;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-bottom: 8px;
}
.stars { color: #f59e0b; }
.rating-count { color: var(--muted); }
.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.price-current {
  font-size: 17px;
  font-weight: 900;
  color: var(--red);
}
.price-original {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.product-sold { font-weight: 600; }
.product-location {
  background: var(--bg);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
}

.btn-add-cart {
  width: 100%;
  margin-top: 10px;
  padding: 9px;
  border: 1.5px solid var(--main);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--main);
  font-weight: 700;
  font-size: 13px;
  transition: var(--trans);
  display: block;
}
.btn-add-cart:hover { background: var(--main); color: #fff; }

/* Progress bar for flash sale */
.flash-progress {
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}
.flash-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--orange));
  border-radius: 4px;
  transition: width 1s ease;
}
.flash-sold-info {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  text-align: center;
}

/* =====================================================
   FILTER TABS
   ===================================================== */
.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 16px;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  transition: var(--trans);
}
.filter-tab:hover { border-color: var(--main); color: var(--main2); }
.filter-tab.active {
  background: var(--main);
  border-color: var(--main);
  color: #fff;
}

/* =====================================================
   PRODUCTS GRID
   ===================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* =====================================================
   COMBO SECTION
   ===================================================== */
.combo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.combo-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}
.combo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.combo-thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.combo-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.combo-card:hover .combo-thumb > img { transform: scale(1.06); }
.combo-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15,143,115,.9);
  color: #fff;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.combo-body { padding: 16px; }
.combo-body h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}
.combo-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.combo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.combo-price { font-size: 20px; font-weight: 900; color: var(--red); }
.btn-combo {
  padding: 9px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--main);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  transition: background .2s;
}
.btn-combo:hover { background: var(--main2); }

/* =====================================================
   NEWSLETTER
   ===================================================== */
.newsletter {
  margin: 28px 0;
  background: linear-gradient(135deg, #07755e 0%, #0f8f73 50%, #12a882 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.newsletter::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}
.newsletter::after {
  content: '';
  position: absolute;
  left: 40%;
  bottom: -80px;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}
.newsletter-text { position: relative; z-index: 1; color: #fff; }
.newsletter-text h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}
.newsletter-text p {
  font-size: 14px;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
}
.newsletter-form { position: relative; z-index: 1; }
.newsletter-input-group {
  display: flex;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  height: 52px;
}
.newsletter-input-group input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 16px;
  font: 500 14px 'Be Vietnam Pro', sans-serif;
  outline: 0;
}
.newsletter-input-group input::placeholder { color: #94a3b8; }
.newsletter-input-group button {
  border: 0;
  background: #ffd166;
  color: #5c3900;
  padding: 0 22px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  transition: background .2s;
  white-space: nowrap;
}
.newsletter-input-group button:hover { background: #ffc82e; }
.newsletter-sub { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 10px; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  color: #475569;
  margin-top: 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding: 36px 20px 30px;
  max-width: 1240px;
  margin: 0 auto;
}
.footer-brand .logo-text { color: var(--text); font-size: 17px; font-weight: 900; }
.footer-brand .logo-text small { color: var(--muted); }
.footer-brand p {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #64748b;
}
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 17px;
  transition: var(--trans);
  color: #64748b;
}
.social-btn:hover { background: var(--main); color: #fff; border-color: var(--main); transform: translateY(-2px); }

.footer-col h4 {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: #64748b;
  padding: 5px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--main2); padding-left: 4px; }
.footer-contact p { font-size: 13.5px; line-height: 1.9; color: #64748b; }
.footer-contact strong { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: #94a3b8; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--main2); }

/* =====================================================
   MOBILE BOTTOM NAV
   ===================================================== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  grid-template-columns: repeat(5, 1fr);
}
.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  transition: color .2s;
}
.mobile-nav a.active,
.mobile-nav a:hover { color: var(--main); }
.mobile-nav a span { font-size: 22px; }

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: var(--main);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: var(--shadow);
  transition: var(--trans);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--main2); transform: translateY(-3px); }

/* =====================================================
   TOAST NOTIFICATION
   ===================================================== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: #111827;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  opacity: 0;
  transition: .3s ease;
  pointer-events: auto;
  max-width: 320px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { border-left: 4px solid #22c55e; }
.toast.info { border-left: 4px solid var(--main); }

/* =====================================================
   SKELETON LOADER
   ===================================================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =====================================================
   RESPONSIVE — TABLET
   ===================================================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 220px 1fr; }
  .deal-sidebar { display: none; }
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .flash-products { grid-template-columns: repeat(4, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .header-main { grid-template-columns: auto 1fr; gap: 12px; }
  .btn-login { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .side-categories { display: none; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .flash-products { grid-template-columns: repeat(3, 1fr); }
  .combo-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter { grid-template-columns: 1fr; padding: 28px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .topbar { display: none; }
  .header-main { padding: 10px 14px; }
  .logo-text small { display: none; }
  .btn-cart span { display: none; }
  .btn-cart { padding: 0 14px; }
  .hero-banner { min-height: 280px; }
  .hero-banner h1 { font-size: 26px; }
  .hero-content { padding: 22px 20px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .category-card { padding: 12px 6px; }
  .category-card .cat-icon { width: 42px; height: 42px; font-size: 22px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .flash-products { grid-template-columns: repeat(2, 1fr); }
  .product-thumb { height: 148px; }
  .combo-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .newsletter { padding: 24px 18px; }
  .newsletter-text h2 { font-size: 20px; }
  .newsletter-input-group { flex-direction: column; border-radius: var(--radius-sm); }
  .newsletter-input-group button { padding: 12px; width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 20px; padding: 28px 14px 100px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
  .mobile-nav { display: grid; }
  .back-to-top { bottom: 72px; }
  .sec-head h2 { font-size: 18px; }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease forwards; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.pulse { animation: pulse 2s ease infinite; }

/* =====================================================
   PRODUCT CARD — LINK WRAPPER FIX
   ===================================================== */
.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.product-thumb-empty {
  width: 100%;
  height: 100%;
  background: var(--main-light);
  display: grid;
  place-items: center;
  font-size: 48px;
  color: var(--main);
}

/* =====================================================
   BREADCRUMBS
   ===================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  padding: 14px 0 6px;
}
.breadcrumbs a { color: var(--main2); }
.breadcrumbs a:hover { text-decoration: underline; }
.bc-sep { color: var(--muted); font-size: 12px; padding: 0 2px; }
.breadcrumbs span { color: var(--text); font-weight: 600; }

/* =====================================================
   ARCHIVE LAYOUT (sidebar + main)
   ===================================================== */
.archive-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  margin-top: 12px;
}
.archive-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* ── Sidebar Filter (new) ─────────────────────────────── */
.sfilter-wrap{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.sfilter-head{display:flex;align-items:center;gap:8px;padding:13px 16px;background:linear-gradient(135deg,var(--main2),var(--main));color:#fff;font-size:14px}
.sfilter-head-icon{font-size:16px}
.sfilter-reset{margin-left:auto;font-size:11px;font-weight:700;color:rgba(255,255,255,.85);background:rgba(255,255,255,.2);padding:3px 10px;border-radius:999px;text-decoration:none;transition:.2s}
.sfilter-reset:hover{background:rgba(255,255,255,.35);color:#fff}
.sfilter-section{border-bottom:1px solid var(--line);padding:14px 14px 12px}
.sfilter-section:last-child{border-bottom:none}
.sfilter-title{font-size:12px;font-weight:800;color:#9ca3af;letter-spacing:.5px;text-transform:uppercase;margin-bottom:10px}

/* Sort buttons */
.sfilter-sort-list{display:flex;flex-direction:column;gap:3px}
.sfilter-sort-btn{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:9px;font-size:13px;font-weight:600;color:var(--text);text-decoration:none;transition:.15s}
.sfilter-sort-btn:hover{background:var(--main-light);color:var(--main2)}
.sfilter-sort-btn.active{background:var(--main-light);color:var(--main2);font-weight:800}
.ssb-icon{font-size:15px;width:20px;text-align:center;flex-shrink:0}
.ssb-check{margin-left:auto;font-size:13px;color:var(--main);font-weight:900}

/* Price list */
.sfilter-price-list{display:flex;flex-direction:column;gap:3px}
.sfilter-price-btn{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:9px;font-size:13px;font-weight:600;color:var(--text);text-decoration:none;transition:.15s}
.sfilter-price-btn:hover{background:var(--main-light);color:var(--main2)}
.sfilter-price-btn.active{background:var(--main-light);color:var(--main2);font-weight:800}
.sfilter-price-btn.active .spb-dot{background:var(--main);border-color:var(--main)}
.spb-dot{width:10px;height:10px;border-radius:50%;border:2px solid #d1d5db;flex-shrink:0;transition:.15s}

/* Badge chips */
.sfilter-chips{display:flex;flex-wrap:wrap;gap:7px}
.sfilter-chip{padding:5px 12px;border-radius:999px;font-size:12px;font-weight:700;text-decoration:none;border:1.5px solid transparent;transition:.2s}
.chip-ocop{background:#fef9c3;color:#854d0e;border-color:#fde047}.chip-ocop.active,.chip-ocop:hover{background:#fde047;color:#713f12;border-color:#ca8a04}
.chip-hot{background:#fee2e2;color:#991b1b;border-color:#fca5a5}.chip-hot.active,.chip-hot:hover{background:#ef4444;color:#fff;border-color:#dc2626}
.chip-sale{background:#dbeafe;color:#1e40af;border-color:#93c5fd}.chip-sale.active,.chip-sale:hover{background:#3b82f6;color:#fff;border-color:#2563eb}
.chip-new{background:#dcfce7;color:#166534;border-color:#86efac}.chip-new.active,.chip-new:hover{background:#16a34a;color:#fff;border-color:#15803d}

/* Old price-filter-btn kept for backward compat */
.price-filter-btn{padding:8px 10px;border-radius:9px;font-size:13px;font-weight:600;color:var(--text);display:block;transition:.15s}
.price-filter-btn:hover,.price-filter-btn.active{background:var(--main-light);color:var(--main2)}
.archive-main { min-width: 0; }
.archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.archive-header h1,
.archive-header h2 { font-size: 20px; font-weight: 900; }
.archive-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.sort-select {
  height: 36px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--card);
  cursor: pointer;
  color: var(--text);
}
.archive-grid { grid-template-columns: repeat(4, 1fr); }

/* Category archive header */
.cat-archive-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}
.cat-archive-icon {
  font-size: 48px;
  line-height: 1;
}
.cat-archive-header h1 { font-size: 24px; font-weight: 900; margin-bottom: 4px; }
.cat-archive-header p { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.cat-count {
  background: var(--main);
  color: #fff;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
}

/* Combo archive */
.combo-archive-header {
  text-align: center;
  padding: 28px 0 16px;
}
.combo-archive-header h1 { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.combo-archive-header p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 14px; }
.combo-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.combo-suggest { margin-top: 40px; }

/* No products */
.no-products-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--card);
  border-radius: var(--radius-lg);
}
.no-products-icon { font-size: 56px; margin-bottom: 12px; }
.no-products-msg h3 { font-size: 18px; margin-bottom: 8px; }
.no-products-msg p { color: var(--muted); margin-bottom: 18px; }
.btn-back-home {
  display: inline-flex;
  padding: 11px 22px;
  background: var(--main);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  transition: background .2s;
}
.btn-back-home:hover { background: var(--main2); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  transition: var(--trans);
}
.pagination .page-numbers:hover { border-color: var(--main); color: var(--main2); }
.pagination .page-numbers.current { background: var(--main); border-color: var(--main); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: transparent; }

.archive-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.archive-loadmore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  min-width: 240px;
  min-height: 54px;
  padding: 10px 24px;
  border: 1.5px solid var(--main);
  border-radius: 999px;
  background: var(--main);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 111, 74, .18);
  cursor: pointer;
  transition: var(--trans);
}
.archive-loadmore-btn span {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
}
.archive-loadmore-btn small {
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 700;
}
.archive-loadmore-btn:hover {
  background: var(--main2);
  transform: translateY(-1px);
}
.archive-loadmore-btn.is-loading,
.archive-loadmore-btn:disabled {
  cursor: wait;
  opacity: .78;
  transform: none;
}

.cat-seo-section {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid rgba(0, 111, 74, .16);
  border-radius: var(--radius);
  background: rgba(255,255,255,.84);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}
.cat-seo-kicker {
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f5ee;
  color: var(--main2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.cat-seo-section h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.25;
  color: var(--text);
}
.cat-seo-section p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.cat-seo-intro {
  color: #263238;
  font-weight: 500;
}
.cat-seo-section p:last-child { margin-bottom: 0; }
.cat-seo-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.cat-seo-facts article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.cat-seo-facts h3 {
  margin: 0 0 8px;
  color: var(--main2);
  font-size: 16px;
}
.cat-seo-facts p {
  font-size: 14px;
  line-height: 1.65;
}
.cat-use-block {
  margin-top: 18px;
}
.cat-use-block h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
}
.cat-use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cat-use-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #f8fbf9;
  border: 1px solid rgba(0, 111, 74, .12);
}
.cat-use-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--main2);
  font-size: 15px;
}
.cat-use-card p {
  font-size: 14px;
  line-height: 1.6;
}
.cat-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.cat-related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #e8f5ee;
  color: var(--main2);
  font-size: 14px;
  font-weight: 900;
}
.cat-related-links a:hover {
  background: var(--main);
  color: #fff;
}
.cat-faq-list {
  display: grid;
  gap: 10px;
}
.cat-faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}
.cat-faq-list summary {
  cursor: pointer;
  padding: 15px 18px;
  color: var(--text);
  font-weight: 900;
}
.cat-faq-list details[open] summary {
  color: var(--main2);
  border-bottom: 1px solid var(--line);
}
.cat-faq-list p {
  padding: 14px 18px 16px;
}

@media (max-width: 768px) {
  .archive-loadmore-btn {
    width: 100%;
    min-width: 0;
  }
  .cat-seo-section {
    padding: 20px;
  }
  .cat-seo-section h2 {
    font-size: 22px;
  }
  .cat-seo-facts {
    grid-template-columns: 1fr;
  }
  .cat-use-grid {
    grid-template-columns: 1fr;
  }
  .cat-related-links a {
    width: 100%;
    justify-content: center;
  }
}

/* =====================================================
   SINGLE PRODUCT
   ===================================================== */
.single-product { margin-top: 8px; }
.sp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
/* Gallery: thumbnails left | main image right */
.sp-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.sp-main-img {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--main-light);
  position: relative;
  min-height: 280px;
  cursor: zoom-in;
}
.sp-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  order: 1;
}
/* Ẩn thumb thứ 3 trở đi */
.sp-thumbs .sp-thumb:nth-child(n+3) { display: none; }
.sp-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.sp-main-img:hover img { transform: scale(1.07); }
.sp-placeholder {
  display: grid;
  place-items: center;
  font-size: 80px;
}
.sp-badge { top: 14px; left: 14px; font-size: 13px; padding: 5px 12px; }
.sp-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  flex-shrink: 0;
  background: var(--main-light);
}
.sp-thumb.active {
  border-color: var(--main);
  box-shadow: 0 0 0 2px rgba(18,107,72,.22);
}
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-thumb:hover { border-color: var(--main); }

/* Lightbox */
.sp-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.sp-lightbox.open { display: flex; animation: lbFadeIn .2s ease; }
@keyframes lbFadeIn { from { opacity:0 } to { opacity:1 } }
.sp-lb-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  cursor: default;
  animation: lbZoomIn .25s ease;
}
@keyframes lbZoomIn { from { transform:scale(.88);opacity:0 } to { transform:scale(1);opacity:1 } }
.sp-lb-close {
  position: absolute;
  top: 18px; right: 26px;
  color: #fff; font-size: 40px; line-height: 1;
  cursor: pointer; opacity: .7; font-weight: 300;
  user-select: none; transition: opacity .15s;
}
.sp-lb-close:hover { opacity: 1; }
.sp-lb-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 52px; line-height: 1;
  cursor: pointer; opacity: .5; font-weight: 300;
  user-select: none; padding: 8px 20px;
  transition: opacity .15s, background .15s;
  border-radius: 6px;
}
.sp-lb-arrow:hover { opacity: 1; background: rgba(255,255,255,.08); }
.sp-lb-arrow.prev { left: 10px; }
.sp-lb-arrow.next { right: 10px; }
.sp-lb-counter {
  position: absolute;
  bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: 13px; letter-spacing: .5px;
}

.sp-info { display: flex; flex-direction: column; gap: 16px; }
.single-product .sp-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.single-product .sp-gallery {
  height: auto;
  width: 100%;
  max-width: none;
}
.single-product .sp-main-img {
  flex: none;
  aspect-ratio: 1 / 1;
  min-height: 0;
}
.single-product .sp-thumbs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.single-product .sp-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}
.single-product .sp-info {
  min-width: 0;
}
.single-combo .sp-layout {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.single-combo .sp-gallery {
  height: auto;
  align-self: start;
}
.single-combo .sp-gallery-solo .sp-main-img {
  flex: none;
  aspect-ratio: 4 / 3;
  min-height: 0;
}
.single-combo .sp-gallery-solo .sp-main-img img,
.single-combo .sp-gallery-solo .sp-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sp-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--main-light);
  color: var(--main2);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 700;
  width: fit-content;
}
.sp-title { font-size: 24px; font-weight: 900; line-height: 1.3; color: var(--text); }
.sp-rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.sp-stars { display: flex; align-items: center; gap: 4px; }
.sp-divider { color: var(--line); }
.sp-sold-count strong { color: var(--text); }
.sp-origin { color: var(--main2); font-weight: 600; }

.sp-price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sp-price-current { font-size: 32px; font-weight: 900; color: var(--red); }
.sp-price-old { font-size: 16px; color: #94a3b8; text-decoration: line-through; }
.sp-discount-badge {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 800;
}
.sp-excerpt { font-size: 14px; color: var(--muted); line-height: 1.7; }

.sp-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sp-meta-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.smi-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.smi-value { font-size: 14px; font-weight: 700; color: var(--text); }

.sp-qty-row { display: flex; align-items: center; gap: 12px; }
.qty-box { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn {
  width: 38px;
  height: 42px;
  border: 0;
  background: var(--bg);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  transition: background .2s;
}
.qty-btn:hover { background: var(--main-light); color: var(--main2); }
.qty-input {
  width: 52px;
  height: 42px;
  border: 0;
  border-left: 1.5px solid var(--line);
  border-right: 1.5px solid var(--line);
  text-align: center;
  font: 700 16px inherit;
  color: var(--text);
  background: #fff;
  outline: 0;
}
.qty-input::-webkit-inner-spin-button { display: none; }

.sp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-order-now {
  flex: 1;
  min-width: 160px;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--main);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  transition: background .2s;
}
.btn-order-now:hover { background: var(--main2); }
.btn-call-order,
.btn-zalo-order {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  transition: var(--trans);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-call-order {
  border: 1.5px solid var(--main);
  color: var(--main2);
  background: transparent;
}
.btn-call-order:hover { background: var(--main); color: #fff; }
.btn-zalo-order {
  border: 1.5px solid #0068ff;
  color: #0068ff;
  background: transparent;
}
.btn-zalo-order:hover { background: #0068ff; color: #fff; }

.sp-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sp-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Product Tabs */
.sp-tabs {
  margin-top: 32px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 14px 22px;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--trans);
  margin-bottom: -1px;
}
.tab-btn.active { color: var(--main2); border-bottom-color: var(--main); }
.tab-btn:hover { color: var(--main2); }
.tab-content { display: none; padding: 24px; }
.tab-content.active { display: block; }
.tab-content h3 { font-size: 16px; margin-bottom: 10px; color: var(--text); }
.tab-content p,
.tab-content ul li { font-size: 14px; color: var(--muted); line-height: 1.8; }
.tab-content ul { padding-left: 4px; }
.tab-content ul li { list-style: none; margin-bottom: 8px; }
.sp-related { margin-top: 40px; }

/* Combo single */
.sp-gallery-solo { display: block; }
.sp-gallery-solo .sp-main-img { border-radius: var(--radius-lg); width: 100%; }
.single-combo .sp2-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.combo-product-list {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
}
.cpl-title { font-size: 14px; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.cpl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.cpl-item:last-child { border-bottom: 0; }
.cpl-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cpl-price { margin-left: auto; font-weight: 700; color: var(--red); }

/* =====================================================
   PAGE TEMPLATE
   ===================================================== */
.page-content-wrap { margin: 20px 0 40px; }
.page-title-bar {
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.page-title-bar h1 { font-size: 28px; font-weight: 900; }
.page-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  max-width: 800px;
}
.page-content h2 { font-size: 22px; font-weight: 800; margin: 24px 0 12px; color: var(--text); }
.page-content h3 { font-size: 18px; font-weight: 700; margin: 20px 0 10px; }
.page-content p { margin-bottom: 14px; }
.page-content ul li { list-style: disc; margin-left: 20px; margin-bottom: 8px; }
.page-content ol li { list-style: decimal; margin-left: 20px; margin-bottom: 8px; }

/* =====================================================
   BLOG / POST LIST
   ===================================================== */
.post-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.post-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.post-card-body { padding: 16px; }
.post-card-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.post-card-body h2,
.post-card-body h3 { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.post-card-body h2 a,
.post-card-body h3 a { color: var(--text); }
.post-card-body h2 a:hover,
.post-card-body h3 a:hover { color: var(--main2); }
.post-card-body p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }

/* =====================================================
   SEARCH RESULTS
   ===================================================== */
.search-results-page { margin: 16px 0 40px; }
.search-results-header {
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.search-results-header h1 { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.search-results-header h1 em { font-style: normal; color: var(--main2); }
.search-results-header span { font-size: 13px; color: var(--muted); }
.search-bar-inline { margin-bottom: 24px; max-width: 600px; }
.sr-section { margin-bottom: 36px; }
.sr-section-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* No results */
.no-results-box { text-align: center; padding: 40px 20px; }
.no-results-icon { font-size: 60px; margin-bottom: 16px; }
.no-results-box h2 { font-size: 22px; font-weight: 900; margin-bottom: 10px; }
.no-results-box h2 em { font-style: normal; color: var(--main2); }
.no-results-box > p { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.nfp-search { max-width: 560px; margin: 0 auto 24px; }
.no-results-suggestions { margin-bottom: 24px; }
.no-results-suggestions h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.suggestion-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.suggestion-tag {
  padding: 7px 16px;
  border: 1.5px solid var(--main);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--main2);
  transition: var(--trans);
}
.suggestion-tag:hover { background: var(--main); color: #fff; }

/* =====================================================
   404 PAGE
   ===================================================== */
.not-found-page { text-align: center; padding: 40px 20px; }
.nfp-visual { position: relative; display: inline-block; margin-bottom: 16px; }
.nfp-big-num { font-size: 120px; font-weight: 900; color: var(--line); line-height: 1; }
.nfp-emoji { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 56px; }
.not-found-page h1 { font-size: 28px; font-weight: 900; margin-bottom: 10px; }
.not-found-page > p { color: var(--muted); font-size: 15px; max-width: 500px; margin: 0 auto 24px; }
.nfp-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }

/* =====================================================
   ZALO / HOTLINE FLOAT
   ===================================================== */
.contact-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 150;
}
.float-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 56px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px 6px;
  transition: var(--trans);
  color: var(--text);
  text-decoration: none;
}
.float-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-lg); }
.float-zalo { background: #0068ff; color: #fff; }
.float-call { background: var(--main); color: #fff; }
.float-icon { font-size: 22px; line-height: 1; }
.float-label { font-size: 10px; font-weight: 700; }

.flash-header {
  background: linear-gradient(135deg, #b71c1c, #e03c3c, #ff6b6b);
}
.newsletter {
  background: linear-gradient(135deg, #0b4c34 0%, #126b48 50%, #1a8c5e 100%);
}
.deal-card-header {
  background: linear-gradient(135deg, var(--main), #19a86e);
}

/* =====================================================
   RESPONSIVE — ARCHIVE & SINGLE
   ===================================================== */
@media (max-width: 1100px) {
  .archive-layout { grid-template-columns: 200px 1fr; }
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
  .single-product .sp-layout,
  .single-combo .sp-layout { gap: 24px; }
}
@media (max-width: 820px) {
  .archive-layout { grid-template-columns: 1fr; }
  .archive-sidebar { display: none; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .single-product .sp-layout,
  .single-combo .sp-layout { grid-template-columns: 1fr; }
  .single-product .sp-gallery { flex-direction: column; }
  .single-product .sp-thumbs { grid-template-columns: 1fr 1fr; order: 1; }
  .single-product .sp-thumb { width: 100%; height: auto; }
  .combo-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .post-list-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-trust-grid { grid-template-columns: 1fr; }
  .sp-meta-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .combo-archive-grid { grid-template-columns: 1fr; }
  .post-list-grid { grid-template-columns: 1fr; }
  .sp-price-current { font-size: 26px; }
  .sp-title { font-size: 20px; }
  .sp-actions { flex-direction: column; }
  .btn-order-now { text-align: center; }
  .contact-float { bottom: 76px; right: 14px; }
  .nfp-big-num { font-size: 80px; }
  .nfp-emoji { font-size: 40px; }
  .single-product .sp-thumbs .sp-thumb { width: 100%; height: auto; }
}

/* =====================================================
   SINGLE POST LAYOUT
   ===================================================== */
.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  margin: 12px 0 48px;
}
.single-post-content { min-width: 0; }
.sp-post-header { margin-bottom: 24px; }
.post-meta-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-category-tag {
  background: var(--main-light); color: var(--main2);
  border-radius: 999px; padding: 4px 14px; font-size: 12px; font-weight: 700;
}
.post-date { font-size: 13px; color: var(--muted); }
.sp-post-header h1 { font-size: 28px; font-weight: 900; line-height: 1.3; margin-bottom: 16px; }
.sp-post-thumbnail { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.sp-post-thumbnail img { width: 100%; max-height: 440px; object-fit: cover; display: block; }
.post-content { font-size: 15px; line-height: 1.9; color: var(--text); }
.post-content h2 { font-size: 22px; font-weight: 800; margin: 28px 0 12px; }
.post-content h3 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { padding-left: 20px; margin-bottom: 16px; }
.post-content ul li { list-style: disc; margin-bottom: 8px; }
.post-content ol li { list-style: decimal; margin-bottom: 8px; }
.post-content img { border-radius: var(--radius-sm); max-width: 100%; margin: 16px 0; }
.post-content blockquote {
  border-left: 4px solid var(--main); background: var(--main-light);
  padding: 14px 18px; margin: 20px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.post-tags-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags-wrap a {
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 5px 14px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: var(--trans);
}
.post-tags-wrap a:hover { border-color: var(--main); color: var(--main2); }

.single-post-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-widget {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; padding-bottom: 12px;
}
.sfb-title {
  font-size: 14px; font-weight: 800; color: var(--text);
  padding: 14px 14px 10px; border-bottom: 1px solid var(--line);
  letter-spacing: .2px;
}
.sidebar-product-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); transition: background .2s;
}
.sidebar-product-item:last-of-type { border-bottom: 0; }
.sidebar-product-item:hover { background: var(--main-light); }
.spi-img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.spi-empty { background: var(--main-light); display: grid; place-items: center; font-size: 22px; }
.spi-name { font-size: 12.5px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spi-price { font-size: 13px; font-weight: 800; color: var(--red); margin-top: 2px; }
.spi-sold { font-size: 11.5px; color: var(--muted); }

@media (max-width: 820px) {
  .single-post-layout { grid-template-columns: 1fr; }
  .single-post-sidebar { display: none; }
}

/* -----------------------------------------------------------
   ECOMMERCE ADDITIONS v3.0
   Cart Sidebar � Quick Order � Account � Checkout � Thank You
   ----------------------------------------------------------- */

/* -- Overlay ----------------------------------------------- */
.cart-overlay,.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1040;opacity:0;pointer-events:none;transition:opacity .25s}
.cart-overlay.open,.modal-overlay.open{opacity:1;pointer-events:auto}

/* -- Cart Sidebar ------------------------------------------- */
.cart-sidebar{position:fixed;top:0;right:0;width:min(420px,100vw);height:100%;background:#fff;z-index:1050;transform:translateX(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;box-shadow:-4px 0 24px rgba(0,0,0,.12)}
.cart-sidebar.open{transform:translateX(0)}
.cart-sidebar-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border);background:var(--green);color:#fff}
.cart-sidebar-header h3{margin:0;font-size:17px}
.cart-close{background:none;border:none;color:#fff;font-size:20px;cursor:pointer;padding:4px 8px;border-radius:4px;line-height:1}
.cart-close:hover{background:rgba(255,255,255,.2)}
.cart-sidebar-body{flex:1;overflow-y:auto;padding:0 16px}
.cart-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:40px;text-align:center;color:var(--muted)}
.cart-empty-icon{font-size:56px;margin-bottom:12px}
.cart-empty a{color:var(--green);font-weight:600}

/* Cart item */
.cart-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}
.ci-img{width:60px;height:60px;border-radius:8px;overflow:hidden;flex-shrink:0;background:#f3f4f6;display:flex;align-items:center;justify-content:center}
.ci-img img{width:100%;height:100%;object-fit:cover}
.ci-img-placeholder{font-size:28px}
.ci-info{flex:1;min-width:0}
.ci-name{font-size:13px;font-weight:600;line-height:1.4;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ci-price{font-size:13px;color:var(--red);font-weight:700}
.ci-qty{display:flex;align-items:center;gap:6px;flex-shrink:0}
.ci-qty button{width:26px;height:26px;border:1px solid var(--border);background:#f9fafb;border-radius:4px;cursor:pointer;font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center}
.ci-qty button:hover{background:var(--green);color:#fff;border-color:var(--green)}
.ci-qty span{font-weight:700;min-width:20px;text-align:center;font-size:14px}
.ci-remove{background:none;border:none;cursor:pointer;color:var(--muted);font-size:16px;padding:4px;flex-shrink:0}
.ci-remove:hover{color:#ef4444}

/* Cart footer */
.cart-sidebar-footer{padding:16px;border-top:1px solid var(--border);background:#fafafa}
.cart-coupon-row{display:flex;gap:8px;margin-bottom:8px}
.cart-coupon-row input{flex:1;border:1px solid var(--border);border-radius:6px;padding:8px 10px;font-size:13px}
.btn-apply-coupon{padding:8px 14px;background:var(--green);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:13px;font-weight:600;white-space:nowrap}
.btn-apply-coupon:hover{background:var(--green-dark,#15803d)}
.coupon-feedback{font-size:12px;margin-bottom:8px;padding:6px 10px;border-radius:4px}
.coupon-feedback.success{background:#f0fdf4;color:#16a34a;border:1px solid #bbf7d0}
.coupon-feedback.error{background:#fef2f2;color:#ef4444;border:1px solid #fecaca}
.cart-totals-box{margin-bottom:12px}
.ct-row{display:flex;justify-content:space-between;font-size:13px;padding:3px 0;color:var(--muted)}
.ct-discount{color:#ef4444!important}
.ct-discount code{background:#fef9c3;padding:1px 5px;border-radius:3px;font-size:11px}
.ct-total{font-size:16px!important;font-weight:800;color:var(--text)!important;border-top:1px solid var(--border);padding-top:8px!important;margin-top:4px}
.btn-go-checkout{display:block;width:100%;padding:14px;background:var(--green);color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:700;cursor:pointer;text-align:center;text-decoration:none;transition:background .2s}
.btn-go-checkout:hover{background:#15803d}

/* -- Quick Order Modal -------------------------------------- */
.modal-box{position:fixed;top:50%;left:50%;transform:translate(-50%,-48%);width:min(520px,94vw);max-height:90vh;overflow-y:auto;background:#fff;border-radius:16px;z-index:1055;box-shadow:0 20px 60px rgba(0,0,0,.18);opacity:0;pointer-events:none;transition:opacity .25s,transform .25s}
.modal-box.open{opacity:1;pointer-events:auto;transform:translate(-50%,-50%)}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border);background:var(--green);color:#fff;border-radius:16px 16px 0 0;position:sticky;top:0;z-index:1}
.modal-header h3{margin:0;font-size:17px}
.modal-close{background:none;border:none;color:#fff;font-size:20px;cursor:pointer;padding:4px 8px;border-radius:4px}
.modal-close:hover{background:rgba(255,255,255,.2)}
.modal-body{padding:20px}

/* Quick order form */
.qo-product-summary{background:#f9fafb;border-radius:8px;padding:12px 14px;margin-bottom:16px}
.qo-item-card{display:flex;gap:12px;align-items:center}
.qo-item-img{width:56px;height:56px;border-radius:6px;object-fit:cover}
.qo-item-name{font-weight:700;font-size:14px}
.qo-item-price{color:var(--red);font-weight:700;font-size:15px;margin-top:3px}
.quick-order-form .qof-row{display:flex;gap:12px}
.quick-order-form .qof-row .qof-field{flex:1}
.qof-field{margin-bottom:12px}
.qof-field label{display:block;font-size:12px;font-weight:600;color:#4b5563;margin-bottom:5px}
.qof-field input,.qof-field select,.qof-field textarea{width:100%;border:1px solid var(--border);border-radius:6px;padding:9px 11px;font-size:14px;font-family:inherit}
.qof-field input:focus,.qof-field select:focus,.qof-field textarea:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px rgba(22,163,74,.1)}
.qof-coupon{display:flex;gap:8px;margin-bottom:8px}
.qof-coupon input{flex:1;border:1px solid var(--border);border-radius:6px;padding:9px 11px;font-size:13px}
.qof-coupon button{padding:9px 14px;background:#f59e0b;color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:600;white-space:nowrap;font-size:13px}
.pay-radios{display:flex;gap:10px;flex-wrap:wrap}
.pay-radio-opt{display:flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--border);border-radius:6px;cursor:pointer;font-size:13px;transition:all .15s}
.pay-radio-opt:has(input:checked){border-color:var(--green);background:#f0fdf4;color:var(--green)}
.qo-totals-box{background:#f9fafb;border-radius:6px;padding:10px 14px;margin:12px 0}
.qo-total-row{display:flex;justify-content:space-between;font-size:13px;padding:3px 0}
.qo-total-final{font-size:16px!important;font-weight:800;color:var(--text);border-top:1px solid var(--border);padding-top:8px!important;margin-top:4px}
/* Payment info panels */
.qo-payment-panel{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:14px;margin-top:2px;margin-bottom:4px}
.qo-bank-wrap{display:flex;gap:14px;align-items:flex-start}
.qo-bank-qr-img{width:110px;height:110px;border-radius:8px;flex-shrink:0;border:1px solid #d1fae5}
.qo-bank-info-col{flex:1;min-width:0}
.qo-bank-row{display:flex;justify-content:space-between;align-items:center;padding:5px 0;border-bottom:1px solid #d1fae5;font-size:12px;gap:8px}
.qo-bank-row:last-child{border-bottom:none}
.qo-bank-row span{color:#6b7280;flex-shrink:0}
.qo-bank-row strong{color:#111;text-align:right;word-break:break-all}
.qo-copy-btn{background:none;border:1px solid #16a34a;color:#16a34a;padding:2px 7px;border-radius:4px;font-size:11px;cursor:pointer;white-space:nowrap;margin-left:4px;transition:all .15s}
.qo-copy-btn:hover{background:#16a34a;color:#fff}
.qo-bank-tip{font-size:11px;color:#6b7280;margin:10px 0 0;line-height:1.5}
.qo-bank-empty{font-size:12px;color:#9ca3af;margin:0}
.qo-momo-wrap{display:flex;gap:12px;align-items:center}
.qo-momo-icon{font-size:32px;flex-shrink:0}

.btn-submit-order{width:100%;padding:14px;background:var(--green);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:700;cursor:pointer;margin-top:8px;transition:background .2s}
.btn-submit-order:hover{background:#15803d}
.btn-submit-order:disabled{opacity:.6;cursor:not-allowed}

/* -- Account Modal ------------------------------------------ */
.modal-account{width:min(400px,94vw)}
.auth-tabs-mini{display:flex;margin-bottom:16px;border-bottom:2px solid var(--border)}
.atm-btn{flex:1;padding:10px;background:none;border:none;cursor:pointer;font-size:14px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-2px}
.atm-btn.active{color:var(--green);border-bottom-color:var(--green)}
.auth-panel-mini{display:none}
.auth-panel-mini.active{display:block}
.af-field{margin-bottom:12px}
.af-field label{display:block;font-size:12px;font-weight:600;color:#4b5563;margin-bottom:5px}
.af-field input{width:100%;border:1px solid var(--border);border-radius:6px;padding:9px 11px;font-size:14px;font-family:inherit}
.af-field input:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px rgba(22,163,74,.1)}
.af-check label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:normal!important;cursor:pointer}
.af-check input{width:auto!important}
.btn-auth{width:100%;padding:11px;background:var(--green);color:#fff;border:none;border-radius:7px;font-size:15px;font-weight:700;cursor:pointer;margin-top:6px}
.btn-auth:hover{background:#15803d}

/* -- Form Messages ----------------------------------------- */
.form-msg{padding:10px 14px;border-radius:6px;font-size:13px;margin-top:8px}
.form-msg.success{background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0}
.form-msg.error{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}
.req{color:#ef4444}

/* -- Checkout Page ----------------------------------------- */
.checkout-page{padding:32px 0 60px}
.checkout-layout{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start}
.checkout-title{font-size:20px;font-weight:800;margin:0 0 20px;color:var(--text)}
.checkout-left,.checkout-right{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 4px rgba(0,0,0,.06);border:1px solid var(--border)}
.co-item{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}
.co-item-img{width:56px;height:56px;border-radius:6px;overflow:hidden;background:#f3f4f6;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.co-item-img img{width:100%;height:100%;object-fit:cover}
.co-item-info{flex:1;min-width:0}
.co-item-name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.co-item-price{font-size:13px;color:var(--red);font-weight:700;margin-top:2px}
.co-item-qty{display:flex;align-items:center;gap:6px}
.co-item-qty button{width:24px;height:24px;border:1px solid var(--border);background:#f9fafb;border-radius:4px;cursor:pointer;font-size:14px}
.co-item-qty span{font-weight:700;min-width:18px;text-align:center}
.co-item-remove{background:none;border:none;cursor:pointer;color:var(--muted)}
.checkout-coupon-box{margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}
.checkout-coupon-box h3{font-size:15px;margin:0 0 12px}
.coupon-input-row{display:flex;gap:8px}
.coupon-input-row input{flex:1;border:1px solid var(--border);border-radius:6px;padding:9px 11px;font-size:14px}
.checkout-totals{margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}
.co-total-row{display:flex;justify-content:space-between;font-size:14px;padding:4px 0}
.co-total-final{font-size:18px!important;font-weight:800;border-top:2px solid var(--border);margin-top:6px;padding-top:10px!important;color:var(--green)}
.checkout-form .cf-row{display:flex;gap:12px}
.checkout-form .cf-row .cf-field{flex:1}
.cf-field{margin-bottom:14px}
.cf-field label{display:block;font-size:12px;font-weight:600;color:#4b5563;margin-bottom:5px}
.cf-field input,.cf-field select,.cf-field textarea{width:100%;border:1px solid var(--border);border-radius:7px;padding:10px 12px;font-size:14px;font-family:inherit}
.cf-field input:focus,.cf-field select:focus,.cf-field textarea:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px rgba(22,163,74,.1)}
.payment-options{display:flex;flex-direction:column;gap:8px}
.pay-opt{display:flex;align-items:center;gap:12px;padding:12px 14px;border:2px solid var(--border);border-radius:8px;cursor:pointer;transition:all .15s}
.pay-opt.active,.pay-opt:has(input:checked){border-color:var(--green);background:#f0fdf4}
.pay-opt input[type=radio]{display:none}
.pay-icon{font-size:22px}
.pay-label{font-size:14px;font-weight:600;display:flex;flex-direction:column}
.pay-label small{font-weight:400;color:var(--muted);font-size:12px}
.btn-place-order{width:100%;padding:16px;background:var(--green);color:#fff;border:none;border-radius:10px;font-size:17px;font-weight:800;cursor:pointer;margin-top:8px;transition:background .2s}
.btn-place-order:hover{background:#15803d}
.btn-place-order:disabled{opacity:.6;cursor:not-allowed}
.checkout-note{font-size:12px;color:var(--muted);text-align:center;margin-top:12px}
.checkout-note a{color:var(--green)}
@media(max-width:768px){.checkout-layout{grid-template-columns:1fr}.checkout-form .cf-row{flex-direction:column;gap:0}}

/* -- Thank You Page ---------------------------------------- */
.thankyou-page{padding:40px 0 80px}
.ty-card{max-width:680px;margin:0 auto;background:#fff;border-radius:16px;padding:40px;box-shadow:0 4px 24px rgba(0,0,0,.08);border:1px solid var(--border)}
.ty-icon{font-size:64px;text-align:center;margin-bottom:12px}
.ty-title{text-align:center;font-size:26px;font-weight:900;color:var(--green);margin:0 0 12px}
.ty-sub{text-align:center;color:var(--muted);margin-bottom:24px;line-height:1.7}
.ty-order-code{text-align:center;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;padding:12px 20px;font-size:16px;color:var(--green);font-weight:700;margin-bottom:24px}
.ty-details{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}
.ty-section{background:#f9fafb;border-radius:10px;padding:16px}
.ty-section h3{margin:0 0 12px;font-size:14px;font-weight:700;color:var(--text)}
.ty-row{display:flex;justify-content:space-between;font-size:13px;padding:5px 0;border-bottom:1px solid var(--border)}
.ty-row:last-child{border-bottom:none}
.ty-item-row{display:flex;gap:10px;font-size:13px;padding:5px 0;border-bottom:1px solid var(--border)}
.ty-item-name{flex:1;font-weight:600}
.ty-item-qty{color:var(--muted)}
.ty-item-price{font-weight:700}
.ty-discount{color:#ef4444}
.ty-total-row{display:flex;justify-content:space-between;font-size:16px;font-weight:800;padding-top:10px;margin-top:6px;border-top:2px solid var(--border)}
.ty-total{color:var(--green)}
.ty-bank-info{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:16px;margin-bottom:20px}
.ty-bank-info h3{margin:0 0 12px;font-size:14px;color:#92400e}
.ty-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.btn-ty-home,.btn-ty-shop,.btn-ty-account{display:inline-block;flex:1;min-width:140px;padding:12px 16px;border-radius:8px;font-size:14px;font-weight:700;cursor:pointer;text-align:center;text-decoration:none;transition:background .2s}
.btn-ty-home{background:#f3f4f6;color:var(--text)}
.btn-ty-shop{background:var(--green);color:#fff}
.btn-ty-account{background:var(--primary,#3b82f6);color:#fff}
.ty-contact{text-align:center;font-size:13px;color:var(--muted);padding-top:16px;border-top:1px solid var(--border)}
.ty-contact a{color:var(--green)}
@media(max-width:640px){.ty-details{grid-template-columns:1fr}.ty-actions{flex-direction:column}}

/* -- Account Page ------------------------------------------- */
.account-page{padding:32px 0 80px}
.account-layout{display:grid;grid-template-columns:220px 1fr;gap:28px;align-items:start}
.account-sidebar{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 4px rgba(0,0,0,.06);border:1px solid var(--border);text-align:center}
.account-avatar-big{width:72px;height:72px;background:var(--green);color:#fff;font-size:30px;font-weight:800;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 12px}
.account-name{font-weight:700;font-size:16px;margin-bottom:4px}
.account-email{font-size:12px;color:var(--muted);margin-bottom:20px;word-break:break-all}
.account-nav{display:flex;flex-direction:column;gap:4px;text-align:left}
.acct-nav-btn{background:none;border:none;padding:10px 12px;border-radius:7px;cursor:pointer;font-size:14px;text-align:left;color:var(--text);font-family:inherit;transition:background .15s}
.acct-nav-btn:hover,.acct-nav-btn.active{background:#f0fdf4;color:var(--green);font-weight:600}
.acct-logout{color:#ef4444!important}
.acct-logout:hover{background:#fef2f2!important}
.account-main{background:#fff;border-radius:12px;padding:28px;box-shadow:0 1px 4px rgba(0,0,0,.06);border:1px solid var(--border)}
.acct-tab{display:none}
.acct-tab.active{display:block}
.acct-tab h2{margin:0 0 20px;font-size:19px}
.order-card{border:1px solid var(--border);border-radius:8px;padding:14px 16px;margin-bottom:12px}
.oc-header{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.oc-code{font-weight:700;color:var(--green)}
.oc-status{font-size:13px}
.oc-date{font-size:12px;color:var(--muted);margin-left:auto}
.oc-items{font-size:13px;color:var(--muted);margin-bottom:6px}
.oc-total{font-weight:800;color:var(--text);font-size:15px}
.profile-form{max-width:480px}
.pf-field{margin-bottom:14px}
.pf-field label{display:block;font-size:12px;font-weight:600;color:#4b5563;margin-bottom:5px}
.pf-field input{width:100%;border:1px solid var(--border);border-radius:7px;padding:10px 12px;font-size:14px;font-family:inherit}
.pf-field input:disabled{background:#f9fafb;color:var(--muted)}
.pf-field small{font-size:11px;color:var(--muted);display:block;margin-top:3px}
.btn-save-profile{padding:11px 28px;background:var(--green);color:#fff;border:none;border-radius:7px;font-size:14px;font-weight:700;cursor:pointer;margin-top:6px}

/* Auth card (page-account not logged in) */
.auth-card{max-width:440px;margin:0 auto;background:#fff;border-radius:14px;padding:32px;box-shadow:0 4px 20px rgba(0,0,0,.08);border:1px solid var(--border)}
.auth-tabs{display:flex;border-bottom:2px solid var(--border);margin-bottom:24px}
.auth-tab{flex:1;padding:10px;background:none;border:none;cursor:pointer;font-size:15px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-2px}
.auth-tab.active{color:var(--green);border-bottom-color:var(--green)}
.auth-panel{display:none}
.auth-panel.active{display:block}
.auth-form .af-field{margin-bottom:14px}
.auth-form .af-field label{display:block;font-size:13px;font-weight:600;color:#374151;margin-bottom:5px}
.auth-form .af-field input{width:100%;border:1px solid var(--border);border-radius:7px;padding:11px 13px;font-size:14px;font-family:inherit}
.auth-form .af-field input:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px rgba(22,163,74,.1)}
.btn-auth{width:100%;padding:13px;background:var(--green);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:700;cursor:pointer;margin-top:6px}

/* Header login state */
.btn-account{display:flex;align-items:center;gap:8px;background:var(--green);color:#fff;padding:7px 14px;border-radius:7px;text-decoration:none;font-size:13px;font-weight:600}
.account-avatar{width:24px;height:24px;background:rgba(255,255,255,.3);border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px}

@media(max-width:860px){.account-layout{grid-template-columns:1fr}.account-sidebar{display:flex;flex-direction:column;align-items:center}.account-nav{flex-direction:row;flex-wrap:wrap;width:100%;justify-content:center}}

/* Product card: Th�m gi? + �?t h�ng nhanh */
.product-card-btns{display:flex;gap:6px;padding:0 10px 10px;align-items:stretch}
.product-card-btns .btn-add-cart{flex:1;margin-top:0;padding:8px 10px;background:var(--green);color:#fff;border:none;border-radius:7px;font-size:13px;font-weight:600;cursor:pointer;transition:background .2s}
.product-card-btns .btn-add-cart:hover{background:#15803d}
.btn-quick-order{width:42px;align-self:stretch;padding:0;background:linear-gradient(145deg,#fb923c 0%,#ea580c 100%);color:#fff;border:none;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .2s;box-shadow:0 3px 10px rgba(234,88,12,.45);position:relative;overflow:hidden}
.btn-quick-order::after{content:'';position:absolute;inset:0;background:rgba(255,255,255,.12);opacity:0;transition:opacity .2s}
.btn-quick-order:hover{background:linear-gradient(145deg,#ea580c 0%,#c2410c 100%);box-shadow:0 5px 16px rgba(234,88,12,.6);transform:translateY(-1px)}
.btn-quick-order:hover::after{opacity:1}
.btn-quick-order:active{transform:translateY(0)}
/* Single product extra button (legacy, kept for compat) */
.btn-add-cart-sp{padding:12px 20px;background:#f0fdf4;color:var(--green);border:2px solid var(--green);border-radius:8px;font-size:15px;font-weight:700;cursor:pointer;transition:all .2s}
.btn-add-cart-sp:hover{background:var(--green);color:#fff}

/* ═══════════════════════════════════════════════════════
   SINGLE PRODUCT V2 — Redesigned Layout & Buttons
   ═══════════════════════════════════════════════════════ */

/* Price block */
.sp2-price-block{background:linear-gradient(135deg,#f0fdf4,#ffffff);border:1.5px solid #bbf7d0;border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.sp2-price-main{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sp2-price-current{font-size:34px;font-weight:900;color:#dc2626;line-height:1;letter-spacing:-.5px}
.sp2-price-old{font-size:17px;color:#94a3b8;text-decoration:line-through;font-weight:500}
.sp2-discount-chip{background:#dc2626;color:#fff;font-size:12px;font-weight:800;padding:3px 9px;border-radius:20px;letter-spacing:.3px}
.sp2-price-extras{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sp2-savings-tag{display:inline-flex;align-items:center;gap:4px;background:#fef9c3;border:1.5px solid #fde047;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:700;color:#854d0e}
.sp2-freeship-tag{display:inline-flex;align-items:center;gap:5px;background:#ecfdf5;border:1.5px solid #6ee7b7;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:700;color:#065f46}

/* Free ship overlay on image */
.sp-freeship-overlay{position:absolute;bottom:12px;left:0;background:linear-gradient(90deg,#16a34a,#0b4c34);color:#fff;font-size:11px;font-weight:700;padding:5px 14px 5px 10px;border-radius:0 20px 20px 0;letter-spacing:.3px;box-shadow:0 2px 8px rgba(18,107,72,.3)}

/* Meta chips */
.sp2-meta-chips{display:flex;flex-wrap:wrap;gap:8px}
.sp2-chip{background:#f8fafc;border:1.5px solid var(--line);border-radius:8px;padding:7px 12px;display:flex;flex-direction:column;gap:1px;min-width:90px}
.sp2-chip-label{font-size:10px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}
.sp2-chip-val{font-size:13px;font-weight:700;color:var(--text)}

/* Qty selector */
.sp2-qty-row{display:flex;align-items:center;gap:14px}
.sp2-qty-label{font-size:14px;font-weight:600;color:var(--muted)}
.sp2-qty-box{display:inline-flex;align-items:center;border:2px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.sp2-qty-btn{width:40px;height:40px;background:transparent;border:none;font-size:20px;font-weight:400;color:var(--text);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s;line-height:1}
.sp2-qty-btn:hover{background:var(--main-light);color:var(--main2)}
.sp2-qty-input{width:52px;height:40px;border:none;border-left:1.5px solid var(--line);border-right:1.5px solid var(--line);text-align:center;font-size:16px;font-weight:700;color:var(--text);font-family:inherit;-moz-appearance:textfield}
.sp2-qty-input:focus{outline:none}
.sp2-qty-input::-webkit-inner-spin-button,.sp2-qty-input::-webkit-outer-spin-button{-webkit-appearance:none}

/* Action buttons layout */
.sp2-actions{display:flex;flex-direction:column;gap:10px}
.sp2-btn-row{display:grid;gap:10px}
.sp2-btn-row-a{grid-template-columns:1.6fr 1fr}
.sp2-btn-row-b{grid-template-columns:1fr 1fr}

/* Base button */
.sp2-btn{display:flex;align-items:center;justify-content:center;gap:10px;border-radius:14px;border:none;font-family:inherit;font-weight:700;cursor:pointer;text-decoration:none;transition:all .2s;position:relative;overflow:hidden}

/* Shine animation */
.sp2-btn::after{content:'';position:absolute;top:0;left:-80%;width:40%;height:100%;background:rgba(255,255,255,.18);transform:skewX(-20deg);transition:none}
.sp2-btn:hover::after{left:140%;transition:left .5s ease}

/* Order Now — Gradient Green */
.sp2-order{padding:10px 16px;background:linear-gradient(135deg,#16a34a 0%,#0b4c34 100%);color:#fff;box-shadow:0 4px 14px rgba(18,107,72,.38)}
.sp2-order:hover{transform:translateY(-2px);box-shadow:0 8px 26px rgba(18,107,72,.55);color:#fff}
.sp2-order:active{transform:translateY(0)}

/* Add to Cart — Amber Gradient */
.sp2-cart{padding:10px 14px;background:linear-gradient(135deg,#f59e0b 0%,#b45309 100%);color:#fff;box-shadow:0 4px 14px rgba(245,158,11,.36);flex-direction:column;gap:3px}
.sp2-cart:hover{transform:translateY(-2px);box-shadow:0 8px 26px rgba(245,158,11,.55);color:#fff}
.sp2-cart:active{transform:translateY(0)}

/* Button icon */
.sp2-btn-ico{display:flex;align-items:center;justify-content:center;flex-shrink:0}
.sp2-order .sp2-btn-ico{width:30px;height:30px;background:rgba(255,255,255,.18);border-radius:7px}
.sp2-cart .sp2-btn-ico{width:26px;height:26px}

/* Button text */
.sp2-btn-text{display:flex;flex-direction:column;text-align:left}
.sp2-btn-text b{font-size:14px;font-weight:800;line-height:1.2}
.sp2-btn-text small{font-size:11px;font-weight:500;opacity:.85;margin-top:1px}
.sp2-cart .sp2-btn-text{text-align:center}
.sp2-cart .sp2-btn-text b{font-size:14px}

/* Phone button — Outlined Green */
.sp2-call{padding:12px 14px;background:#fff;color:var(--main2);border:2px solid var(--main);gap:7px;font-size:13px;font-weight:700}
.sp2-call:hover{background:var(--main);color:#fff;box-shadow:0 4px 14px rgba(18,107,72,.3)}
.sp2-call svg{flex-shrink:0}

/* Zalo button — Zalo Blue */
.sp2-zalo{padding:12px 14px;background:#0068FF;color:#fff;box-shadow:0 5px 16px rgba(0,104,255,.35);gap:8px;font-size:13px;font-weight:700}
.sp2-zalo:hover{background:#0056cc;transform:translateY(-1px);box-shadow:0 7px 20px rgba(0,104,255,.5);color:#fff}
.sp2-zalo svg{flex-shrink:0}

/* Trust badges */
.sp2-trust{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px}
.sp2-trust-item{display:flex;align-items:center;gap:8px;background:#f8fafc;border:1.5px solid var(--line);border-radius:10px;padding:9px 12px;font-size:12px;font-weight:600;color:var(--text)}
.sp2-trust-icon{width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.sp2-trust-green{background:#dcfce7;color:#16a34a}
.sp2-trust-blue{background:#dbeafe;color:#1d4ed8}
.sp2-trust-amber{background:#fef3c7;color:#d97706}
.sp2-trust-red{background:#fee2e2;color:#dc2626}

/* Responsive */
@media(max-width:680px){
  .sp2-btn-row-a{grid-template-columns:1fr}
  .sp2-order{padding:11px 14px}
  .sp2-cart{flex-direction:row;padding:11px 14px}
  .sp2-btn-text small{display:none}
  .sp2-trust{grid-template-columns:1fr 1fr}
  .sp2-trust-item{font-size:11px;padding:8px 10px}
}
@media(max-width:420px){
  .sp2-trust{grid-template-columns:1fr}
  .sp2-btn-row-b{grid-template-columns:1fr 1fr}
}

/* ═══════════════════════════════════════════════════════
   REVIEWS TAB — Đánh giá sản phẩm
   ═══════════════════════════════════════════════════════ */
.rv-wrap{padding:4px 0}
.rv-heading-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.rv-heading{font-size:20px;font-weight:900;color:var(--text)}
.rv-write-link{font-size:13px;font-weight:700;color:var(--main2);text-decoration:none}
.rv-write-link:hover{text-decoration:underline}
.rv-main-grid{display:grid;grid-template-columns:260px 1fr;gap:20px;margin-bottom:28px}
.rv-score-card{background:linear-gradient(160deg,#f0fdf4,#ecfdf5);border:1.5px solid #bbf7d0;border-radius:16px;padding:20px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.rv-avg-num{font-size:52px;font-weight:900;color:var(--main2);line-height:1;letter-spacing:-1px}
.rv-avg-count{font-size:12px;color:var(--muted);font-weight:500}
.rv-bars{width:100%;margin-top:8px;display:flex;flex-direction:column;gap:5px}
.rv-bar-row{display:flex;align-items:center;gap:6px;width:100%}
.rv-bar-label{font-size:11px;font-weight:700;color:var(--muted);width:22px;text-align:right;flex-shrink:0}
.rv-bar-track{flex:1;height:7px;background:#d1fae5;border-radius:10px;overflow:hidden}
.rv-bar-fill{height:100%;background:var(--main);border-radius:10px}
.rv-bar-count{font-size:11px;font-weight:700;color:var(--muted);width:14px;flex-shrink:0}
.rv-list{display:flex;flex-direction:column;gap:12px}
.rv-card{background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:16px 18px}
.rv-card:hover{box-shadow:var(--shadow-sm)}
.rv-card-stars{margin-bottom:8px;font-size:16px;color:#f59e0b}
.rv-card-head{display:flex;align-items:flex-start;gap:10px}
.rv-avatar{width:38px;height:38px;background:var(--main);color:#fff;font-size:16px;font-weight:800;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.rv-card-meta{flex:1;min-width:0}
.rv-card-name-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:3px}
.rv-name{font-size:14px;font-weight:700;color:var(--text)}
.rv-badge{font-size:11px;font-weight:700;padding:2px 8px;border-radius:20px;white-space:nowrap}
.rv-badge-verified{background:#dcfce7;color:#15803d;border:1px solid #86efac}
.rv-badge-unverified{background:#fef3c7;color:#b45309;border:1px solid #fcd34d}
.rv-card-sub{font-size:12px;color:var(--muted)}
.rv-tags{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0 6px}
.rv-tag-chip{background:#f0fdf4;color:var(--main2);border:1px solid #a7f3d0;font-size:11px;font-weight:600;padding:3px 9px;border-radius:20px}
.rv-comment{font-size:13px;color:var(--text);line-height:1.65;margin-top:8px}
.rv-empty{text-align:center;padding:30px;color:var(--muted);font-size:14px}
.rv-avg-stars .stars-wrap{font-size:20px}
.tab-count{font-size:11px;background:#dcfce7;color:var(--main2);padding:1px 6px;border-radius:8px;font-weight:700;margin-left:3px}
.rv-form-wrap{background:#fff;border:1.5px solid var(--line);border-radius:16px;padding:24px;margin-top:4px}
.rv-form-title{font-size:16px;font-weight:800;color:var(--text);margin-bottom:16px}
.rv-form-title span{color:var(--main2)}
.rv-quick-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.rv-qtag{background:#f8fafc;border:1.5px solid var(--line);border-radius:20px;padding:6px 14px;font-size:13px;font-weight:600;color:var(--text);cursor:pointer;transition:all .15s;font-family:inherit}
.rv-qtag:hover{border-color:var(--main);color:var(--main)}
.rv-qtag.active{background:#dcfce7;border-color:var(--main);color:var(--main2)}
.rv-textarea{width:100%;min-height:110px;border:1.5px solid var(--line);border-radius:10px 10px 0 0;border-bottom:none;padding:12px 14px;font-size:14px;font-family:inherit;color:var(--text);resize:vertical;outline:none;transition:border-color .2s}
.rv-textarea:focus{border-color:var(--main)}
.rv-textarea-foot{display:flex;align-items:center;justify-content:space-between;background:#f8fafc;border:1.5px solid var(--line);border-top:none;border-radius:0 0 10px 10px;padding:8px 12px;margin-bottom:14px}
.rv-media-btns{display:flex;gap:12px}
.rv-media-btn{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:var(--main2);cursor:pointer}
.rv-char-count{font-size:12px;color:var(--muted)}
.rv-star-select{display:flex;align-items:flex-start;gap:20px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:14px}
.rv-star-label strong{font-size:13px;font-weight:800;display:block;line-height:1.4}
.rv-star-label small{font-size:11px;color:var(--muted);display:block;margin-top:2px}
.rv-star-row{display:flex;gap:6px;flex:1}
.rv-star-btn{background:none;border:none;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;padding:4px;color:#d1d5db;transition:color .15s;font-family:inherit}
.rv-star-btn.active{color:#f59e0b}
.rv-star-btn span{font-size:10px;font-weight:600;color:var(--muted);white-space:nowrap}
.rv-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:10px}
.rv-field{width:100%;border:1.5px solid var(--line);border-radius:8px;padding:10px 12px;font-size:14px;font-family:inherit;color:var(--text);outline:none;transition:border-color .2s}
.rv-field:focus{border-color:var(--main);box-shadow:0 0 0 3px rgba(18,107,72,.08)}
.rv-hint{font-size:12px;color:var(--muted);line-height:1.5;margin-bottom:14px}
.rv-form-msg{padding:10px 14px;border-radius:8px;font-size:13px;font-weight:600;margin-bottom:12px}
.rv-form-msg.success{background:#dcfce7;color:#15803d;border:1px solid #86efac}
.rv-form-msg.error{background:#fee2e2;color:#dc2626;border:1px solid #fca5a5}
.rv-submit-btn{background:var(--main);color:#fff;border:none;border-radius:10px;padding:13px 32px;font-size:14px;font-weight:800;letter-spacing:.5px;cursor:pointer;font-family:inherit;transition:all .2s;box-shadow:0 4px 14px rgba(18,107,72,.3)}
.rv-submit-btn:hover{background:var(--main2);transform:translateY(-1px);box-shadow:0 6px 18px rgba(18,107,72,.4)}
.rv-submit-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}
@media(max-width:860px){.rv-main-grid{grid-template-columns:1fr}.rv-score-card{flex-direction:row;flex-wrap:wrap;text-align:left;align-items:center;justify-content:flex-start;gap:12px}.rv-avg-num{font-size:40px}.rv-bars{flex:1;min-width:160px}.rv-fields{grid-template-columns:1fr 1fr}}
@media(max-width:540px){.rv-star-select{flex-direction:column;gap:10px}.rv-fields{grid-template-columns:1fr}.rv-star-btn span{display:none}}

/* ═══════════════════════════════════════════════════════════
   INFO / STATIC PAGES
   ═══════════════════════════════════════════════════════════ */
.info-hero{background:linear-gradient(135deg,var(--main2) 0%,var(--main) 60%,#1a8c5c 100%);color:#fff;padding:52px 0 44px;text-align:center}
.info-hero h1{font-size:32px;font-weight:900;margin:0 0 10px;letter-spacing:-.5px}
.info-hero p{font-size:16px;opacity:.88;margin:0}
.info-page-wrap{padding:40px 20px 60px;max-width:900px}
.info-section{margin-bottom:40px}
.info-section h2{font-size:21px;font-weight:900;color:var(--main2);margin:0 0 18px;padding-bottom:12px;border-bottom:2px solid #dcfce7}
.info-section h3{font-size:16px;font-weight:800;color:var(--text);margin:20px 0 8px}
.info-section p{line-height:1.85;color:#374151;margin-bottom:12px}
.info-section ul,.info-section ol{padding-left:22px;line-height:1.85;color:#374151;margin-bottom:12px}
.info-section li{margin-bottom:7px}
.info-section a{color:var(--main2);text-decoration:underline}
.info-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.info-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px 18px;transition:box-shadow .2s}
.info-card:hover{box-shadow:0 4px 20px rgba(18,107,72,.12)}
.info-card-icon{font-size:32px;margin-bottom:12px}
.info-card h3{font-size:15px;font-weight:800;margin:0 0 8px;color:var(--text)}
.info-card p{font-size:13px;color:#6b7280;line-height:1.7;margin:0}
.info-product-cats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.info-cat-item{background:var(--main-light);border:1px solid #bbf7d0;border-radius:12px;padding:18px}
.info-cat-item h3{font-size:14px;font-weight:800;color:var(--main2);margin:0 0 8px}
.info-cat-item p{font-size:13px;color:#374151;line-height:1.7;margin:0}
.info-values-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:12px}
.info-values-list li{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 18px 14px 48px;line-height:1.7;position:relative}
.info-values-list li::before{content:"\2726";position:absolute;left:16px;color:var(--main);font-size:16px;top:14px}
.info-trust-badges{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.info-trust-item{background:var(--main-light);border:1px solid #bbf7d0;border-radius:10px;padding:16px;text-align:center}
.info-trust-icon{font-size:22px;margin-bottom:8px}
.info-trust-item p{font-size:13px;color:#374151;margin:0;line-height:1.6}
.info-contact-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:28px}
.info-contact-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;display:flex;align-items:center;gap:16px;transition:box-shadow .2s}
.info-contact-card:hover{box-shadow:0 4px 16px rgba(18,107,72,.1)}
.info-contact-icon{width:52px;height:52px;background:var(--main-light);border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:24px;flex-shrink:0}
.info-contact-label{font-size:12px;color:#9ca3af;margin-bottom:4px}
.info-contact-val{font-size:15px;font-weight:800;color:var(--text)}
.info-contact-val a{color:var(--main2);text-decoration:none}
.info-contact-val a:hover{text-decoration:underline}
.info-table{width:100%;border-collapse:collapse;font-size:14px;margin-bottom:16px}
.info-table th{background:var(--main-light);color:var(--main2);font-weight:800;padding:10px 14px;text-align:left;border:1px solid #bbf7d0}
.info-table td{padding:10px 14px;border:1px solid var(--line);vertical-align:top}
.info-table tr:nth-child(even) td{background:#f9fafb}
.info-highlight{background:linear-gradient(135deg,#f0fdf4,#ecfdf5);border:1.5px solid #86efac;border-radius:14px;padding:20px 24px;margin-bottom:24px;text-align:center}
.info-highlight-num{font-size:48px;font-weight:900;color:var(--main2);line-height:1}
.info-highlight-text{font-size:16px;color:#374151;margin-top:6px}
.info-steps{display:flex;flex-direction:column;gap:20px}
.info-step{display:flex;gap:16px;align-items:flex-start}
.info-step-num{width:40px;height:40px;background:var(--main);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:17px;flex-shrink:0;box-shadow:0 3px 10px rgba(18,107,72,.3)}
.info-step-body{flex:1;padding-top:6px}
.info-step-body h3{font-size:15px;font-weight:800;margin:0 0 6px;color:var(--text)}
.info-step-body p{font-size:14px;color:#6b7280;margin:0;line-height:1.7}
.info-order-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}
.info-order-method{background:#fff;border:2px solid var(--line);border-radius:14px;padding:22px 18px;text-align:center;transition:border-color .2s,box-shadow .2s}
.info-order-method:hover{border-color:var(--main);box-shadow:0 4px 16px rgba(18,107,72,.12)}
.info-method-icon{font-size:36px;margin-bottom:12px}
.info-order-method h3{font-size:15px;font-weight:800;margin:0 0 10px;color:var(--main2)}
.info-order-method p{font-size:13px;color:#6b7280;line-height:1.7;margin:0}
.info-payment-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.info-payment-item{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;text-align:center}
.info-payment-item .icon{font-size:28px;margin-bottom:8px}
.info-payment-item h3{font-size:14px;font-weight:800;margin:0 0 6px;color:var(--text)}
.info-payment-item p{font-size:12px;color:#9ca3af;margin:0;line-height:1.6}
.info-conditions{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.info-condition-box{border-radius:12px;padding:18px 20px}
.info-condition-box.ok{background:#f0fdf4;border:1px solid #86efac}
.info-condition-box.no{background:#fef2f2;border:1px solid #fca5a5}
.info-condition-box h3{font-size:14px;font-weight:800;margin:0 0 12px}
.info-condition-box.ok h3{color:#15803d}
.info-condition-box.no h3{color:#dc2626}
.info-condition-box ul{padding-left:18px;margin:0;font-size:13px;line-height:1.8;color:#374151}
.info-track-form{margin-top:16px}
.info-track-input-row{display:flex;gap:10px;align-items:stretch}
.info-track-input-row input{flex:1;padding:12px 16px;border:2px solid var(--line);border-radius:10px;font-size:15px;outline:none;transition:border-color .2s}
.info-track-input-row input:focus{border-color:var(--main)}
.info-track-note{font-size:12px;color:#9ca3af;margin:8px 0 0}
.info-track-loading{text-align:center;padding:32px;color:#6b7280}
.info-spinner{width:36px;height:36px;border:3px solid #dcfce7;border-top-color:var(--main);border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 12px}
@keyframes spin{to{transform:rotate(360deg)}}
.info-track-results{margin-top:8px}
.info-order-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:14px}
.info-order-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;flex-wrap:wrap;gap:8px}
.info-order-id{font-weight:900;font-size:16px;color:var(--text)}
.info-order-date{font-size:13px;color:#9ca3af}
.info-order-status{padding:4px 12px;border-radius:999px;font-size:13px;font-weight:700;color:#fff}
.info-order-body{font-size:13px;color:#374151;line-height:1.8}
.info-order-items{background:var(--main-light);border-radius:8px;padding:10px 14px;margin-top:10px;font-size:13px}
.info-track-error{background:#fef2f2;border:1px solid #fca5a5;border-radius:10px;padding:16px 20px;color:#dc2626;font-weight:600;text-align:center}
.info-track-empty{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:20px;text-align:center;color:#ea580c}
.info-track-fallback{background:var(--main-light);border:1px solid #bbf7d0;border-radius:12px;padding:20px 24px;margin-top:24px}
.faq-cat-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.faq-cat-btn{padding:8px 16px;border:1.5px solid var(--line);border-radius:999px;background:#fff;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s;color:#6b7280}
.faq-cat-btn.active,.faq-cat-btn:hover{background:var(--main);border-color:var(--main);color:#fff}
.faq-list{display:flex;flex-direction:column;gap:8px}
.faq-item{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.faq-question{width:100%;padding:16px 20px;font-size:14px;font-weight:700;cursor:pointer;display:flex;justify-content:space-between;align-items:center;background:#fff;border:none;text-align:left;color:var(--text);gap:12px}
.faq-question:hover{background:#f9fafb}
.faq-chevron{transition:transform .3s;font-size:18px;flex-shrink:0;color:#9ca3af}
.faq-item.open .faq-chevron{transform:rotate(180deg)}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .35s ease,padding .3s}
.faq-item.open .faq-answer{max-height:600px;padding:4px 20px 18px}
.faq-answer p,.faq-answer ul,.faq-answer ol{font-size:14px;color:#374151;line-height:1.8;margin-bottom:8px}
.faq-answer a{color:var(--main2);text-decoration:underline}
.info-privacy-toc{background:#f9fafb;border:1px solid var(--line);border-radius:12px;padding:18px 22px;margin-bottom:32px}
.info-privacy-toc h3{font-size:14px;font-weight:800;margin:0 0 12px;color:var(--text)}
.info-privacy-toc ol{padding-left:20px;margin:0;font-size:13px;line-height:2}
.info-privacy-toc a{color:var(--main2);text-decoration:none;font-weight:600}
.info-rights-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.info-right-item{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:16px;text-align:center}
.info-right-item .icon{font-size:28px;margin-bottom:8px}
.info-right-item h4{font-size:13px;font-weight:800;margin:0 0 4px;color:var(--main2)}
.info-right-item p{font-size:12px;color:#6b7280;margin:0;line-height:1.6}
.info-related-pages{margin-top:40px;padding-top:28px;border-top:1px solid var(--line)}
.info-related-pages h2{font-size:16px;font-weight:800;color:#6b7280;margin:0 0 14px}
.info-related-links{display:flex;flex-wrap:wrap;gap:10px}
.info-related-links .sp2-btn{padding:9px 18px;border-radius:999px;background:#fff;border:1.5px solid var(--line);color:var(--main2);font-size:13px;font-weight:700;text-decoration:none;transition:all .2s;display:inline-flex;align-items:center}
.info-related-links .sp2-btn:hover{background:var(--main);border-color:var(--main);color:#fff}
.info-contact-form{background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px 32px}
.info-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.info-form-field{display:flex;flex-direction:column;gap:6px}
.info-form-field label{font-size:13px;font-weight:700;color:var(--text)}
.info-form-field input,.info-form-field select,.info-form-field textarea{padding:11px 14px;border:1.5px solid var(--line);border-radius:9px;font-size:14px;font-family:inherit;outline:none;transition:border-color .2s;background:#fff}
.info-form-field input:focus,.info-form-field select:focus,.info-form-field textarea:focus{border-color:var(--main)}
.info-form-field.full{grid-column:1/-1}
.info-form-submit{background:var(--main);color:#fff;border:none;border-radius:10px;padding:13px 32px;font-size:15px;font-weight:800;cursor:pointer;transition:background .2s;margin-top:8px}
.info-form-submit:hover{background:var(--main2)}
.info-map-wrap{border-radius:14px;overflow:hidden;border:1px solid var(--line);margin-top:8px}
.info-map-wrap iframe{display:block;width:100%}
@media(max-width:820px){
  .info-hero h1{font-size:26px}
  .info-cards,.info-product-cats,.info-order-methods,.info-payment-methods{grid-template-columns:1fr 1fr}
  .info-contact-grid,.info-conditions,.info-rights-grid{grid-template-columns:1fr}
  .info-trust-badges{grid-template-columns:repeat(2,1fr)}
  .info-form-grid{grid-template-columns:1fr}
  .info-contact-form{padding:20px}
}
@media(max-width:600px){
  .info-hero{padding:36px 0 30px}
  .info-hero h1{font-size:22px}
  .info-cards,.info-product-cats,.info-order-methods,.info-payment-methods,.info-trust-badges{grid-template-columns:1fr}
  .info-track-input-row{flex-direction:column}
  .faq-cat-btn{font-size:12px;padding:6px 12px}
}

/* ═══════════════════════════════════════════════════════════
   NEWS SECTION — TRANG CHỦ
   ═══════════════════════════════════════════════════════════ */
.news-section { }

.news-grid {
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: 24px;
  align-items: stretch;
}

/* ── Featured card ── */
.news-feat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.news-feat:hover { box-shadow: 0 8px 32px rgba(18,107,72,.13); transform: translateY(-3px); }

.news-feat-img-link { display: block; text-decoration: none; }
.news-feat-img {
  position: relative;
  height: 270px;
  background: var(--main-light) center/cover no-repeat;
}
.news-feat-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.45) 100%);
}
.news-feat-img-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 52px; opacity: .4; z-index: 1;
}
.news-feat-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--main); color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 4px 11px; border-radius: 999px;
  letter-spacing: .3px; z-index: 2;
  text-transform: uppercase;
}
.news-feat-body { padding: 22px 24px 26px; flex: 1; }
.news-feat-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #9ca3af; margin-bottom: 10px;
}
.news-meta-dot { opacity: .5; }
.news-feat-title {
  font-size: 19px; font-weight: 900;
  color: var(--text); line-height: 1.45;
  margin: 0 0 12px;
}
.news-feat-title a { color: inherit; text-decoration: none; }
.news-feat-title a:hover { color: var(--main2); }
.news-feat-excerpt { font-size: 14px; color: #4b5563; line-height: 1.85; margin: 0 0 18px; }
.news-read-more {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 800;
  color: var(--main2); text-decoration: none;
  transition: gap .2s;
}
.news-read-more:hover { gap: 10px; color: var(--main); }
.news-read-more--sm { font-size: 12px; margin-top: 4px; }

/* ── Side stack ── */
.news-side {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 18px;
  height: 100%;
}

.news-side-card {
  display: flex;
  min-height: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.news-side-card:hover { box-shadow: 0 4px 18px rgba(18,107,72,.1); transform: translateY(-2px); }

.news-side-img-link { display: block; flex-shrink: 0; width: 100px; }
.news-side-img {
  width: 100px; height: 100%;
  min-height: 90px;
  overflow: hidden; background: var(--main-light);
}
.news-side-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.news-side-card:hover .news-side-img img { transform: scale(1.07); }
.news-side-img-ph {
  width: 100px; height: 100%;
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: var(--main-light);
}

.news-side-body {
  flex: 1; padding: 12px 14px;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
}
.news-side-tag {
  font-size: 10px; font-weight: 800; color: var(--main);
  text-transform: uppercase; letter-spacing: .4px;
  text-decoration: none; margin-bottom: 2px;
}
.news-side-meta { font-size: 11px; color: #9ca3af; }
.news-side-title { font-size: 13px; font-weight: 800; color: var(--text); line-height: 1.5; margin: 0; }
.news-side-title a { color: inherit; text-decoration: none; }
.news-side-title a:hover { color: var(--main2); }

/* ── Empty state ── */
.news-empty {
  text-align: center; padding: 48px 20px;
  background: #fff; border: 1.5px dashed var(--line); border-radius: 16px;
  color: #9ca3af;
}
.news-empty-icon { font-size: 40px; margin-bottom: 12px; }
.news-empty p { font-size: 15px; margin: 0; }
.news-empty a { color: var(--main2); font-weight: 700; text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-feat-img { height: 220px; }
  .news-side {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    height: auto;
  }
  .news-side-card { width: calc(50% - 7px); flex-direction: column; }
  .news-side-img-link { width: 100%; }
  .news-side-img { width: 100%; height: 120px; }
  .news-side-img-ph { width: 100%; height: 120px; }
}
@media (max-width: 580px) {
  .news-feat-img { height: 190px; }
  .news-side { flex-direction: column; }
  .news-side-card { width: 100%; flex-direction: row; }
  .news-side-img-link { width: 90px; }
  .news-side-img { width: 90px; min-height: 80px; }
  .news-side-img-ph { width: 90px; min-height: 80px; }
}

/* ═══════════════════════════════════════════════════════════
   INFO PAGES — Missing / Fix classes  (v2.8.3)
   ════════════════════════════════════════════════════════════ */

/* Contact cards grid container */
.info-contact-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}

/* Fix contact card → column layout (icon on top) */
.info-contact-card{flex-direction:column;text-align:center;padding:24px 20px;align-items:center}
.info-contact-icon{margin:0 auto 12px}
.info-contact-main{font-size:17px;font-weight:800;color:var(--main2);margin:4px 0 6px}
.info-contact-main a{color:var(--main2);text-decoration:none}
.info-contact-main a:hover{text-decoration:underline}
.info-contact-card h3{font-size:15px;font-weight:800;margin:0 0 6px;color:var(--text)}
.info-contact-card p{font-size:13px;color:#6b7280;line-height:1.65;margin:0}

/* Contact fallback box */
.info-contact-box{background:var(--main);color:#fff;border-radius:16px;padding:28px 24px;text-align:center;margin-top:20px}
.info-contact-fallback{background:#f0fdf4;border:1px solid var(--line);border-radius:12px;padding:20px}
.info-fallback-item{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.info-fallback-item:last-child{border-bottom:none}

/* Two-column layout */
.info-two-col{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start}

/* Form — alias for form-grid */
.info-form{width:100%;max-width:680px}
.info-form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:0}
.info-form-group{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.info-form-group label{font-size:13px;font-weight:700;color:var(--text)}
.info-form-group input,.info-form-group select,.info-form-group textarea{padding:11px 14px;border:1.5px solid var(--line);border-radius:9px;font-size:14px;font-family:inherit;outline:none;transition:border-color .2s;background:#fff;width:100%;box-sizing:border-box}
.info-form-group input:focus,.info-form-group select:focus,.info-form-group textarea:focus{border-color:var(--main);box-shadow:0 0 0 3px rgba(22,163,74,.1)}
.info-required{color:#dc2626}
.info-success-msg{background:#dcfce7;border:1px solid #86efac;border-radius:10px;padding:14px 18px;color:#166534;font-size:14px;line-height:1.7}

/* Highlight box */
.info-highlight-box{background:linear-gradient(135deg,#f0fdf4,#dcfce7);border:1px solid #86efac;border-radius:14px;padding:20px 24px;margin:16px 0}
.info-hours-note{font-size:13px;color:#6b7280;font-style:italic;margin-top:6px}

/* Policy / eligible / ineligible lists */
.info-policy-list{list-style:none;padding:0;margin:0}
.info-policy-list li{padding:9px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.7}
.info-policy-list li:last-child{border-bottom:none}
.info-eligible-list,.info-ineligible-list{list-style:none;padding:0;margin:0}
.info-eligible-list li{padding:7px 0;font-size:14px;color:#166534}
.info-eligible-list li::before{content:'✅ '}
.info-ineligible-list li{padding:7px 0;font-size:14px;color:#991b1b}
.info-ineligible-list li::before{content:'❌ '}

/* Step content alias */
.info-step-content{flex:1;padding:4px 0}

/* Track */
.info-track-no-results{text-align:center;padding:40px 20px;color:#6b7280}
.info-track-no-results p{font-size:15px;margin-bottom:8px}

/* Responsive */
@media(max-width:820px){
  .info-contact-cards{grid-template-columns:1fr 1fr}
  .info-two-col{grid-template-columns:1fr;gap:20px}
  .info-form-row{grid-template-columns:1fr}
}
@media(max-width:520px){
  .info-contact-cards{grid-template-columns:1fr}
}

/* ═══ Info contact-box / fallback fix ═══ */
.info-contact-box{background:#f0fdf4;border:2px solid #86efac;border-radius:16px;padding:28px 24px;text-align:center}
.info-contact-box h2{color:var(--main2);font-size:20px;margin:0 0 8px}
.info-contact-box>p{color:#374151;font-size:15px;margin:0 0 20px}
.info-contact-fallback{display:flex;flex-direction:column;align-items:center;gap:12px}
.info-contact-fallback .sp2-btn.sp2-order{width:100%;max-width:340px;padding:14px 24px;font-size:16px;border-radius:12px}
.info-contact-fallback .sp2-btn:not(.sp2-order){color:var(--main2);font-size:15px;font-weight:700;text-decoration:none;display:inline-flex;gap:6px;align-items:center;padding:4px 8px;border-radius:8px}
.info-contact-fallback .sp2-btn:not(.sp2-order):hover{text-decoration:underline}

/* Info form — fix button in form context */
.info-form .sp2-btn.sp2-order{padding:13px 32px;border-radius:12px;font-size:15px;font-weight:800;border:none;cursor:pointer}

/* ═══════════════════════════════════════════════════════════
   Search Autocomplete Dropdown
   ═══════════════════════════════════════════════════════════ */
.search-bar-wrap { position: relative; flex: 1; max-width: 520px; }
.search-suggest-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12); z-index: 999; overflow: hidden;
  max-height: 420px; overflow-y: auto;
}
.ss-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  text-decoration: none; color: inherit; transition: background .15s;
}
.ss-item:hover, .ss-item.hover { background: #f3faf0; }
.ss-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.ss-no-img { width: 44px; height: 44px; border-radius: 8px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ss-info { display: flex; flex-direction: column; min-width: 0; }
.ss-title { font-size: 14px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-meta { font-size: 12px; color: #64748b; margin-top: 2px; }
.ss-see-all { display: block; padding: 10px 14px; font-size: 13px; color: #16a34a; text-decoration: none; border-top: 1px solid #f1f5f9; background: #f9fafb; }
.ss-see-all:hover { background: #f0fdf4; }

/* ═══════════════════════════════════════════════════════════
   Mobile Category Drawer
   ═══════════════════════════════════════════════════════════ */
.mob-drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 1040;
}
.mob-drawer-overlay.open { display: block; }
.mob-drawer {
  position: fixed; top: 0; left: -100%; bottom: 0;
  width: min(320px, 88vw); background: #fff; z-index: 1050;
  box-shadow: 4px 0 24px rgba(0,0,0,.15);
  transition: left .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.mob-drawer.open { left: 0; }
.mob-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px; background: linear-gradient(135deg,#16a34a,#22c55e);
  color: #fff; font-weight: 700; font-size: 15px;
}
.mob-drawer-close {
  background: rgba(255,255,255,.2); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.mob-drawer-close:hover { background: rgba(255,255,255,.35); }
.mob-drawer-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.mob-drawer-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px;
  text-decoration: none; color: #1e293b; font-size: 14px; font-weight: 500;
  transition: background .15s;
}
.mob-drawer-item:hover { background: #f0fdf4; color: #16a34a; }
.mob-drawer-icon { font-size: 22px; width: 30px; text-align: center; flex-shrink: 0; }
.mob-drawer-arrow { margin-left: auto; color: #94a3b8; font-size: 18px; }
.mob-drawer-sep { height: 1px; background: #e2e8f0; margin: 6px 12px; }
.mob-drawer-all { color: #16a34a; font-weight: 600; }

/* Wishlist button active state */
.btn-wishlist.active { color: #ef4444; }

/* ═══════════════════════════════════════════════════════════
   Product Variants Pills
   ═══════════════════════════════════════════════════════════ */
.sp2-variants { margin: 12px 0 16px; }
.sp2-variants-label {
  font-size: 13px; font-weight: 600; color: #475569;
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 10px;
}
.sp2-variants-selected {
  color: var(--main); font-weight: 700;
}
.sp2-variant-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sp2-variant-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 18px; border: 2px solid #e2e8f0; border-radius: 24px;
  background: #fff; color: #374151; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .18s;
}
.sp2-variant-pill:hover { border-color: var(--main); color: var(--main); background: #f0fdf4; }
.sp2-variant-pill.active {
  border-color: var(--main); background: var(--main); color: #fff; font-weight: 700;
  box-shadow: 0 2px 10px rgba(18,107,72,.25);
}
.sp2-variant-pill.active::after {
  content: '✓';
  font-size: 11px; font-weight: 800;
  margin-left: 2px;
}
.sp2-pill-save {
  font-size: 10px; font-weight: 700;
  background: rgba(239,68,68,.15); color: #dc2626;
  padding: 1px 5px; border-radius: 8px;
  line-height: 1.4;
}
.sp2-variant-pill.active .sp2-pill-save {
  background: rgba(255,255,255,.25); color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   Account Wishlist Tab
   ═══════════════════════════════════════════════════════════ */
.wl-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 16px; margin-top: 16px; }
.wl-empty { text-align: center; padding: 40px 20px; color: #94a3b8; }
.wl-empty .wl-empty-icon { font-size: 52px; margin-bottom: 12px; }
.wl-empty a { color: #16a34a; text-decoration: none; font-weight: 600; }

/* ╔══════════════════════════════════════════════════════════╗
   ║   MOBILE RESPONSIVE FIX — v2.8.6                        ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── 1. HEADER: 2-row layout trên mobile ─────────────────── */
@media (max-width: 600px) {
  .header-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 12px;
    gap: 6px;
  }
  .site-logo    { order: 1; flex-shrink: 0; }
  .header-actions { order: 2; margin-left: auto; flex-shrink: 0; display: flex; gap: 6px; }
  .search-bar-wrap {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0;
  }

  /* Login button: hiện lại nhưng compact */
  .btn-login {
    display: flex !important;
    padding: 7px 10px;
    font-size: 12px;
    min-width: 0;
  }
  /* Ẩn text "Đăng nhập", chỉ giữ icon */
  .btn-login:not(:has(img)):not(:has(span.av)) {
    font-size: 0;
  }
  .btn-login::before { content: '👤'; font-size: 16px; }

  /* Cart button compact */
  .btn-cart { padding: 8px 12px; font-size: 13px; }
}

/* ── 2. FLASH SALE header: stack trên mobile ─────────────── */
@media (max-width: 600px) {
  .flash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }
  .flash-title-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .flash-title-group strong { font-size: 18px; }
  .flash-title-group span   { font-size: 12px; }
  .flash-timer {
    align-self: stretch;
    justify-content: flex-start;
    gap: 5px;
  }
  .timer-block { width: 36px; height: 36px; font-size: 16px; }
  .flash-tab-bar { overflow-x: auto; scrollbar-width: none; }
  .flash-tab-bar::-webkit-scrollbar { display: none; }
  .flash-filter-tabs { min-width: max-content; }
}

/* ── 3. NAV BAR: luôn scroll ngang, không xuống hàng ─────── */
@media (max-width: 600px) {
  .site-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-inner {
    padding: 0 10px;
    gap: 2px;
  }
  .nav-inner a {
    padding: 10px 9px;
    font-size: 12.5px;
  }
  .nav-badge { font-size: 9px; padding: 1px 4px; }
}

/* ── 4. HERO BANNER: button row trên mobile ──────────────── */
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; gap: 10px; align-items: flex-start; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }
}

/* ── 5. SEARCH SUGGEST: bottom sheet trên mobile ─────────── */
@media (max-width: 600px) {
  .search-suggest-dropdown {
    position: fixed;
    top: auto !important;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 16px 16px 0 0;
    max-height: 60vh;
    border: none;
    box-shadow: 0 -4px 24px rgba(0,0,0,.15);
  }
  .search-suggest-dropdown::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 10px auto 6px;
  }
}

/* ── 6. SECTION HEADER & SPACING ─────────────────────────── */
@media (max-width: 600px) {
  .section { padding: 20px 0; }
  .sec-head { margin-bottom: 14px; }
  .trust-strip { gap: 10px; }
  .trust-item { padding: 14px 12px; }
  .trust-icon { font-size: 26px; }
  .trust-item h3 { font-size: 13px; }
  .trust-item p  { font-size: 11.5px; }
}

/* ── 7. FOOTER: bottom padding cho mobile nav ─────────────── */
@media (max-width: 600px) {
  .contact-float { bottom: 76px; }
}

/* ── 8. PRODUCT CARD: tối ưu nhỏ ─────────────────────────── */
@media (max-width: 600px) {
  .product-card { border-radius: 10px; }
  .product-info { padding: 8px 9px 10px; }
  .product-name { font-size: 12.5px; line-height: 1.35; }
  .price-current { font-size: 14px; }
  .price-old     { font-size: 11px; }
}

/* ── 9. MODAL & CART SIDEBAR: full-screen trên mobile ──────── */
@media (max-width: 600px) {
  .cart-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px 16px 0 0;
    top: auto;
    right: 0;
    bottom: -100%;
    left: 0;
    height: 90vh;
    transition: bottom .3s ease;
  }
  .cart-sidebar.open {
    bottom: 0;
  }
  .modal-box {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    top: auto;
    max-height: 90vh;
    overflow-y: auto;
    transition: bottom .3s ease;
  }
  .modal-box.open { bottom: 0; }
  .modal-overlay { align-items: flex-end; }
}

/* ── 10. SINGLE PRODUCT: tối ưu mobile ──────────────────────  */
@media (max-width: 600px) {
  .sp2-price-current { font-size: 24px; }
  .sp2-btn-row-a { gap: 8px; }
  .sp2-btn { padding: 12px 14px; }
  .sp2-qty-row { gap: 12px; }
  .sp2-meta-chips { gap: 6px; }
  .sp2-chip { padding: 5px 10px; font-size: 12px; }
}

/* ── 11. TOPBAR FILTER & ARCHIVE ─────────────────────────── */
@media (max-width: 600px) {
  .archive-top { flex-wrap: wrap; gap: 8px; }
  .archive-sort-wrap select { font-size: 13px; }
  .archive-meta { font-size: 12px; }
}

/* ── LOGIN BUTTON MOBILE FIX (override) ─────────────────── */
@media (max-width: 600px) {
  /* Xóa ::before hack ở trên, thay bằng cách thực */
  .btn-login::before { content: none; font-size: inherit; }

  /* Logged-in: ẩn tên, chỉ hiện avatar */
  .btn-account .account-avatar + span { display: none; }
  .btn-account { padding: 6px 8px !important; }

  /* Logged-out: ẩn text "Đăng nhập", hiện icon */
  .btn-login:not(.btn-account) {
    overflow: hidden;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    font-size: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .btn-login:not(.btn-account)::after { content: '👤'; font-size: 17px; }
}

/* ── CART SIDEBAR: bottom sheet override (fix transform conflict) ── */
@media (max-width: 600px) {
  .cart-sidebar {
    transform: none !important;
    top: auto !important;
    right: 0 !important;
    left: 0 !important;
    bottom: -100vh !important;
    width: 100% !important;
    height: 90vh !important;
    border-radius: 16px 16px 0 0;
    transition: bottom .3s cubic-bezier(.4,0,.2,1) !important;
    box-shadow: 0 -4px 24px rgba(0,0,0,.15);
  }
  .cart-sidebar.open {
    bottom: 0 !important;
    transform: none !important;
  }
}

/* ── MODAL BOX: bottom sheet override (fix transform conflict) ── */
@media (max-width: 600px) {
  .modal-box {
    transform: none !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -100vh !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 16px 16px 0 0 !important;
    opacity: 1 !important;
    pointer-events: none;
    transition: bottom .3s cubic-bezier(.4,0,.2,1) !important;
    box-shadow: 0 -4px 24px rgba(0,0,0,.15) !important;
  }
  .modal-box.open {
    bottom: 0 !important;
    transform: none !important;
    pointer-events: auto;
  }
  /* Round header corners to match */
  .modal-box .modal-header { border-radius: 16px 16px 0 0 !important; }
}

/* ══════════════════════════════════════════════════════════
   FOOTER v2 — dark green professional (ft- prefix)
   ══════════════════════════════════════════════════════════ */

/* ── Trust strip ───────────────────────────────────────── */
.ft-trust {
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
}
.ft-trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  justify-content: center;
}
.ft-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #166534;
  white-space: nowrap;
}
.ft-trust-icon { font-size: 16px; }

/* ── Footer body ────────────────────────────────────────── */
.ft-footer { background: #fff; }
.ft-body {
  background: linear-gradient(160deg, #0f3d1a 0%, #14532d 60%, #166534 100%);
  color: #d1fae5;
  padding: 56px 0 40px;
}
.ft-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.4fr;
  gap: 40px 32px;
}

/* ── Brand column ───────────────────────────────────────── */
.ft-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.ft-logo-badge {
  width: 46px; height: 46px;
  background: #16a34a;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.ft-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.ft-logo-text strong { color: #fff; font-size: 17px; font-weight: 700; }
.ft-logo-text small  { color: #86efac; font-size: 12px; }

.ft-brand-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #bbf7d0;
  margin-bottom: 18px;
}

.ft-contact-list {
  list-style: none;
  padding: 0; margin: 0 0 20px;
}
.ft-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #bbf7d0;
  margin-bottom: 9px;
  line-height: 1.5;
}
.ft-contact-list li a { color: #86efac; text-decoration: none; }
.ft-contact-list li a:hover { color: #fff; text-decoration: underline; }
.ft-ci { font-size: 14px; margin-top: 1px; flex-shrink: 0; }

/* Social buttons */
.ft-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.ft-social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background .2s, transform .15s;
  border: 1px solid rgba(255,255,255,.15);
}
.ft-social-btn:hover { background: #16a34a; transform: translateY(-2px); }
.ft-soc-f  { background: #1877f2; border-color: #1877f2; }
.ft-soc-z  { background: #0068ff; border-color: #0068ff; }
.ft-soc-yt { background: #ff0000; border-color: #ff0000; }
.ft-soc-tt { background: #000;    border-color: #333; }
.ft-soc-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border: none; }

/* ── Link columns ───────────────────────────────────────── */
.ft-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4ade80;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ft-link-list {
  list-style: none;
  padding: 0; margin: 0;
}
.ft-link-list li { margin-bottom: 9px; }
.ft-link-list a {
  color: #bbf7d0;
  text-decoration: none;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .18s, transform .18s;
}
.ft-link-list a:hover { color: #fff; transform: translateX(3px); }
.ft-link-arrow { color: #4ade80; font-size: 14px; line-height: 1; }
.ft-link-icon  { font-size: 14px; width: 18px; text-align: center; }

/* ── CTA column ─────────────────────────────────────────── */
.ft-hotline-btn, .ft-zalo-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 10px;
  transition: opacity .18s, transform .15s;
}
.ft-hotline-btn:hover, .ft-zalo-btn:hover { opacity: .88; transform: translateY(-1px); }
.ft-hotline-btn { background: #16a34a; color: #fff; }
.ft-zalo-btn    { background: #0068ff; color: #fff; }

.ft-hours-box {
  margin: 14px 0 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  border-left: 3px solid #4ade80;
}
.ft-hours-title { font-size: 12px; color: #86efac; margin-bottom: 4px; font-weight: 600; }
.ft-hours-val   { font-size: 14px; color: #fff; font-weight: 500; }

.ft-pay-title { font-size: 12px; color: #86efac; font-weight: 600; margin-bottom: 8px; }
.ft-pay-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-pay-badge {
  padding: 4px 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #d1fae5;
  letter-spacing: .3px;
}

/* ── Bottom bar ─────────────────────────────────────────── */
.ft-bottom {
  background: #052e16;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 16px 24px;
}
.ft-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.ft-copy {
  font-size: 12.5px;
  color: #6b7280;
}
.ft-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.ft-bottom-links a {
  font-size: 12.5px;
  color: #6b7280;
  text-decoration: none;
  transition: color .18s;
}
.ft-bottom-links a:hover { color: #4ade80; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ft-inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .ft-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ft-trust-inner { gap: 8px 20px; padding: 12px 16px; }
  .ft-trust-item  { font-size: 12.5px; }
  .ft-body        { padding: 36px 0 28px; }
  .ft-inner       { grid-template-columns: 1fr; gap: 28px; padding: 0 16px; }
  .ft-col-brand   { grid-column: auto; }
  .ft-hotline-btn,.ft-zalo-btn { justify-content: center; }
  .ft-bottom {
    padding: 16px 16px calc(92px + env(safe-area-inset-bottom));
  }
  .ft-bottom-inner { flex-direction: column; align-items: flex-start; }
  .ft-copy { line-height: 1.55; padding-right: 58px; }
  .ft-bottom-links { gap: 12px; }
}

/* ── Footer contact icons: nổi bật trên nền tối ───────── */
.ft-ci {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: rgba(255,255,255,.12);
  border-radius: 6px;
  font-size: 13px;
  flex-shrink: 0;
  filter: brightness(1.15);
}

/* ── Payment badges: màu thương hiệu ───────────────────── */
.ft-pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  color: #fff;
  letter-spacing: .2px;
}
.ft-pay-cod  { background: #d97706; }           /* amber — tiền mặt */
.ft-pay-bank { background: #1d4ed8; }           /* xanh ngân hàng  */
.ft-pay-momo { background: #a50064; }           /* MoMo magenta    */
.ft-pay-vnpay {
  background: linear-gradient(135deg, #e31837 50%, #002f6c 50%);
}

/* ── Footer: đồng màu với --main (#126b48) / --main2 (#0b4c34) ── */
.ft-body {
  background: linear-gradient(160deg, #083826 0%, #0b4c34 55%, #126b48 100%);
}
.ft-logo-badge  { background: #126b48; }
.ft-hotline-btn { background: #126b48; }
.ft-bottom      { background: #062417; }
.ft-col-title   { color: #6ee7b7; }       /* emerald-200 hợp với #126b48 */
.ft-link-arrow  { color: #6ee7b7; }
.ft-hours-box   { border-left-color: #6ee7b7; }
.ft-hours-title { color: #6ee7b7; }
.ft-pay-title   { color: #6ee7b7; }
.ft-trust       { background: #f0fdf6; border-bottom-color: #a7f3d0; }
.ft-trust-item  { color: #0b4c34; }

/* ── Demo notice banner ─────────────────────────────────── */
@keyframes ft-demo-glow {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(251,191,36,.5), inset 0 0 10px rgba(251,191,36,.06); border-color: rgba(251,191,36,.55); }
  50%       { box-shadow: 0 0 14px 3px rgba(251,191,36,.85), inset 0 0 16px rgba(251,191,36,.12); border-color: rgba(251,191,36,.9); }
}
.ft-demo-notice {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  background: rgba(251,191,36,.08);
  border: 1.5px solid rgba(251,191,36,.55);
  border-radius: 10px;
  animation: ft-demo-glow 2.4s ease-in-out infinite;
}
.ft-demo-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
  filter: drop-shadow(0 0 4px rgba(251,191,36,.8));
}
.ft-demo-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: #fde68a;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ft-demo-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: .2px;
}
.ft-demo-text em {
  font-style: normal;
  font-weight: 700;
  color: #fbbf24;
  text-decoration: underline dotted;
}

/* ── Brand col: flex để notice tự trượt xuống đáy ──────── */
.ft-col-brand {
  display: flex;
  flex-direction: column;
}
.ft-demo-notice { margin-top: auto; }

/* ── Demo notice: full-width row dưới grid ─────────────── */
.ft-col-brand { display: block; }          /* reset flex hack cũ */
.ft-demo-notice { margin-top: 0; }        /* reset margin-top:auto cũ */

.ft-demo-wrap {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 24px;
}
.ft-demo-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .ft-demo-wrap { padding: 0 16px; margin-top: 20px; }
}

/* ── Brand col flex: notice tự trượt xuống đáy cột ────── */
.ft-col-brand {
  display: flex !important;
  flex-direction: column !important;
}
.ft-col-brand .ft-demo-notice {
  margin-top: auto !important;
  width: 100%;
  box-sizing: border-box;
}
/* Reset full-width wrap không dùng nữa */
.ft-demo-wrap { display: none; }

/* ── Demo notice span 2 cột trái ───────────────────────── */
.ft-col-brand  { display: block !important; }
.ft-demo-notice { margin-top: 0 !important; }

.ft-demo-span2 {
  grid-column: 1 / 3;
  grid-row: 2;
}

/* ── Footer half-layout (thay grid 4 col) ───────────────── */
.ft-inner {
  display: flex !important;
  grid-template-columns: unset !important;
  gap: 0 40px;
  align-items: stretch;
}
.ft-half {
  display: flex;
  flex-direction: column;
}
.ft-half-left {
  flex: 0 0 50%;
  max-width: 50%;
}
.ft-half-right {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  align-content: start;
}
.ft-half-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0 32px;
  flex: 1;
}
/* Notice full-width ở đáy left half */
.ft-half-left .ft-demo-notice {
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .ft-inner       { flex-direction: column !important; gap: 28px; }
  .ft-half-left,
  .ft-half-right  { flex: unset; max-width: 100%; }
  .ft-half-right  { grid-template-columns: 1fr 1fr; }
  .ft-half-top    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ft-half-top    { grid-template-columns: 1fr; }
  .ft-half-right  { grid-template-columns: 1fr; }
}

/* ── Thumb placeholder khi chưa có ảnh gallery ─────────── */
.sp-thumb-empty {
  background: var(--main-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  opacity: .45;
  cursor: default;
  border-style: dashed;
}

/* ═══════════════════════════════════════════════════════════
   BLOG / TIN TỨC  — home.php + category.php
   ═══════════════════════════════════════════════════════════ */

/* ── Blog Hero ─────────────────────────────────────────── */
.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 58px;
  color: #fff;
  isolation: isolate;
}
.blog-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, #083826 0%, #0b4c34 48%, #126b48 100%);
  z-index: 0;
}
.blog-hero-bg::before {
  content: '';
  position: absolute;
  inset: -10px 0 -10px 32%;
  background:
    linear-gradient(90deg, rgba(8,56,38,.98) 0%, rgba(8,56,38,.82) 28%, rgba(8,56,38,.36) 62%, rgba(8,56,38,.12) 100%),
    url('../../../../uploads/2026/06/article-covers/dac-san-phu-yen-vung-dat-huong-vi-khong-the-quen-1024x576.png') center right / cover no-repeat;
  filter: saturate(.95) blur(1.5px);
  opacity: .62;
  transform: scale(1.03);
}
.blog-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 13% 38%, rgba(255,214,102,.14) 0%, transparent 24%),
    linear-gradient(90deg, rgba(8,56,38,.98) 0%, rgba(8,56,38,.9) 36%, rgba(8,56,38,.58) 62%, rgba(8,56,38,.72) 100%);
}
.blog-hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.blog-hero-text { flex: 1; max-width: 760px; }
.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.blog-hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 0 4px rgba(255,209,102,.16);
}
.blog-hero-text h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.blog-hero-text h1 span { color: #a8ffcc; }
.blog-hero-text p {
  font-size: 15px;
  color: rgba(255,255,255,.82);
  max-width: 520px;
  line-height: 1.6;
  margin: 0;
}
.blog-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.blog-hero-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 700;
}
.blog-hero-stats strong {
  margin-right: 5px;
  color: #ffd166;
  font-size: 17px;
}
.blog-hero-deco {
  display: flex; gap: 16px; flex-shrink: 0;
}
.bhd-circle {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  backdrop-filter: blur(4px);
  animation: bhd-float 4s ease-in-out infinite;
}
.bhd-c1 { animation-delay: 0s; }
.bhd-c2 { animation-delay: 1.2s; }
.bhd-c3 { animation-delay: 2.4s; }
@keyframes bhd-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.blog-hero-cat .blog-hero-text h1 { font-size: clamp(34px, 5vw, 52px); }
.blog-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.13);
  font-size: 13px; color: rgba(255,255,255,.78); margin-bottom: 16px;
}
.blog-breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.blog-breadcrumb a:hover { color: #fff; }
.blog-breadcrumb span { color: rgba(255,255,255,.5); }

/* ── Filter Bar ─────────────────────────────────────────── */
.blog-filter-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 30;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}
.blog-filter-tabs {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding: 14px 0;
}
.blog-filter-tabs::-webkit-scrollbar { display: none; }
.bft-tab {
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted, #666);
  text-decoration: none;
  transition: all .18s;
  flex-shrink: 0;
  border: 1px solid transparent;
}
.bft-tab:hover { background: #e8f5ee; color: var(--main); border-color: rgba(0,111,74,.12); }
.bft-tab.active { background: var(--main); color: #fff; box-shadow: 0 10px 20px rgba(0,111,74,.18); }
.bft-tab sup {
  font-size: 10px; vertical-align: top;
  background: rgba(0,0,0,.1); border-radius: 10px;
  padding: 1px 4px; margin-left: 3px;
}

.blog-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.blog-loadmore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  min-width: 244px;
  min-height: 56px;
  padding: 10px 24px;
  border: 1.5px solid var(--main);
  border-radius: 999px;
  background: var(--main);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 111, 74, .18);
  cursor: pointer;
  transition: var(--trans);
}
.blog-loadmore-btn span {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
}
.blog-loadmore-btn small {
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 700;
}
.blog-loadmore-btn:hover {
  background: var(--main2);
  transform: translateY(-1px);
}
.blog-loadmore-btn.is-loading,
.blog-loadmore-btn:disabled {
  cursor: wait;
  opacity: .78;
  transform: none;
}

/* ── Blog Layout ─────────────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 60px;
  align-items: start;
}
.blog-content { min-width: 0; }

/* ── Featured Post ───────────────────────────────────────── */
.blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  margin-bottom: 32px;
  transition: box-shadow .22s, transform .22s;
}
.blog-featured:hover { box-shadow: 0 8px 36px rgba(0,0,0,.12); transform: translateY(-2px); }
.bf-media {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 300px;
}
.bf-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.blog-featured:hover .bf-img { transform: scale(1.04); }
.bf-img-placeholder {
  background: linear-gradient(135deg, var(--main-light), rgba(18,107,72,.15));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--main); font-size: 40px;
  width: 100%; height: 100%; min-height: 300px;
}
.bf-placeholder-text { font-size: 14px; font-weight: 600; color: var(--main); }
.bf-badge-wrap {
  position: absolute; bottom: 14px; left: 14px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.bf-badge-featured {
  background: rgba(253,196,67,.95);
  color: #78350f;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 12px;
}
.bf-badge-cat {
  background: var(--main);
  color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 12px;
}
.bf-body {
  padding: 28px 30px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.bf-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--muted);
}
.bf-meta-date { display: flex; align-items: center; gap: 5px; }
.bf-meta-cat {
  background: var(--main-light);
  color: var(--main);
  padding: 3px 10px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
  font-size: 12px;
  transition: background .18s;
}
.bf-meta-cat:hover { background: var(--main); color: #fff; }
.bf-title {
  font-size: 22px; font-weight: 800; line-height: 1.3;
  margin: 0; color: var(--text);
}
.bf-title a { color: inherit; text-decoration: none; }
.bf-title a:hover { color: var(--main); }
.bf-excerpt { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }
.bf-readmore {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--main);
  color: #fff;
  padding: 10px 20px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  transition: background .18s, transform .18s;
  align-self: flex-start; margin-top: 6px;
}
.bf-readmore:hover { background: var(--main-dark, #083826); transform: translateX(3px); }

/* ── Blog Grid ───────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .22s, transform .22s;
  display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,.1); transform: translateY(-3px); }
.bcard-media {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16/9;
}
.bcard-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .35s;
}
.blog-card:hover .bcard-img { transform: scale(1.05); }
.bcard-img-ph {
  background: linear-gradient(135deg, var(--main-light), rgba(18,107,72,.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; width: 100%; height: 100%; min-height: 160px;
}
.bcard-cat-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--main);
  color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 10px;
}
.bcard-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bcard-meta { font-size: 12px; color: var(--muted); }
.bcard-title {
  font-size: 16px; font-weight: 700; line-height: 1.4;
  margin: 0; color: var(--text);
}
.bcard-title a { color: inherit; text-decoration: none; }
.bcard-title a:hover { color: var(--main); }
.bcard-excerpt { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; flex: 1; }
.bcard-read {
  color: var(--main); font-weight: 600; font-size: 13px;
  text-decoration: none; margin-top: auto;
  transition: gap .15s;
}
.bcard-read:hover { text-decoration: underline; }

/* ── Empty State ─────────────────────────────────────────── */
.blog-empty-state {
  text-align: center;
  padding: 80px 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 32px;
}
.bes-icon { font-size: 56px; margin-bottom: 20px; }
.blog-empty-state h2 { font-size: 22px; color: var(--text); margin: 0 0 10px; }
.blog-empty-state p { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.bes-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.bes-btn {
  padding: 11px 24px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  text-decoration: none; transition: all .18s;
}
.bes-btn-primary { background: var(--main); color: #fff; }
.bes-btn-primary:hover { background: #083826; }
.bes-btn-outline {
  border: 2px solid var(--main); color: var(--main); background: transparent;
}
.bes-btn-outline:hover { background: var(--main); color: #fff; }

/* ── Sidebar ─────────────────────────────────────────────── */
.blog-sidebar {
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 60px;
}
.bsw {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.bsw-title {
  font-size: 14px; font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.bsw-title svg { color: var(--main); flex-shrink: 0; }

/* Search box */
.bsw-form {
  display: flex; gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.bsw-form input {
  flex: 1;
  border: none; outline: none;
  padding: 9px 12px;
  font-size: 13px;
  background: transparent;
  color: var(--text);
}
.bsw-form button {
  background: var(--main);
  border: none; cursor: pointer;
  padding: 0 14px;
  color: #fff; display: flex; align-items: center;
  transition: background .18s;
}
.bsw-form button:hover { background: #083826; }

/* Category list */
.bsw-catlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bsw-catlist li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; border-radius: 7px;
  text-decoration: none; color: var(--text); font-size: 14px;
  transition: background .15s;
}
.bsw-catlist li a:hover, .bsw-catlist li a.active {
  background: var(--main-light); color: var(--main);
}
.bsw-cat-count {
  background: var(--main-light);
  color: var(--main);
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
}
.bsw-catlist li a.active .bsw-cat-count { background: var(--main); color: #fff; }

/* Recent posts */
.bsw-recent { display: flex; flex-direction: column; gap: 12px; }
.bsw-rpost {
  display: flex; gap: 12px; align-items: center;
  text-decoration: none; color: inherit;
}
.bsw-rpost:hover .bsw-rpost-title { color: var(--main); }
.bsw-rpost-img {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
}
.bsw-rpost-img img { width: 100%; height: 100%; object-fit: cover; }
.bsw-rpost-ph {
  width: 64px; height: 64px;
  background: var(--main-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.bsw-rpost-info { flex: 1; min-width: 0; }
.bsw-rpost-title {
  font-size: 13px; font-weight: 600; line-height: 1.4;
  color: var(--text); transition: color .15s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bsw-rpost-date { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Products in sidebar */
.bsw-prod {
  display: flex; gap: 12px; align-items: center;
  text-decoration: none; color: inherit;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.bsw-prod:last-of-type { border-bottom: none; }
.bsw-prod:hover .bsw-prod-name { color: var(--main); }
.bsw-prod-img {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
}
.bsw-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.bsw-prod-ph {
  width: 64px; height: 64px;
  background: var(--main-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.bsw-prod-info { flex: 1; min-width: 0; }
.bsw-prod-name {
  font-size: 13px; font-weight: 600; line-height: 1.4;
  color: var(--text); transition: color .15s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bsw-prod-price { font-size: 13px; color: var(--main); font-weight: 700; margin-top: 2px; }
.bsw-prod-sold { font-size: 11px; color: var(--muted); }
.bsw-see-all {
  display: block; margin-top: 14px;
  text-align: center;
  background: var(--main-light);
  color: var(--main);
  padding: 9px; border-radius: 8px;
  font-weight: 600; font-size: 13px;
  text-decoration: none; transition: all .18s;
}
.bsw-see-all:hover { background: var(--main); color: #fff; }

/* Newsletter widget */
.bsw-nl { text-align: center; background: linear-gradient(135deg, var(--main), #1a8a5a); color: #fff; }
.bsw-nl .bsw-nl-icon { font-size: 32px; margin-bottom: 10px; }
.bsw-nl h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.bsw-nl p { font-size: 13px; color: rgba(255,255,255,.85); margin: 0 0 16px; line-height: 1.5; }
.bsw-nl-form { display: flex; flex-direction: column; gap: 8px; }
.bsw-nl-form input {
  border: none; border-radius: 8px;
  padding: 10px 12px; font-size: 13px;
  background: rgba(255,255,255,.9); color: #1a1a1a;
  outline: none; width: 100%; box-sizing: border-box;
}
.bsw-nl-form button {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff; padding: 10px; border-radius: 8px;
  font-weight: 700; font-size: 13px; cursor: pointer;
  transition: background .18s;
}
.bsw-nl-form button:hover { background: rgba(255,255,255,.3); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-hero-deco { display: none; }
}
@media (max-width: 768px) {
  .blog-featured { grid-template-columns: 1fr; }
  .bf-media { min-height: 220px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 36px 0 32px; }
  .blog-hero-text h1 { font-size: 26px; }
  .bft-tab { padding: 6px 14px; font-size: 13px; }
}
/* ── SEO Intro — Tổng Hợp Đặc Sản Phú Yên ─────────────── */
.seo-intro {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fffefa 0%, #f8fbf6 100%);
  border-radius: var(--radius);
  padding: 28px 32px;
  border: 1.5px solid rgba(18,107,72,.34);
  box-shadow:
    0 0 0 4px rgba(255,209,102,.18),
    0 14px 34px rgba(18,107,72,.08);
}
.seo-intro::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--main), #0f8f73 52%, var(--yellow));
}
.seo-intro-heading {
  font-size: 22px; font-weight: 800; color: var(--text);
  margin: 0 0 14px; line-height: 1.3;
}
.seo-intro p {
  font-size: 15px; color: var(--text); line-height: 1.75;
  margin: 0 0 20px;
}
.seo-intro p em { color: var(--main); font-style: normal; }
/* H2 trong nội dung động từ option dspy_home_seo_html */
.seo-intro h2 {
  font-size: 19px; font-weight: 800; color: var(--text);
  margin: 28px 0 10px; line-height: 1.3;
}
.seo-intro h2:first-child { margin-top: 0; }
.seo-intro h3 {
  font-size: 16px; font-weight: 700; color: var(--main2);
  margin: 18px 0 8px;
}
.seo-intro a { color: var(--main); text-decoration: underline; text-underline-offset: 2px; }
.seo-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 20px;
}
.seo-spec-card {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px; background: #fff; border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(18,107,72,.08);
  border: 1px solid rgba(18,107,72,.16);
}
.seo-spec-icon { font-size: 24px; line-height: 1; }
.seo-spec-card > strong {
  font-size: 13px; font-weight: 700; color: var(--text);
  line-height: 1.4; margin-top: 4px;
}
.seo-spec-card > small {
  font-size: 11px; color: var(--muted); line-height: 1.4;
}
@media (max-width: 900px) {
  .seo-spec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .seo-intro { padding: 20px 18px; }
  .seo-intro-heading { font-size: 18px; }
  .seo-spec-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .seo-spec-card { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .bf-body { padding: 18px 20px; }
  .bf-title { font-size: 18px; }
  .blog-filter-tabs { padding: 8px 0; }
}

/* =====================================================
   SINGLE POST — sp-*
   ===================================================== */

/* ─ Layout ─ */
body.single-post .sp-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 36px;
  align-items: start;
  margin-top: 20px;
}
.sp-article { min-width: 0; }

/* ─ Meta bar ─ */
.sp-header { margin-bottom: 24px; }
.sp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
/* Category badge — force override global link color */
a.sp-cat-badge,
a.sp-cat-badge:visited,
a.sp-cat-badge:link {
  display: inline-block;
  background: var(--main) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none !important;
  letter-spacing: .3px;
  line-height: 1.6;
}
a.sp-cat-badge:hover { background: var(--main2) !important; }
.sp-sep { color: var(--muted); font-size: 12px; opacity: .6; }
.sp-meta-date,
.sp-meta-read { font-size: 13px; color: var(--muted); }

.sp-title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -.3px;
}
.sp-lead {
  font-size: 16px;
  line-height: 1.75;
  color: #4a5c52;
  border-left: 3px solid var(--main);
  padding: 8px 0 8px 16px;
  margin: 0;
  background: #f6fdf9;
  border-radius: 0 6px 6px 0;
}

/* ─ Hero image ─ */
.sp-hero {
  margin: 24px 0 28px;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
  background: var(--bg);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.sp-hero img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

/* ─ Table of Contents ─ */
.sp-toc {
  background: #f4fbf7;
  border: 1.5px solid rgba(18,107,72,.2);
  border-radius: 12px;
  padding: 16px 20px 18px;
  margin-bottom: 30px;
}
.sp-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.toc-heading {
  font-size: 14px;
  font-weight: 800;
  color: var(--main2);
  margin: 0;
}
.sp-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
/* Reset browser button defaults completely */
button.toc-toggle {
  all: unset;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  font-family: inherit;
  line-height: 1.5;
  box-shadow: none !important;
}
button.toc-toggle:hover { color: var(--main); border-color: var(--main) !important; }
.sp-toc.toc-closed .toc-list { display: none; }

/* CSS counter numbering (immune to global list-style resets) */
.toc-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  counter-reset: toc-h2;
}
.toc-list > li {
  counter-increment: toc-h2;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(18,107,72,.08);
}
.toc-list > li:last-child { border-bottom: none; padding-bottom: 0; }
.toc-list > li::before {
  content: counter(toc-h2) '.';
  color: var(--main);
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
  min-width: 18px;
}
.toc-list > li.toc-sub {
  counter-increment: none;
  padding-left: 24px;
}
.toc-list > li.toc-sub::before { content: '–'; min-width: 12px; font-weight: 400; }
.toc-list > li > a {
  color: var(--text) !important;
  text-decoration: none !important;
  font-size: 13.5px;
  line-height: 1.5;
  flex: 1;
  transition: color .15s;
}
.toc-list > li > a:hover,
.toc-list > li > a.is-active {
  color: var(--main) !important;
  font-weight: 700;
}
.toc-list > li.toc-sub > a { font-size: 12.5px; color: var(--muted) !important; }
.toc-list > li.toc-sub > a:hover { color: var(--main) !important; }

/* ─ Entry content typography ─ */
.sp-entry {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}
.sp-entry > h2:first-child { margin-top: 0; }
.sp-entry h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--main2);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #cde8d8;
  scroll-margin-top: 80px;
}
.sp-entry h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 26px 0 10px;
  scroll-margin-top: 80px;
}
.sp-entry p { margin: 0 0 18px; }
.sp-entry strong { font-weight: 700; }
.sp-entry em { font-style: italic; }
.sp-entry a { color: var(--main); text-decoration: underline; text-underline-offset: 2px; }
.sp-entry a:hover { color: var(--main2); }
.sp-entry ul, .sp-entry ol { margin: 0 0 18px; padding-left: 24px; }
.sp-entry li { margin-bottom: 7px; line-height: 1.75; }
.sp-entry blockquote {
  border-left: 4px solid var(--main);
  padding: 14px 20px;
  margin: 24px 0;
  background: #f4fbf7;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--muted);
}
.sp-entry img { max-width: 100%; height: auto; border-radius: 8px; margin: 18px 0; }

/* ─ Share row ─ */
.sp-footer-row {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sp-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sp-share > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  border: none !important;
  box-shadow: none;
  transition: opacity .15s, transform .12s;
  font-family: inherit;
  line-height: 1;
}
.share-btn:hover { opacity: .87; transform: translateY(-1px); }
.share-fb   { background: #1877f2 !important; color: #fff !important; }
.share-zalo { background: #0068ff !important; color: #fff !important; }
.share-copy { background: #fff !important; color: var(--text) !important; border: 1px solid var(--line) !important; }

/* ─ Tags ─ */
.sp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-tags a {
  background: #fff !important;
  color: var(--muted) !important;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none !important;
  border: 1px solid var(--line);
  transition: all .15s;
}
.sp-tags a:hover {
  background: var(--main-light) !important;
  color: var(--main) !important;
  border-color: rgba(18,107,72,.3);
}

/* ─ Related ─ */
.sp-related { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.sp-related-heading {
  font-size: 17px; font-weight: 800; color: var(--text);
  margin: 0 0 16px; letter-spacing: -.2px;
}
.sp-related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.sp-rel-card {
  display: flex; flex-direction: column;
  text-decoration: none !important; color: var(--text) !important;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card);
  transition: box-shadow .2s, transform .15s;
}
.sp-rel-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.09); transform: translateY(-2px); }
.sp-rel-img {
  height: 148px; background: var(--bg) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.sp-rel-body { padding: 12px 14px; }
.sp-rel-date { font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.sp-rel-title {
  font-size: 13.5px; font-weight: 700; line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ─ Sidebar ─ */
.sp-sidebar { min-width: 0; }
.sp-sidebar-sticky {
  position: sticky; top: 24px;
  display: flex; flex-direction: column; gap: 20px;
}
a.sp-btn-all, a.sp-btn-all:visited {
  display: block; text-align: center;
  margin: 14px 14px 0;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--main-light) !important;
  color: var(--main) !important;
  font-size: 13px; font-weight: 700;
  text-decoration: none !important;
  border: 1px solid rgba(18,107,72,.18);
  transition: all .15s;
}
a.sp-btn-all:hover { background: var(--main) !important; color: #fff !important; }

/* Popular posts */
.sp-pop-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--text) !important;
  transition: background .15s;
}
.sp-pop-item:last-child { border-bottom: none; }
.sp-pop-item:hover { background: var(--main-light); }
.sp-pop-num {
  flex-shrink: 0; width: 22px; height: 22px;
  border-radius: 50%; background: var(--main);
  color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.sp-pop-item:nth-child(n+4) .sp-pop-num { background: var(--line); color: var(--muted); }
.sp-pop-title {
  font-size: 13px; font-weight: 600; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sp-pop-date { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ─ Responsive ─ */
@media (max-width: 1100px) {
  body.single-post .sp-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 28px; }
  .sp-title { font-size: 26px; }
}
@media (max-width: 800px) {
  body.single-post .sp-layout { grid-template-columns: 1fr; }
  .sp-sidebar { order: 2; }
  .sp-sidebar-sticky { position: static; }
  .sp-title { font-size: 22px; }
  .sp-related-grid { grid-template-columns: 1fr; gap: 12px; }
  .sp-toc { padding: 14px 16px; }
}
@media (max-width: 600px) {
  .sp-hero img { max-height: 240px; }
  .sp-entry h2 { font-size: 18px; }
  .sp-entry h3 { font-size: 16px; }
  .sp-entry { font-size: 15px; line-height: 1.8; }
  .sp-related-grid { grid-template-columns: repeat(2,1fr); }
}
