:root {
    --primary-color: #1d7e3f;
    --primary-light: #2d9f52;
    --primary-lighter: #d4f4dd;
    --secondary-color: #0f5f2f;
    --dark-color: #1a1a1a;
    --light-bg: #f9fafb;
    --text-color: #2d3748;
    --border-color: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-200: #eeeeee;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Navbar */
.navbar-home {
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar-home.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.navbar-brand-home {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand-home i {
    font-size: 1.5rem;
}

.nav-link-home {
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.nav-link-home:hover {
    color: var(--primary-color) !important;
}

.btn-nav-login {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.btn-nav-login:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.95;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-color);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid white;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Section */
.section {
    padding: 64px 0;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 48px;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.stat-card {
    text-align: center;
    padding: 28px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.stat-label {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Category Chips */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.category-chip {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 12px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.category-chip:hover {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.product-card-home {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-home:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-color: var(--primary-light);
}

.product-image-home {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    overflow: hidden;
    position: relative;
}

.product-image-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-home {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-category-home {
    display: inline-block;
    background: var(--primary-lighter);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.product-name-home {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc-home {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating-home {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.stars {
    color: #fbbf24;
    letter-spacing: 1px;
}

.product-actions-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.btn-home-action {
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-detail-home {
    background: var(--primary-color);
}

.btn-detail-home:hover {
    background: var(--secondary-color);
}

.btn-rating-home {
    background: #f59e0b;
}

.btn-rating-home:hover {
    background: #d97706;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-lighter);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0 auto 16px;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-desc {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 48px 32px;
    border-radius: 10px;
    text-align: center;
    margin: 64px 0;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.cta-button {
    background: white;
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Footer */
.footer-home {
    background: var(--dark-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-home p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section {
        padding: 48px 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-image-home {
        height: 140px;
    }

    .cta-section {
        padding: 32px 24px;
        margin: 48px 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 32px;
    }

    .section {
        padding: 32px 0;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-hero {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-section {
        padding: 28px 16px;
        margin: 32px 0;
    }

    .cta-title {
        font-size: 1.4rem;
    }

    .navbar-brand-home {
        font-size: 1.1rem;
    }
}