/* --- MODERN RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* --- NAVBAR UPGRADE --- */
nav.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 5%;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.logo-container { display: flex; justify-content: flex-start; }
.logo-img { height: 55px; width: auto; transition: transform 0.3s ease; }
.nav-links { display: flex; justify-content: center; gap: 30px; list-style: none; }
nav a { color: #2d3436; text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.3s; text-transform: uppercase; white-space: nowrap; }
nav a:hover { color: #25D366; }

/* --- HERO & SLIDER --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: smoothSlider 20s infinite ease-in-out;
}

.slide-1 { background-image: url('https://images.unsplash.com/photo-1548199973-03cce0bbc87b?q=80&w=1600'); animation-delay: 0s; }
.slide-2 { background-image: url('https://images.unsplash.com/photo-1589924691995-400dc9ecc119?q=100&w=1920'); animation-delay: 5s; }
.slide-3 { background-image: url('https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?q=80&w=1600'); animation-delay: 10s; }
.slide-4 { background-image: url('https://images.unsplash.com/photo-1516734212186-a967f81ad0d7?q=80&w=1920'); animation-delay: 15s; }

@keyframes smoothSlider {
    0% { opacity: 0; }
    5%, 25% { opacity: 1; }
    30%, 100% { opacity: 0; }
}

.overlay {
    background: rgba(0, 0, 0, 0.4);
    height: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* --- GRID & CARDS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 8%;
}

.card {
    background: white; border-radius: 20px; overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: 0.4s;
    border: 1px solid #eee; text-align: center;
}

.card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.fit-img { object-fit: contain !important; background: #fff; }

/* --- PRICE & TITLES --- */
.price { font-size: 1.2rem; color: #e67e22; font-weight: bold; margin: 5px 0; }
.section-title { text-align: center; padding: 20px 0; margin-top: 30px; background: #f8f8f8; border-bottom: 2px solid #ffcc00; }
.section { text-align: center; padding: 60px 10%; }
.section h2::after { content: ''; display: block; width: 50px; height: 3px; background: #ffcc00; margin: 10px auto; }

/* --- LEFT FLOATING CART BUTTON (Fixed Color & Position) --- */
.cart-icon-left {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    width: 60px !important;
    height: 60px !important;
    background-color: #ffcc00 !important;
    color: #000 !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 25px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    z-index: 9999 !important;
    text-decoration: none !important;
}

#cart-count-left {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: #ff0000 !important;
    color: white !important;
    font-size: 12px !important;
    padding: 3px 7px !important;
    border-radius: 50% !important;
    font-weight: bold !important;
}

/* --- RIGHT FLOATING SOCIALS --- */
.floating-socials {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10000;
}

.floating-socials a {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: white; font-size: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: 0.3s;
}

.wa-float { background-color: #25D366 !important; }
.ig-float { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888) !important; }

/* --- CART MODAL (SIDEBAR) --- */
#cart-modal {
    display: none;
    position: fixed;
    right: 0; top: 0;
    width: 350px; height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    z-index: 10001;
    padding: 25px;
    overflow-y: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 10px;
}

.checkout-btn {
    background: #27ae60;
    color: white;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

/* --- ADD TO CART BUTTON --- */
.add-to-cart-btn {
    background: #ffcc00;
    color: #000;
    border: none;
    padding: 12px;
    width: 90%;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin: 10px auto;
    display: block;
}

/* Loader */
#loader {
    position: fixed;
    width: 100%; height: 100%;
    background: white;
    display: flex; justify-content: center; align-items: center;
    z-index: 20000;
}
.spinner {
    width: 50px; height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ffcc00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
/* --- HERO SECTION (Common for all pages) --- */
.hero, .products-hero, .food-hero {
    height: 50vh !important; /* Height fix kar di */
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    margin-top: 0;
}

/* Products Page ki Image */
.products-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('images/acce.jpg') !important; /* Check kar ye image folder mein hai ya nahi */
}

/* Food Page ki Image */
.food-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('images/pfood.jpg') !important; /* Check image path */
}

/* Hero ke andar ka text center karne ke liye */
.hero .overlay, .products-hero .overlay, .food-hero .overlay {
    text-align: center;
    color: white;
    z-index: 10;
}
.products-hero, .food-hero {
    display: block !important; /* Grid hata kar block kar do */
    position: relative;
    overflow: hidden;
}

/* Isse text ekdum center mein aayega bina kisi shade break ke */
.products-hero h2, .food-hero h2 {
    position: relative;
    z-index: 5;
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* ============================================================
   CLEAN HERO SECTIONS (PRODUCTS, FOOD, ABOUT US)
   ============================================================ */

/* 1. Common Style: Sabhi pages ke head slider ke liye */
.products-hero, .food-hero, .about-hero {
    height: 50vh !important;
    width: 100% !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    animation: none !important; /* Slider animation band */
}

/* 2. Individual Images: Yahan har page ki apni photo set hai */
.products-hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                      url('images/acce.jpg') !important;
}

.food-hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                      url('images/pfood.jpg') !important;
}

.about-hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                      url('https://images.unsplash.com/photo-1516734212186-a967f81ad0d7?q=80&w=1920') !important; 
}

