/* --- 1. GLOBAL SETTINGS & TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&display=swap');

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Jost', sans-serif; 
}

body { 
    background-color: #fcfcfc; 
    color: #222; 
    overflow-x: hidden; 
    line-height: 1.6; 
}

/* --- 2. PREMIUM NAVIGATION HEADER --- */
.top-nav { 
    background: #fff; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    border-bottom: 1px solid #f5f5f5; 
}

.contact-info { 
    background: #f4f4f4; 
    padding: 8px 5%; 
    font-size: 0.7rem; 
    text-align: center; 
    text-transform: uppercase; 
    color: #666; 
    letter-spacing: 1px; 
}

.main-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 5%; 
    height: 80px; 
}

.logo { 
    font-weight: 600; 
    font-size: 1.4rem; 
    text-decoration: none; 
    color: #000; 
    line-height: 1.1; 
    letter-spacing: -0.5px; 
}

.logo small { 
    font-size: 0.65rem; 
    color: #aaa; 
    display: block; 
    font-weight: 400; 
    letter-spacing: 1px; 
}

.header-right { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
}

.nav-menu a { 
    text-decoration: none; 
    color: #888; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1px; 
    transition: 0.3s; 
}

.nav-menu a:hover, .nav-menu a.active { 
    color: #000; 
}

.header-icons { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.icon-btn { 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: #000; 
    position: relative; 
    padding: 5px; 
    transition: 0.3s; 
}

.icon-btn:hover { 
    transform: translateY(-2px); 
}

.cart-count { 
    position: absolute; 
    top: -2px; 
    right: -5px; 
    background: #000; 
    color: #fff; 
    font-size: 0.6rem; 
    width: 16px; 
    height: 16px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 600; 
}

/* --- 3. HERO & STOREFRONT SECTION --- */
.hero-banner { 
    height: 80vh; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: #fff; 
    padding: 0 5%; 
}

.hero-content h1 { 
    font-size: 4rem; 
    font-weight: 300; 
    margin-bottom: 15px; 
}

.btn-outline-white { 
    background: transparent; 
    color: #fff; 
    border: 1px solid #fff; 
    padding: 14px 35px; 
    cursor: pointer; 
    text-transform: uppercase; 
    transition: 0.3s; 
    margin-top: 20px;
}

.btn-outline-white:hover { 
    background: #fff; 
    color: #000; 
}

/* --- 4. DYNAMIC INVENTORY GRID --- */
.inventory-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 380px; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
    opacity: 0;
    transition: 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-quick-add {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #000;
    border: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    font-weight: 500;
}

.product-info {
    padding: 20px;
    text-align: left;
}

.p-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 5px;
}

.p-name {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: #222;
}

.p-price {
    font-size: 1rem;
    font-weight: 500;
    color: #000;
}

/* --- 5. CUSTOM DIV DROPDOWN SYSTEM --- */
.filter-wrapper { 
    background: #fff; 
    padding: 40px 5% 20px; 
    border-bottom: 1px solid #f0f0f0; 
}

.filter-bar { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 40px; 
    max-width: 1400px; 
}

.filter-group { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    flex: 1; 
    min-width: 200px; 
    position: relative; 
}

.filter-group label { 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: #aaa; 
}

.filter-group input, .admin-select { 
    padding: 12px 0; 
    border: none; 
    border-bottom: 1px solid #e0e0e0; 
    background: transparent; 
    font-size: 1rem; 
    color: #222; 
    outline: none; 
    transition: 0.3s; 
}

.filter-group input:focus { 
    border-bottom-color: #000; 
}

.premium-dropdown { 
    position: relative; 
    cursor: pointer; 
    border-bottom: 1px solid #e0e0e0; 
    padding: 12px 0; 
    transition: 0.3s; 
}

.premium-dropdown:hover { 
    border-bottom-color: #000; 
}

.dropdown-selected { 
    font-size: 1rem; 
    color: #222; 
}

