/* Lidl Header Styling */

/* Top bar */
.top-bar {
    display: none !important;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 24px;
    max-height: 24px;
    overflow: hidden;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
}

.delivery-info,
.store-locator {
    font-weight: 500;
    color: white;
    z-index: inherit;
    font-size: 11px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
}

.admin-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-link:hover {
    color: #ffeb3b;
}

.language {
    font-weight: 500;
}

/* Main header */
.main-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: fixed;
    top: 0; /* No top bar anymore */
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 30px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.lidl-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.lidl-logo:hover {
    transform: scale(1.05);
}

/* Search section */
.search-section {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-input-group {
    display: flex;
    background: #f5f5f5;
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #0c5aa6;
    box-shadow: 0 0 0 3px rgba(12, 90, 166, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: #757575;
}

.search-btn {
    background: #0c5aa6;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #094a8a;
}

.search-icon {
    font-size: 16px;
}

/* Search suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 5px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Header actions */
.header-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-action {
    position: relative;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.action-link:hover {
    background: #f5f5f5;
    color: #0c5aa6;
}

.action-icon {
    font-size: 24px;
    position: relative;
}

.action-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.action-main {
    font-weight: 600;
    font-size: 14px;
}

.action-sub {
    font-size: 12px;
    color: #757575;
}

/* Cart specific styling */
.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

/* Mini cart */
.mini-cart {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    margin-top: 10px;
}

.mini-cart-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-cart-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.close-mini-cart {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #757575;
    transition: color 0.3s ease;
}

.close-mini-cart:hover {
    color: #333;
}

.mini-cart-content {
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 20px;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #757575;
    margin-bottom: 20px;
}

.continue-shopping {
    background: #0c5aa6;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s ease;
}

.continue-shopping:hover {
    background: #094a8a;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Navigation */
.main-navigation {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 80px; /* Height of main header only */
    left: 0;
    right: 0;
    z-index: 999;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.nav-link:hover {
    background: #0c5aa6;
    color: white;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    display: none;
    z-index: 1000;
    padding: 10px 0;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.3s ease;
}

.dropdown-link:hover {
    background: #f5f5f5;
    color: #0c5aa6;
}

.category-count {
    color: #757575;
    font-size: 12px;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0c5aa6;
    color: white;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-mobile-menu {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #0c5aa6;
}

.mobile-categories {
    margin: 20px 0;
}

.mobile-categories h4 {
    margin-bottom: 15px;
    color: #0c5aa6;
    font-size: 16px;
}

.mobile-category-link {
    display: block;
    padding: 8px 0 8px 20px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.mobile-category-link:hover {
    color: #0c5aa6;
}

.mobile-account-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Responsive design */
@media (max-width: 1024px) {
    .header-content {
        grid-template-columns: auto 1fr auto;
        gap: 20px;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .action-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .main-header {
        top: 0; /* No top bar on mobile */
    }
    
    .main-navigation {
        top: 70px; /* Adjusted for mobile header height */
        display: none;
    }
    
    body {
        padding-top: 70px; /* Reduced padding for mobile */
    }
    
    .header-content {
        grid-template-columns: auto 1fr auto;
        gap: 15px;
    }
    
    .search-section {
        display: none;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 10px 0;
    }
    
    .lidl-logo {
        height: 40px;
    }
    
    .header-actions {
        gap: 5px;
    }
    
    .action-link {
        padding: 6px 8px;
    }
    
    .action-icon {
        font-size: 20px;
    }
}
