/**
 * Custom Header Styles
 * Copyright © MaPerruque. All rights reserved.
 */

/* Header Content Wrapper - Main container */
.header-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 15px 20px;
    gap: 30px;
}

/* Logo Section - Left side */
.header-logo {
    flex-shrink: 0;
}

.header-logo .logo {
    display: block;
}

.header-logo .logo img {
    max-height: 50px;
    width: auto;
}

/* Navigation Menu - Center */
.header-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navigation-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Catalog Navigation (Boutique categories) */
.navigation-menu .navigation {
    display: inline-block;
}

.navigation-menu .navigation > ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    align-items: center;
}

/* Static Menu Items */
.navigation-menu .static-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    align-items: center;
}

.navigation-menu .menu-item {
    position: relative;
}

.navigation-menu .menu-item > a,
.navigation-menu .navigation > ul > li > a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 5px;
    display: block;
    transition: color 0.3s ease;
}

.navigation-menu .menu-item > a:hover,
.navigation-menu .navigation > ul > li > a:hover {
    color: #000;
}

/* Dropdown for categories */
.navigation-menu .navigation > ul > li {
    position: relative;
}

.navigation {
    background-color: transparent !important;
}

.navigation-menu .navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.navigation-menu .navigation > ul > li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navigation-menu .navigation ul ul li {
    padding: 0;
}

.navigation-menu .navigation ul ul a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.navigation-menu .navigation ul ul a:hover {
    background-color: transparent;
}

/* Right Section - Customer Account, Search, Cart */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* Customer Account Icon */
.customer-account-link a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.customer-account-link a:hover {
    color: #000;
}

.customer-account-link svg {
    width: 24px;
    height: 24px;
}

/* Search Field */
.header-search {
    position: relative;
}

.header-search .block-search {
    margin: 0;
}

.header-search .minisearch {
    display: flex;
}

.header-search .field.search {
    margin: 0;
}

.header-search input[type="text"] {
    padding: 8px 40px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
    font-size: 14px;
    transition: width 0.3s ease, border-color 0.3s ease;
}

.header-search input[type="text"]:focus {
    outline: none;
    border-color: #333;
    width: 250px;
}

.header-search .action.search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.header-search .action.search:before {
    content: "🔍";
    font-size: 16px;
}

/* Cart Icon */
.header-cart {
    position: relative;
}

.header-cart .minicart-wrapper {
    margin: 0;
}

.header-cart .action.showcart {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.header-cart .action.showcart:hover {
    color: #000;
}

.header-cart .counter.qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .header-content-wrapper {
        gap: 20px;
    }
    
    .navigation-menu .menu-list {
        gap: 15px;
    }
    
    .navigation-menu .menu-item > a {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .header-content-wrapper {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-logo {
        order: 1;
    }
    
    .header-right {
        order: 2;
        margin-left: auto;
    }
    
    .header-navigation {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .navigation-menu .menu-list {
        gap: 10px;
        flex-wrap: nowrap;
    }
    
    .navigation-menu .menu-item > a {
        font-size: 13px;
        white-space: nowrap;
    }
    
    .header-search input[type="text"] {
        width: 150px;
    }
    
    .header-search input[type="text"]:focus {
        width: 180px;
    }
}

@media screen and (max-width: 480px) {
    .header-content-wrapper {
        padding: 10px 15px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .header-search input[type="text"] {
        width: 120px;
    }
    
    .header-search input[type="text"]:focus {
        width: 150px;
    }
}
