/* ================= PREMIUM THEME VARIABLES ================= */
:root {
    --primary: #e91e63;       /* Vibrant Pink */
    --primary-dark: #d81b60;
    --secondary: #2C3E50;     /* Deep Navy Blue */
    --bg-color: #fcfcfc;      /* Clean Off-White */
    --white: #ffffff; 
    --text-dark: #333333; 
    --text-light: #666666;
    --border-color: #eeeeee;
    --transition: all 0.3s ease;
}

/* ================= RESET & TYPOGRAPHY ================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-color); color: var(--text-dark); overflow-x: hidden; line-height: 1.6; }
h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; background: transparent; font-family: 'Poppins', sans-serif; }

/* Global Buttons */
.btn-primary { padding: 12px 35px; background: var(--primary); color: var(--white); font-weight: 600; border-radius: 30px; transition: var(--transition); border: 2px solid var(--primary); display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn-primary:hover { background: transparent; color: var(--primary); }
.btn-secondary { padding: 12px 35px; background: transparent; color: var(--primary); font-weight: 600; border-radius: 30px; transition: var(--transition); border: 2px solid var(--primary); display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn-secondary:hover { background: var(--primary); color: var(--white); }

/* ================= HEADER / NAVBAR ================= */
.navbar { 
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(10px); 
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-bottom: 1px solid var(--border-color);
}
.nav-left { display: flex; align-items: center; gap: 15px; }
.menu-toggle { display: none; font-size: 24px; color: var(--secondary); cursor: pointer; }

/* Desktop Navigation Links */
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links li a { color: var(--secondary); font-weight: 500; font-size: 0.95rem; text-transform: capitalize; letter-spacing: 0.5px; padding: 5px 0; position: relative; }
.nav-links li a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition); }
.nav-links li a:hover::after, .nav-links li a.active::after { width: 100%; }
.nav-links li a:hover, .nav-links li a.active { color: var(--primary); }
.mobile-admin-btn, .mobile-header { display: none; }

/* Dropdown Menu (Global) */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 250px; border-radius: 8px; opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: var(--transition); z-index: 1000; padding: 10px 0; border: 1px solid var(--border-color);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { display: block; border-bottom: 1px solid #f9f9f9; }
.dropdown-menu li:last-child { border-bottom: none; }
.dropdown-menu li a { display: block; padding: 12px 20px; font-size: 0.9rem; color: var(--secondary); }
.dropdown-menu li a::after { display: none; }
.dropdown-menu li a:hover { color: var(--primary); background: #fdf5f6; padding-left: 25px; }

/* Scrollable Menu for long lists */
.scrollable-menu { max-height: 400px; overflow-y: auto; }
.scrollable-menu::-webkit-scrollbar { width: 5px; }
.scrollable-menu::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }

/* Right Icons */
.nav-right .search-btn:hover, .nav-right .cart-btn:hover { color: var(--primary) !important; transform: translateY(-2px); transition: var(--transition); }

/* ================= SEARCH OVERLAY ================= */
.search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
    z-index: 2001; display: flex; justify-content: center; align-items: flex-start;
    padding-top: 100px; animation: slideDown 0.3s ease-out;
}
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.search-container { width: 90%; max-width: 600px; position: relative; }
.search-container input { width: 100%; padding: 15px 50px 15px 25px; font-size: 1.1rem; border: 2px solid var(--primary); border-radius: 40px; outline: none; box-shadow: 0 10px 20px rgba(233, 30, 99, 0.1); color: var(--secondary); }
.close-search { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--primary); transition: var(--transition); }
.close-search:hover { transform: translateY(-50%) scale(1.2); }

/* ================= FOOTER ================= */
footer { background-color: var(--secondary); padding: 70px 5% 30px; color: var(--white); border-top: 4px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto 40px; }
.footer-col h3 { font-size: 20px; margin-bottom: 20px; color: var(--white); position: relative; padding-bottom: 10px; text-transform: uppercase; letter-spacing: 1px;}
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-col a { display: block; color: #b3c0cc; margin-bottom: 12px; transition: var(--transition); font-size: 0.95rem;}
.footer-col a:hover { color: var(--primary); transform: translateX(5px); }
.footer-col p { color: #b3c0cc; font-size: 0.95rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; text-align: center; color: #b3c0cc; font-size: 0.9rem; display: flex; justify-content: space-between; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: 15px; }

/* ================= TOAST NOTIFICATION ================= */
#toastBox { position: fixed; bottom: 30px; right: 30px; display: flex; align-items: flex-end; flex-direction: column; overflow: hidden; padding: 20px; z-index: 5000; pointer-events: none; }
.toast { width: 350px; height: 60px; background: var(--secondary); color: white; font-weight: 500; margin: 10px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.2); display: flex; align-items: center; border-radius: 8px; position: relative; transform: translateX(100%); animation: moveleft 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; pointer-events: auto; }
@keyframes moveleft { 100% { transform: translateX(0); } }
.toast i { margin: 0 20px; font-size: 25px; color: #25d366; }
.toast.error i { color: #e74c3c; }
.toast::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: #25d366; animation: anim 3s linear forwards; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;}
.toast.error::after { background: #e74c3c; }
@keyframes anim { 100% { width: 0; } }

/* ================= BOTTOM NAVIGATION (Hidden on Desktop) ================= */
.bottom-nav { display: none; }

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {
    body { padding-bottom: 70px; }
    .navbar { padding: 12px 15px; } 
    .menu-toggle { display: block; } 
    
    /* Mobile Sidebar Menu */
    .nav-center { 
        position: fixed; top: 0; left: -100%; width: 300px; max-width: 85vw; height: 100vh; 
        background: var(--white); padding: 0; box-shadow: 5px 0 20px rgba(0,0,0,0.1); 
        display: flex; flex-direction: column; transition: left 0.4s ease; z-index: 2000; overflow-y: auto;
    }
    .nav-center.active { left: 0; }
    
    .mobile-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border-color); margin-bottom: 10px; }
    .close-btn { font-size: 24px; color: var(--secondary); cursor: pointer; }
    
    .nav-links { flex-direction: column; align-items: flex-start; gap: 0; padding: 0 20px 10px; width: 100%; flex-grow: 1; }
    .nav-links > li { width: 100%; border-bottom: 1px solid #f9f9f9; }
    .nav-links > li > a { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; font-size: 1.05rem; }
    .nav-links li a::after { display: none; }
    
    /* Mobile Admin Button (Moved from Inline) */
    .desktop-admin-link { display: none; }
    .mobile-admin-btn { display: block; padding: 20px; border-top: 1px solid #eeeeee; margin-top: auto; margin-bottom: 20px; }

    /* Mobile Dropdown Styling */
    .dropdown-menu { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; border: none; padding: 0 0 10px 15px; background: transparent; }
    .dropdown.active .dropdown-menu { display: block; }

    .footer-bottom { flex-direction: column; justify-content: center; text-align: center; }

    /* App-Style Bottom Navigation */
    .bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
        box-shadow: 0 -5px 15px rgba(0,0,0,0.05); justify-content: space-around;
        padding: 12px 0 10px; z-index: 1999; border-top: 1px solid var(--border-color);
    }
    .nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #a0aab5; font-size: 0.75rem; gap: 5px; transition: var(--transition); font-weight: 500; }
    .nav-item i { font-size: 20px; transition: var(--transition); }
    .nav-item.active, .nav-item:hover { color: var(--primary); }
    .nav-item.active i { font-weight: 700; transform: translateY(-2px); }

    #toastBox { bottom: 80px; right: 10px; padding: 10px; }
    .toast { width: 300px; font-size: 0.9rem; }
}