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

/* --- VARIABLES --- */
:root { 
    --primary: #B76E79;        /* Rose Gold */
    --primary-dark: #9A5B64; 
    --bg-color: #FDF8F5;       /* Soft Blush Pink */
    --white: #ffffff; 
    --text-dark: #2C3E50; 
    --text-light: #6c7a89;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

/* =========================================
   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; }
.logo { font-size: 26px; font-weight: 700; color: var(--text-dark); white-space: nowrap; }
.logo span { color: var(--primary); font-style: italic; }

.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; }
.desktop-admin-btn { 
    background: #f4f6f8; color: var(--text-dark); padding: 8px 16px; 
    border-radius: 20px; font-size: 14px; font-weight: 600; 
    border: 1px solid #e1e5e9; display: flex; align-items: center; gap: 6px; transition: 0.3s; 
}
.desktop-admin-btn i { color: var(--primary); }
.desktop-admin-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.desktop-admin-btn:hover i { color: var(--white); }

.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); }
.cart-count { 
    position: absolute; top: -5px; right: -5px; background: var(--primary); 
    color: var(--white); font-size: 11px; font-weight: 700; width: 20px; height: 20px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; border: 2px solid var(--white); 
}

/* =========================================
   FOOTER & WHATSAPP
   ========================================= */
footer { background-color: var(--text-dark); 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; }

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

/* =========================================
   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 (Header/Footer)
   ========================================= */
@media (max-width: 768px) {
    .navbar { padding: 12px 15px; } .logo { font-size: 20px; } .menu-toggle { display: block; } .nav-right { gap: 10px; } .desktop-admin-btn { display: none; }
    .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 #eee; 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; } .mobile-admin-link a { color: var(--primary) !important; font-weight: 600 !important; }

    .footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
    .whatsapp-float span { display: none; } .whatsapp-float { padding: 15px; border-radius: 50%; }
}