/*
Theme Name: Nong San Dang Khoi Modern
Theme URI: https://nongsandangkhoi.vn/
Author: Dang Khoi Agri-Tech Design
Description: Giao diện hiện đại, chuẩn B2B/B2C nông sản Việt Nam, tích hợp quản lý danh mục trái cây chủ lực & trái cây theo mùa linh hoạt (ẩn/hiện dễ dàng), trang đối tác, blog tin tức và form liên hệ đặt sỉ/lẻ.
Version: 1.0.0
Text Domain: nongsandangkhoi
*/

:root {
    --primary-green: #6DAB3C;
    --primary-green-dark: #548A2B;
    --secondary-green: #82BD52;
    --soft-green-bg: #F2F8ED;
    --soft-green-border: #D4E8C4;
    --accent-orange: #F77F00;
    --accent-gold: #FCBF49;
    --bg-cream: #FAF9F6;
    --bg-white: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-light: #E2E8F0;
    --shadow-sm: 0 2px 8px rgba(109, 171, 60, 0.08);
    --shadow-md: 0 10px 25px rgba(109, 171, 60, 0.14);
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo span {
    color: var(--accent-orange);
}

.site-logo img,
.custom-logo-img {
    max-height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
}


.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.main-nav a:hover {
    color: var(--accent-orange);
}

.btn-cta {
    background: var(--primary-green);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-cta:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #548A2B 0%, #6DAB3C 60%, #82BD52 100%);
    color: #fff;
    padding: 80px 0;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(252, 191, 73, 0.2);
    color: var(--accent-gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Interactive Category Tabs & Sub-categories */
.section-padding {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}

.section-header h2 {
    font-size: 2.1rem;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.cat-tab-btn {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.cat-tab-btn .season-tag {
    background: #FEF3C7;
    color: #D97706;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 20px;
}

.cat-tab-btn.active, .cat-tab-btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
}

.subcat-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
    min-height: 42px;
}

.subcat-pill {
    background: var(--soft-green-bg);
    color: var(--primary-green);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}

.subcat-pill.active, .subcat-pill:hover {
    background: var(--accent-orange);
    color: #fff;
}

/* Product Showcase Grid (Blog / Info Style - No Cart) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.product-thumb {
    height: 210px;
    background: #E2E8F0;
    position: relative;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary-green);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-badge.seasonal {
    background: var(--accent-orange);
}

.product-body {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-cat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-green);
    font-weight: 700;
    margin-bottom: 6px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    flex-grow: 1;
}

.product-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-detail {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.9rem;
}

.link-detail:hover {
    color: var(--accent-orange);
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.partner-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

/* Wholesale & Retail Inquiry Form */
.inquiry-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    background: #6DAB3C;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 35px;
    margin-bottom: 40px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    opacity: 0.85;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .hero-grid, .form-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2rem;
    }
    .main-nav {
        display: none;
    }
}