/* 3. Overlay & Text Fix: Bich ka shade aur centering ke liye */
.products-hero .overlay, 
.food-hero .overlay, 
.about-hero .overlay {
    background: transparent !important; /* Double shade na bane isliye transparent */
    position: relative !important;
    z-index: 10;
    width: auto !important;
    height: auto !important;
}

.products-hero h2, 
.food-hero h2, 
.about-hero h2 {
    color: white !important;
    font-size: 3.5rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.6);
}

/* Mobile Fix for Head Sliders */
@media (max-width: 768px) {
    .products-hero, .food-hero, .about-hero {
        height: 40vh !important;
    }
    .products-hero h2, .food-hero h2, .about-hero h2 {
        font-size: 2.2rem !important;
    }
}
/* --- ABOUT US HERO FIX --- */
.about-hero {
    height: 50vh !important;
    width: 100% !important;
    display: flex !important; /* Grid ko khatam karne ke liye */
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                      url('https://images.unsplash.com/photo-1516734212186-a967f81ad0d7?q=80&w=1920') !important;
    background-size: cover !important; /* Isse image stretch hokar poore dabbe mein aayegi */
    background-position: center !important;
    background-repeat: no-repeat !important; /* Isse image repeat nahi hogi */
    grid-template-columns: none !important; /* Navbar ki grid yahan band */
    animation: none !important; /* Slider wali animation band */
}

.about-hero .overlay {
    background: transparent !important; /* Double black shade hatane ke liye */
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.about-hero h1, .about-hero h2 {
    color: white !important;
    font-size: 3.5rem !important;
    text-transform: uppercase;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.6) !important;
    margin: 0 !important;
}
/* --- DELIVERY FORM STYLING --- */
#address-form-container {
    background-color: #fffaf0; /* Light cream background */
    border: 1px solid #ffcc00; /* Yellow border */
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

#address-form-container input {
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: border 0.3s ease;
    outline: none;
}

#address-form-container input:focus {
    border-color: #ffcc00; /* Focus hone par yellow border */
}

#address-form-container h4 {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

/* Pay button ko thoda highlight karne ke liye */
#address-form-container .checkout-btn {
    margin-top: 5px;
    background: #28a745 !important; /* Green for confirm */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#address-form-container .checkout-btn:hover {
    background: #218838 !important;
}
/* Product Image Fix - No Zoom */
.card .img-container {
    width: 100%;
    height: 250px; /* Card ki fix height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Isse image stretch ya zoom nahi hogi, poori dikhegi */
    transition: transform 0.3s ease;
}

/* Agar tu chahta hai ki mouse le jaane par halka sa zoom ho, toh ye rehne de, warna hata de */
.card:hover .product-img {
    transform: scale(1.05);
}

/* Hero Section Simple Fix */
.single-hero {
    background-attachment: scroll; /* Mobile par issue nahi karega */
}