/* --- 1. VARIABLES & RESET --- */
:root {
    --emerald-dark: #064e3b;
    --emerald-mid: #065f46;
    --emerald-light: #10b981;
    --gold: #d4af37;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #606770;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --transition-speed: 1500ms; /* Your requested fade speed */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. STICKY HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald-mid));
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.nav-logo {
    height: 45px;
    width: auto;
    transition: transform 0.3s;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    background: rgba(255,255,255,0.1);
    color: var(--gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- 3. HERO SLIDER --- */
.hero-slider {
    margin-top: 70px; /* Space for sticky header */
    position: relative;
    height: 500px;
    width: 100%;
    background: #000;
}

.banner-slides {
    list-style: none;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 10;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-img { display: none; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--gold);
    width: 25px;
    border-radius: 10px;
}

/* --- 4. SECTIONS & GRID --- */
.how-to-order {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    border-left: 6px solid var(--emerald-mid);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.how-to-order h2 { color: var(--emerald-dark); margin-bottom: 10px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

/* --- 5. PRODUCT CARDS & CARD SLIDER --- */
.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover { transform: translateY(-8px); }

.product-image-container {
    position: relative;
    height: 280px;
    width: 100%;
    overflow: hidden;
    background: #eee;
    cursor: zoom-in;
}

/* Transitions for multi-images in cards */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
}

.slide.active { opacity: 1; }

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--emerald-dark); }
.product-info p { font-size: 0.95rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 20px; }

.product-meta {
    margin-bottom: 15px;
}

.code-tag {
    background: var(--bg-light);
    color: var(--emerald-mid);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #ddd;
}

/* --- 6. BUTTONS --- */
.btn-info {
    background: #f8f9fa;
    color: var(--text-main);
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-info:hover { background: var(--emerald-dark); color: white; border-color: var(--emerald-dark); }

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-whatsapp:hover { background: var(--whatsapp-dark); }

/* --- 7. MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--white);
    margin: 5vh auto;
    padding: 40px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 24px;
    overflow-y: auto;
    position: relative;
    animation: modalSlide 0.4s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: sticky;
    top: -20px;
    float: right;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-muted);
}

/* --- 8. MOBILE NAV DRAWER --- */
.mobile-drawer {
    position: fixed;
    right: -100%;
    top: 0;
    width: 280px;
    height: 100%;
    background: var(--emerald-dark);
    z-index: 3000;
    transition: 0.4s;
    padding: 60px 30px;
}

.mobile-drawer.open { right: 0; }
.mobile-drawer a {
    display: block;
    color: white;
    font-size: 1.2rem;
    padding: 15px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.close-drawer {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* --- 9. FOOTER --- */
footer {
    background: var(--white);
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid #ddd;
}

footer p { color: var(--text-muted); margin-bottom: 10px; }

/* --- 10. RESPONSIVENESS --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-slider { height: 350px; }
    .desktop-img { display: none; }
    .mobile-img { display: block; }
    .modal-content { padding: 20px; margin: 10vh auto; }
}

/* --- CART SPECIFIC STYLES --- */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--emerald-dark);
    color: var(--gold);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1001;
    transition: transform 0.3s;
}

.floating-cart:hover { transform: scale(1.1); }

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: red;
    color: white;
    font-size: 0.7rem;
    padding: 3px 7px;
    border-radius: 50%;
    font-weight: bold;
}

/* Cart Item Layout in Modal */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info h4 { margin: 0; font-size: 1rem; }

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: #eee;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.checkout-btn {
    background: var(--whatsapp-green);
    color: white;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 20px;
    cursor: pointer;
}

.btn-add-cart {
    background: var(--gold);
    color: var(--emerald-dark);
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer;
    width: 100%;
}

/* --- Price Display Styles --- */
.price-container {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mrp-price {
    font-size: 0.85rem;
    color: #888;
    text-decoration: line-through;
}

.sale-price {
    font-size: 1.3rem;
    color: var(--emerald-dark);
    font-weight: 800;
}

.save-badge {
    background: #fff3cd;
    color: #856404;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    width: fit-content;
}

/* Cart Price Styling */
.cart-item-price {
    font-weight: bold;
    color: var(--emerald-dark);
    display: block;
    font-size: 0.9rem;
}

.cart-total-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    text-align: right;
    font-size: 1.2rem;
}
