/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary: #2d5016; /* Deep Green */
    --secondary: #d97706; /* Amber/Honey */
    --accent: #f8f7f0; /* Light Cream */
    --ink: #111827; /* Near Black */
    --ink-60: rgba(17, 24, 39, 0.6);
    --ink-40: rgba(17, 24, 39, 0.4);
    --ink-30: rgba(17, 24, 39, 0.3);
    --ink-10: rgba(17, 24, 39, 0.1);
    --ink-5: rgba(17, 24, 39, 0.05);
    --border: rgba(17, 24, 39, 0.08);
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-lg: rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    color: var(--ink);
    margin-bottom: 24px;
}

p {
    color: var(--ink-60);
    margin-bottom: 16px;
}

a {
    transition: all 0.2s ease;
    text-decoration: none;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(45, 80, 22, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.35);
    filter: brightness(1.1);
}

.btn-secondary {
    background: white;
    color: var(--ink);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--accent);
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-esewa {
    background: linear-gradient(135deg, #60bb47 0%, #4a9838 100%);
    color: white;
    width: 100%;
    box-shadow: 0 4px 12px rgba(96, 187, 71, 0.2);
}

.btn-esewa:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(96, 187, 71, 0.3);
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-circle {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
}

.brand-text h1 {
    font-size: 1.35rem;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

.brand-text p {
    font-size: 11px;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 4px 0 0 0;
}

.nav-menu {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    opacity: 0.8;
}

.nav-menu a:hover {
    color: var(--primary);
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-btn {
    position: relative;
    background: var(--ink-5);
    border: none;
    cursor: pointer;
    color: var(--ink);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-btn:hover {
    background: var(--ink-10);
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--secondary);
    color: white;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    border: 2px solid white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        border-bottom: 1px solid var(--border);
        padding: 32px 24px;
        gap: 20px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    h2 {
        font-size: 2rem;
    }
}

/* ==================== HERO SECTION ==================== */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--accent) 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary), transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.hero-content h2 {
    font-size: 3.75rem;
    color: var(--ink);
    margin-bottom: 24px;
    line-height: 1.1;
}

.text-primary {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--ink-60);
    margin-bottom: 40px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    animation: fadeIn 1s ease-out;
}

.hero-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    padding: 120px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 28px;
}

.about-text p {
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-60);
    margin: 0;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image {
        order: -1;
    }
}

/* ==================== PRODUCTS SECTION ==================== */
.products-section {
    padding: 120px 0;
    background: #fafaf9;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-container {
    margin-bottom: 48px;
    display: flex;
    justify-content: center;
}

.search-input {
    width: 100%;
    max-width: 480px;
    padding: 16px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: white;
    box-shadow: 0 4px 6px -1px var(--shadow);
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 80, 22, 0.12);
}

.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 56px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tab {
    padding: 12px 28px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-60);
    transition: all 0.25s ease;
}

.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--accent);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-unit {
    font-size: 0.85rem;
    color: var(--ink-40);
    margin-bottom: 20px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.product-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    padding: 120px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-card {
    padding: 24px;
    background: var(--accent);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card p, .info-card a {
    font-size: 0.95rem;
    color: var(--ink-60);
    line-height: 1.6;
}

.info-card a { color: var(--primary); font-weight: 600; }

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-form {
    display: grid;
    gap: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

@media (max-width: 992px) {
    .contact-content { grid-template-columns: 1fr; }
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 64px;
}

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 24px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 2;
}

.footer-section a:hover { color: white; }

.footer-section ul { list-style: none; }

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==================== MODALS ==================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 24px;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-lg { max-width: 960px; }

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
}

.modal-footer {
    padding: 28px;
    border-top: 1px solid var(--border);
    background: #fafaf9;
}

.close-btn {
    background: var(--ink-5);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-details { flex: 1; }

.cart-item-name { font-weight: 700; margin-bottom: 2px; }

.cart-item-unit { font-size: 0.8rem; color: var(--ink-40); margin-bottom: 8px; }

.cart-item-controls { display: flex; align-items: center; gap: 12px; }

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
}

.cart-item-price { font-weight: 800; color: var(--primary); }

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 800;
}

/* Checkout */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .checkout-container { grid-template-columns: 1fr; }
}

.checkout-order-summary {
    background: #fafaf9;
    padding: 32px;
    border-right: 1px solid var(--border);
}

.checkout-form-section { padding: 32px; }
