/* =========================================
   1. MAIN NAVIGATION BAR (Black Header)
   ========================================= */
nav, nav.sticky-top {
    position: fixed ;
    top: 0;
    left: 0;
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #000000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 10002;
}

special-header {
    display: block;
    height: 100px;
}
/* --- Top Left Logo Area --- */
nav .logo {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0 30px;
}

.logo .menu-icon {
    color: #ffffff;
    font-size: 32px;
    margin-right: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s;
}

.logo .menu-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.logo .logo-name {
    color: white;
    display: flex;
    align-items: center;
}

/* =========================================
   2. SIDEBAR DRAWER (High Performance Fix)
   ========================================= */
nav .sidebar {
    position: fixed;
    top: 0;
    
    /* FIX: Don't use 'left' for positioning off-screen */
    left: 0; 
    
    /* FIX: Use Transform to move it off-screen (100% of its own width) */
    transform: translateX(-100%);
    
    height: 100%;
    width: 320px;
    
    background-color: #ffffff;
    
    /* Reduce shadow size slightly to help rendering speed */
    box-shadow: 5px 0 15px rgba(0,0,0,0.15);
    
    /* FIX: Animate the transform, not the left property */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* FIX: Tell the browser to use the GPU */
    will-change: transform;
    
    z-index: 10003;
    display: flex;
    flex-direction: column;
}

/* Open State */
nav.open .sidebar {
    /* Slide it back to 0 */
    transform: translateX(0);
}
/* --- Sidebar Header (Logo + Close Button) --- */
.sidebar .logo {
    min-height: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    
    /* MODIFIED: Increased Gap on Left/Right */
    padding: 0 40px; 
    
    margin: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: transparent;
}

.menu-icon-inside {
    color: #000;
    font-size: 34px;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.menu-icon-inside:hover {
    transform: rotate(90deg);
}

/* =========================================
   3. MENU CONTENT & LINKS
   ========================================= */
.sidebar .sidebar-content {
    padding: 30px 0;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-content .lists {
    list-style: none;
    
    /* MODIFIED: Increased Gap on Left */
    padding: 0 40px; 
    
    margin: 0;
}

.list {
    margin-bottom: 25px;
}

/* Link Container */
.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0; /* Removed horizontal padding to align strictly with container */
    text-decoration: none;
    cursor: pointer;
}

/* --- TYPOGRAPHY (Main Titles) --- */
.nav-link .title {
    font-family: 'AileronThin', sans-serif;
    
    /* MODIFIED: Bigger Font */
    font-size: 40px; 
    
    font-weight: 100;
    color: #000;
    letter-spacing: 2px;
    line-height: 1;
}

.nav-link .bx-chevron-down {
    font-size: 24px;
    color: #999;
    transition: transform 0.3s;
}

.nav-link:hover .bx-chevron-down {
    transform: translateY(3px);
    color: #000;
}

/* =========================================
   4. SUB-MENUS (About, Product, etc.)
   ========================================= */
.submenu_list {
    list-style: none;
    padding-left: 20px; /* Indent sub-items */
    border-left: 1px solid #eee;
    margin-left: 5px; /* Offset from the main line */
    margin-top: 10px;
}

.submenu_item_link {
    padding: 4px 0;
}

/* --- Sub-Menu Typography --- */
.submenu_item_link .link {
    font-family: 'AileronReg', sans-serif;
    
    /* MODIFIED: Bigger Font */
    font-size: 20px; 
    
    font-weight: 400;
    color: #555;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.submenu_item_link .nav-link:hover .link {
    color: #000;
    font-weight: 600;
    transform: translateX(8px);
}

/* =========================================
   5. SIDEBAR FOOTER (Buttons)
   ========================================= */
.sidebar-footer {
    /* MODIFIED: Match the gap of the lists */
    padding: 20px 40px; 
    
    background-color: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Base Button Style */
.sidebar-btn {
    height: 50px;
    border-radius: 0;
    font-family: 'AileronReg', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #000;
}

/* Contact Button */
.contact-btn {
    flex: 2;
    background-color: #fff;
    color: #000;
}

.contact-btn:hover {
    background-color: #000;
    color: #fff;
}

/* Instagram Button */
.instagram-btn {
    flex: 1;
    background-color: #000;
    color: #fff;
    font-size: 24px;
}

.instagram-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* =========================================
   6. PAGE OVERLAY
   ========================================= */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 10001;
}

nav.open ~ .overlay {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================
   7. CART ICON (Header)
   ========================================= */
.cart-btn-wrapper {
    position: absolute;
    right: 40px;
    
    /* Flexbox keeps icon centered */
    display: flex;
    align-items: center;
    justify-content: center;
    
    color: white;
    font-size: 30px;
    text-decoration: none;
    transition: opacity 0.3s;
    
    /* Ensure width doesn't stretch */
    width: auto;
    height: auto;
}

.cart-btn-wrapper:hover {
    opacity: 0.7;
    color: #ddd;
}

#cart-count {
    position: absolute;
    /* Position Top-Right of icon */
    top: -5px;
    right: -8px;
    
    /* Shape */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    
    /* Color */
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000; /* Black border makes it stand out */
    
    /* --- CENTERING FIX --- */
    /* Use text-align instead of flexbox to ensure it works with JS 'display: block' */
    text-align: center;
    
    /* Line-height must equal (Height - BorderWidth*2) */
    /* 20px - 4px = 16px */
    line-height: 16px; 
    
    font-size: 11px;
    font-weight: 800;
    font-family: sans-serif;
    
    /* Hidden by default, JS turns it on */
    display: none; 
    
    /* Stop padding from affecting size */
    box-sizing: border-box; 
}
/* =========================================
   8. MOBILE RESPONSIVENESS
   ========================================= */
@media screen and (max-width: 600px) {
    nav .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .sidebar .logo, .sidebar-content .lists, .sidebar-footer {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    nav .logo {
        padding-left: 20px;
        margin: 0;
    }
    
    .cart-btn-wrapper {
        right: 20px;
    }
}