/* CSS Variables for Ecosystem Theme */
:root {
    --primary-color: #2a1b54;
    --primary-hover: #3d2b70;
    --accent-color: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #f8f9fb;
    --card-bg: #ececec;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --border-color: #e2e2e2;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.nav-user {
    display:flex;
    flex-direction: row;
    align-items:center;
    gap:10px;
    background:#e7e7ea;
    padding:4px 16px 4px 4px;
    justify-content: center;
    border-radius:25px;
    font-size:14px;
}

.nav-user i {
    display: flex;
    align-items: center;
    justify-content: center;
    width:32px;
    height: 32px;
    color:white;
    background:#2d1a6b;
    border-radius: 50%;
    font-size: 14px;
}

.nav-user p {
    font-size: 15px;
    font-weight: 500;
    color: #6b6b6b;
}

.nav-user:hover{
    background:#dcdce2;
    transform:scale(1.05);
    p{
        color:#1f124d;
    }
}

.profpic {
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: 5px;
    border-radius: 50%;
    object-position: center;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

#mainlogo {
    width: 70px;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}



/* Navbar */
.eco-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-actions-panel, .user-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-bar {
    position: relative;
    background: #f0f0f5;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
}

.search-bar input {
    border: none;
    background: transparent;
    padding-left: 0.5rem;
    outline: none;
    font-family: inherit;
    width: 150px;
}

.search-bar i {
    color: var(--text-muted);
}