.dropdown-list {
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    z-index: 50;
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(10px);
    transition: all 0.3s ease; 
    overflow: hidden;
}

.premium-dropdown.active .dropdown-list { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.dropdown-item { 
    padding: 12px 15px; 
    font-size: 0.9rem; 
    color: #555; 
    transition: all 0.2s ease; 
}

.dropdown-item:hover { 
    background-color: #333; 
    color: #fff; 
    padding-left: 20px; 
}

/* --- 6. ADMIN DASHBOARD & LOGIN FIXES --- */
.login-container { 
    min-height: 70vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 40px 5%; 
}

.login-card { 
    background: #fff; 
    width: 100%; 
    max-width: 450px; 
    padding: 60px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.05); 
    border: 1px solid #f0f0f0; 
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid #e0e0e0 !important;
    transition: 0.3s;
}

.input-container:focus-within {
    border-bottom-color: #000 !important;
}

.premium-form input { 
    width: 100%; 
    padding: 12px 0; 
    border: none !important; 
    border-bottom: 1px solid #e0e0e0; 
    background: transparent; 
    outline: none;
}

.premium-form .input-container input {
    border-bottom: none !important;
}

.toggle-btn {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    display: flex;
    align-items: center;
    padding: 5px;
}

.admin-container { 
    padding: 40px 5%; 
    max-width: 1400px; 
    margin: 0 auto; 
}

.admin-stats { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    margin-bottom: 40px; 
    align-items: center; 
}

.stat-card { 
    background: #fff; 
    padding: 25px; 
    border: 1px solid #eee; 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
}

.stat-card strong { 
    font-size: 1.8rem; 
    font-weight: 500; 
}

.btn-add-item { 
    background: #000; 
    color: #fff; 
    border: none; 
    padding: 15px 30px; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1px; 
    cursor: pointer; 
}

.premium-table { 
    width: 100%; 
    border-collapse: collapse; 
    text-align: left; 
}

.premium-table th { 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    color: #aaa; 
    padding: 15px; 
    border-bottom: 1px solid #eee; 
}

.premium-table td { 
    padding: 20px 15px; 
    border-bottom: 1px solid #f9f9f9; 
    font-size: 0.9rem; 
}

.prod-img { 
    width: 40px; 
    height: 40px; 
    background-color: #f4f4f4; 
    border-radius: 4px; 
    display: inline-block;
}

.action-delete { 
    color: #d9534f; 
    text-decoration: underline; 
    cursor: pointer;
    font-size: 0.8rem;
}

/* --- 7. MODALS --- */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.6); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 2000; 
}

.modal-box { 
    background: #fff; 
    padding: 40px; 
    width: 100%; 
    max-width: 500px; 
    position: relative; 
}

.premium-form .form-group { 
    display: flex; 
    flex-direction: column; 
    margin-bottom: 25px; 
}

.premium-form label { 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    color: #aaa; 
    margin-bottom: 8px; 
}

.btn-login, .btn-save { 
    width: 100%; 
    padding: 18px; 
    background: #000; 
    color: #fff; 
    border: none; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    font-size: 0.8rem;
    cursor: pointer; 
}

/* --- 8. BLACK BOUTIQUE FOOTER --- */
.main-footer { 
    padding: 80px 5% 40px; 
    background: #000; 
    color: #fff; 
    margin-top: 60px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 50px; 
    margin-bottom: 50px; 
}

.footer-brand h3 { 
    color: #fff; 
    margin-bottom: 20px; 
    letter-spacing: 2px; 
}

.footer-brand p { 
    color: #888; 
    font-size: 0.95rem; 
    line-height: 1.8; 
}

.footer-links h4 { 
    color: #fff; 
    margin-bottom: 25px; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
}

.footer-links ul { 
    list-style: none; 
}

.footer-links a { 
    text-decoration: none; 
    color: #888; 
    display: block; 
    margin-bottom: 12px; 
    font-size: 0.9rem; 
}

