/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --primary: #6b0f1a; /* Maroon */
    --accent: #c5a059;  /* Gold */
    --bg: #fffcf5;      /* Cream */
    --text: #333;
    --white: #fff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease-out;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* --- Global Reset --- */
html {
    scroll-behavior: smooth;
    
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Ye line side-scrolling aur auto-zoom ko rokti hai */
}

body {
    /* Niche wala padding-top header se gap banayega */
    padding-top: 60px !important; 
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%; /* Padding side mein rakhein */
    height: 80px;  /* Fixed height dein */
}

.logo {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.contact-btn {
    background: var(--primary);
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
}

/* Green Cart in Navigation */
.nav-cart-green {
    background-color: #2ecc71;
    color: white !important;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: 0.3s;
}

.nav-cart-green:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}

#cartCount {
    background: #6b0f1a;
    color: white;
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 50%;
    border: 1px solid white;
}

.auth-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}


/* ==========================================================================
   3. HERO SECTION (Home Page)
   ========================================================================== */
.hero-section {
    position: relative; 
    width: 100%;
    height: 500px; 
    overflow: hidden;
    background-color: var(--primary); 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1; 
    opacity: 0.8; 
}

.hero-content {
    position: relative;
    z-index: 2; 
    color: rgb(255, 254, 255);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 1.8); 
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem; 
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.sub-text {
    font-size: 1.6rem; 
    font-weight: 400;
}

/* ==========================================================================
   4. CATEGORY & MENU SECTION
   ========================================================================== */
.section-title {
    margin-top: 50px; /* Further reduced gap */
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #6b0f1a;
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 5%;
    justify-content: center;
    background: white;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: bold;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 30px 5%;
}

.cat-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
    text-align: center;
}

.cat-card:hover {
    transform: translateY(-5px);
}

.cat-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cat-title {
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

.product-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px; 
    justify-self: center; 
}

.price {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    margin: 10px 0;
}

.add-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.product-card .add-btn {
    padding: 10px 20px;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.2s;
}

.product-card .add-btn:hover {
    background: #500a12;
}

.qty-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    background: #fff0f0;
    padding: 5px;
    border-radius: 5px;
}

.qty-btn-small {
    background: var(--primary);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-small:hover {
    background: #333;
}

.qty-val-display {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary);
    width: 25px;
    text-align: center;
}

.view-all-container {
    text-align: center;
    margin: 30px;
    grid-column: 1 / -1;
}

.view-all-btn {
    background: transparent;
    border: 2px solid var(--primary);
    padding: 10px 30px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 50px;
}

/* ==========================================================================
   5. FOUNDER CARDS (About Page)
   ========================================================================== */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    padding: 20px;
    background: var(--bg);
    border-radius: 10px;
}

.founder-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.founder-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--accent);
}

