/* ============================================================
   HỮU CƠ BẬC CAO — huucobaccao.com
   Design system: xanh hữu cơ + cam năng lượng (Asoil)
   Mobile-first, chữ to dễ đọc cho nhà vườn
   ============================================================ */
:root {
  --green-900: #0f3d24;
  --green-700: #166534;
  --green-600: #1b7a43;
  --green-100: #e3f2e8;
  --green-50:  #f2f8f4;
  --orange-600:#ea580c;
  --orange-500:#f97316;
  --orange-100:#ffedd5;
  --amber-400: #fdb913;
  --red-600:   #dc2626;
  --ink-900:   #16211a;
  --ink-700:   #33413a;
  --ink-500:   #5b6a62;
  --line:      #dde7e0;
  --bg:        #ffffff;
  --radius:    14px;
  --shadow:    0 4px 18px rgba(15, 61, 36, .10);
  --shadow-lg: 0 12px 40px rgba(15, 61, 36, .16);
  --font: "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Nút ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  box-shadow: 0 6px 20px rgba(234, 88, 12, .35);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(234, 88, 12, .5); }
.btn-green { background: var(--green-600); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--green-700);
  border: 2px solid var(--green-600);
}
.btn-lg { font-size: 19px; padding: 17px 36px; }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(15, 61, 36, .06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; color: var(--green-900);
  text-decoration: none !important;
  letter-spacing: -.02em;
}
.logo .leaf {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
  color: #fff; display: grid; place-items: center;
  font-size: 20px;
}
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-500); letter-spacing: .08em; }
.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; }
.nav-links a { color: var(--ink-700); font-weight: 600; font-size: 16px; text-decoration: none !important; }
.nav-links a:hover, .nav-links a.active { color: var(--green-600); }
.nav-links .nav-cta {
  background: var(--orange-500); color: #fff !important;
  padding: 9px 20px; border-radius: 999px;
}
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 26px; color: var(--green-900);
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 15px 6%; }
  .nav-links .nav-cta { border-radius: 0; text-align: center; }
}

/* ---------- Hero trang chủ ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(253,185,19,.18), transparent 60%),
    linear-gradient(160deg, var(--green-50), #fff 55%);
  padding: 64px 0 56px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.eyebrow {
  display: inline-block; background: var(--green-100); color: var(--green-700);
  font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.18; letter-spacing: -.02em; color: var(--green-900);
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--orange-600); }
.hero p.lead { font-size: 19px; color: var(--ink-700); margin-bottom: 28px; max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 26px; color: var(--green-700); }
.hero-stats span { font-size: 14px; color: var(--ink-500); }

/* ---------- Section chung ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--green-50); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); color: var(--green-900); letter-spacing: -.02em; margin-bottom: 10px; }
.section-head p { color: var(--ink-500); }

/* ---------- Card sản phẩm ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .thumb { position: relative; background: var(--green-50); }
.product-card .thumb img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--red-600); color: #fff; font-weight: 700; font-size: 13px;
  padding: 4px 12px; border-radius: 999px;
}
.badge.green { background: var(--green-600); }
.badge.amber { background: var(--amber-400); color: var(--ink-900); }
.product-card .body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { font-size: 19px; color: var(--green-900); }
.product-card .desc { font-size: 15px; color: var(--ink-500); flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-size: 22px; font-weight: 800; color: var(--red-600); }
.price-old { font-size: 15px; color: var(--ink-500); text-decoration: line-through; }
.price-note { font-size: 13px; color: var(--ink-500); }

/* ---------- Blog card ---------- */
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; }
.post-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.post-card .meta { font-size: 13px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.post-card h3 { font-size: 19px; line-height: 1.35; }
.post-card h3 a { color: var(--green-900); }
.post-card p { font-size: 15px; color: var(--ink-500); flex: 1; }
.post-card .more { font-weight: 700; color: var(--orange-600); font-size: 15px; }

/* ---------- Bài viết ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 48px 0 72px; }
.article h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.25; color: var(--green-900); margin-bottom: 14px; letter-spacing: -.02em; }
.article .article-meta { color: var(--ink-500); font-size: 15px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 25px; color: var(--green-900); margin: 40px 0 14px; }
.article h3 { font-size: 20px; color: var(--green-700); margin: 28px 0 10px; }
.article p { margin-bottom: 18px; }
.article ul, .article ol { margin: 0 0 18px 24px; }
.article li { margin-bottom: 8px; }
.article img { border-radius: var(--radius); margin: 8px 0 18px; }
.article blockquote {
  border-left: 4px solid var(--orange-500); background: var(--orange-100);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 18px;
  font-weight: 600;
}
.article .cta-box {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff; border-radius: var(--radius); padding: 28px; margin: 36px 0;
  text-align: center;
}
.article .cta-box h3 { color: #fff; margin-top: 0; }
.article .cta-box p { color: #d7e8dd; }

/* ---------- Vì sao / feature ---------- */
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.feature .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; background: var(--green-100); margin-bottom: 14px;
}
.feature h3 { font-size: 18px; color: var(--green-900); margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--ink-500); }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }
.founder img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.founder h2 { font-size: 30px; color: var(--green-900); margin-bottom: 14px; letter-spacing: -.02em; }
.founder p { color: var(--ink-700); margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #cfe0d5; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
  padding: 52px 0 36px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #cfe0d5; }
.site-footer .brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 18px 0; font-size: 14px; text-align: center; color: #9dbfab;
}

