/* Color Variables */
:root {
    --primary: #7A0C0C;
    /* richer deep crim (less harsh, more premium) */
    --secondary: #E63946;
    /* vibrant but elegant crimson */
    --background: #F4ECE1;
    /* warmer antique beige */
    --text-dark: #1C1C1C;
    --text-light: #FFFFFF;
    --accent: #C9A227;
    /* gold */
    --white: #FFFFFF;
    /* FIX (missing variable) */
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: var(--background);
    color: var(--text-dark);
}

/* Container */
.container {
    width: 90%;
    /* max-width: 1200px; */
    margin: auto;
}

/* Navbar */
.navbar {
    background: var(--primary);
    color: var(--white);
    padding: 18px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 999;
}

.footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 2px solid var(--accent);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-contact {
    background: var(--accent);
    color: var(--primary) !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-contact:hover {
    background: var(--secondary);
    color: white !important;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo span {
    color: var(--secondary);
}

.navbar nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 25px;
    font-size: 16px;
    transition: 0.3s;
}

.navbar nav a:hover {
    color: var(--secondary);
}

/* Main */
main {
    min-height: 80vh;
    padding: 0;
}

/* Footer
.footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
} */

/* Utility */
h1,
h2,
h3 {
    font-weight: normal;
}

/* Buttons (future use) */
.btn {
    background: var(--primary);
    color: var(--white);
    padding: 10px 18px;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: 0.3s;
}

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

/* =========================
   FOOTER PREMIUM DESIGN
========================= */

.footer {
    background: #5a0808;
    /* darker than primary for depth */
    color: var(--white);
    padding: 60px 0 0;
    border-top: 3px solid var(--accent);
}

/* Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

/* Column */
.footer-col h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent);
}

.footer-col p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

/* Logo */
.footer-logo {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--secondary);
}

/* Links */
.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--white);
    opacity: 0.8;
    transition: 0.3s;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--accent);
    opacity: 1;
    padding-left: 5px;
}

/* Newsletter */
.newsletter {
    display: flex;
    margin-top: 10px;
}

.newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 6px 0 0 6px;
}

.newsletter button {
    background: var(--accent);
    border: none;
    padding: 10px 15px;
    color: var(--white);
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    transition: 0.3s;
}

.newsletter button:hover {
    background: var(--secondary);
}

/* Bottom */
.footer-bottom {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    opacity: 0.7;
}


/* ==========================================
   💡 NAVBAR UPGRADED ACTIONS & RESPONSIVENESS (SUPER PERFECT FIX)
========================================== */

/* सामान्य मेनु लिङ्कहरू एक्टिभ हुँदा गोल्ड रङमा टल्किने */
.navbar .nav-links-container a.active {
    color: var(--accent) !important;
    font-weight: bold;
}

/* नेभिगेसन कन्ट्यानर एलाइनमेन्ट */
.navbar .nav-links-container {
    display: flex;
    align-items: center;
}

