:root {
    --primary-color: #2e7d32;
    /* Deep Fresh Green */
    --primary-light: #4caf50;
    --secondary-color: #ff9800;
    /* Vibrant Orange */
    --accent-color: #ff5722;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --bottom-nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Hind Siliguri', 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: var(--bottom-nav-height);
    /* Space for bottom nav */
}

/* Typography & Layout */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Utilities */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* Navbar (Desktop) */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.highlight {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 40px;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

/* Filter Strip (Mobile Style) */
.category-scroll-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 15px;
    /* Hide scrollbar space if any */
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
}

.category-filter {
    display: inline-flex;
    gap: 10px;
    padding: 0 10px;
    /* Side padding so first item isn't flush */
}

.filter-btn {
    white-space: nowrap;
    padding: 8px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: var(--white);
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

/* Product Grid (App Style) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-img {
    height: 140px;
    position: relative;
    background: #f9f9f9;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
}

.product-title {
    font-size: 1rem;
    margin: 4px 0 8px;
    line-height: 1.3;
    flex-grow: 1;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 0.9rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.add-to-cart:active {
    background: var(--primary-color);
    color: var(--white);
}

/* Bottom Nav (Mobile) */
.bottom-nav {
    display: none;
    /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    gap: 5px;
    width: 25%;
}

.nav-item i {
    font-size: 1.3rem;
    transition: var(--transition);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    transform: translateY(-2px);
}

.icon-holder {
    position: relative;
}

.mobile-cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.65rem;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 2px;
}

/* Cart Modal (Bottom Sheet on Mobile) */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: flex-end;
    /* Align to bottom for sheet effect */
    justify-content: center;
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    /* Max width for desktop drawer */
    height: 85vh;
    /* Take up 85% of screen height */
    border-radius: 20px 20px 0 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-header h3 {
    font-size: 1.4rem;
}

.close-cart {
    font-size: 2rem;
    padding: 0 10px;
    cursor: pointer;
}

/* Media Queries (Mobile Specific) */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }

    .navbar {
        display: none;
        /* Hide top nav on mobile */
    }

    .bottom-nav {
        display: flex;
        /* Show bottom nav */
    }

    .hero {
        height: 40vh;
        border-radius: 0 0 20px 20px;
        margin-top: 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols fixed for mobile */
        gap: 12px;
    }

    .how-to-order {
        padding-bottom: 40px;
        /* margin-bottom: 60px; */
    }

    /* Cart becomes full width sheet */
    .cart-content {
        max-width: 100%;
        height: 80vh;
    }
}

/* Process / How to Order Section */
.how-to-order {
    background: linear-gradient(180deg, #fdfcfc 0%, #f4f7f6 100%);
    position: relative;
    overflow: hidden;
}

.process-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    flex-wrap: wrap;
}

/* Connecting Line (Desktop) */
.process-wrapper::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
    display: none;
    /* Show only on desktop via media query if needed, or keeping it simple */
}

@media (min-width: 992px) {
    .process-wrapper::before {
        display: block;
    }
}

.process-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(46, 125, 50, 0.1);
    /* Transparent Primary */
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 4px solid var(--bg-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
}

.process-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-light);
}

.process-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.process-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Only need to ensure responsiveness for this */
@media (max-width: 768px) {
    .process-wrapper {
        flex-direction: column;
    }

    .process-wrapper::before {
        display: none;
    }

    .process-card {
        display: flex;
        text-align: left;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

    .icon-box {
        margin: 0;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .step-number {
        top: 50%;
        transform: translateY(-50%);
        right: 20px;
        font-size: 2.5rem;
        opacity: 0.5;
    }
}

/* Destkop Overrides to keep side drawer & Modern Look */
@media (min-width: 769px) {
    body {
        padding-bottom: 0;
        /* No bottom nav needed */
    }

    .container {
        max-width: 1400px;
        /* Wider container for big screens */
    }

    /* Modern Hero for Desktop */
    .hero {
        height: 70vh;
        margin: 20px auto;
        width: 98%;
        max-width: 1600px;
        border-radius: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .hero-content h1 {
        font-size: 4rem;
        /* Big Typography */
        font-weight: 800;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    /* Better Category Display on Desktop */
    .category-scroll-container {
        overflow: visible;
        margin-bottom: 40px;
        display: flex;
        justify-content: center;
    }

    .category-filter {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .filter-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
        cursor: pointer;
    }

    .filter-btn:hover {
        transform: translateY(-2px);
        background: var(--bg-light);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .filter-btn.active:hover {
        background: var(--primary-color);
        color: var(--white);
    }

    /* Premium Product Grid */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        /* Larger cards */
        gap: 30px;
    }

    .product-card {
        border: 1px solid transparent;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 0, 0, 0.05);
    }

    .product-img {
        height: 200px;
        /* Taller images on desktop */
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-price {
        font-size: 1.25rem;
    }

    /* Cart Drawer Animation */
    .cart-modal {
        align-items: flex-start;
        justify-content: flex-end;
    }

    .cart-content {
        height: 100vh;
        width: 450px;
        /* Fixed elegant width */
        border-radius: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        animation: slideInRight 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
}