/* ============================================================
   TRANG BÁN HÀNG — phong cách sàn điện máy (sáng, vàng cam, giá to)
   ============================================================ */
.sale-topbar {
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  color: var(--ink-900); font-weight: 700; text-align: center;
  padding: 9px 4%; font-size: 15px;
}
.sale-hero {
  background: linear-gradient(160deg, #fff7e6, #fff 60%);
  padding: 46px 0 40px;
}
.sale-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .sale-hero-grid { grid-template-columns: 1fr; } }
.sale-hero .product-shot {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px; position: relative;
}
.sale-hero .product-shot img { border-radius: 10px; aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.discount-tag {
  position: absolute; top: -14px; right: -10px;
  background: var(--red-600); color: #fff; font-weight: 800;
  border-radius: 999px; padding: 10px 16px; font-size: 17px;
  box-shadow: 0 6px 16px rgba(220,38,38,.4);
  transform: rotate(6deg);
}
.sale-hero h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.2; color: var(--ink-900); letter-spacing: -.02em; margin-bottom: 14px; }
.sale-hero h1 span { color: var(--orange-600); }
.sale-hero .sub { font-size: 18px; color: var(--ink-700); margin-bottom: 20px; }
.sale-price-box {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.sale-price-box .now { font-size: 40px; font-weight: 800; color: var(--red-600); }
.sale-price-box .was { font-size: 20px; color: var(--ink-500); text-decoration: line-through; }
.sale-price-box .off { background: var(--red-600); color: #fff; font-weight: 700; padding: 4px 12px; border-radius: 8px; font-size: 15px; }
.usp-list { list-style: none; margin-bottom: 24px; }
.usp-list li { padding-left: 30px; position: relative; margin-bottom: 9px; font-size: 16px; }
.usp-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-600); font-weight: 800; font-size: 18px; }

/* Đếm ngược */
.countdown-wrap {
  background: #fff; border: 2px dashed var(--orange-500); border-radius: var(--radius);
  padding: 14px 18px; display: inline-flex; align-items: center; gap: 16px; margin-bottom: 22px;
  flex-wrap: wrap;
}
.countdown-wrap .label { font-weight: 700; color: var(--ink-700); font-size: 15px; }
.countdown { display: flex; gap: 8px; }
.countdown .unit {
  background: var(--ink-900); color: #fff; border-radius: 8px;
  min-width: 52px; text-align: center; padding: 7px 6px 5px;
}
.countdown .unit b { display: block; font-size: 22px; line-height: 1; }
.countdown .unit span { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #ffd9a8; }

/* Khối combo */
.combo-section { padding: 56px 0; background: var(--green-50); }
.combo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .combo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .combo-grid { grid-template-columns: 1fr; } }
.combo-card {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; position: relative; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.combo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.combo-card.hot { border-color: var(--orange-500); }
.combo-card .hot-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange-500); color: #fff; font-weight: 800; font-size: 13px;
  padding: 4px 16px; border-radius: 999px; white-space: nowrap;
}
.combo-card h3 { font-size: 19px; color: var(--ink-900); margin-bottom: 6px; }
.combo-card .c-price { font-size: 28px; font-weight: 800; color: var(--red-600); }
.combo-card .c-was { font-size: 15px; color: var(--ink-500); text-decoration: line-through; }
.combo-card .c-gift { font-size: 14px; color: var(--green-700); font-weight: 600; margin: 10px 0 16px; min-height: 42px; }