/* एक्शन एलाइनमेन्ट (दायाँपट्टिको भाग) */
.navbar .nav-right-actions {
    display: flex;
    align-items: center;
    margin-left: 25px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* 💡 कन्ट्याक्ट र लगइन बटनको उचाइ र गोलाइलाई एउटै फ्रेममा लक गरियो भाई */
.navbar .nav-links-container a.nav-contact,
.navbar .nav-right-actions .nav-login-btn {
    padding: 6px 14px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: 'Georgia', serif;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 34px !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease;
}

/* कन्ट्याक्ट बटन: साधारण अवस्था */
.navbar .nav-links-container a.nav-contact {
    background: var(--primary) !important;
    color: var(--white) !important;
    border: 1px solid var(--accent) !important;
    margin-left: 25px !important;
}

/* कन्ट्याक्ट बटन: होभर र एक्टिभ हुँदा */
.navbar .nav-links-container a.nav-contact:hover,
.navbar .nav-links-container a.nav-contact.active {
    background: var(--accent) !important;
    color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* लगइन बटन: साधारण अवस्था (गोल्ड सोलिड) */
.navbar .nav-right-actions .nav-login-btn {
    background: var(--accent) !important;
    color: var(--primary) !important;
    border: 1px solid var(--accent) !important;
    margin: 0 !important;
}

/* लगइन बटन: होभर स्टेट */
.navbar .nav-right-actions .nav-login-btn:hover {
    background: var(--secondary) !important;
    color: var(--white) !important;
    border-color: var(--secondary) !important;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* लगइन बटन भित्रको ताल्चा आइकन */
.navbar .nav-right-actions .nav-login-btn i {
    font-size: 13px !important;
    margin-right: 6px;
}

/* प्रोफाइल ड्रपडाउन मुख्य बक्स */
.navbar .user-profile-dropdown {
    position: relative;
    display: inline-block;
    padding: 10px 0;
}

/* गोलो अवतार इमेज */
.navbar .nav-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    cursor: pointer;
    vertical-align: middle;
}

/* डिफल्ट अवतार आइकन */
.navbar .nav-avatar-icon {
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
    vertical-align: middle;
}

/* ड्रपडाउन मेनु बक्स */
.navbar .dropdown-menu-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1000;
    border: 1px solid rgba(122, 12, 12, 0.1);
    animation: dropdownFadeUp 0.2s ease-out;
}

@keyframes dropdownFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar .user-profile-dropdown.show .dropdown-menu-content {
    display: block;
}

.navbar .dropdown-menu-content a {
    color: var(--text-dark) !important;
    padding: 12px 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-family: 'Georgia', serif;
    border-bottom: 1px solid #f7f7f7;
    transition: 0.2s ease;
    margin: 0 !important;
}

.navbar .dropdown-menu-content a:hover {
    background-color: #faf6f0;
    color: var(--primary) !important;
    padding-left: 22px;
}

.navbar .admin-panel-link {
    color: #2980b9 !important;
    font-weight: 600;
}

.navbar .dropdown-divider {
    margin: 0;
    border: none;
    border-top: 1px solid #eee;
}

.navbar .dropdown-menu-content .logout-form button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 13px 18px;
    font-size: 14px;
    font-family: 'Georgia', serif;
    color: #c0392b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
}

/* 💡 🌟 मोबाइल ह्यामबर्गर बटन फिक्स (यसको फन्ट FontAwesome मै लक गरियो, अब कुरुप आइकन हट्छ) 🌟 */
.navbar .menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
}

.navbar .menu-toggle i {
    font-family: "Font Awesome 6 Free" !important;
    /* फन्ट असमकै आइकन देखाउन लक गरियो भाई */
    font-weight: 900 !important;
}

/* ==========================================
   📱 MOBILE RESPONSIVE MEDIA QUERY
========================================== */
/* Top Loading Progress Bar */
.top-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #FF007F, #FF7F00, #FFFF00, #00FF7F, #007FFF, #7F00FF, #FF007F);
    background-size: 400% 100%;
    z-index: 100001;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.6), 0 0 5px rgba(0, 127, 255, 0.4);
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    animation: loading-bar-flow 1.5s linear infinite;
}

@keyframes loading-bar-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

/* Full Screen Loader Overlay */
.global-page-loader {
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 12, 0.95);
    /* Deep dark theme overlay */
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(8px);
}

.global-page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Color-shifting preloader glow in the center */
.loader-content {
    text-align: center;
    padding: 40px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, rgba(230, 57, 70, 0.05) 50%, rgba(12, 12, 12, 0) 100%);
    border-radius: 50%;
}

/* Triple-Ring Neon / Gold Shifting Spinner */
.antique-spinner {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.03);
    border-top-color: #FF0055;
    /* Magenta/Crimson */
    border-bottom-color: #00FFCC;
    /* Cyan/Teal */
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin-double 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    position: relative;
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.3), inset 0 0 15px rgba(0, 255, 204, 0.2);
}

.antique-spinner::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 3px solid rgba(255, 255, 255, 0.03);
    border-left-color: #FFAA00;
    /* Gold/Amber */
    border-right-color: #FF00FF;
    /* Neon Purple */
    border-radius: 50%;
    animation: spin-reverse 0.9s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.antique-spinner::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 3px solid rgba(255, 255, 255, 0.03);
    border-top-color: #00FF55;
    /* Lime/Emerald */
    border-bottom-color: #007FFF;
    /* Electric Blue */
    border-radius: 50%;
    animation: spin-double 0.6s linear infinite;
}

.loader-text {
    color: #FFFFFF;
    font-family: 'Georgia', serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
    font-style: italic;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3), 0 0 20px rgba(255, 0, 85, 0.2);
    animation: pulse-text-color 2.5s ease-in-out infinite;
}

