/* =========================================
   GLOBAL STYLES (Variables, Header, Footer)
   ========================================= */

/* --- VARIABLES --- */
:root { 
    --primary: #e91e63;        /* Vibrant Pink (Matches Instagram Vibe) */
    --primary-dark: #c2185b;   /* Darker Pink for hover effects */
    --secondary: #2C3E50;      /* Dark Navy for Graphics/Corporate feel */
    --bg-color: #fcfcfc;       /* Clean Off-White Background */
    --white: #ffffff; 
    --text-dark: #2C3E50; 
    --text-light: #6c7a89;
    --border-color: #eeeeee;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

/* --- BASE STYLES --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
}

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; 
}

/* --- GLOBAL BUTTONS --- */
.btn-primary { 
    padding: 12px 35px; 
    background: var(--primary); 
    color: var(--white); 
    font-weight: 600; 
    border-radius: 30px; 
    transition: 0.3s ease; 
    border: 2px solid var(--primary); 
    display: inline-block;
    cursor: pointer;
}

.btn-primary:hover { 
    background: transparent; 
    color: var(--primary); 
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 12px 35px;
    border: 2px solid var(--primary);
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* =========================================
   PREMIUM NAVBAR
   ========================================= */
.navbar { 
    background: rgba(255, 255, 255, 0.95); 
    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 2px 15px rgba(0,0,0,0.05); 
}

.nav-left { display: flex; align-items: center; gap: 15px; }
.menu-toggle { display: none; font-size: 24px; color: var(--text-dark); cursor: pointer; }

.nav-center ul { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-center ul li a { color: var(--text-dark); font-weight: 500; font-size: 15px; transition: 0.3s; }
.nav-center ul li a:hover, .nav-center ul li a.active { color: var(--primary); }
.mobile-header, .mobile-admin-link { display: none; }

.nav-right { display: flex; align-items: center; gap: 20px; }

.search-btn {
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.3s;
}
.search-btn:hover { color: var(--primary); }

.cart-btn { 
    position: relative; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 40px; 
    height: 40px; 
    background: var(--text-dark); 
    color: var(--white); 
    border-radius: 50%; 
    font-size: 16px; 
    transition: 0.3s; 
}
.cart-btn:hover { background: var(--primary); transform: translateY(-2px); }

/* =========================================
   CUSTOM 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;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.1);
}

.close-search {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 22px;
    color: var(--primary);
    cursor: pointer;
    transition: 0.3s;
}

.close-search:hover { transform: translateY(-50%) scale(1.1); }

/* =========================================
   FOOTER & WHATSAPP
   ========================================= */
footer { background-color: var(--secondary); padding: 70px 5% 30px; color: var(--white); }
.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; }
.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: 0.3s; }
.footer-col a:hover { color: var(--primary); transform: translateX(5px); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; text-align: center; color: #b3c0cc; font-size: 14px; display: flex; justify-content: space-between; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: 15px; }
.footer-bottom a { color: var(--primary); font-weight: 600; }

/* Desktop WhatsApp Float */
.whatsapp-float { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: #25d366; 
    color: var(--white); 
    padding: 14px 22px; 
    border-radius: 50px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 600; 
    z-index: 1000; 
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); 
    transition: 0.3s;
}
.whatsapp-float:hover { transform: translateY(-3px); color: #fff;}

/* =========================================
   BOTTOM NAVIGATION BAR (Mobile Only)
   ========================================= */
.bottom-nav { display: none; }

/* =========================================
   TOAST NOTIFICATIONS
   ========================================= */
#toastBox { position: fixed; bottom: 30px; right: 30px; display: flex; align-items: flex-end; flex-direction: column; overflow: hidden; padding: 20px; z-index: 5000; }
.toast { width: 350px; height: 60px; background: #fff; font-weight: 500; margin: 10px 0; box-shadow: 0 0 20px rgba(0,0,0,0.2); display: flex; align-items: center; border-radius: 5px; position: relative; transform: translateX(100%); animation: moveleft 0.5s linear forwards; }
@keyframes moveleft { 100% { transform: translateX(0); } }
.toast i { margin: 0 20px; font-size: 25px; color: green; }
.toast.error i { color: red; }
.toast::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background: green; animation: anim 5s linear forwards; }
.toast.error::after { background: red; }
@keyframes anim { 100% { width: 0; } }

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    /* Prevent content hiding behind bottom nav */
    body { padding-bottom: 70px; }

    .navbar { padding: 12px 15px; } 
    .logo { font-size: 20px; } 
    .menu-toggle { display: block; } 
    .nav-right { gap: 15px; } 
    
    /* Mobile Sidebar Menu */
    .nav-center { 
        position: fixed; 
        top: 0; 
        left: -100%; 
        width: 280px; 
        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; 
    }
    .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: 15px; }
    .close-btn { font-size: 22px; color: var(--text-dark); cursor: pointer; }
    
    .nav-center ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 0 20px; }
    .nav-center ul li { width: 100%; border-bottom: 1px solid #f9f9f9; }
    .nav-center ul li a { display: block; padding: 15px 0; font-size: 16px; }
    .mobile-admin-link { display: block; margin-top: 10px; } 
    .mobile-admin-link a { color: var(--primary) !important; font-weight: 600 !important; }

    .footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
    
    /* WhatsApp adjust for Bottom Nav */
    .whatsapp-float span { display: none; } 
    .whatsapp-float { padding: 15px; border-radius: 50%; bottom: 85px; right: 20px; }

    /* Bottom Nav Styles */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
        justify-content: space-around;
        padding: 12px 0 10px;
        z-index: 1999;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #a0aab5;
        font-size: 0.75rem;
        gap: 5px;
        transition: 0.3s;
        font-weight: 500;
    }

    .nav-item i { font-size: 20px; }
    .nav-item.active, .nav-item:hover { color: var(--primary); }
    .nav-item.active i { font-weight: 700; transform: translateY(-2px); }
}