:root {
    --green-main: #00b74f;
    --green-dark: #009640;
    --green-bg-banner: #e8f7ed;
    --bg-body: #f7f9f7;
    --text-color: #222222;
    --text-sub: #666666;
    --border-color: #e2e8e4;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-color);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1240px, 94%);
    margin: 0 auto;
}

/* 1. TOP ANNOUNCEMENT */
.top-announcement {
    background-color: var(--green-dark);
    color: var(--white);
    text-align: center;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
}

/* 2. HEADER MAIN */
.main-header {
    background-color: var(--green-main);
    color: var(--white);
    padding: 16px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
}

.logo-text p {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 700;
    margin-top: 2px;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 460px;
}

.search-input {
    width: 100%;
    padding: 11px 45px 11px 18px;
    border-radius: 25px;
    border: none;
    outline: none;
    font-size: 13px;
    color: #333;
}

.search-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--green-main);
    font-size: 16px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.action-icon {
    font-size: 22px;
}

.action-text small {
    display: block;
    font-size: 10px;
    opacity: 0.85;
}

.action-text strong {
    display: block;
    font-size: 12px;
    font-weight: 800;
}

/* 3. NAVIGATION BAR & HIỆU ỨNG GẠCH CHÂN */
.nav-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.nav-list {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-item {
    position: relative;
    display: block;
    padding: 14px 0;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    transition: color 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--green-main);
}

.nav-item.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--green-main);
    border-radius: 2px 2px 0 0;
}

/* BUTTONS */
.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--green-main);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.primary-button:hover {
    background-color: var(--green-dark);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #eaf8ee;
    color: var(--green-dark);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.danger-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fee2e2;
    color: #dc2626;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

/* PANELS & SECTIONS */
.panel {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
}

/* CÁC NÚT BỘ LỌC DẠNG PILL CẠNH CHỮ DANH MỤC */
.category-filter-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill-btn {
    padding: 7px 18px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #555555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-btn:hover {
    border-color: var(--green-main);
    color: var(--green-main);
}

.pill-btn.active {
    background-color: #ffffff;
    border-color: var(--green-main);
    color: var(--green-main);
    box-shadow: 0 2px 8px rgba(0, 183, 79, 0.15);
}

/* FOOTER */
footer {
    background-color: var(--green-main);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-col h3 {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-col p {
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 12px;
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    font-size: 11px;
    opacity: 0.85;
    padding-top: 20px;
}

/* TOAST */
.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--green-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* HERO BANNER SECTION */
.hero-section {
    margin: 24px 0;
}

.hero-banner-card {
    background-color: var(--green-bg-banner);
    border-radius: 20px;
    padding: 40px 50px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 30px;
}

.banner-badge {
    display: inline-block;
    background: #ffffff;
    color: var(--green-dark);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.banner-heading {
    font-size: 38px;
    font-weight: 900;
    color: #0f5128;
    line-height: 1.15;
    margin-bottom: 16px;
}

.banner-description {
    color: #4a6b55;
    font-size: 14px;
    margin-bottom: 24px;
}

.hero-banner-image img {
    border-radius: 16px;
    width: 100%;
}

/* HÀNG 4 TÍNH NĂNG */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 35px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
}

.feature-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eaf8ee;
    color: var(--green-main);
    display: grid;
    place-items: center;
    font-size: 18px;
}

.feature-text h3 {
    font-size: 13px;
    font-weight: 800;
}

.feature-text p {
    font-size: 11px;
    color: #777777;
}

/* LƯỚI SẢN PHẨM */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.product-card {
    padding: 0;
    overflow: hidden;
}

.product-thumb {
    height: 200px;
    background: #f3f4f6;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body {
    padding: 16px;
}

.product-category-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--green-dark);
    text-transform: uppercase;
}

.product-title {
    font-size: 14px;
    font-weight: 700;
    margin: 6px 0 10px;
}

.price-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.current-price {
    color: var(--green-dark);
    font-size: 16px;
    font-weight: 800;
}

.old-price {
    color: #999999;
    font-size: 12px;
}

.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.qty-btn {
    width: 24px;
    height: 24px;
    background: #f7f9f7;
    border: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--green-dark);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.qty-btn:hover {
    background: #eaf8ee;
}

.qty-input {
    width: 28px;
    height: 24px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #333333;
    outline: none;
    background: transparent;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.product-actions .btn-add-cart {
    flex: 1;
    justify-content: center;
}

.product-actions .btn-buy-now {
    padding: 10px 14px;
}

.footer-brand {
    margin-bottom: 12px;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
}

.footer-brand-title {
    font-size: 17px;
    color: #ffffff;
}