@keyframes spin-double {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulse-text-color {

    0%,
    100% {
        color: #F4ECE1;
        text-shadow: 0 0 10px rgba(201, 162, 39, 0.3);
        transform: scale(0.98);
    }

    33% {
        color: #00FFCC;
        text-shadow: 0 0 12px rgba(0, 255, 204, 0.5);
        transform: scale(1.02);
    }

    66% {
        color: #FF0055;
        text-shadow: 0 0 12px rgba(255, 0, 85, 0.5);
        transform: scale(0.98);
    }
}

/* Sticky Mobile Bottom Navigation Bar (Ultima Style) */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
        z-index: 99999;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
        gap: 4px;
        width: 20%;
        height: 100%;
        transition: all 0.2s ease;
    }

    .mobile-bottom-nav a i {
        font-size: 18px;
        transition: transform 0.2s ease;
    }

    .mobile-bottom-nav a:hover i {
        transform: translateY(-2px);
    }

    .mobile-bottom-nav a.active {
        color: var(--primary) !important;
    }

    /* Add space to body/main to prevent footer/content overlap */
    body {
        padding-bottom: 60px !important;
    }

    /* Hide old dropdown links wrapper completely on mobile */
    .navbar .nav-links-container {
        display: none !important;
    }

    /* Make wrapper fit hamburger, logo, actions */
    .navbar .nav-wrapper {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 20px !important;
    }

    /* Left hamburger icon */
    .navbar .menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        background: rgba(255, 255, 255, 0.18) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
        border-radius: 10px !important;
        color: #ffffff !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 12px 0 0 !important;
        flex-shrink: 0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
        transition: all 0.2s ease !important;
    }

    .navbar .menu-toggle i {
        color: #ffffff !important;
        font-size: 20px !important;
        line-height: 1 !important;
    }

    .navbar .menu-toggle:hover,
    .navbar .menu-toggle:active {
        background: rgba(255, 255, 255, 0.3) !important;
        transform: scale(0.96) !important;
    }

    /* Logo stays cleanly centered/left next to hamburger */
    .navbar .logo {
        font-size: 22px !important;
        margin: 0 0 0 10px !important; /* Left margin next to hamburger */
        flex-grow: 1 !important;
        text-align: left !important;
    }

    /* Actions stay horizontally side-by-side on the right */
    .nav-actions-container {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .navbar .nav-right-actions {
        display: flex !important;
        align-items: center !important;
        margin-top: 0 !important;
        padding-left: 0 !important;
        border-left: none !important;
        width: auto !important;
    }

    /* User profile dropdown box stays in nav alignment */
    .navbar .user-profile-dropdown {
        padding: 0 !important;
    }
}

/* ==========================================
   🔍 MOBILE DRAWER NAVIGATION (ULTIMA STYLE)
   ========================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px; /* Initially hidden on the left */
    width: 300px;
    height: 100%;
    background: #ffffff;
    z-index: 100000; /* Higher than sticky nav and bottom nav */
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-drawer.open {
    left: 0; /* Slide in */
}

/* Backdrop Overlay */
.mobile-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
}

.mobile-drawer-overlay.open {
    display: block;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.close-drawer {
    font-size: 28px;
    cursor: pointer;
    color: #475569;
    margin-right: 15px;
    transition: transform 0.2s;
    line-height: 1;
}

.close-drawer:hover {
    transform: rotate(90deg);
}

.drawer-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.drawer-logo span {
    color: var(--secondary);
}

/* Drawer Content */
.drawer-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Categories Accordion */
.drawer-accordion {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    border-radius: 8px;
    cursor: pointer;
}

.accordion-panel {
    display: none; 
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 10px;
}

.accordion-panel.show {
    display: block;
    margin-top: 15px;
}

/* Categories Grid inside Drawer */
.drawer-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.drawer-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.drawer-cat-img {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 6px;
}

.drawer-cat-img img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

/* Drawer Links */
.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.drawer-links a:hover {
    background: #f1f5f9;
    color: var(--primary);
}

/* Account Section */
.drawer-account-section {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.drawer-account-section h4 {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.drawer-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-drawer-login, .btn-drawer-register {
    width: 100%;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    font-size: 14px;
}

.btn-drawer-login {
    background: #0f172a; /* Sleek black background */
    color: #ffffff;
}

.btn-drawer-register {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.btn-drawer-account {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    text-align: center;
    text-decoration: none;
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    border-radius: 8px;
    font-size: 13px;
}

.btn-drawer-logout {
    width: 100%;
    padding: 10px;
    background: #ffebe9;
    color: #ef4444;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}