/* ==========================================
   SƠN TRÀ HERBAL TEA - CUSTOM DESIGN SYSTEM
   ========================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Forest Green Color Palette */
    --primary-dark: #344E41;    /* Brunswick Green - chủ đạo tối */
    --primary: #3A5A40;         /* Hunter Green - màu chính */
    --primary-light: #588157;   /* Fern Green - nhấn sáng */
    --primary-soft: #edf2ee;    /* Nền xanh lá nhạt */
    --accent: #A3B18A;          /* Sage - màu nhấn phụ */
    --accent-light: #c2ceaf;    /* Sage nhạt hơn */
    --accent-dark: #6b8c5f;     /* Fern Green tối hơn */
    --bg-light: #f7f6f3;        /* Nền Timberwolf sáng */
    --bg-warm: #DAD7CD;         /* Timberwolf - nền ấm */
    --text-dark: #1e2e24;       /* Chữ tối Brunswick */
    --text-muted: #5a6b5e;      /* Chữ mờ xanh xám */
    --white: #ffffff;
    --glass-bg: rgba(218, 215, 205, 0.45); /* Glassmorphism Timberwolf */
    --glass-border: rgba(88, 129, 87, 0.20);
    --shadow-sm: 0 4px 6px -1px rgba(52, 78, 65, 0.06), 0 2px 4px -1px rgba(52, 78, 65, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(52, 78, 65, 0.10), 0 4px 6px -2px rgba(52, 78, 65, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(52, 78, 65, 0.14), 0 10px 10px -5px rgba(52, 78, 65, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

/* Reset & Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow: visible;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
    font-weight: 600;
    margin-top: 0;
}

.font-serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container-custom {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Header & Navigation */
.header-glass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(218, 215, 205, 0.42); /* Timberwolf glassmorphism */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(88, 129, 87, 0.20);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.header-scrolled {
    background: rgba(218, 215, 205, 0.88);
    border-bottom: 1px solid rgba(88, 129, 87, 0.30);
    box-shadow: var(--shadow-md);
}

.navbar-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 0;
}

/* Navbar Search Box */
.nav-search-container {
    flex-grow: 1;
    max-width: 420px; /* Tăng từ 200px lên 420px để rộng rãi hơn */
    margin: 0 24px; /* Tăng khoảng cách 2 bên */
    display: flex;
    justify-content: center;
}

.nav-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-search-input {
    width: 100%;
    padding: 10px 16px 10px 42px; /* Tăng thêm độ dày padding */
    border-radius: 24px; /* Tăng bo góc cho hiện đại */
    border: 1px solid rgba(88, 129, 87, 0.35);
    background: rgba(255, 255, 255, 0.88);
    font-size: 14px; /* Tăng font-size cho dễ nhìn */
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-dark);
}

.nav-search-input:focus {
    border-color: var(--primary-light);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.18);
}

