/**
 * Desktop Layout & Components
 * Desktop-specific styles extracted from header.php
 */

/* ==========================================================================
   Base Styles - Clean
   ========================================================================== */

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* ==========================================================================
   Desktop Header
   ========================================================================== */

.desktop-header {
    display: none;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}

.desktop-top-bar {
    background-color: var(--primary);
    color: white;
    padding: 8px 0;
}

.desktop-address-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.desktop-address-selector {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.desktop-address-selector i {
    margin-right: 8px;
}

.desktop-user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-user-actions a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.desktop-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.desktop-logo img {
    height: 40px;
    width: auto;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-menu-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.desktop-menu-item:hover,
.desktop-menu-item.active {
    color: var(--primary);
}

.desktop-menu-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary);
    border-radius: 1px;
}

.desktop-search-bar {
    display: flex;
    align-items: center;
    background-color: var(--background);
    border-radius: 20px;
    padding: 8px 15px;
    width: 250px;
    transition: all 0.3s;
}

.desktop-search-bar:focus-within {
    box-shadow: 0 0 0 2px var(--primary-light);
    width: 300px;
}

.desktop-search-bar i {
    color: var(--text-light);
    margin-right: 10px;
}

.desktop-search-bar input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    color: var(--text-dark);
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.desktop-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.desktop-action-btn:hover {
    color: var(--primary);
}

.desktop-cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--danger);
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (min-width: 576px) {
    .address-item-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .address-info {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .address-actions {
        flex-direction: row;
        gap: 10px;
    }
}

@media (min-width: 992px) {
    .mobile-header {
        display: none;
    }
    
    .desktop-header {
        display: block;
    }
    
    .search-container {
        display: none;
    }
    
    .mobile-nav {
        display: none;
    }
}