.nav-actions .cart-icon, .nav-actions .profile-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.nav-link.log-in {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link.log-in:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-link.log-in::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link.log-in:hover::after {
    width: 100%;
}

.nav-btn.sign-up {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.nav-btn.sign-up:hover {
    background-color: #0f6dd8;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* Footer */
.eco-footer {
    background-color: #1a1a1a;
    color: white;
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand h3 .logo-text {
    color: white;
    font-size: 1.8rem;
}

.footer-brand p {
    color: #999;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    max-width: 300px;
}

.social-icons a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 0.5rem;
}
.social-icons a:hover {
    background: white;
    color: #1a1a1a;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #999;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}
.footer-contact i {
    margin-right: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
}

.footer-bottom-links a {
    color: #666;
    margin-left: 1rem;
    font-size: 1.2rem;
}

/* Mobile Menu Elements */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-sidepanel {
    display: none; 
}

.sidepanel-header {
    display: none;
}

.sidepanel-overlay {
    display: none;
}

@media (max-width: 900px) {
    .desktop-only {
        display: none !important;
    }

    /* Navbar Responsive */
    .mobile-menu-toggle {
        display: block;
        flex: 1;
        text-align: left;
    }
    
    .nav-brand {
        flex: 1;
        text-align: center;
    }

    .user-actions {
        flex: 1;
        justify-content: flex-end;
    }

    .mobile-sidepanel {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100%;
        overflow-y: auto;
        background: white;
        z-index: 1001;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .mobile-sidepanel.open {
        left: 0;
    }

    .mobile-logo {
        display: flex;
        width: 70px;
        height: auto;
    }

    #mainlogo {
        width: 40px;
        height: auto;
    }

    .nav-user {
        gap: 0px;
        padding-right: 4px;
    }

    .nav-user p {
        display: none;
        width: 0;
    }

    .sidepanel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
    }

    .close-menu {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-muted);
    }

    .sidepanel-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        display: block;
    }

    .sidepanel-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-nav-links a {
        display: block;
        padding: 0.8rem 1rem;
        border-radius: 8px;
        background: #ffffff;
        transition: background 0.2s ease;
        color: var(--text-dark);
        font-weight: 500;
    }
    
    .mobile-nav-links a:hover, .mobile-nav-links a.active {
        background: #e7e7ea;
        color: var(--primary-color);
    }
    
    .mobile-nav-links a::after {
        display: none;
    }

    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .mobile-search-bar {
        width: 100%;
        background: #f0f0f5;
        border-radius: 8px;
        padding: 0.8rem 1rem;
        display: flex;
        align-items: center;
    }
    
    .mobile-search-bar input {
        width: 100%;
        font-size: 1rem;
        border: none;
        background: transparent;
        padding-left: 0.5rem;
        outline: none;
    }

    /* Footer Responsive */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LUXA ECOSYSTEM BASE (NAVBAR, FOOTER, MOBILE DRAWER) OBSIDIAN DARK MODE
   ========================================================================== */
html[data-theme="dark"],
html[data-theme="dark"] body {
    background-color: #0F0D17 !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .eco-navbar {
    background: #13111C !important;
    border-bottom: 1px solid #2D2740 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .nav-links a {
    color: #A5A1B8 !important;
}

html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a.active {
    color: #A38CF4 !important;
}

html[data-theme="dark"] .nav-links a.active::after {
    background: #A38CF4 !important;
}

html[data-theme="dark"] .search-bar {
    background: #181524 !important;
    border: 1px solid #2D2740 !important;
}

html[data-theme="dark"] .search-bar input {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .search-bar input::placeholder {
    color: #8E8A9F !important;
}

html[data-theme="dark"] .search-bar i {
    color: #8E8A9F !important;
}

html[data-theme="dark"] .nav-user {
    background: #181524 !important;
    border: 1px solid #2D2740 !important;
}

html[data-theme="dark"] .nav-user p {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .nav-user i {
    background: #2D2740 !important;
    color: #A38CF4 !important;
}

html[data-theme="dark"] .nav-user:hover {
    background: #231F34 !important;
}

html[data-theme="dark"] .log-out {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .crave-theme-toggle-btn {
    background: #181524 !important;
    border: 1.5px solid #2D2740 !important;
    color: #FDE047 !important;
}

html[data-theme="dark"] .mobile-menu-toggle {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .mobile-sidepanel {
    background: #13111C !important;
    border-right: 1px solid #2D2740 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .close-menu {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .close-menu:hover {
    color: #A38CF4 !important;
}

html[data-theme="dark"] .mobile-nav-links a {
    background: #181524 !important;
    color: #F8FAFC !important;
    border: 1px solid #2D2740 !important;
}

html[data-theme="dark"] .mobile-nav-links a:hover,
html[data-theme="dark"] .mobile-nav-links a.active {
    background: #231F34 !important;
    color: #A38CF4 !important;
    border-color: #A38CF4 !important;
}

html[data-theme="dark"] .mobile-search-bar {
    background: #181524 !important;
    border: 1px solid #2D2740 !important;
}

html[data-theme="dark"] .mobile-search-bar input {
    background: transparent !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .mobile-search-bar input::placeholder {
    color: #8E8A9F !important;
}

html[data-theme="dark"] .mobile-search-bar i {
    color: #8E8A9F !important;
}

html[data-theme="dark"] .nav-link.log-in {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .nav-link.log-in:hover {
    color: #A38CF4 !important;
}

html[data-theme="dark"] .mobile-nav-actions .log-in {
    background: #181524 !important;
    border: 1px solid #2D2740 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .mobile-nav-actions .sign-up,
html[data-theme="dark"] .mobile-nav-actions .btn-primary {
    background: var(--luxa-purple-gradient, linear-gradient(135deg, #7C57FF 0%, #5C32E4 100%)) !important;
    color: #FFFFFF !important;
    border: none !important;
}

html[data-theme="dark"] .eco-footer {
    background: #0B0A12 !important;
    border-top: 1px solid #2D2740 !important;
}

html[data-theme="dark"] .eco-footer h3,
html[data-theme="dark"] .eco-footer h4 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .eco-footer p,
html[data-theme="dark"] .eco-footer a {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .eco-footer a:hover {
    color: #A38CF4 !important;
}

html[data-theme="dark"] .social-icons a {
    background: #181524 !important;
    border: 1px solid #2D2740 !important;
    color: #A38CF4 !important;
}

html[data-theme="dark"] .social-icons a:hover {
    background: var(--luxa-purple-gradient, linear-gradient(135deg, #7C57FF 0%, #5C32E4 100%)) !important;
    color: #FFFFFF !important;
}