.nav-search-icon {
    position: absolute;
    left: 16px; /* Căn chỉnh lại khoảng cách icon */
    color: var(--primary);
    font-size: 14px; /* Tăng cỡ icon */
    pointer-events: none;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.brand-container:hover .brand-logo {
    transform: scale(1.08) rotate(5deg);
    border-color: var(--primary);
    box-shadow: 0 6px 15px rgba(58, 90, 64, 0.25);
}

.brand-logo.logo-animate {
    animation: logoPulse 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logoPulse {
    0% { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    margin: 0;
}

.brand-subtitle {
    font-size: 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -4px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    margin-right: 16px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Cart Button */
.cart-btn {
    position: relative;
    background: rgba(88, 129, 87, 0.12); /* Nền mờ Fern Green */
    border: none;
    color: var(--primary); /* Biểu tượng giỏ hàng màu Hunter Green */
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.cart-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.cart-bounce {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.25) rotate(-8deg); }
    40% { transform: scale(0.92) rotate(5deg); }
    60% { transform: scale(1.12) rotate(-3deg); }
    80% { transform: scale(0.97) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white); /* Đổi viền sang trắng để dễ nhìn */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(52, 78, 65, 0.95) 0%, rgba(58, 90, 64, 0.92) 50%, rgba(88, 129, 87, 0.88) 100%), 
                url('/images/logo.jpg') no-repeat center center;
    background-size: cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(197, 155, 72, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    background: rgba(197, 155, 72, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent-light);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 54px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    font-weight: 300;
}

.btn-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary-custom {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-primary-custom:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 155, 72, 0.3);
    color: var(--primary-dark);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-custom:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Featured / Section Grid */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-subtitle {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
    height: 450px;
}

.about-experience-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: var(--white);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 200px;
    border: 2px solid var(--accent);
}

.about-exp-num {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.about-exp-text {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.about-content {
}

.about-feature {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.about-feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-feature-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background: rgba(218, 215, 205, 0.88); /* Trùng màu với thanh navbar */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(88, 129, 87, 0.20); /* Viền giống thanh navbar */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(88, 129, 87, 0.40);
}

.product-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: rgba(218, 215, 205, 0.50);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-category-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(10, 34, 24, 0.7);
    backdrop-filter: blur(4px);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
}

.product-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.rating-stars {
    color: var(--accent);
    font-size: 13px;
}

.rating-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.rating-count {
    font-size: 12px;
    color: var(--text-muted);
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f3f1;
    padding-top: 16px;
    margin-top: auto;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.btn-add-cart-quick {
    background: var(--primary-soft);
    color: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart-quick:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* Category Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.category-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    flex-wrap: wrap;
}

.category-filter-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.category-filter-btn:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.category-filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

.search-box {
    position: relative;
    min-width: 360px; /* Tăng từ 280px lên 360px */
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 46px; /* Tăng nhẹ độ cao của ô tìm kiếm */
    border-radius: 30px;
    border: 1px solid #e2e8e5;
    background: #fcfdfc;
    font-family: inherit;
    font-size: 14.5px; /* Tăng nhẹ cỡ chữ */
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(32, 92, 67, 0.1);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.blog-card {
    background: rgba(218, 215, 205, 0.88); /* Trùng màu với thanh navbar */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(88, 129, 87, 0.20); /* Viền giống thanh navbar */
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(88, 129, 87, 0.40);
}

.blog-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: rgba(218, 215, 205, 0.50);
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
}

.blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 12px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-title {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 12px;
}

.blog-summary {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
}

.blog-link:hover {
    color: var(--accent);
}

/* Detail Blog Page */
.blog-detail-container {
    max-width: 800px;
    margin: 120px auto 80px;
    padding: 0 20px;
}

.blog-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-detail-title {
    font-size: 40px;
    line-height: 1.25;
    margin-bottom: 20px;
}

.blog-detail-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

.blog-detail-image-wrapper {
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.blog-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail-body {
    font-size: 17px;
    color: var(--text-dark);
    line-height: 1.8;
}

.blog-detail-body p {
    margin-bottom: 24px;
}

.blog-detail-body strong {
    color: var(--primary-dark);
}

.blog-detail-body ul, .blog-detail-body ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.blog-detail-body li {
    margin-bottom: 12px;
}

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 30px;
}

.blog-back-btn:hover {
    color: var(--primary);
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: stretch;
}

.contact-info-panel {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(197, 155, 72, 0.1) 0%, transparent 60%);
    top: -50px;
    right: -50px;
}

.contact-info-title {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 12px;
}

.contact-info-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-text-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-text-val {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-socials {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.contact-form-panel {
    background: rgba(218, 215, 205, 0.88); /* Trùng màu với thanh navbar */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(88, 129, 87, 0.20); /* Viền giống thanh navbar */
}

.form-group-custom {
    margin-bottom: 24px;
}

.form-label-custom {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.form-input-custom, .form-textarea-custom {
    width: 100%;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid #d2dcd7;
    background: #fafcfa;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.form-input-custom:focus, .form-textarea-custom:focus {
    border-color: var(--primary-light);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(32, 92, 67, 0.08);
}

.form-validation-error {
    font-size: 12px;
    color: #dc3545;
    margin-top: 6px;
    display: block;
}

.contact-map-wrapper {
    margin-top: 50px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #102e21 0%, #1c4636 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 24px;
}

.map-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 16px;
}

/* Shopping Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 34, 24, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid #f0f3f1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.cart-close-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    gap: 16px;
}

.cart-empty-icon {
    font-size: 48px;
    color: #e2e8e5;
}

.cart-item-row {
    display: flex;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid #f7f9f7;
    padding-bottom: 16px;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f2f0;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #d2dcd7;
    background: #fafcfa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.qty-val {
    font-size: 13px;
    font-weight: 600;
    width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    transform: scale(1.15);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid #f0f3f1;
    background: #fafcfa;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin-bottom: 12px;
}

.cart-total-label {
    font-weight: 500;
    color: var(--text-dark);
}

.cart-total-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.btn-checkout {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    justify-content: center;
    margin-top: 8px;
}

.btn-checkout:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 62, 43, 0.2);
}

/* Product Detail Modal */
.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 34, 24, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-backdrop-custom.open {
    opacity: 1;
    visibility: visible;
}

.modal-container-custom {
    width: 90%;
    max-width: 800px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop-custom.open .modal-container-custom {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--white);
    color: var(--accent);
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-img-container {
        height: 250px !important;
    }
}

.modal-img-container {
    height: 100%;
    min-height: 400px;
    background: #eef2ef;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-panel {
    padding: 40px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.modal-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-benefits-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-benefits-list {
    padding-left: 20px;
    margin-bottom: 24px;
    color: var(--text-dark);
    font-size: 13.5px;
}

.modal-benefits-list li {
    margin-bottom: 6px;
}

.modal-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    border-top: 1px solid #f0f3f1;
    padding-top: 24px;
}

.modal-qty-select {
    display: flex;
    align-items: center;
    border: 1px solid #d2dcd7;
    border-radius: 8px;
    padding: 4px;
    background: #fafcfa;
}

.modal-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-qty-val {
    width: 30px;
    text-align: center;
    font-weight: 600;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast-custom {
    background: var(--primary-dark);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-150%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 300px;
}

.toast-custom.show {
    transform: translateX(0);
}

.toast-icon {
    color: var(--accent);
    font-size: 18px;
}

.toast-content {
    font-size: 14px;
    font-weight: 500;
}

/* Footer Custom Styles */
.footer-custom {
    background: #1d3327;   /* Rất tối của Brunswick Green */
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0 30px;
    border-top: 2px solid rgba(163, 177, 138, 0.3); /* Sage border */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col-title {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-about-text {
    margin: 16px 0 24px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-newsletter-text {
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    padding: 4px;
}

.footer-input {
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: var(--white);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    flex-grow: 1;
}

.footer-send-btn {
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    padding: 0 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.footer-send-btn:hover {
    background: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
}

/* ==========================================
   NEW ANIMATION SYSTEM - Reveal on Scroll
   ========================================== */

/* Page Enter / Leave Transitions (body-based) */
body.page-entering {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
}

body.page-ready {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.page-leaving {
    opacity: 0;
    transform: translateY(-80px) scale(0.97);
    transition: opacity 0.45s cubic-bezier(0.4, 0, 1, 1),
                transform 0.45s cubic-bezier(0.4, 0, 1, 1);
}

/* Scroll Reveal Base */
.reveal-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1) !important;
}

/* Reveal Variants */
.reveal-slide-up {
    transform: translateY(40px);
}

.reveal-slide-left {
    transform: translateX(-40px);
}

.reveal-slide-right {
    transform: translateX(40px);
}

.reveal-scale-up {
    transform: scale(0.92);
}

/* Stagger delays for child elements */
.reveal-stagger > .reveal-on-scroll:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > .reveal-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > .reveal-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* Enhanced card hover effects */
.product-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px) rotate(0.3deg);
}

.blog-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-6px) rotate(-0.2deg);
}

/* Button press effect */
.btn-custom:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

.btn-add-cart-quick:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

/* ==========================================
   HOMEPAGE NAVBAR CONTRAST
   ========================================== */

/* When at top of homepage (hero is visible behind transparent header) */
.home-header:not(.header-scrolled) {
    background: rgba(52, 78, 65, 0.25);
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

.home-header:not(.header-scrolled) .brand-title {
    color: rgba(255, 255, 255, 0.95);
}

.home-header:not(.header-scrolled) .brand-subtitle {
    color: rgba(218, 215, 205, 0.7);
}

.home-header:not(.header-scrolled) .brand-logo {
    border-color: rgba(255, 255, 255, 0.4);
}

.home-header:not(.header-scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.home-header:not(.header-scrolled) .nav-link:hover {
    color: #ffffff;
}

.home-header:not(.header-scrolled) .nav-link::after {
    background-color: rgba(255, 255, 255, 0.8);
}

.home-header:not(.header-scrolled) .nav-link.active {
    color: #ffffff;
}

.home-header:not(.header-scrolled) .cart-btn {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.home-header:not(.header-scrolled) .cart-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.home-header:not(.header-scrolled) .nav-search-input {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.home-header:not(.header-scrolled) .nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.home-header:not(.header-scrolled) .nav-search-icon {
    color: rgba(255, 255, 255, 0.6);
}

.home-header:not(.header-scrolled) .nav-search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .nav-menu {
        display: none; /* In production, we'd add a hamburger menu. For simplicity, we stack links in header or keep them clean. */
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 40px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 32px;
    }
    .filter-bar {
        border-radius: 20px;
        padding: 16px;
    }
    .category-list {
        justify-content: center;
        width: 100%;
    }
    .search-box {
        width: 100%;
        min-width: unset;
    }
}

/* ==========================================
   COLOR UTILITY CLASSES
   ========================================== */
.text-primary { color: var(--primary) !important; }
.text-primary-light { color: var(--primary-light) !important; }
.text-accent { color: var(--accent) !important; }
.text-white { color: var(--white) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ==========================================
    HOMEPAGE SLIDES - CATEGORY PAGES
    ========================================== */

/* Nền slide sản phẩm - Tông Forest Green (Timberwolf + Sage) */
.home-slide-card {
    background: linear-gradient(135deg, #f0f3ee 0%, #e4ebe0 100%) !important;
    border: 2px solid rgba(88, 129, 87, 0.28) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(52, 78, 65, 0.10) !important;
    overflow: hidden;
}

/* Chữ trong slide sản phẩm trang chủ để ĐẬM và dùng phông chữ cao cấp */
.home-slide-card .product-name {
    font-family: 'Playfair Display', serif !important;
    font-weight: 850 !important;
    font-style: italic !important;
    color: var(--primary-dark) !important;
    font-size: 21px !important;
    margin-bottom: 10px;
}

.home-slide-card .product-desc {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    font-size: 14.5px !important;
    line-height: 1.5;
    margin-bottom: 20px;
}

.home-slide-card .product-price {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    color: var(--primary) !important;
    font-size: 20px !important;
}

.home-slide-card .rating-num {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    color: var(--accent-dark) !important;
}

.home-slide-card .product-category-tag {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 850 !important;
    background: var(--primary) !important;
    color: var(--white) !important;
}

/* Kiểu dáng cho container slide trang chủ */
.home-slider-container {
    margin-top: 20px;
}

/* Image Slider/Carousel on Cards */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
    opacity: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.product-image-container:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.prev-slider-btn {
    left: 10px;
}

.next-slider-btn {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary);
    width: 12px;
    border-radius: 4px;
}

/* Product Detail Page Styling */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.detail-gallery {
    position: sticky;
    top: 120px;
}

.detail-main-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #fff;
    height: 480px;
    border: 1px solid rgba(88, 129, 87, 0.15);
}

.detail-main-img-wrapper:hover .slider-btn {
    opacity: 1;
}

.detail-main-img-wrapper .slider-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.detail-main-img-wrapper .slider-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.detail-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.detail-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.detail-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
    flex-shrink: 0;
}

.detail-thumb.active,
.detail-thumb:hover {
    border-color: var(--primary);
    opacity: 1;
}

.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-category {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.detail-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.detail-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
}

.detail-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-desc {
    color: var(--text-muted);
    font-size: 15.5px;
    margin-bottom: 30px;
}

.detail-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.detail-benefits li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 15px;
}

.detail-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.detail-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: auto;
    padding: 24px 0;
    border-top: 1px solid #f0f0f0;
}

.detail-qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.detail-qty-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.detail-qty-btn:hover {
    background: #f0f0f0;
}

.detail-qty-val {
    width: 40px;
    text-align: center;
    font-weight: 600;
}

/* Comments Section Styling */
.comments-section {
    border-top: 1px solid #e2e8e5;
    padding-top: 48px;
    margin-top: 60px;
}

.comments-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.comment-card {
    background: rgba(218, 215, 205, 0.88); /* Trùng màu với thanh navbar */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(88, 129, 87, 0.20); /* Viền giống thanh navbar */
    display: flex;
    gap: 16px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-body {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 600;
    font-size: 15px;
    color: var(--primary-dark);
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 14.5px;
    color: var(--text-dark);
    margin: 0;
}

.comment-form-container {
    background: rgba(218, 215, 205, 0.88); /* Trùng màu với thanh navbar */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(88, 129, 87, 0.20); /* Viền giống thanh navbar */
    height: fit-content;
}

.comment-form-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-control-custom {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    font-family: inherit;
    font-size: 14.5px;
    transition: var(--transition);
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.12);
}

/* Disclaimer text at footer */
.footer-disclaimer {
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .product-detail-layout, .comments-grid {
        grid-template-columns: 1fr;
    }
    .detail-main-img-wrapper {
        height: 350px;
    }
}

/* ==========================================
   CUSTOM SLIDE BACKGROUNDS & BOLD TYPOGRAPHY
   ========================================== */

/* Nền slide sản phẩm - Tông Forest Green (Timberwolf + Sage) */
.home-slide-card {
    background: linear-gradient(135deg, #f0f3ee 0%, #e4ebe0 100%) !important;
    border: 2px solid rgba(88, 129, 87, 0.28) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(52, 78, 65, 0.10) !important;
    overflow: hidden;
}

/* Chữ trong slide sản phẩm trang chủ để ĐẬM và dùng phông chữ cao cấp */
.home-slide-card .product-name {
    font-family: 'Playfair Display', serif !important;
    font-weight: 850 !important;
    font-style: italic !important;
    color: var(--primary-dark) !important;
    font-size: 21px !important;
    margin-bottom: 10px;
}

.home-slide-card .product-desc {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    font-size: 14.5px !important;
    line-height: 1.5;
    margin-bottom: 20px;
}

.home-slide-card .product-price {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    color: var(--primary) !important;
    font-size: 20px !important;
}

.home-slide-card .rating-num {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    color: var(--accent-dark) !important;
}

.home-slide-card .product-category-tag {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 850 !important;
    background: var(--primary) !important;
    color: var(--white) !important;
}

/* Kiểu dáng cho container slide trang chủ */
.home-slider-container {
    margin-top: 20px;
}

.home-slider-track {
    will-change: transform;
}

/* ==========================================
   AI CHATBOT WIDGET
   ========================================== */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
    font-family: 'Inter', sans-serif;
}

.chatbot-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(52, 78, 65, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chatbot-toggle-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 520px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chatbot-header {
    background: linear-gradient(135deg, #344E41, #3A5A40);
    padding: 16px 20px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #DAD7CD;
    border: 1px solid rgba(255,255,255,0.3);
}

.chatbot-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #DAD7CD;
}

.chatbot-subtitle {
    font-size: 11px;
    color: #A3B18A;
    margin: 2px 0 0 0;
}

.chatbot-close-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.chatbot-close-btn:hover {
    color: var(--white);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(244, 246, 244, 0.5);
}

.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
}

.chat-msg.bot {
    background: var(--white);
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
}

.chat-msg.user {
    background: var(--primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(88,129,87,0.15);
}

.chatbot-suggestions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 10px 20px 14px 20px;
    background: rgba(244, 246, 244, 0.5);
    overflow-x: auto;
    border-top: 1px solid rgba(0,0,0,0.03);
    scrollbar-width: thin;
    scrollbar-color: rgba(88, 129, 87, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
}

.chatbot-suggestions::-webkit-scrollbar {
    height: 5px;
    display: block;
}

.chatbot-suggestions::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-suggestions::-webkit-scrollbar-thumb {
    background: rgba(88, 129, 87, 0.25);
    border-radius: 4px;
}

.chatbot-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(88, 129, 87, 0.45);
}

.chat-suggest-btn {
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid rgba(88,129,87,0.25);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.chat-suggest-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.chatbot-input-area {
    padding: 14px 20px;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chatbot-input {
    flex-grow: 1;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input:focus {
    border-color: var(--primary);
}

.chatbot-send-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.chatbot-send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Khoá cuộn trang nền khi mở chatbot trên mobile */
body.chatbot-open {
    overflow: hidden !important;
}

@media (max-width: 576px) {
    .chatbot-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .chatbot-toggle-btn {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }

    .chatbot-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: -webkit-fill-available; /* Xử lý lỗi viewport height trên iOS Chrome/Safari */
        border-radius: 0;
        z-index: 9999;
        transform: translateY(100%) scale(1);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    }

    .chatbot-window.active {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    .chatbot-header {
        padding: 16px;
        border-radius: 0;
    }

    .chatbot-close-btn {
        font-size: 22px;
        padding: 8px; /* Tăng diện tích nhấn để dễ bấm */
    }

    .chatbot-messages {
        padding: 15px;
    }

    .chat-msg {
        max-width: 85%;
        padding: 10px 14px;
        font-size: 13px;
    }

    .chatbot-suggestions {
        padding: 8px 12px 10px 12px;
        gap: 6px;
    }

    .chat-suggest-btn {
        padding: 5px 10px;
        font-size: 11.5px;
    }

    .chatbot-input-area {
        padding: 12px 15px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); /* Tránh bị che bởi thanh điều hướng dưới iOS */
    }

    .chatbot-input {
        padding: 8px 14px;
        font-size: 13px;
    }

    .chatbot-send-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ==========================================
   MOBILE NAVIGATION DRAWER
   ========================================== */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    margin-left: 12px;
    transition: color 0.2s, transform 0.2s;
    align-items: center;
    justify-content: center;
}

.home-header:not(.header-scrolled) .mobile-menu-btn {
    color: var(--white);
}

.mobile-menu-btn:hover {
    color: var(--primary-dark);
}

.home-header:not(.header-scrolled) .mobile-menu-btn:hover {
    color: var(--white);
}

.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-sidebar.active {
    transform: translateX(0);
}

.mobile-nav-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.mobile-nav-close-btn:hover {
    color: var(--primary);
}

.mobile-nav-search {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-nav-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-nav-search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border-radius: 20px;
    border: 1px solid rgba(88, 129, 87, 0.3);
    background: rgba(244, 246, 244, 0.5);
    font-size: 13.5px;
    outline: none;
}

.mobile-nav-search-input:focus {
    border-color: var(--primary);
    background: var(--white);
}

.mobile-nav-search-icon {
    position: absolute;
    left: 12px;
    color: var(--primary);
    font-size: 13px;
}

.mobile-nav-links {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-links li {
    padding: 0 20px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-nav-link i {
    width: 20px;
    font-size: 16px;
    color: var(--primary);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.mobile-nav-link.active {
    font-weight: 600;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }
    .nav-search-container {
        display: none;
    }
}

/* ==========================================
   MOBILE RESPONSIVE OVERRIDES
   ========================================== */

/* Trượt sản phẩm trang chủ responsive */
.home-slide-card {
    min-width: calc(33.333% - 20px);
}

@media (max-width: 992px) {
    .home-slide-card {
        min-width: calc(50% - 15px) !important;
    }
}

@media (max-width: 768px) {
    /* Đảm bảo thẻ slider trên di động hiển thị 50% */
    .home-slide-card {
        min-width: calc(50% - 15px) !important;
    }

    /* Thu nhỏ thẻ sản phẩm toàn bộ trên di động */
    .product-card {
        border-radius: 12px !important;
    }
    
    .product-image-container {
        height: 150px !important; /* Thu gọn ảnh sản phẩm */
    }
    
    .product-card .product-content {
        padding: 12px !important;
    }

    .product-card .product-name {
        font-size: 14px !important;
        margin-bottom: 6px;
    }

    .product-card .product-desc {
        font-size: 11.5px !important;
        line-height: 1.4;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Giới hạn mô tả 2 dòng để tiết kiệm diện tích */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-card .product-price {
        font-size: 14px !important;
    }

    .product-card .product-rating {
        gap: 4px !important;
        margin-bottom: 10px !important;
    }

    .product-card .rating-stars {
        font-size: 9px !important;
    }

    .product-card .rating-num, 
    .product-card .rating-count {
        font-size: 10px !important;
    }

    .product-card .product-footer {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
        padding-top: 10px;
    }

    .product-card .product-footer div {
        display: flex;
        gap: 6px;
        width: 100%;
    }

    .product-card .btn-custom {
        padding: 6px 10px !important;
        font-size: 11px !important;
        text-align: center;
        flex-grow: 1;
    }

    .product-card .btn-add-cart-quick {
        width: 30px !important;
        height: 30px !important;
        font-size: 11px !important;
    }
}

/* Lưới giá trị cốt lõi trang chủ responsive */
.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .about-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Thiết lập hiển thị lưới trên mobile */
@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 cột sản phẩm trên di động */
        gap: 12px !important;
    }
}

/* Quy cách đóng gói - Weight Button Options */
.btn-weight-option {
    background: var(--white, #ffffff);
    border: 1.5px solid #d3ded9;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark, #2f3e46);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-weight-option:hover {
    border-color: var(--primary-light, #588157);
    background: var(--bg-light, #f7f6f3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.btn-weight-option.active {
    border-color: var(--primary, #3a5a40) !important;
    background: var(--primary-soft, #edf2ee) !important;
    color: var(--primary, #3a5a40) !important;
    box-shadow: 0 4px 12px rgba(58, 90, 64, 0.15) !important;
    font-weight: 700;
}

/* Responsive Product Card Badges (Tránh dính/đè lên nhau trên mobile/tablet) */
@media (max-width: 768px) {
    .product-badge {
        top: 8px !important;
        left: 8px !important;
        padding: 3px 8px !important;
        font-size: 10px !important;
    }
    .product-category-tag {
        top: 8px !important;
        right: 8px !important;
        padding: 3px 8px !important;
        font-size: 10px !important;
    }
}

@media (max-width: 576px) {
    .product-badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    .product-category-tag {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
}