/*
Theme Name:   Leading Campings Shop
Theme URI:    https://leading-campings.server.codeagentur.de
Description:  Child-Theme für Storefront - Leading Campings Shop
Author:       Max Schmidt - PWF Solution
Author URI:   https://leading-campings.server.codeagentur.de
Template:     storefront
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  leading-campings-shop
*/

/* ============================================
   Custom Header Styles
   ============================================ */

/* Header Container */
.leading-campings-custom-header {
    background: #fff;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Top Row - Logo, Suche, Aktionen */
.header-top-row {
    padding: 15px 0;
}

.header-top-row .header-container {
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 30px;
    align-items: center;
}

/* Logo Bereich */
.header-logo {
    display: flex;
    align-items: center;
}

.header-logo .custom-logo-link {
    display: block;
    max-width: 100%;
    line-height: 0;
}

.header-logo .custom-logo {
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.header-logo .site-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.header-logo .site-title-link {
    text-decoration: none;
    color: #333;
}

/* Suche Bereich */
.header-search {
    max-width: 600px;
    margin: 0 auto;
}

.header-search .woocommerce-product-search,
.header-search form {
    position: relative;
    display: flex;
    width: 100%;
}

.header-search input[type="search"],
.header-search input[type="text"] {
    width: 100%;
    padding: 8px 45px 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.header-search input[type="search"]:focus,
.header-search input[type="text"]:focus {
    outline: none;
    border-color: #96588a;
    box-shadow: 0 0 0 3px rgba(150, 88, 138, 0.1);
}

.header-search button[type="submit"] {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #96588a;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.header-search button[type="submit"]:hover {
    background: #7a4570;
}

/* Header Aktionen - Konto und Warenkorb */
.header-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-account a,
.header-cart a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    font-size: 14px;
}

.header-account a:hover,
.header-cart a:hover {
    color: #96588a;
}

.header-account svg,
.header-cart svg {
    width: 24px;
    height: 24px;
}

.account-text,
.cart-total {
    display: none;
}

.header-cart {
    position: relative;
}

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

.cart-total {
    font-weight: bold;
}

/* Navigation - 2. Reihe */
.header-navigation-row {
    background: #fff;
}

.header-navigation-row .header-container {
    padding: 0;
}

.main-navigation {
    display: flex;
    justify-content: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu > li > a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    color: #96588a;
}

.primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #96588a;
    transition: width 0.3s ease;
}

.primary-menu > li > a:hover::after,
.primary-menu > li.current-menu-item > a::after {
    width: 80%;
}

/* Dropdown Menü */
.primary-menu li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
}

.primary-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
}

.primary-menu li ul li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.primary-menu li ul li a:hover {
    background: #fafafa;
    color: #96588a;
    padding-left: 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-top-row .header-container {
        grid-template-columns: 200px 1fr auto;
        gap: 20px;
    }
    
    .primary-menu > li > a {
        padding: 15px 18px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header-top-row .header-container {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .header-logo {
        justify-content: center;
    }
    
    .header-search {
        max-width: 100%;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .header-navigation-row {
        overflow-x: auto;
    }
    
    .primary-menu {
        justify-content: flex-start;
        min-width: max-content;
    }
    
    .primary-menu > li > a {
        padding: 15px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-top-row {
        padding: 15px 0;
    }
    
    .header-actions {
        gap: 15px;
    }
}
