/* ========================================= */
/* --- LUXEFASHION SIDEBAR DRAWER CSS --- */
/* ========================================= */

/* --- 1. The Dark Overlay (Background Dimmer) --- */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 38, 31, 0.7); /* Deep Green Tint */
    backdrop-filter: blur(3px); /* Glass effect */
    z-index: 2000; /* High Z-Index */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- 2. The Drawer Container (The Sliding Panel) --- */
.sidebar-drawer {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen to the right */
    width: 350px; /* Width of the drawer */
    height: 100vh; /* Full viewport height */
    background-color: #ffffff;
    z-index: 2100; /* Higher than overlay */
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1); /* Smooth 'Apple-like' slide */
    
    /* Flex Layout to separate Header, Content, Footer */
    display: flex;
    flex-direction: column;
}

.sidebar-drawer.active {
    right: 0; /* Slide In */
}

/* --- 3. Drawer Header --- */
.drawer-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.drawer-title {
    font-family: 'Playfair Display', serif; /* Or your main heading font */
    font-size: 1.5rem;
    color: #C5A059; /* Copper/Gold Accent */
    font-style: italic;
    margin: 0;
}

.drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #0D261F; /* Deep Green */
    padding: 5px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.drawer-close:hover {
    color: #C5A059;
    transform: rotate(90deg);
}

/* --- 4. Scrollable Content Area --- */
.drawer-content {
    flex-grow: 1; /* Takes all available middle space */
    overflow-y: auto; /* Enables scrolling if content is long */
    padding: 30px;
}

.drawer-section {
    margin-bottom: 40px;
}

.drawer-cat-title {
    font-family: sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 15px;
    font-weight: 600;
}

.drawer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-list li {
    margin-bottom: 12px;
}

.drawer-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #0D261F; /* Primary Dark */
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease, color 0.2s ease;
}

.drawer-link:hover {
    color: #C5A059; /* Copper Hover */
    transform: translateX(10px); /* Slight slide right on hover */
}

/* --- 5. Drawer Footer (Sticky Bottom) --- */
.drawer-footer {
    padding: 20px 30px;
    background-color: #f9f9f9;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.drawer-auth-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-link {
    text-decoration: none;
    color: #0D261F;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #C5A059;
}

.divider {
    color: #ccc;
}

/* --- 6. Mobile Responsiveness --- */
@media (max-width: 480px) {
    .sidebar-drawer {
        width: 85%; /* Slightly smaller on mobile to see overlay edge */
    }
}

/* ========================================= */
/* --- MOBILE MENU LOGIC --- */
/* ========================================= */

/* 1. Default State (DESKTOP): Hide the Mobile Menu */
.mobile-only-menu {
    display: none; 
}

/* 2. Divider Style */
.drawer-divider {
    border: 0;
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 20px 0 30px 0;
}

/* 3. Special Style for Main Links (Make them bolder) */
.main-link {
    font-weight: 700; /* Bold */
    font-size: 1.3rem; /* Slightly larger */
    color: var(--primary-dark);
}

/* ========================================= */
/* --- MEDIA QUERY (The Switch) --- */
/* ========================================= */
@media (max-width: 992px) { 
    /* Adjust 992px to match your Header's breaking point */
    
    /* On Mobile/Tablet: Show the Menu */
    .mobile-only-menu {
        display: block;
    }
}