.founder-name {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.founder-role {
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 15px;
}

.founder-desc {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   6. CONTACT & PAGE CONTAINERS
   ========================================================================== */
.page-container {
    margin: 30px auto !important; /* Ye white box ko header se door rakhega */
    padding: 40px 5%;
    max-width: 1000px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Mobile responsive gap */
@media (max-width: 768px) {
    body {
        padding-top: 100px !important;
    }
    .page-container {
        margin-top: 20px !important;
        width: 92%;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.contact-box {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.contact-box i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* ==========================================================================
   7. MODALS & FLOATING BUTTONS (FAB)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.google-btn {
    background: white;
    border: 1px solid #ccc;
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 20px;
}

/* --- PREMIUM FLOATING TRACK BUTTON --- */
.floating-track-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: linear-gradient(135deg, #6b0f1a 0%, #4a0a12 100%); 
    color: white !important;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(107, 15, 26, 0.4);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-track-btn i {
    font-size: 1.4rem;
    animation: pulse-icon 2s infinite;
}

.floating-track-btn:hover {
    background: linear-gradient(135deg, #c5a059 0%, #a68545 100%);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 25px rgba(197, 160, 89, 0.5);
}

@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* WhatsApp FAB (Right) */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1500;
}

/* UPI/Other FAB */
.upi-fab {
    right: 140px; 
    background: var(--primary); 
    color: var(--accent);
    padding: 15px 20px;
}

.upi-fab:hover {
    background: #500a12;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer {
    background: #222;
    color: #ccc;
    padding: 40px 5%;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    /* Teeno columns ki jagah laptop screen ke hisaab se set ki hai */
    grid-template-columns: 200px 1fr 200px; 
    gap: 50px; 
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.footer-col h3 {
    color: white;
    margin-bottom: 15px;
}

.footer-col a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 8px;
}

/* --- Social Media Real Brand Colors (Horizontal Set) --- */
.social-icons {
    display: flex;         /* Icons ko ek line mein laane ke liye */
    flex-direction: row;   /* Horizontal direction fix karne ke liye */
    gap: 15px;             /* Icons ke beech ki spacing */
    margin-top: 10px;      /* Upar se thodi jagah */
}

/* WhatsApp: Green Background */
.social-icons a[href*="whatsapp"], 
.social-icons a[href*="wa.me"] {
    background-color: #25D366 !important; 
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    text-decoration: none;
}

/* Instagram: Original Gradient Background */
.social-icons a[href*="instagram"] {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.copyright {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* ==========================================================================
   9. MEDIA QUERIES (Mobile Responsiveness)
   ========================================================================== */
@media (max-width: 768px) {
    body { padding-top: 60px; }
    .main-header { padding: 10px 15px; }
    .logo { font-size: 1.3rem; }

    .mobile-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    /* --- TOGGLE FIX START --- */
    .nav-links {
        display: none !important; /* Forcefully hide by default on mobile */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        z-index: 1001; /* Ensure it stays above other content */
    }

    .nav-links.active { 
        display: flex !important; /* Forcefully show when active class is added */
    }
    /* --- TOGGLE FIX END --- */

    .nav-cart-green {
        margin: 10px 0;
        width: fit-content;
    }

    .hero-section { height: 350px; }
    .main-title { font-size: 2.5rem; }
    .sub-text { font-size: 1.2rem; }

    .grid { padding: 15px; gap: 20px; }
    
    .filter-bar {
        justify-content: flex-start;
        padding: 25px;
        gap: 15px;
    }

    .filter-btn { padding: 8px 20px; font-size: 1rem; border-radius: 20px; }

    .floating-track-btn {
        bottom: 20px;
        left: 20px;
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    .floating-track-btn i { font-size: 1.2rem; }

    .upi-fab { right: 100px; }

    .page-container { padding: 20px 15px; }

    footer { padding: 30px 15px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
    .mobile-toggle { display: none; }
    /* Desktop fix: Always show nav on big screens */
    .nav-links { display: flex !important; } 
}

/* Tablet Adjustments */
@media (max-width: 1024px) {
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile Small Adjustments */
@media (max-width: 600px) {
    .contact-grid { grid-template-columns: 1fr; gap: 10px; }
    .contact-box p { font-size: 0.85rem; word-break: break-all; }
}


/* --- Features Section Icons --- */

/* --- Features Section Icons (Maroon Gradient - No Hover Effect) --- */
.features-section .contact-box i {
    font-size: 3rem;
    background: linear-gradient(135deg, #6b0f1a 0%, #4a0a12 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Hover section ko khali rakha hai taaki koi change na dikhe */
.features-section .contact-box:hover i {
    transform: none;
    background: linear-gradient(135deg, #6b0f1a 0%, #4a0a12 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.features-section h3 {
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 600;
}


/* --- Hero Button Animation --- */
.hero-content .view-all-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-content .view-all-btn:hover {
    background-color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* --- Mobile Fix for New Sections --- */
@media (max-width: 768px) {
    .features-section {
        padding: 40px 15px;
    }
    
    .features-section .contact-box i {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .founders-grid {
        grid-template-columns: 1fr;
    }
}

/* Tracking Progress Container */
.progress-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 30px;
}

/* Gray Line (Default) */
.progress-container::before {
    content: "";
    background: #e0e0e0;
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1;
}

/* Icons styling */
.step {
    z-index: 2;
    text-align: center;
    color: #ccc;
}

/* Active State (Jab status change ho) */
.step.active i {
    background: #6b0f1a !important; /* Maroon color */
    color: white;
}

.step.active p {
    color: #6b0f1a;
    font-weight: bold;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 20px;
}

.login-btn-nav {
    background: #6b0f1a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn-nav:hover {
    background: #4a0a12;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .nav-user-name { display: none; } /* Mobile par sirf photo dikhegi */
}

/* Premium Success Modal Design */
#successModal {
    backdrop-filter: blur(8px); /* Glass effect */
}

.success-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    border: 3px solid #6b0f1a;
    border-radius: 30px;
    padding: 50px 30px;
    box-shadow: 0 25px 50px -12px rgba(107, 15, 26, 0.25);
    position: relative;
    overflow: visible;
}

/* Floating Animation for Icon */
.success-icon-wrap {
    width: 100px;
    height: 100px;
    background: #6b0f1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -90px auto 20px; /* Icon ko modal ke upar float karne ke liye */
    border: 5px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.success-icon-wrap i {
    color: #c5a059; /* Gold color */
    font-size: 3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.order-confirmed-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #6b0f1a;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.order-id-badge {
    background: #6b0f1a;
    color: #c5a059;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(107, 15, 26, 0.3);
}

.track-btn-premium {
    background: #c5a059;
    color: #6b0f1a;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 30px;
    transition: 0.3s;
    text-transform: uppercase;
}

.track-btn-premium:hover {
    background: #6b0f1a;
    color: #c5a059;
    transform: translateY(-3px);
}

/* Responsive Modal Adjustments */

@media (max-width: 480px) {
    .success-modal-content {
        padding: 30px 20px;
    }

    .success-icon-wrap {
        width: 80px;
        height: 80px;
        margin: -70px auto 15px;
    }

    .success-icon-wrap i {
        font-size: 2.5rem;
    }

    .order-confirmed-title {
        font-size: 1.5rem;
    }

    .track-btn-premium {
        padding: 12px;
        font-size: 1rem;
    }
}

/* --- End of Style.css --- */
