/* Flowgreen.in - Main Stylesheet */

/* Google Fonts - Jost */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Design System */
:root {
    /* Colors */
    --primary-green: #1B5E3C;
    --secondary-green: #0D4E39;
    --light-green: #27AE60;
    --background: #F9F9F9;
    --text-dark: #0D0C0C;
    --text-light: #666666;
    --white: #FFFFFF;
    --error-red: #EE0000;
    --warning-orange: #E68338;
    --border-color: #D3D3D3;
    
    /* Typography */
    --font-family: 'Jost', sans-serif;
    
    /* Spacing */
    --xs: 4px;
    --sm: 8px;
    --md: 16px;
    --lg: 24px;
    --xl: 32px;
    --2xl: 48px;
    --3xl: 64px;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--lg);
}

/* Typography */
h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-green);
}

h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary-green);
}

h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--secondary-green);
}

h4 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
}

p {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: var(--md);
}

.text-small {
    font-size: 14px;
}

.text-caption {
    font-size: 12px;
    color: var(--text-light);
}

.text-light {
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--md) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--sm);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: 40px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
}

.nav {
    display: flex;
    list-style: none;
    gap: var(--xl);
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-green);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--lg);
}

.cart-icon {
    position: relative;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--error-red);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.phone-display {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(27, 94, 60, 0.8), rgba(13, 78, 57, 0.8)), url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0 var(--3xl);
    text-align: center;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--md);
}

.hero p {
    font-size: 20px;
    margin-bottom: var(--xl);
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: var(--lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Delivery Badge */
.delivery-badge {
    background-color: var(--light-green);
    color: var(--white);
    padding: var(--sm) var(--lg);
    border-radius: var(--border-radius-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--sm);
    font-weight: 600;
    margin-bottom: var(--lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: var(--md);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--lg);
    margin: var(--2xl) 0;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: var(--lg);
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--sm);
    color: var(--text-dark);
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: var(--md);
}

.product-actions {
    display: flex;
    gap: var(--sm);
}

.discount-badge {
    position: absolute;
    top: var(--sm);
    right: var(--sm);
    background-color: var(--warning-orange);
    color: var(--white);
    padding: 4px 8px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 600;
}

.delivery-time-badge {
    position: absolute;
    top: var(--sm);
    left: var(--sm);
    background-color: var(--light-green);
    color: var(--white);
    padding: 4px 8px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 600;
}

/* Categories Section */
.categories {
    padding: var(--3xl) 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--lg);
    margin: var(--2xl) 0;
}

.category-card {
    text-align: center;
    padding: var(--xl);
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 48px;
    margin-bottom: var(--md);
}

/* Sections */
.section {
    padding: var(--3xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--2xl);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--2xl);
}

/* Value Propositions */
.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--lg);
}

.value-prop {
    text-align: center;
    padding: var(--xl);
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: var(--md);
}

/* Testimonials */
.testimonials {
    background-color: var(--white);
    padding: var(--3xl) 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--lg);
}

.testimonial {
    text-align: center;
    padding: var(--xl);
    background-color: var(--background);
    border-radius: var(--border-radius-lg);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--lg);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-green);
}

/* Newsletter */
.newsletter {
    background-color: var(--primary-green);
    color: var(--white);
    padding: var(--2xl) 0;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: var(--sm);
    max-width: 500px;
    margin: var(--lg) auto 0;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
}

/* Footer */
.footer {
    background-color: var(--secondary-green);
    color: var(--white);
    padding: var(--3xl) 0 var(--lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--xl);
    margin-bottom: var(--xl);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--sm);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: var(--md);
    margin-top: var(--lg);
}

.social-link {
    color: var(--white);
    font-size: 24px;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* Forms */
.form-group {
    margin-bottom: var(--lg);
}

.form-label {
    display: block;
    margin-bottom: var(--sm);
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(27, 94, 60, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Cart Page */
.cart-items {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--lg);
    margin-bottom: var(--lg);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--lg);
    padding: var(--lg) 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: var(--sm);
}

.cart-item-price {
    color: var(--primary-green);
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: var(--sm);
}

.quantity-btn {
    background-color: var(--background);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.quantity-display {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-summary {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--lg);
    height: fit-content;
}

.cart-total {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: var(--lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--md);
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 24px;
    }
    
    .hero {
        padding: 100px 0 var(--2xl);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .hero {
        padding: 80px 0 var(--xl);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-xs { margin-top: var(--xs); }
.mt-sm { margin-top: var(--sm); }
.mt-md { margin-top: var(--md); }
.mt-lg { margin-top: var(--lg); }
.mt-xl { margin-top: var(--xl); }

.mb-xs { margin-bottom: var(--xs); }
.mb-sm { margin-bottom: var(--sm); }
.mb-md { margin-bottom: var(--md); }
.mb-lg { margin-bottom: var(--lg); }
.mb-xl { margin-bottom: var(--xl); }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.gap-xs { gap: var(--xs); }
.gap-sm { gap: var(--sm); }
.gap-md { gap: var(--md); }
.gap-lg { gap: var(--lg); }
.gap-xl { gap: var(--xl); }