/* Header Styles */
.custom-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

/* Header Top Bar */
.header-top-bar {
    background: #f8f8f8;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact-info span {
    margin-right: 15px;
    color: #555;
}

.header-contact-info i {
    margin-right: 5px;
    color: #333;
}

.header-top-links a {
    color: #555;
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.header-top-links a:hover {
    color: #d33;
}

.header-top-links i {
    margin-right: 5px;
}

/* Header Main */
.header-main {
    padding: 20px 0;
}

.header-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    max-height: 60px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-description {
    margin: 5px 0 0;
    font-size: 13px;
    color: #777;
}

/* Header Search */
.header-search {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 30px;
    position: relative;
}

.header-search .search-field {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s;
}

.header-search .search-field:focus {
    border-color: #d33;
}

.header-search .search-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
}

.header-search .search-button:hover {
    color: #d33;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
}

.header-icons > div {
    margin-left: 20px;
    position: relative;
}

.header-icons a {
    color: #333;
    font-size: 20px;
    display: block;
    position: relative;
}

.header-icons .cart-count,
.header-icons .wishlist-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #d33;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.header-navigation {
    background: #333;
}

.header-navigation .container {
    position: relative;
}

#primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu > li {
    position: relative;
}

#primary-menu > li > a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-weight: 500;
    transition: all 0.3s;
}

#primary-menu > li:hover > a,
#primary-menu > li.current-menu-item > a {
    background: #d33;
    color: white;
}

/* Submenu */
#primary-menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

#primary-menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
}

#primary-menu ul.sub-menu li a {
    color: #333;
    padding: 8px 20px;
    display: block;
    transition: all 0.3s;
}

#primary-menu ul.sub-menu li a:hover {
    background: #f5f5f5;
    color: #d33;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    padding: 15px;
    cursor: pointer;
}

.hamburger {
    padding: 0;
}

.hamburger-box {
    width: 25px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    background: #333;
    height: 2px;
}

/* Mobile Menu */
.mobile-menu-wrapper {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: white;
    z-index: 1100;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
    overflow-y: auto;
}

.mobile-menu-wrapper.active {
    left: 0;
}

.mobile-menu-container {
    padding: 20px;
}

.mobile-menu-search {
    margin-bottom: 20px;
}

.mobile-menu-search .search-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
}

#mobile-primary-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobile-primary-menu li a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

#mobile-primary-menu li:last-child a {
    border-bottom: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header-search {
        margin: 0 15px;
    }
    
    .header-icons > div {
        margin-left: 15px;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none;
    }
    
    .header-main-content {
        flex-wrap: wrap;
    }
    
    .header-logo {
        order: 1;
        width: 70%;
    }
    
    .header-icons {
        order: 2;
        width: 30%;
        justify-content: flex-end;
    }
    
    .header-search {
        order: 3;
        margin: 15px 0 0;
        max-width: 100%;
    }
    
    .header-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .header-logo {
        width: 60%;
    }
    
    .header-icons {
        width: 40%;
    }
    
    .header-icons > div {
        margin-left: 10px;
    }
    
    .header-icons a {
        font-size: 18px;
    }
}