@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */
:root {
    --primary-color: #113d30;      /* Xanh lá cây đậm cao cấp */
    --primary-light: #1e4d3f;      /* Xanh lá sáng hơn cho hover */
    --primary-bg: #f4f7f6;         /* Màu nền nhạt pha xanh */
    --accent-color: #f58620;       /* Cam ấm tươi tắn điểm nhấn */
    --accent-hover: #e07412;       /* Cam đậm hơn cho hover */
    --text-color: #2c3e35;         /* Màu chữ đậm pha xanh lá */
    --text-muted: #6b7f75;         /* Màu chữ mờ */
    --white: #ffffff;
    --gray-light: #f1f3f2;
    --border-color: #e2e8f0;
    --danger-color: #e53e3e;
    --success-color: #38a169;
    --font-sans: 'Quicksand', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 15px rgba(17, 61, 48, 0.05);
    --shadow-lg: 0 10px 30px rgba(17, 61, 48, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --container-width: 1200px;
}

/* --- RESET & BASIC STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 500;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button, input, textarea, select {
    font-family: var(--font-sans);
    font-size: 100%;
    outline: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    transition: var(--transition);
}

button {
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

button:hover {
    background-color: var(--primary-light);
}

/* --- GLOBAL CONTAINER --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- UTILITY CLASSES --- */
.section {
    padding: 60px 0;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    margin-bottom: 40px;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 61, 48, 0.2);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 134, 32, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- HEADER & NAVIGATION --- */
.top-bar {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-contact {
    display: flex;
    gap: 20px;
}

.top-bar-contact span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-social a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 12px;
}

.top-bar-social a:hover {
    color: var(--accent-color);
}

.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-color);
    padding: 6px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hotline-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(245, 134, 32, 0.2);
}

.hotline-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.03);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 5px;
}

/* --- BANNER / HERO SLIDER --- */
.hero-section {
    background: linear-gradient(135deg, rgba(17, 61, 48, 0.95), rgba(30, 77, 63, 0.8)), url('../images/banner-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- FEATURED CATEGORIES --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.category-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: var(--transition);
}

.category-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(17, 61, 48, 0.9), transparent);
    z-index: 2;
}

.category-info {
    position: relative;
    z-index: 3;
    color: var(--white);
}

.category-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.category-card:hover .category-img {
    transform: scale(1.08);
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
}

/* --- PRODUCT CARD SYSTEM --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.product-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.06);
}

.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.product-price-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

.product-old-price {
    font-size: 0.95rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

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

/* --- BLOG CARD SYSTEM --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
}

.blog-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-img {
    transform: scale(1.06);
}

.blog-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-summary {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-readmore {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.blog-readmore:hover {
    color: var(--accent-hover);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* --- CONTACT & FOOTER --- */
.contact-section {
    background-color: var(--primary-bg);
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: var(--white);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

.contact-info-panel h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info-list {
    margin-top: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-icon {
    font-size: 1.3rem;
    color: var(--accent-color);
    background-color: rgba(245, 134, 32, 0.1);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
}

.contact-info-text h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 1.05rem;
    font-weight: 600;
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

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

.form-control {
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(17, 61, 48, 0.08);
}

/* Footers */
.main-footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    padding: 70px 0 20px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.footer-desc {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* --- BANNER CAM KẾT (PROMISES) --- */
.promises-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0;
}

.promises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.promise-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.promise-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
}

.promise-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.promise-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* --- DETAILED VIEW PAGES --- */
.detail-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.detail-img-box {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.detail-info-box h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.detail-category {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.detail-price-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.detail-old-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

.detail-desc {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.detail-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Post Detail */
.post-detail-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.post-detail-header h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.post-detail-meta {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.post-detail-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    max-height: 500px;
    width: 100%;
}

.post-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-detail-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-detail-content p {
    margin-bottom: 25px;
}

/* --- DIALOGS & ALERTS --- */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background-color: rgba(56, 161, 105, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(56, 161, 105, 0.2);
}

.alert-danger {
    background-color: rgba(229, 62, 98, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(229, 62, 98, 0.2);
}

/* --- FIXED CONTACT BUTTONS (VN Style) --- */
.fixed-contact-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.fixed-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    position: relative;
}

.fixed-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    opacity: 0.4;
    z-index: -1;
    animation: pulse 1.8s infinite;
}

.zalo-btn {
    background-color: #0068ff;
}

.call-btn {
    background-color: #24d14c;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* --- RESPONSIVE DESIGN BREAKPOINTS --- */
@media (max-width: 992px) {
    .detail-box, .contact-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Mobile menu handles this */
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .top-bar-contact {
        justify-content: center;
        width: 100%;
    }
    
    .top-bar-social {
        display: none;
    }
    
    .contact-box {
        padding: 30px 20px;
    }
}