.footer-links a:hover { 
    color: #fff; 
}

.footer-bottom { 
    border-top: 1px solid #222; 
    padding-top: 30px; 
    text-align: center; 
}

.dev-credit strong, .dev-tag strong { 
    color: #888; 
    transition: 0.3s; 
}

.dev-credit strong:hover, .dev-tag strong:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* --- 9. WHATSAPP FLOATING BUTTON --- */
.premium-chat-float { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: #fff; 
    color: #000; 
    padding: 12px 25px; 
    border-radius: 30px; 
    text-decoration: none; 
    z-index: 2000; 
    display: flex; 
    align-items: center; 
    transition: 0.3s; 
    animation: attentionShake 4s ease-in-out infinite; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
}

@keyframes attentionShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50% { transform: translateX(-5px) rotate(-3deg); }
    20%, 40%, 60% { transform: translateX(5px) rotate(3deg); }
    70% { transform: translateX(0); }
}

/* --- 10. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .nav-menu { display: none !important; }
    .hamburger-btn { display: block !important; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-content h1 { font-size: 2.5rem; }
    
    .inventory-container {
        grid-template-columns: 1fr 1fr; 
        gap: 15px;
        padding: 20px 4%;
    }
    
    .product-image {
        height: 250px; 
    }
    .cart-drawer { width: 100% !important; }
}

/* --- 11. PREMIUM SIGNATURE --- */
.premium-signature { text-align: center; margin-top: 40px; padding-top: 25px; border-top: 1px solid #eaeaea; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: #aaa; }
.premium-signature strong { color: #000; font-weight: 600; letter-spacing: 4px; background: linear-gradient(90deg, #000, #555); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* --- 12. SLIDE-OUT BAG DRAWER --- */
.cart-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s; }
.cart-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: -450px; width: 450px; height: 100%; background: #fff; z-index: 2001; box-shadow: -10px 0 30px rgba(0,0,0,0.1); transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; }
.cart-drawer.open { right: 0; }
.cart-header { padding: 30px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { font-weight: 400; font-size: 1.5rem; }
.close-cart-btn { background: none; border: none; font-size: 2rem; cursor: pointer; color: #aaa; transition: 0.3s; }
.close-cart-btn:hover { color: #000; }
.cart-items { flex: 1; overflow-y: auto; padding: 30px; }
.empty-cart-msg { text-align: center; color: #aaa; letter-spacing: 1px; margin-top: 50px; text-transform: uppercase; font-size: 0.8rem; }
.bag-item { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid #f9f9f9; }
.bag-img { width: 70px; height: 90px; background-size: cover; background-position: center; background-color: #f4f4f4; }
.bag-details { flex: 1; }
.bag-details h4 { font-size: 0.95rem; font-weight: 400; margin-bottom: 5px; }
.bag-price { font-size: 0.9rem; color: #888; }
.bag-price span { font-size: 0.8rem; color: #ccc; margin-left: 5px; }
.bag-remove { background: none; border: none; color: #d9534f; font-size: 0.75rem; text-decoration: underline; cursor: pointer; text-transform: uppercase; }
.cart-footer { padding: 30px; border-top: 1px solid #eee; background: #fafafa; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 20px; }
.btn-checkout { width: 100%; padding: 18px; background: #000; color: #fff; border: none; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; cursor: pointer; transition: 0.3s; }
.btn-checkout:hover { background: #333; }

/* --- 13. TOAST NOTIFICATION --- */
.toast-notification {
    position: fixed;
    bottom: -100px; 
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 3000;
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.toast-notification.show {
    bottom: 30px; 
}

/* --- 14. MOBILE NAVIGATION DROPDOWN --- */
.hamburger-btn {
    display: none; /* Hidden by default on desktop */
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    background: #fff;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav.open {
    max-height: 200px;
}

.mobile-nav a {
    padding: 15px 5%;
    text-decoration: none;
    color: #222;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-top: 1px solid #f9f9f9;
}