/* 1. Global Reset & Body */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif; }

body { background-color: #fc92b5be; color: #000000; line-height: 1.6; }

/* 2. Header & Sticky Navigation */
header { 
    position: sticky; top: 0; z-index: 1000; 
    background: white; border-bottom: 1px solid #000000; 
    padding: 10px 50px; display: flex; justify-content: space-between; align-items: center;
}

.logo { font-size: 28px; font-weight: bold; cursor: pointer; text-decoration: none; color: #333; }
.logo span { color: #e91e63; }

.search-bar input { 
    width: 300px; padding: 10px 15px; border-radius: 25px; 
    border: 1px solid #000000; transition: all 0.4s ease; outline: none;
}
.search-bar input:focus { width: 450px; border-color: #e91e63; box-shadow: 0 0 10px rgba(233, 30, 99, 0.1); }

nav { 
    position: sticky; top: 75px; z-index: 999; 
    background: #c21a1a; padding: 12px; text-align: center; border-bottom: 1px solid #ddd;
}
nav a, nav span { margin: 0 20px; font-weight: 600; color: #000000; cursor: pointer; text-decoration: none; transition: 0.3s; }
nav a:hover, nav span:hover { color: #e91e63; }

/* 3. Product Grid & Cards (Modern Look) */
.product-grid { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 25px; padding: 40px; max-width: 1300px; margin: auto;
}

.product-card {
    background: rgb(253, 192, 245); border-radius: 15px; padding: 20px; text-align: center;
    transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden; border: 3px solid #000000;
}

.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.product-card img { 
    width: 100%; height: 200px; object-fit: contain; 
    margin-bottom: 15px; transition: transform 0.5s ease; 
}
.product-card:hover img { transform: scale(1.1); }

.product-card h3 { font-size: 18px; color: #444; margin-bottom: 8px; }
.product-card .price { font-size: 20px; font-weight: bold; color: #e91e63; margin-bottom: 15px; }

/* 4. Buttons (Cart & Place Order) */
.product-card button, .proceed-btn, .place-order-btn, .checkout-btn {
    background: #e91e63; color: white; border: none; padding: 12px 20px;
    border-radius: 8px; font-weight: bold; cursor: pointer; 
    transition: 0.3s; width: 100%; text-transform: uppercase; letter-spacing: 1px;
}

.product-card button:hover, .proceed-btn:hover, .place-order-btn:hover, .checkout-btn:hover {
    background: #c2185b; box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

/* 5. Checkout & Form Page (Bada Size) */
.checkout-container {
    max-width: 1100px; margin: 50px auto; display: flex; gap: 30px; padding: 20px;
}

.billing-form { 
    flex: 2; background: rgba(252, 150, 209, 0.952); padding: 40px; border-radius: 20px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) ; 
}

.order-summary { 
    flex: 1; background: rgba(255, 255, 255, 0.952); padding: 30px; border-radius: 20px; 
    height: fit-content; box-shadow: 0 10px 40px rgba(0,0,0,0.1); 
}

.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: #000000; }
.form-group input, .form-group textarea { 
    width: 100%; padding: 15px; border: 1.5px solid #eee; 
    border-radius: 10px; font-size: 16px; background: #fafafa; outline: none;
}
.form-group input:focus { border-color: #e91e63; background: #fff; }

/* 6. Animations & Helpers */
.loader {
    border: 3px solid #f3f3f3; border-top: 3px solid #e91e63;
    border-radius: 50%; width: 15px; height: 15px;
    animation: spin 1s linear infinite; display: inline-block; margin-left: 10px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* 7. Mobile Responsive */
@media (max-width: 768px) {
    .checkout-container { flex-direction: column; }
    header { flex-direction: column; padding: 20px; }
    .search-bar input { width: 100%; margin-top: 15px; }
    .product-card { width: 100%; }
}
.cart-badge {
    background: #e91e63;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    position: relative;
    top: -10px;
    left: -5px;
}
/* Navigation Buttons Styling */
/* Navigation Buttons ko Pro look dene ke liye */
.nav-links {
    display: flex;
    gap: 15px;
}

.nav-btn {
    text-decoration: none;
    color: #000000 !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    background: #f0f0f0; /* Default light grey background */
    transition: 0.3s;
}

.nav-btn:hover {
    background: #e91e63;
    color: white !important;
}

.cart-nav-btn {
    background: #fce4ec; /* Pinkish touch for cart */
    color: #e91e63 !important;
    border: 1px solid #e91e63;
}

/* Quantity Button Styling */
.qty-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #e91e63;
    background: white;
    color: #e91e63;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #e91e63;
    color: white;
}

.qty-num {
    font-weight: bold;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}
/* Professional Navigation Buttons - Global Style */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    text-decoration: none;
    color: #333 !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    background: #f0f0f0; /* Halka grey background */
    transition: 0.3s all ease;
    font-size: 14px;
    border: 1px solid transparent;
    display: inline-block;
}

.nav-btn:hover {
    background: #e91e63;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.2);
}

.cart-nav-btn {
    background: #fce4ec !important; /* Soft Pink */
    color: #e91e63 !important;
    border: 1px solid #e91e63;
}

/* Index page ke header ka background fix */
.sticky-wrapper header {
    background-color: white !important; /* Pink background hata kar white kar diya professional look ke liye */
}
/* --- Header & Layout Styles --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.logo h1 { color: #333; margin: 0; font-size: 28px; }
.logo span { color: #e91e63; }
.logo a { text-decoration: none; }

/* Search Bar */
.search-bar { display: flex; align-items: center; }
.search-bar input {
    padding: 12px;
    width: 350px;
    border-radius: 25px 0 0 25px;
    border: 1px solid #000000;
    outline: none;
    font-size: 14px;
}
.search-bar button {
    padding: 12px 25px;
    background: #e91e63;
    color: white;
    border: 1px solid #e91e63;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-weight: 600;
}

/* Nav Buttons Global */
.nav-btn {
    text-decoration: none;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 25px;
    background: #f5f5f5;
    color: #333 !important;
    transition: 0.3s all ease;
    font-size: 14px;
    display: inline-block;
}

.nav-btn:hover {
    background: #e91e63 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

/* Specific Buttons */
.cart-nav-btn {
    background: #fff0f3;
    color: #e91e63 !important;
    border: 1px solid #ffd1dc;
}

.admin-btn {
     background: #fff0f3;
    color: #e91e63 !important;
    border: 1px solid #ffd1dc;
}

/* Category Nav */
.cat-nav { text-align: center; padding: 15px; background: #fdfdfd; border-bottom: 1px solid #f0f0f0; }
.cat-nav a, .cat-nav span { 
    text-decoration: none; color: #555; margin: 0 20px; 
    font-weight: 500; cursor: pointer; transition: 0.3s; 
}
.cat-nav span:hover { color: #e91e63; }

/* Showcase Section */
.category-icons { display: flex; justify-content: center; gap: 40px; margin-top: 30px; }
.emoji { font-size: 45px; margin-bottom: 10px; transition: 0.3s; cursor: pointer;}
.category-item:hover .emoji { transform: scale(1.2); }
.section-divider { border: 0; height: 1px; background: #eee; width: 90%; margin: 40px auto; }


/* Proceed to Checkout Button Styling */
.proceed-btn {
    background-color: #e91e63; /* Pink Theme */
    color: white;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.3);
    margin-top: 15px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.proceed-btn:hover {
    background-color: #c2185b; /* Thoda dark pink hover par */
    transform: translateY(-3px); /* Thoda upar uthega */
    box-shadow: 0 6px 15px rgba(233, 30, 99, 0.4);
}

.proceed-btn:active {
    transform: translateY(-1px);
}
.cart-badge {
    background: #e91e63;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    position: relative;
    top: -10px;
    left: -5px;
}
/* Navigation Buttons Styling */
.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-btn {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.nav-btn:hover {
    background: #e91e63;
    color: white !important;
}

/* Cart Button specific highlight */
.cart-nav-btn {
    background: #fce4ec;
    color: #e91e63;
}

/* Quantity Button Styling */
.qty-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #e91e63;
    background: white;
    color: #e91e63;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #e91e63;
    color: white;
}

.qty-num {
    font-weight: bold;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}
/* Professional Navigation Buttons - Global Style */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    text-decoration: none;
    color: #333 !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    background: #f0f0f0; /* Halka grey background */
    transition: 0.3s all ease;
    font-size: 14px;
    border: 1px solid transparent;
    display: inline-block;
}

.nav-btn:hover {
    background: #e91e63;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.2);
}

.cart-nav-btn {
    background: #fce4ec !important; /* Soft Pink */
    color: #e91e63 !important;
    border: 1px solid #e91e63;
}

/* Index page ke header ka background fix */
.sticky-wrapper header {
    background-color: rgb(130, 192, 194) !important; /* Pink background hata kar white kar diya professional look ke liye */
}

/* --- Header & Layout Styles --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.logo h1 { color: #333; margin: 0; font-size: 28px; }
.logo span { color: #e91e63; }
.logo a { text-decoration: none; }

/* Search Bar */
.search-bar { display: flex; align-items: center; }
.search-bar input {
    padding: 12px;
    width: 350px;
    border-radius: 25px 0 0 25px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
}
.search-bar button {
    padding: 12px 25px;
    background: #e91e63;
    color: white;
    border: 1px solid #e91e63;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-weight: 600;
}

/* Nav Buttons Global */
.nav-btn {
    text-decoration: none;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 25px;
    background: #f5f5f5;
    color: #333 !important;
    transition: 0.3s all ease;
    font-size: 14px;
    display: inline-block;
}

.nav-btn:hover {
    background: #e91e63 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

/* Specific Buttons */
.cart-nav-btn {
    background: #fff0f3;
    color: #e91e63 !important;
    border: 1px solid #ffd1dc;
}

.admin-btn {
    background: #222 !important;
    color: white !important;
}

/* Category Nav */
.cat-nav { text-align: center; padding: 15px; background: #fdfdfd; border-bottom: 1px solid #f0f0f0; }
.cat-nav a, .cat-nav span { 
    text-decoration: none; color: #555; margin: 0 20px; 
    font-weight: 500; cursor: pointer; transition: 0.3s; 
}
.cat-nav span:hover { color: #e91e63; }

/* Showcase Section */
.category-icons { display: flex; justify-content: center; gap: 40px; margin-top: 30px; }
.emoji { font-size: 45px; margin-bottom: 10px; transition: 0.3s; cursor: pointer;}
.category-item:hover .emoji { transform: scale(1.2); }
.section-divider { border: 0; height: 1px; background: #eee; width: 90%; margin: 40px auto; }


/* 1. Header Navigation Fix */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Icons aur buttons ke beech gap */
}

/* 2. Login Status Box (Hi, Name wala) */
#login-status {
    background: #f8f9fa; /* Light grey for a clean look */
    border: 1px solid #eee;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

#user-name-display {
    color: #e91e63; /* Pink color for the username */
    font-weight: bold;
}

/* 3. Logout Button Styling */
.logout-btn {
    background: #333 !important;
    color: white !important;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
}

.logout-btn:hover {
    background: #000 !important;
}

/* 4. Cart Page specific Alignment */
.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}






/* style.css ke bilkul top par ye paste karo */
:root {
    --bg-color: #f9f9f9;
    --text-color: #333333;
    --card-bg: #ffffff;
    --navbar-bg: #ffffff;
}

/* Jab HTML par data-theme="dark" lagega, toh ye colors chalenge */
[data-theme="dark"] {
    --bg-color: #121212;      /* Dark Background */
    --text-color: #f5f5f5;    /* Light Text */
    --card-bg: #1e1e1e;       /* Dark Cards */
    --navbar-bg: #1a1a1a;     /* Dark Navbar */
}

/* ⚠️ Ab apni CSS mein jahan bhi Body, Navbar ya Card hai, wahan in variables ko use karo: */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth switch ke liye */
}

.product-card {
    background-color: var(--card-bg) !important;
    color: var(--text-color);
}

/* Agar navbar ka background change karna ho, toh navbar wale selector mein bhi ye daal dena: */
/* background-color: var(--navbar-bg); */




// ================= DARK / LIGHT MODE LOGIC =================

// ================= DARK / LIGHT MODE LOGIC =================

/* style.css ke top par ise paste karo */
/* ================= 🎨 GLOBAL VARIABLES ================= */
/* style.css */
* {
    margin: 0;
    padding: 0;
    box-shadow: none;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* 🎨 DEFAULT LIGHT MODE */
/* 1. Sabse pehle default body ko check karo */
body {
    background-color: #f8fafc !important; /* Light mode background */
    color: #0f172a;
    margin: 0;
    padding: 0;
}

/* ================= 🔥 MAIN FIX: DARK MODE BACKGROUND ================= */

/* Jab dark-mode active ho, toh HTML, BODY aur saare bade sections dark hone chahiye */
html, 
body.dark-mode, 
body.dark-mode main,
body.dark-mode .content-wrapper,
body.dark-mode .container,
body.dark-mode .main-container {
    background-color: #0f172a !important; /* Yeh hai wo deep professional dark color */
    color: #f8fafc !important;
}

/* Agar categories section ke peeche white dabba bacha ho, toh use bhi dark karo */
body.dark-mode .categories-section,
body.dark-mode .explore-categories,
body.dark-mode .popular-categories,
body.dark-mode .deals-section {
    background-color: #0f172a !important;
}

/* Navbar aur cards toh aapke pehle se hi mast chal rahe hain */
body.dark-mode header, 
body.dark-mode .navbar {
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}

body.dark-mode .product-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}
header, .navbar, .header-container {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.product-card, .cart-items-section, .cart-summary-section {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}
#search-input {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

/* 🌙 1. DARK MODE MASTER STYLES (SHOPLINE FIXED) */
body.dark-mode {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

body.dark-mode header, 
body.dark-mode .navbar, 
body.dark-mode .header-container {
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}

/* Search Box & Inputs */
body.dark-mode #search-input,
body.dark-mode #coupon-box {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #ffffff !important;
}
body.dark-mode #search-input::placeholder {
    color: #94a3b8;
}

/* Home Page Cards & Cart Page Sections */
body.dark-mode .product-card,
body.dark-mode .cart-items-section,
body.dark-mode .cart-summary-section {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
}

/* Universal Text Overrides inside Dark Mode */
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode p, 
body.dark-mode span, 
body.dark-mode label, 
body.dark-mode a {
    color: #ffffff !important;
}

/* Subtle Labels (Categories) */
body.dark-mode .category-label, 
body.dark-mode .popular-tags,
body.dark-mode .cart-item p {
    color: #94a3b8 !important;
}

/* Cart Items Border line */
body.dark-mode .cart-item {
    border-bottom: 1px solid #334155 !important;
}

/* 🌓 THEME TOGGLE BUTTON */
#theme-toggle-btn {
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    font-weight: bold;
}
body.dark-mode #theme-toggle-btn {
    background: #334155 !important;
    color: #f8fafc !important;
    border: 1px solid #475569 !important;
}






/* ================= 🏢 NEW PREMIUM FOOTER STYLE ================= */
.site-footer {
    background-color: #1e293b !important; /* Premium Dark Charcoal Slate */
    color: #94a3b8;
    padding: 60px 0 20px 0;
    margin-top: 60px; /* Isse upar wale pink dabbe se thoda gap banega */
    border-top: 4px solid #ff477e; /* Brand pink accent line top par */
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0 20px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.brand-col h2 {
    color: #ffffff;
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 700;
}

.brand-col h2 .highlight {
    color: #ff477e;
}

.brand-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    font-weight: 600;
}

/* Heading ke niche choti si designer line */
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 2px;
    background-color: #ff477e;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Hover karne par text slide aur color change hoga */
.footer-col ul li a:hover {
    color: #ff477e;
    padding-left: 6px;
}

/* Newsletter Box */
.newsletter {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #334155;
}

.newsletter input {
    padding: 10px;
    background: #0f172a;
    border: none;
    color: white;
    outline: none;
    flex: 1;
    font-size: 13px;
}

.newsletter button {
    background: #ff477e;
    color: white;
    border: none;
    padding: 0 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter button:hover {
    background: #e0396b;
}

.social-links a {
    display: inline-block;
    font-size: 30px;
    margin-right: 15px;
    margin-top: 15px;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Bottom Bar Adjustment */
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 20px 20px 0 20px;
    border-top: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 19px;
    color: #64748b;
}

.developer-tag {
    font-size: 22px;
}