:root {
    --primary-green: #3d6a36;
    --dark-green: #2a4a25;
    --accent-brown: #8b5a2b;
    --cream-bg: #fffbf2;
    --beige-bg: #f5f0e1;
    --text-primary: #3d3d3d;
    --text-light: #666;
    --white: #ffffff;
    --amazon-color: #232f3e;
    --flipkart-color: #2874f0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    --curve-radius: 20px;
    --curve-radius: 20px;
    --font-heading: 'Fraunces', serif;
    --font-heading-soft: 'Fraunces', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--cream-bg);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background-color: #3d6a36;
    /* Precision Forest Green */
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-primary);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 251, 242, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: var(--font-heading);
    font-variation-settings: "soft" 100;
    font-size: 2.2rem;
    font-weight: 700;
    color: #3d6a36;
    /* Branding Green */
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.8rem;
    color: #8d6e63;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.icon-btn:hover {
    color: var(--primary-green);
    transform: scale(1.1);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-green);
}

/* Hero Banner Section */
.hero-banner {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    /* Clear space below image if any */
}

.full-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-banner {
        /* Mobile height adjustment if banner is too wide */
        min-height: 200px;
    }

    .full-banner {
        min-height: 200px;
        object-fit: cover;
    }
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #443730;
}

.decoration {
    color: var(--accent-brown);
    /* gold/brownish */
    font-size: 1.2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--curve-radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.product-img img {
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.flavor {
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.weight {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.product-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    /* Center the add-to-cart button */
}

.btn-add-cart {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 90%;
    /* 90% width relative to container */
    transition: background 0.3s;
    font-size: 1rem;
}

.btn-add-cart:hover {
    background-color: var(--dark-green);
}

.marketplace-btns {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    width: 90%;
    /* Match width of add-to-cart button for consistency */
    margin-top: 5px;
}

.btn-marketplace {
    flex: 1;
    /* Half width */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    color: #fff;
    /* Default text white for colored buttons */
}

.btn-marketplace:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.btn-marketplace span {
    font-weight: 600;
}

.btn-marketplace img {
    height: 20px;
    width: auto;
    display: block;
    /* filter: brightness(0) invert(1); */
    /* Make icons white */
}

/* Amazon Theme */
.btn-marketplace.amazon {
    background-color: #282d37;
    /* Amazon Dark Blue/Grey */
}

/* Flipkart Theme */
.btn-marketplace.flipkart {
    background-color: #0067a9;
    /* Flipkart Blue */
}

/* Why Section */
.why-section {
    padding: 80px 0;
    background-color: var(--beige-bg);
    /* Light beige background break */
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.why-content h2 {
    font-size: 2.5rem;
    color: #443730;
    margin-bottom: 30px;
}

.why-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.why-list li i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

/* Reviews */
.reviews-section {
    padding: 80px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--cream-bg);
    /* Light cream */
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.quote-icon {
    color: #e0d0b0;
    font-size: 2rem;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1rem;
    color: #555;
}

.reviewer {
    font-weight: 700;
    color: #443730;
}

/* Footer */
.footer {
    background-color: #f4f1ea;
    padding: 60px 0 20px;
    border-top: 1px solid #e0dfdc;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    color: #443730;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: #e0dcd4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.social-links a:hover {
    background: var(--primary-green);
    color: white;
}

.marketplace-links .btn-sm {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 5px;
    margin-top: 5px;
    font-size: 0.85rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0dfdc;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive */
@media (max-width: 992px) {

    .products-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

/* Notification Dropdown */
.notification-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #eee;
}

.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
}

.notification-header {
    padding: 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.mark-read {
    font-size: 0.75rem;
    color: var(--primary-green);
    cursor: pointer;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #fafafa;
}

.notification-item.unread {
    background: #eef5ee;
    /* Very light green */
}

.notification-item i {
    color: var(--primary-green);
    background: #e8f5e9;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.notif-text {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #444;
}

.notif-time {
    font-size: 0.75rem;
    color: #999;
}

/* Nav Login Button */
.btn-login-nav {
    background-color: var(--primary-green);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    /* Pill shape */
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(61, 106, 54, 0.2);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #d32f2f;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-weight: bold;
}

/* Profile Dropdown */
.profile-dropdown-container {
    position: relative;
    cursor: pointer;
}

.profile-menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    width: 200px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    z-index: 1000;
}

.profile-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.profile-menu a:hover {
    background: #f9f9f9;
    color: var(--primary-green);
    padding-left: 25px;
}

.profile-menu a:last-child {
    border-bottom: none;
}

.profile-btn {
    border: none;
    background: none;
    padding: 0;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .header-container {
        position: relative;
    }

    .nav-menu {
        display: none;
        /* simple hide for now, would be toggle menu in full script */
    }

    .mobile-toggle {
        display: block;
    }

    .hero-container,
    .why-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
        /* Image on top mobile */
    }

    .hero-image {
        order: 1;
        margin-bottom: 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .products-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    font-size: 0.95rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Cart Counter Widget (Replaces Add to Cart Button) */
.cart-counter-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-green);
    color: white;
    padding: 5px;
    border-radius: 8px;
    width: 90%;
}

.cart-counter-widget button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-counter-widget button:hover {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.cart-counter-widget span {
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

/* Stagger animations for product grid items (nth-child logic needed or JS, simple for now) */
.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.product-card:nth-child(5) {
    animation-delay: 0.5s;
}

.product-card:nth-child(6) {
    animation-delay: 0.6s;
}