/* ==========================================
   VARIABLES & RESET
   ========================================== */
:root {
    --primary-blue: #004aad;
    --dark-blue: #003380;
    --light-bg: #f4f6f8;
    --text-color: #333;
    --white: #ffffff;
    --accent-orange: #ff9900;
    --accent-red: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

/* ==========================================
   HEADER
   ========================================== */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
}

.search-bar { display: flex; width: 40%; }
.search-bar input {
    width: 100%; padding: 10px; border: 1px solid #ccc;
    border-right: none; border-radius: 4px 0 0 4px;
}
.search-bar button {
    padding: 10px 20px; background-color: var(--primary-blue);
    color: white; border: none; border-radius: 0 4px 4px 0; cursor: pointer;
}

.user-actions { display: flex; align-items: center; gap: 20px; }
.user-actions a { text-decoration: none; color: #333; font-size: 14px; }
.cart { position: relative; }
.badge {
    background-color: var(--primary-blue); color: white;
    border-radius: 50%; padding: 2px 6px; font-size: 10px;
    position: absolute; top: -8px; right: -10px;
}

.nav-bar {
    background-color: var(--primary-blue);
    padding: 0 5%; display: flex; align-items: center; height: 50px;
    white-space: nowrap; overflow-x: auto;
}
.nav-bar a {
    color: #cce0ff; text-decoration: none; margin-right: 30px;
    font-weight: 500; transition: color 0.3s;
}
.nav-bar a.active { color: white; font-size: 18px; font-weight: bold; }
/* ENTERPRISE SINGLE-FRAME SLIDER */
.hero {
    background-color: #fff;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slider-container {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-sizing: border-box;
}

.hero-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover; /* Ensures image fills the frame like your screenshot */
}


.slide img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}



.hero-content {
    width: 40%;
    padding-left: 5%;
    z-index: 2;
}