/* Form đặt hàng */
.order-section { padding: 56px 0; }
.order-box {
  max-width: 620px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 32px 28px;
}
.order-box h2 { text-align: center; font-size: 26px; color: var(--green-900); margin-bottom: 6px; }
.order-box .order-sub { text-align: center; color: var(--ink-500); font-size: 15px; margin-bottom: 22px; }
.combo-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.combo-option {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--line); border-radius: 12px; padding: 13px 16px; cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.combo-option:has(input:checked) { border-color: var(--orange-500); background: #fff7ed; }
.combo-option input { width: 20px; height: 20px; accent-color: var(--orange-600); }
.combo-option .co-name { font-weight: 700; font-size: 16px; }
.combo-option .co-gift { font-size: 13px; color: var(--green-700); }
.combo-option .co-price { margin-left: auto; font-weight: 800; color: var(--red-600); font-size: 17px; white-space: nowrap; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 10px;
  padding: 13px 14px; font-size: 16px; font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-600); }
.order-note { font-size: 13px; color: var(--ink-500); text-align: center; margin-top: 12px; }

/* Sticky CTA bar */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #fff; border-top: 2px solid var(--orange-500);
  box-shadow: 0 -6px 24px rgba(0,0,0,.12);
  padding: 10px 4%;
  display: flex; align-items: center; gap: 14px; justify-content: center;
}
.sticky-cta .sc-price { font-weight: 800; color: var(--red-600); font-size: 20px; }
.sticky-cta .sc-was { font-size: 13px; color: var(--ink-500); text-decoration: line-through; }
.sticky-cta .btn { padding: 12px 26px; font-size: 16px; white-space: nowrap; }
body.has-sticky { padding-bottom: 74px; }
@media (max-width: 620px) {
  .sticky-cta { gap: 8px; padding: 8px 3%; }
  .sticky-cta .sc-price { font-size: 17px; }
  .sticky-cta .sc-was { display: block; }
  .sticky-cta .btn { padding: 11px 14px; font-size: 14px; }
}

/* Popup SĐT */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(16,33,26,.65); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 5%;
}
.popup-overlay.show { display: flex; }
.popup {
  background: #fff; border-radius: var(--radius); max-width: 400px; width: 100%;
  padding: 30px 26px; text-align: center; position: relative;
  box-shadow: var(--shadow-lg);
}
.popup .close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  font-size: 26px; color: var(--ink-500); cursor: pointer;
}
.popup h3 { font-size: 22px; color: var(--green-900); margin-bottom: 8px; }
.popup p { font-size: 15px; color: var(--ink-500); margin-bottom: 16px; }
.popup input {
  width: 100%; border: 2px solid var(--line); border-radius: 10px;
  padding: 13px 14px; font-size: 16px; margin-bottom: 12px; font-family: inherit;
}
.popup input:focus { outline: none; border-color: var(--orange-500); }

/* Bảng thông số */
.spec-table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; font-size: 15px; }
.spec-table th { background: var(--green-50); color: var(--green-900); width: 38%; }

/* Gallery proof */
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
.proof-grid figure { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.proof-grid img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.proof-grid figcaption { font-size: 13px; padding: 10px 12px; color: var(--ink-700); font-weight: 600; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px;
}
.faq summary { font-weight: 700; cursor: pointer; font-size: 16px; color: var(--green-900); }
.faq details p { margin-top: 10px; color: var(--ink-700); font-size: 15px; }

/* Breadcrumb */
.breadcrumb { font-size: 14px; color: var(--ink-500); padding: 16px 0 0; }
.breadcrumb a { color: var(--ink-500); }
