/* --- CSS Variables (Template System) --- */
:root {
    /* These defaults will be overridden by JS fetching settings from the DB */
    --primary-color: #000000;
    --secondary-color: #f8f9fa;
    --text-color: #333333;
    --accent-color: #dc3545; /* E.g., for Hot Drops or Badges */
    --whatsapp-color: #25D366;
    --bg-light: #f4f5f7;
}

/* --- Global & Reset --- */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
.cursor-pointer { cursor: pointer; }

/* Dynamic Theme Classes */
.theme-bg { background-color: var(--primary-color) !important; color: #fff !important; }
.theme-text { color: var(--primary-color) !important; }
.theme-btn { 
    background-color: var(--primary-color) !important; 
    color: #fff !important; 
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    border: none;
    transition: opacity 0.3s ease;
}
.theme-btn:hover { opacity: 0.9; color: #fff; }
.theme-btn-outline {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent;
    font-weight: 600;
    border-radius: 8px;
}

/* --- Top Notification Bar --- */
#hot-notification-bar {
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    animation: slideDown 0.4s ease-out;
}

/* --- Header --- */
#main-header {
    z-index: 1020;
    height: 60px;
}

/* --- Side Menu (Offcanvas) --- */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Hidden off-screen to the right by default */
    width: 280px;
    height: 100vh;
    z-index: 1050;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}
.side-menu.open {
    right: 0;
}
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.side-menu-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.menu-links li a {
    display: block;
    padding: 12px 10px;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s;
}
.menu-links li a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* --- Bottom Navigation --- */
#bottom-nav {
    z-index: 1030;
    height: 65px;
}
.nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    width: 25%;
    font-size: 1.2rem;
    transition: color 0.2s;
}
.nav-btn span {
    font-size: 0.7rem;
    margin-top: 3px;
    font-weight: 600;
}
.nav-btn.active, .nav-btn:hover {
    color: var(--primary-color);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 80px; /* Above the bottom nav */
    right: 20px;
    background-color: var(--whatsapp-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* --- Utility Animations --- */
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

/* Horizontal Scroll Hide Scrollbar (For Category Filters) */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}