.hero-content h1 { font-size: 3rem; color: #212121; margin-bottom: 10px; }
.hero-content p { font-size: 1.2rem; color: #666; margin-bottom: 20px; }

.hero-image {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    max-width: 80%;
    max-height: 90%;
    object-fit: contain;
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 80px; /* Tall buttons like Flipkart */
    border: 1px solid #ddd;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.prev-btn { left: 0; border-radius: 0 4px 4px 0; }
.next-btn { right: 0; border-radius: 4px 0 0 4px; }



/* Standardized Tall Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    width: 45px;
    height: 100px;
    border: 1px solid #ddd;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}
.slider-btn:hover { background: #fff; color: #2874f0; }
.prev-btn { left: 0; border-radius: 0 4px 4px 0; }
.next-btn { right: 0; border-radius: 4px 0 0 4px; }


/* --- SECTIONS --- */
.hot-deals, .products, .categories { padding: 40px 5%; }

.deals-grid, .product-grid {
    display: grid;
    gap: 30px;
}
.deals-grid { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.product-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.deal-card, .product-card {
    background: white; padding: 25px;
    border-radius: 12px; border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative; overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}
.deal-card:hover, .product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.deal-content { display: flex; align-items: center; gap: 20px; margin-top: 15px; }
.deal-content img { width: 50%; height: auto; object-fit: cover; border-radius: 8px; }
.product-card img { width: 100%; height: 200px; object-fit: contain; margin-bottom: 10px; }

.deal-text { width: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.deal-text h4 { font-size: 1.2rem; margin-bottom: 5px; color: #222; }
.deal-text .price { color: var(--primary-blue); margin: 10px 0; }
.product-card h4 { font-size: 16px; margin-top: 10px; color: #333; }

.btn-small, .btn-block {
    padding: 10px 20px; background-color: var(--primary-blue);
    color: white; border: none; border-radius: 6px;
    cursor: pointer; font-weight: 600; width: fit-content;
}
.btn-block { width: 100%; margin-top: 10px; }

/* --- SHOP BY CATEGORY (REDESIGNED DESKTOP GRID) --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 10px 0;
}
.cat-link {
    text-decoration: none;
    color: inherit;
}
.cat-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 180px;
    position: relative;
    overflow: hidden;
}
.cat-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(40,116,240,0.08);
    border-color: rgba(40, 116, 240, 0.15);
    background-color: #fcfdfe;
}
.cat-box img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.cat-box:hover img {
    transform: scale(1.08);
}
.cat-box p {
    margin: 0;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}
.btn-view-all-cats {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--primary-blue);
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,74,173,0.15);
}
.btn-view-all-cats:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

.tag {
    position: absolute; top: 15px; left: 15px;
    padding: 5px 10px; border-radius: 4px; color: white;
    font-size: 11px; font-weight: bold; text-transform: uppercase;
}
.tag.blue { background: var(--primary-blue); }
.tag.orange { background: var(--accent-orange); }
.tag.red { background: var(--accent-red); }

.price { font-size: 18px; font-weight: bold; margin: 10px 0; color: var(--primary-blue); }

footer {
    background-color: var(--primary-blue); color: white; padding: 50px 5%;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px;
}
.footer-links a { color: #cce0ff; text-decoration: none; display: block; margin-bottom: 8px; font-size: 12px; }
.social-icons i { font-size: 24px; margin-left: 20px; cursor: pointer; color: white; }



/* ==========================================
   ADDED: DROPDOWN & LOGIN STYLES
   (This is the only new part)
   ========================================== */
.dropdown { position: relative; display: inline-block; }
.dropbtn { cursor: pointer; display: flex; align-items: center; gap: 5px; }
.dropdown-content { display: none; position: absolute; background: white; min-width: 180px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 1000; right: 0; top: 100%; border-radius: 4px; border: 1px solid #eee; margin-top: 10px; }
.dropdown-content.show { display: block; }
.dropdown-content a { color: #333 !important; padding: 12px 20px; display: block; text-decoration: none; border-bottom: 1px solid #f9f9f9; }
.dropdown-content a:hover { background-color: #f4f6f8; color: var(--primary-blue) !important; }

/* Login Page Styles */
.auth-wrapper { display: flex; justify-content: center; padding: 50px 20px; }
.auth-box { width: 100%; max-width: 400px; background: white; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); padding: 30px; border: 1px solid #eee; }
.auth-tabs { display: flex; border-bottom: 1px solid #eee; margin-bottom: 25px; }
.tab-btn { flex: 1; padding: 12px; background: #f9f9f9; border: none; cursor: pointer; font-weight: 600; color: #555; }
.tab-btn.active { background: white; color: var(--primary-blue); border-bottom: 2px solid var(--primary-blue); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 14px; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; outline: none; }
.form-group input:focus { border-color: var(--primary-blue); }
.form-row { display: flex; gap: 10px; }
.btn-save { width: 100%; padding: 12px; background: var(--primary-blue); color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 16px; }
/* Error massage */
.error-msg {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border: 1px solid #ef9a9a;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

.success-msg {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border: 1px solid #a5d6a7;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}
/* ==========================================
   VARIABLES & RESET
   ========================================== */
:root {
    --primary-blue: #2874f0; /* Flipkart Blue */
    --light-bg: #f1f3f6;
    --text-color: #212121;
    --white: #ffffff;
    --accent-orange: #ff9900;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', 'Segoe UI', sans-serif; }
body { background-color: var(--light-bg); color: var(--text-color); }

/* ==========================================
   HEADER
   ========================================== */
header { background-color: var(--primary-blue); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 5%; max-width: 1200px; margin: 0 auto; height: 60px; }

.logo { font-size: 22px; font-weight: 800; color: white; font-style: italic; text-decoration: none; }
.logo a { color: white; text-decoration: none; }

.search-bar { display: flex; width: 45%; background: white; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.search-bar input { width: 100%; padding: 8px 15px; border: none; outline: none; font-size: 14px; }
.search-bar button { padding: 0 20px; background: white; color: var(--primary-blue); border: none; cursor: pointer; }

.user-actions { display: flex; align-items: center; gap: 30px; }
.user-actions a { text-decoration: none; color: white; font-weight: 600; font-size: 16px; }

/* --- FLIPKART STYLE DROPDOWN --- */
.dropdown { position: relative; display: inline-block; }
.dropbtn { 
    background-color: white; color: var(--primary-blue) !important; 
    padding: 5px 25px; border-radius: 2px; cursor: pointer; font-weight: 600;
    border: 1px solid #dbdbdb; text-decoration: none; display: flex; align-items: center; gap: 5px;
}
.dropbtn:hover { background-color: var(--primary-blue); color: white !important; border-color: white; }

.dropdown-content { 
    display: none; position: absolute; background-color: white; 
    min-width: 200px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); 
    z-index: 1000; top: 100%; left: 50%; transform: translateX(-50%); 
    margin-top: 5px; border-radius: 4px; overflow: hidden;
}
.dropdown-content::before {
    content: ""; position: absolute; bottom: 100%; left: 50%; margin-left: -8px; 
    border-width: 8px; border-style: solid; border-color: transparent transparent white transparent;
}
.dropdown-content.show { display: block; }

.dropdown-content a { 
    color: #212121 !important; padding: 14px 20px; text-decoration: none; 
    display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 400; 
    border-bottom: 1px solid #f0f0f0; 
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: #f5faff; font-weight: 600; color: var(--primary-blue) !important; }
.dropdown-content a i { width: 18px; color: var(--primary-blue); text-align: center; }

.auth-buttons a { background: white; color: var(--primary-blue) !important; padding: 5px 30px; font-weight: 600; border-radius: 2px; }

/* ==========================================
   PROFILE & ORDERS LAYOUT
   ========================================== */
.page-container { max-width: 1200px; margin: 20px auto; display: flex; gap: 20px; padding: 0 20px; align-items: flex-start; }
.sidebar { width: 280px; background: white; box-shadow: 0 2px 4px rgba(0,0,0,0.08); border-radius: 2px; }

.user-hello { padding: 15px; display: flex; gap: 15px; align-items: center; border-bottom: 1px solid #f0f0f0; background: white; }
.user-hello img { width: 50px; height: 50px; border-radius: 50%; }

.menu-item { padding: 15px 20px; display: flex; gap: 15px; text-decoration: none; color: #878787; border-bottom: 1px solid #f0f0f0; font-weight: 500; font-size: 15px; }
.menu-item:hover, .menu-item.active { color: var(--primary-blue); background: #f5faff; font-weight: 600; }
.menu-item i { width: 20px; text-align: center; color: var(--primary-blue); }

.main-content { flex: 1; background: white; padding: 30px; box-shadow: 0 2px 4px rgba(0,0,0,0.08); border-radius: 2px; min-height: 500px; }
.main-content h2 { margin-bottom: 25px; font-weight: 600; }

/* Forms */
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-size: 14px; color: #212121; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #e0e0e0; border-radius: 2px; font-size: 14px; outline: none; }
.form-group input:focus { border-color: var(--primary-blue); }
.btn-save { background: var(--primary-blue); color: white; border: none; padding: 14px 0; width: 150px; font-weight: 600; font-size: 15px; border-radius: 2px; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* Orders List */
.order-item { border: 1px solid #e0e0e0; border-radius: 4px; padding: 20px; margin-bottom: 15px; display: flex; gap: 20px; transition: 0.2s; }
.order-item:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.order-img { width: 80px; height: 80px; object-fit: contain; }
.order-details { flex: 1; }
.order-status { font-weight: 600; font-size: 14px; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.status-green { color: #26a541; }
.order-price { font-weight: 600; font-size: 16px; }

/* Login/Register */
.auth-wrapper { display: flex; justify-content: center; padding: 50px 20px; }
.auth-box { width: 100%; max-width: 450px; background: white; box-shadow: 0 4px 16px rgba(0,0,0,0.1); border-radius: 4px; }
.auth-tabs { display: flex; }
.tab-btn { flex: 1; padding: 15px; border: none; background: #f9f9f9; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; }
.tab-btn.active { background: white; border-bottom-color: var(--primary-blue); color: var(--primary-blue); }
.auth-form { padding: 30px; display: none; }
.auth-form.active { display: block; }

/* General */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; padding: 20px 5%; }
.product-card { background: white; padding: 15px; text-align: center; border: 1px solid #f0f0f0; }
.product-card img { width: 100%; height: 150px; object-fit: contain; margin-bottom: 10px; }
.price { font-size: 16px; font-weight: 600; margin: 5px 0; }


/* --- MODAL (POP-UP) STYLES --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); /* Black with opacity */
    backdrop-filter: blur(5px); /* Nice blur effect */
}

.modal-content {
    background-color: #fff;
    margin: 5% auto; /* 5% from top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 900px;
    border-radius: 8px;
    position: relative;
    display: flex;
    gap: 30px;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover { color: black; }

/* Modal Inner Layout */
.modal-left { width: 40%; display: flex; align-items: center; justify-content: center; background: #f9f9f9; }
.modal-left img { max-width: 100%; max-height: 400px; object-fit: contain; }
.modal-right { width: 60%; }

/* Mobile Modal */
@media (max-width: 768px) {
    .modal-content { flex-direction: column; width: 95%; margin: 10% auto; }
    .modal-left, .modal-right { width: 100%; }
    .modal-left img { height: 200px; }
}
/* --- CATEGORY PAGE UPDATES --- */

/* Breadcrumb */
.breadcrumb {
    background: #fff;
    padding: 10px 5%;
    font-size: 14px;
    color: #878787;
    border-bottom: 1px solid #f0f0f0;
}
.breadcrumb a { color: #878787; text-decoration: none; }
.breadcrumb span { color: #212121; font-weight: 500; margin-left: 5px; }

/* Layout Grid */
.category-layout {
    display: flex;
    padding: 10px 2%;
    background: #f1f3f6;
    gap: 10px;
    align-items: flex-start;
}
/* --- CATEGORY PAGE UPDATES --- */

/* Breadcrumb */
.breadcrumb {
    background: #fff;
    padding: 10px 5%;
    font-size: 14px;
    color: #878787;
    border-bottom: 1px solid #f0f0f0;
}
.breadcrumb a { color: #878787; text-decoration: none; }
.breadcrumb span { color: #212121; font-weight: 500; margin-left: 5px; }

/* ===== INFO STRIP (PREMIUM STYLE) ===== */
.info-strip {
    background-color: #ffffff !important;
    border-top: 1px solid #eef2f6 !important;
    border-bottom: 1px solid #eef2f6 !important;
    width: 100% !important;
    padding: 24px 0 !important;
}

.info-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 32px !important;
    padding: 0 5% !important;
}

.info-item {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    background: #fafbfe !important;
    border: 1px solid #eef2f6 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01) !important;
    width: 100% !important;
    max-width: 480px !important;
    transition: all 0.3s ease !important;
}
.info-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.04) !important;
    border-color: rgba(40, 116, 240, 0.15) !important;
}

.info-item i {
    font-size: 24px !important;
    color: var(--primary-blue) !important;
    background: #e8f0fe !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.info-item h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 2px 0 !important;
    color: #212121 !important;
}

.info-item p {
    font-size: 13px !important;
    color: #666 !important;
    margin: 0 !important;
}



/* --- ORDER TRACKING STEPPER --- */
.track-stepper { display: flex; justify-content: space-between; position: relative; margin-top: 15px; width: 300px; }
.track-stepper::before { content: ''; position: absolute; top: 10px; left: 0; width: 100%; height: 3px; background: #e0e0e0; z-index: 1; }
.step { position: relative; z-index: 2; text-align: center; font-size: 11px; color: #878787; font-weight: 600; width: 33%; }
.step .dot { width: 20px; height: 20px; background: #e0e0e0; border-radius: 50%; margin: 0 auto 5px auto; border: 3px solid white; box-shadow: 0 0 0 1px #e0e0e0; }
.step.active { color: #26a541; }
.step.active .dot { background: #26a541; box-shadow: 0 0 0 1px #26a541; }
/* --- PAGINATION --- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; padding: 20px 0; }
.page-btn { padding: 8px 16px; border: 1px solid var(--primary-blue); background: white; color: var(--primary-blue); border-radius: 4px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.page-btn.active { background: var(--primary-blue); color: white; }
.page-btn:hover:not(.active) { background: #f5faff; }
/* --- TOAST NOTIFICATIONS & BADGES --- */
             .review-form textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 4px; margin-top: 10px; resize: vertical; font-family: inherit; font-size: 14px; }
        
        /* Premium JS Star Rating CSS */
        .star-rating-custom { display: inline-flex; gap: 8px; margin-bottom: 8px; padding: 10px 15px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
                .rating-star { font-size: 26px; color: #ddd; cursor: pointer; transition: transform 0.2s ease, color 0.2s; }
        .rating-star.active { color: #FFD700; text-shadow: 0 0 5px rgba(255, 215, 0, 0.4); }
        .rating-star:hover { transform: scale(1.15); }


        
        /* NEW: Interactive Star Rating CSS */
        .star-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 5px; margin-bottom: 15px; }
        .star-rating-input input { display: none; }
        .star-rating-input label { font-size: 30px; color: #ddd; cursor: pointer; transition: 0.2s; margin: 0; line-height: 1; }
        .star-rating-input input:checked ~ label,
        .star-rating-input label:hover,
        .star-rating-input label:hover ~ label { color: #ff9f00; }
        
        #toast { visibility: hidden; min-width: 250px; background: #333; color: #fff; text-align: center; border-radius: 4px; padding: 16px; position: fixed; z-index: 9999; left: 50%; bottom: 30px; transform: translateX(-50%); font-size: 14px; }
.msg-user { background: #004aad; color: white; padding: 10px 15px; border-radius: 15px; align-self: flex-end; font-size: 14px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.msg-bot { background: white; color: #333; padding: 10px 15px; border-radius: 15px; align-self: flex-start; font-size: 14px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.chat-opt { background: white; border: 1px solid #004aad; color: #004aad; padding: 8px 12px; border-radius: 20px; cursor: pointer; font-size: 13px; font-weight: 600; transition: 0.3s; }
.chat-opt:hover { background: #004aad; color: white; }

#toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }
@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }

/* Out of Stock & Ratings Elements */
.out-of-stock-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; z-index: 5; font-weight: bold; color: #dc3545; font-size: 18px; backdrop-filter: grayscale(1); }
.btn-disabled { background: #ccc !important; cursor: not-allowed !important; color: #666 !important; }
.rating-badge { background: #26a541; color: white; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: bold; display: inline-flex; align-items: center; gap: 3px; margin-top: 5px; }

/* ==========================================
   MOBILE-FIRST AMAZON / FLIPKART STYLES
   ========================================== */

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    /* Set body bottom padding for fixed mobile bottom nav */
    body {
        padding-bottom: 70px !important;
    }
    
    /* Prevent overall horizontal scroll */
    body, html {
        overflow-x: hidden !important;
    }

    /* Hide desktop top navigation bar only on mobile */
    .nav-bar {
        display: none !important;
    }

    /* Hide wishlist and cart icons from desktop header only on mobile */
    .top-bar .user-actions .cart {
        display: none !important;
    }
    
    /* Header layout for mobile (Wrap items to place search bar in its own row) */
    .top-bar {
        flex-wrap: wrap !important;
        height: auto !important;
        padding: 10px 15px !important;
        background: var(--primary-blue) !important; /* Match desktop header color */
        gap: 5px !important;
    }
    
    .logo {
        font-size: 18px !important;
        flex: 1 !important;
    }
    
    .logo a {
        color: #ffffff !important;
    }
    
    .user-actions {
        gap: 15px !important;
    }
    
    .user-actions a {
        font-size: 13px !important;
        color: #ffffff !important;
    }
    
    /* Display full width search bar below logo on mobile */
    .search-bar {
        display: flex !important;
        width: 100% !important;
        order: 3 !important;
        margin-top: 8px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }
    
    .search-bar input {
        border-radius: 4px 0 0 4px !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    .search-bar button {
        padding: 8px 15px !important;
        border-radius: 0 4px 4px 0 !important;
        background-color: #ff9900 !important; /* Flipkart/Amazon Orange for Search button */
        color: white !important;
    }
    
    /* Display fixed bottom navigation bar (Amazon/Flipkart Style) */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background: #ffffff !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.06) !important;
        z-index: 99999 !important;
        justify-content: space-around !important;
        align-items: center !important;
        border-top: 1px solid #eef2f6 !important;
    }
    
    .mobile-bottom-nav .nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: #666666 !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        flex: 1 !important;
        height: 100% !important;
        gap: 3px !important;
        transition: color 0.15s ease-in-out !important;
    }
    
    .mobile-bottom-nav .nav-icon-wrapper {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        height: 24px !important;
    }
    
    .mobile-bottom-nav .nav-item i {
        font-size: 20px !important;
        margin: 0 !important;
    }
    
    .mobile-bottom-nav .nav-item.active {
        color: var(--primary-blue) !important;
    }
    
    .mobile-bottom-nav .badge {
        position: absolute !important;
        top: -6px !important;
        right: -8px !important;
        background-color: #ff3366 !important;
        color: #ffffff !important;
        border-radius: 50% !important;
        min-width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
        font-weight: bold !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 4px !important;
        border: 2px solid #ffffff !important;
        box-sizing: content-box !important;
    }
    
    /* Mobile Dropdown Fix */
    .dropdown {
        position: relative !important;
    }
    .dropbtn {
        background: transparent !important;
        color: #ffffff !important;
        border: none !important;
        padding: 5px 0 !important;
        font-size: 13px !important;
        box-shadow: none !important;
    }
    .dropbtn:hover {
        background: transparent !important;
        color: #ffffff !important;
    }
    .dropbtn i {
        color: #ffffff !important;
    }
    .dropdown-content {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        bottom: auto !important;
        left: auto !important;
        right: 0 !important;
        width: 150px !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
        padding: 5px 0 !important;
        background: #ffffff !important;
        z-index: 10005 !important;
    }
    .dropdown-content a {
        padding: 12px 16px !important;
        font-size: 14px !important;
        color: #333333 !important;
        border-bottom: 1px solid #f0f2f5 !important;
        display: block !important;
        text-align: left !important;
    }
    .dropdown-content a:last-child {
        border-bottom: none !important;
    }

    /* Page Container & Sidebar adjustments */
    .page-container, .checkout-container {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 10px !important;
        margin-top: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .page-container > div, .page-container > aside, .page-container > main, .checkout-main, .checkout-side {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    .sidebar {
        width: 100% !important;
    }
    .filter-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: -280px !important;
        width: 280px !important;
        height: 100% !important;
        background-color: #fff !important;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1) !important;
        padding: 60px 20px 20px 20px !important;
        z-index: 10002 !important;
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
    }
    .filter-sidebar.active {
        right: 0 !important;
    }
    
    /* Slider Arrow Button Size reduction & Stack centering */
    .slider-btn {
        width: 30px !important;
        height: 60px !important;
        font-size: 16px !important;
    }
    
    .slider-container {
        height: 380px !important;
    }
    
    .slide {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 20px !important;
        background: #fdf5e6 !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero-content {
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding-right: 0 !important;
        margin-bottom: 15px !important;
    }
    
    .hero-content h1 {
        font-size: 20px !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
        font-weight: 700 !important;
        color: #212121 !important;
        text-align: center !important;
    }
    
    .hero-content p {
        font-size: 12px !important;
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
        color: #666 !important;
        text-align: center !important;
    }
    
    .hero-content .btn-save {
        padding: 6px 15px !important;
        font-size: 11px !important;
        width: fit-content !important;
        margin: 0 auto !important;
        background: #ff9900 !important;
        display: inline-block !important;
    }
    
    .hero-image {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 0 !important;
    }
    
    .hero-image img {
        max-width: 100% !important;
        max-height: 180px !important;
        object-fit: contain !important;
    }
    
    /* Clean Vertical Stack for Value Strip */
    .info-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
        padding: 0 16px !important;
    }
    
    .info-item {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 16px !important;
        width: 100% !important;
        border-right: none !important;
        border-bottom: none !important;
        padding: 16px !important;
        background: #ffffff !important;
        border: 1px solid #eef2f6 !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important;
    }
    
    .info-item i {
        font-size: 20px !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: #f0f6ff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        color: var(--primary-blue) !important;
    }
    
    .info-item h4 {
        font-size: 14px !important;
        margin-bottom: 2px !important;
        font-weight: 700 !important;
    }
    
    .info-item p {
        font-size: 12px !important;
        color: #666 !important;
    }
    
    /* Shop by Category: Clean 2-column Grid Alignment */
    .categories {
        padding: 20px 16px !important;
        background: #ffffff !important;
        border-bottom: 4px solid #f1f3f6;
        text-align: center !important;
    }
    
    .categories h3 {
        display: block !important;
        font-size: 15px !important;
        margin-bottom: 12px !important;
        font-weight: 700 !important;
        color: #212121 !important;
        text-align: center !important;
    }
    
    .category-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 10px 0 !important;
        overflow-x: visible !important;
        flex-wrap: wrap !important;
        max-width: 500px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    
    .category-grid a {
        flex: none !important;
        width: 100% !important;
        text-decoration: none !important;
    }
    
    .category-grid .cat-box {
        border: 1px solid #eef2f6 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important;
        padding: 12px !important;
        background: white !important;
        border-radius: 12px !important;
        height: 120px !important;
        aspect-ratio: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    
    .category-grid .cat-box img {
        width: 48px !important;
        height: 48px !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        object-fit: contain !important;
    }
    
    .category-grid .cat-box p {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #333 !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Products & Hot Deals sections padding/margin adjustment (Remove extra space) */
    .products, .hot-deals {
        padding: 20px 12px !important;
        background: #ffffff !important;
        border-bottom: 4px solid #f1f3f6;
        margin: 0 !important;
    }
    
    .products h3, .hot-deals h3 {
        font-size: 15px !important;
        margin-bottom: 12px !important;
        font-weight: 700 !important;
        color: #212121 !important;
        text-align: left !important;
        margin-top: 0 !important;
    }
    
    /* Disable swipe horizontal carousels, show scaled grids like PC */
    .product-grid, .deals-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 10px 0 !important;
        overflow-x: visible !important;
    }
    
    .product-card, .deal-card {
        flex: none !important;
        width: 100% !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
        border: 1px solid #eef2f6 !important;
        padding: 15px !important;
        margin-bottom: 0 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        border-radius: 8px !important;
        background: white !important;
        text-align: center !important;
    }
    
    .product-card img {
        height: 110px !important;
        object-fit: contain !important;
        margin-bottom: 10px !important;
        width: 100% !important;
    }
    
    .product-card h4, .deal-text h4 {
        font-size: 12px !important;
        color: #212121 !important;
        line-height: 1.3 !important;
        height: 32px !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        margin-top: 5px !important;
        font-weight: 500 !important;
        text-align: center !important;
    }
    
    .product-card .price, .deal-text .price {
        font-size: 13px !important;
        font-weight: bold !important;
        margin: 5px 0 !important;
        color: var(--primary-blue) !important;
        text-align: center !important;
    }
    
    .product-card .btn-block, .deal-text .btn-small {
        font-size: 11px !important;
        padding: 6px 10px !important;
        border-radius: 4px !important;
        margin-top: 5px !important;
        background: var(--primary-blue) !important;
        color: white !important;
        border: none !important;
        font-weight: 600 !important;
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }
    
    /* Hot Deals Responsive Layout (Vertical flow inside 2 columns) */
    .deal-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
        align-items: center !important;
        display: flex !important;
        width: 100% !important;
    }
    
    .deal-content img {
        width: 100% !important;
        height: 110px !important;
        object-fit: contain !important;
        margin-bottom: 0 !important;
    }
    
    .deal-text {
        width: 100% !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Footer Neat Stack & Center alignment */
    footer {
        padding: 30px 20px !important;
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
    }
    
    .footer-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .footer-links div {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 24px !important;
        width: 100% !important;
    }
    
    .footer-links a {
        margin-bottom: 0 !important;
        font-size: 13px !important;
        color: #cce0ff !important;
    }
    
    .social-icons {
        display: flex !important;
        justify-content: center !important;
        gap: 24px !important;
        width: 100% !important;
        margin-top: 16px !important;
    }
    
    .social-icons i {
        margin: 0 !important;
        font-size: 24px !important;
        color: #ffffff !important;
    }
    
    /* Login / Register UI Responsive Tweaks */
    .auth-wrapper {
        padding: 20px 10px !important;
    }
    .auth-box {
        padding: 20px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .form-group input, .form-group textarea {
        font-size: 15px !important;
        padding: 12px !important;
    }
    .btn-save {
        padding: 14px !important;
        font-size: 16px !important;
    }
    
    /* Modal Layout Fixes on Mobile */
    .modal-content {
        flex-direction: column !important;
        width: 95% !important;
        margin: 15% auto !important;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-left, .modal-right {
        width: 100% !important;
    }
    .modal-left img {
        height: 180px !important;
    }
}

/* Compact 2-column Grid for Storefront Product Lists (Category Page & Search) */
@media (max-width: 576px) {
    .products {
        padding: 15px 8px !important;
        background: #ffffff;
    }
    
    .products h3 {
        font-size: 13px !important;
        margin-bottom: 10px !important;
        font-weight: bold;
    }
    
    /* Category page vertical list uses 2 columns, but home carousel does not override this */
    .product-grid:not(.home-carousel) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 !important;
    }
    
    .product-grid:not(.home-carousel) .product-card {
        padding: 10px !important;
        border-radius: 6px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 100% !important;
        border: 1px solid #e0e0e0 !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
        background: #ffffff !important;
    }
    
    .product-card img {
        height: 110px !important;
        object-fit: contain !important;
        margin-bottom: 6px !important;
    }
    
    .product-card h4 {
        font-size: 12px !important;
        color: #212121 !important;
        line-height: 1.3 !important;
        height: 32px !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        margin-top: 4px !important;
        font-weight: 500 !important;
        text-align: left !important;
    }
    
    .product-card .price {
        font-size: 13px !important;
        font-weight: bold !important;
        margin: 4px 0 !important;
        color: #212121 !important;
        text-align: left !important;
    }
    
    .product-card .btn-block {
        font-size: 11px !important;
        padding: 6px 10px !important;
        border-radius: 4px !important;
        margin-top: 5px !important;
        background: #004aad !important;
        color: white !important;
        border: none !important;
        font-weight: 600 !important;
        width: 100% !important;
    }
}

/* ==========================================
   LIVE SEARCH AUTOCOMPLETE DROPDOWN
   ========================================== */
.live-search-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 10001;
    max-height: 350px;
    overflow-y: auto;
    margin-top: 5px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background-color: #f5f9ff;
}

.search-item img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

.search-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.search-item-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #212121 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 0 !important;
    height: auto !important;
    text-align: left !important;
}

.search-item-price {
    font-size: 12px !important;
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
    text-align: left !important;
    margin: 0 !important;
}

/* ====== MOBILE ORDERS & NAVIGATION OVERRIDES ====== */
@media (max-width: 768px) {
    /* Mobile Orders Layout */
    .order-item {
        padding: 12px !important;
        gap: 12px !important;
        align-items: flex-start !important;
        flex-direction: row !important;
    }
    
    .order-img {
        width: 70px !important;
        height: 70px !important;
        flex-shrink: 0 !important;
    }
    
    .order-details {
        min-width: 0 !important;
        flex: 1 !important;
    }
    
    .order-details h4 {
        font-size: 14px !important;
        margin-bottom: 5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Stepper overflow fix */
    .track-stepper {
        width: 100% !important;
        max-width: 280px !important;
        margin-top: 12px !important;
    }
    
    .step {
        font-size: 9px !important;
    }
    
    .step .dot {
        width: 16px !important;
        height: 16px !important;
        border-width: 2px !important;
    }
    
    .track-stepper::before {
        top: 8px !important;
    }
    
    .order-price {
        font-size: 14px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }

    /* Mobile Toast Positioned in Mid-Screen */
    #toast {
        top: 50% !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        z-index: 1000000 !important; /* Always on top of modals and nav bars */
        box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
        background: rgba(33, 33, 33, 0.95) !important; /* Premium semi-transparent dark gray */
        backdrop-filter: blur(4px) !important;
        border-radius: 8px !important;
        min-width: 280px !important;
    }
    
    #toast.show {
        animation: fadein-mobile 0.4s ease-out, fadeout-mobile 0.4s ease-in 2.5s forwards !important;
    }
}

/* Mobile Toast Fade Keyframes */
@keyframes fadein-mobile {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes fadeout-mobile {
    from { opacity: 1; transform: translate(-50%, -50%); }
    to { opacity: 0; transform: translate(-50%, -60%); }
}



