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


/* =========================
   PRODUCT CARD GLOBAL
========================= */
/* Premium Card Design */
.product-card {
    min-width: 285px;
    background: var(--white);
    border-radius: 16px; /* Halka curved for premium feel */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(122, 12, 12, 0.08); /* Crimson tinted shadow */
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(201, 162, 39, 0.2); /* Soft gold border */
    position: relative;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(122, 12, 12, 0.15);
    border-color: var(--accent); /* Hover garda gold border highlight hune */
}

/* Image */
.img-box {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s ease;
}

.product-card:hover img {
    transform: scale(1.1) rotate(1deg);
}

/* Body Styling */
.card-body {
    padding: 22px;
    text-align: left;
}

.card-body h3 {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.price {
    color: var(--accent); /* Price lai Gold color ma rakha, luxurious dekhinchha */
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 18px;
    display: block;
}

/* Crimson & Gold Button */
.btn-small {
    width: 100%;
    padding: 14px;
    border: none;
    background: var(--primary); /* Deep Crimson */
    color: var(--white);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 13px;
}

.btn-small:hover {
    background: var(--secondary); /* Vibrant Crimson on hover */
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
    transform: scale(1.02);
}

/* Badge Styling */
/* .product-card::before {
    content: "RARE";
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent); 
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
} */

/* ==========================================
   💡 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
========================================== */
@media (max-width: 768px) {
    .navbar .menu-toggle {
        display: block; /* मोबाइलमा मात्र ३ धर्के आइकन देखिने */
    }

    .navbar .nav-links-container {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 2px solid var(--accent);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        z-index: 9999;
    }

    .navbar .nav-links-container.mobile-open {
        display: flex;
    }

    .navbar .nav-links-container a {
        margin: 12px 0 !important;
        font-size: 18px;
        width: 90%;
        text-align: center;
    }

    .navbar .nav-contact {
        width: auto !important;
        display: inline-block;
    }

    .navbar .nav-right-actions {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }

    .navbar .dropdown-menu-content {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}