* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Nav */
.header {
    background-color: #2e7d32; /* Màu xanh lá nông nghiệp */
    color: #fff;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 20px;
}

.nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.nav ul li a.active, .nav ul li a:hover {
    color: #a5d6a7;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/banners/banner-01.jpg') center/cover;
    background-color: #388e3c;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 { font-size: 36px; margin-bottom: 10px; }
.hero p { font-size: 18px; margin-bottom: 20px; }

.btn {
    display: inline-block;
    background-color: #fbc02d;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

/* Product Grid */
.featured-products {
    padding: 40px 0;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2e7d32;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.product-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    overflow: hidden;
}

.product-card img {
    display: block;
    width: 100%;
    height: 190px;
    flex: 0 0 190px;
    object-fit: contain;
    object-position: center;
    padding: 8px;
    margin: 0 auto 14px;
    border-radius: 10px;
    background: #f7faf8;
}

.product-card h3 {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--brand-deep);
    font-size: 17px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card .active-ingredient {
    display: -webkit-box;
    min-height: 4.5em;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Footer */
.footer {
    background: #1b5e20;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}
/* Styling cho Trang Danh Sách Sản Phẩm */
.product-page {
    padding: 30px 0;
}

.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-btn {
    padding: 8px 16px;
    border: 1px solid #2e7d32;
    background: #fff;
    color: #2e7d32;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.cat-btn.active, .cat-btn:hover {
    background: #2e7d32;
    color: #fff;
}

/* Nút Hotline & Zalo cố định */
.quick-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.btn-call, .btn-zalo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 25px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-call { background: #d32f2f; }
.btn-zalo { background: #0288d1; }

/* Modern brand system */
:root {
    --brand-deep: #123d2a;
    --brand: #1f7a4d;
    --brand-light: #eaf6ee;
    --accent: #f2b544;
    --ink: #173126;
    --muted: #617269;
    --surface: #ffffff;
    --line: #dce9df;
}

html { scroll-behavior: smooth; }
body {
    background: #f5f8f5;
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
}
.container { width: min(92%, 1180px); }
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(18, 61, 42, .96);
    box-shadow: 0 6px 24px rgba(18, 61, 42, .14);
}
.header-content { gap: 34px; min-height: 66px; }
.logo a { display: flex; align-items: center; gap: 12px; }
.logo img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.14)); }
.logo-copy { display: flex; flex-direction: column; line-height: 1.1; }
.logo-copy strong { color: #fff; font-size: 28px; letter-spacing: 1.8px; }
.logo-copy small { color: #bfe5ca; font-size: 11px; letter-spacing: .8px; margin-top: 5px; }
.nav { margin-left: auto; }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 25px; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-open { overflow: hidden; }
.nav ul { align-items: center; gap: 6px; }
.nav ul li { margin-left: 0; }
.nav ul li a {
    display: block;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 16px;
    transition: background .2s ease, color .2s ease;
}
.nav ul li a.active, .nav ul li a:hover { background: rgba(255,255,255,.13); color: #fff; }
.hero {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    display: flex;
    align-items: center;
    background: linear-gradient(110deg, #123d2a 0%, #1f7a4d 58%, #3c9a61 100%);
}
.hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -180px;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    box-shadow: 0 0 0 50px rgba(255,255,255,.04), 0 0 0 100px rgba(255,255,255,.03);
}
.hero .container { position: relative; z-index: 1; max-width: 780px; margin-left: max(4%, calc((100% - 1180px) / 2)); }
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.12; letter-spacing: -.8px; margin-bottom: 18px; }
.hero p { max-width: 620px; color: #dcf3e2; font-size: 18px; margin-bottom: 28px; }
.btn { background: var(--accent); border-radius: 8px; padding: 12px 22px; box-shadow: 0 7px 18px rgba(242,181,68,.2); transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(242,181,68,.3); }
.featured-products, .product-page, .articles-page, .contact-page, .detail-page { padding-top: 54px; padding-bottom: 54px; }
.featured-products h2 { font-size: 30px; margin-bottom: 28px; }
.product-card, .article-card, .contact-box, .detail-wrapper, .filter-bar {
    border-color: var(--line);
    box-shadow: 0 10px 30px rgba(18, 61, 42, .06);
}
.product-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(18, 61, 42, .12); }
.footer { margin-top: 0; background: linear-gradient(145deg, #123d2a, #0d2e20); padding: 52px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 45px; text-align: left; }
.footer-brand { color: #fff; font-size: 28px; font-weight: 800; letter-spacing: 2px; margin-bottom: 10px; }
.footer-brand-block { padding-right: 25px; border-right: 1px solid rgba(201,222,208,.2); }
.footer p { color: #c9ded0; margin: 5px 0; font-size: 15px; }
.footer-note { max-width: 300px; color: #9fc8ad !important; margin-top: 15px !important; }
.footer h3 { color: #fff; font-size: 17px; letter-spacing: .4px; margin-bottom: 14px; }
.footer a { color: #c9ded0; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-hotline a { color: var(--accent); font-size: 20px; font-weight: 800; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(201,222,208,.18); margin-top: 38px; padding-top: 18px; color: #8eb49b; font-size: 13px; }
.product-filter { gap: 18px; }
.search-field, .filter-row label { display: flex; flex-direction: column; gap: 7px; color: var(--brand-deep); font-weight: 700; font-size: 14px; }
.search-field input, .filter-row select { font: inherit; font-weight: 400; background: #fff; }
.filter-row { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 14px; }
.filter-row select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; }
.badge-cat { display: inline-flex; min-height: 26px; align-items: center; justify-content: center; align-self: flex-start; color: var(--brand); background: var(--brand-light); padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 800; line-height: 1.3; }
.product-card .badge-cat { align-self: center; }
.product-card-actions { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.product-card-actions .btn { padding: 10px 15px; }
.product-card-packages { display: -webkit-box; min-height: 3em; margin: 0 0 8px; overflow: hidden; color: var(--brand-deep); font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-call { color: var(--brand); font-size: 13px; font-weight: 800; text-decoration: none; }
.empty-state { grid-column: 1 / -1; padding: 45px 20px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 14px; }
.needs-section { padding: 30px 0 70px; }
.needs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.need-card { display: flex; flex-direction: column; min-height: 145px; justify-content: center; padding: 22px; border: 1px solid var(--line); border-radius: 15px; color: var(--brand-deep); background: #fff; text-decoration: none; box-shadow: 0 8px 22px rgba(18,61,42,.05); transition: transform .2s ease, box-shadow .2s ease; }
.need-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(18,61,42,.12); }
.need-icon { font-size: 25px; margin-bottom: 12px; }
.need-card strong { font-size: 17px; }
.need-card small { color: var(--muted); font-size: 13px; margin-top: 5px; }
.need-pest { border-top: 4px solid #d86b45; }.need-feed { border-top: 4px solid #4f9c5d; }.need-root { border-top: 4px solid #a97945; }
.quick-contact { right: 24px; bottom: 24px; }
.btn-call, .btn-zalo { padding: 11px 18px; font-size: 13px; }
.section-kicker { color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.page-intro { max-width: 700px; margin: 0 auto 30px; text-align: center; }
.page-intro h1 { color: var(--brand-deep); font-size: clamp(28px, 4vw, 42px); margin: 8px 0 12px; }
.page-intro p { color: var(--muted); }
.layout-error { padding: 15px; color: #b3261e; text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; padding: 8px 12px; background: #fff; color: var(--brand-deep); }
.skip-link:focus { left: 8px; }
.home-hero { min-height: 540px; }
.home-kicker { color: #ccebd5; }
.home-hero h1 { max-width: 720px; font-size: clamp(38px, 6vw, 70px); }
.home-hero h1 span { color: var(--accent); }
.home-hero p { max-width: 590px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.4); box-shadow: none; }
.btn-ghost:hover { background: #fff; color: var(--brand-deep); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 35px; color: #d9f0df; font-size: 14px; }
.home-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; padding: 75px 0 25px; }
.home-intro h2 { color: var(--brand-deep); font-size: clamp(27px, 4vw, 40px); line-height: 1.15; margin-top: 9px; }
.home-intro p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.home-section-heading { margin: 0 0 24px; }
.home-section-heading h2 { color: var(--brand-deep); font-size: 30px; margin-top: 7px; }
.text-link { color: var(--brand); font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--brand-deep); }
.featured-products { padding-top: 45px; padding-bottom: 75px; }
.home-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 35px; }
.featured-products .product-card { padding: 18px; position: relative; }
.featured-products .product-card::before { content: "AGROX"; position: absolute; top: 14px; left: 14px; color: var(--brand); background: var(--brand-light); padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 800; }
.benefits-section { background: var(--brand-light); padding: 68px 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 25px; }
.benefit-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 12px; margin-bottom: 18px; }
.benefit-card h3 { color: var(--brand-deep); margin-bottom: 7px; }
.benefit-card p { color: var(--muted); font-size: 15px; }
.home-knowledge { padding-top: 70px; padding-bottom: 75px; }
.latest-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.latest-article { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.latest-article img { width: 100%; height: 165px; object-fit: cover; background: var(--brand-light); }
.latest-article-body { padding: 18px; }
.latest-article h3 { color: var(--brand-deep); font-size: 17px; line-height: 1.35; margin: 9px 0; }
.latest-article p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.latest-article a { display: inline-block; margin-top: 13px; color: var(--brand); font-size: 14px; font-weight: 800; text-decoration: none; }
.home-cta { background: var(--brand-deep); color: #fff; padding: 58px 0; }
.home-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.home-cta h2 { max-width: 700px; font-size: clamp(24px, 3vw, 36px); line-height: 1.2; margin-top: 8px; }