/* Header Styles for Novoshop Theme */

/* Header Container */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid #eee;
}

.site-header.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Top Bar */
.header-top-bar {
    background: var(--primary-color, #2e7d32);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-contact-item i {
    font-size: 14px;
}

.header-top-right {
    display: flex;
    align-items: center;
}

.header-top-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-top-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.header-top-menu a:hover {
    opacity: 0.8;
}

.separator {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

/* Main Header */
.header-main {
    padding: 15px 0;
    background: #fff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

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

.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

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

.header-logo .site-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #2e7d32;
}

/* Search Section */
.header-search {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-wrapper {
    display: flex;
    background: #f5f5f5;
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: #2e7d32;
}

.search-category {
    background: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: 25px 0 0 25px;
    font-size: 14px;
    color: #666;
    min-width: 120px;
    cursor: pointer;
}

.search-field {
    flex: 1;
    border: none;
    padding: 12px 15px;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.search-field::placeholder {
    color: #999;
}

.search-submit {
    background: var(--primary-color, #2e7d32);
    border: none;
    padding: 12px 20px;
    border-radius: 0 25px 25px 0;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background: var(--primary-dark, #1b5e20);
}

.search-submit i {
    font-size: 16px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header-user {
    display: flex;
    align-items: center;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--primary-color, #2e7d32);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.user-link:hover {
    background: var(--primary-dark, #1b5e20);
}

.user-link i {
    font-size: 16px;
}

.header-cart {
    display: flex;
    align-items: center;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.cart-link:hover {
    background: #e0e0e0;
}

.cart-link i {
    font-size: 16px;
}

.cart-count {
    background: var(--primary-color, #2e7d32);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Bottom Navigation */
.header-bottom {
    background: #fff;
    padding: 12px 0;
    border-top: 1px solid #eee;
}

.header-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Action Icons */
.header-actions-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-icon {
    position: relative;
}

.action-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.action-icon a:hover {
    background: var(--primary-color, #2e7d32);
    color: #fff;
    transform: translateY(-2px);
}

.action-icon i {
    font-size: 18px;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color, #2e7d32);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.track-orders {
    margin-left: 20px;
}

.track-orders-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-color, #4fc3f7);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.track-orders-btn:hover {
    background: var(--primary-color, #29b6f6);
}

.track-orders-btn i {
    font-size: 16px;
}

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

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

.novoshop-menu li {
    position: relative;
}

.novoshop-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.novoshop-menu a:hover {
    color: var(--primary-color, #2e7d32);
}

.novoshop-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.novoshop-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.novoshop-menu .sub-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.novoshop-menu .sub-menu li:last-child {
    border-bottom: none;
}

.novoshop-menu .sub-menu a {
    padding: 12px 20px;
    display: block;
    font-size: 14px;
}

/* Header Links */
.header-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.header-links a:hover {
    color: var(--primary-color, #2e7d32);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.menu-toggle {
    background: var(--primary-color, #2e7d32);
    color: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background: var(--primary-dark, #1b5e20);
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-toggle-icon span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* ============================================
   MOBILE RESPONSIVE HEADER SYSTEM
   ============================================ */

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .site-header {
        padding: 6px 0;
    }
    
    .header-main {
        padding: 10px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .header-logo {
        order: 1;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .header-logo img {
        max-height: 30px;
    }
    
    .header-search {
        order: 2;
        width: 100%;
        margin: 0;
    }
    
    .search-wrapper {
        border-radius: 15px;
        padding: 5px;
    }
    
    .search-category {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 80px;
        border-radius: 10px;
    }
    
    .search-field {
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .search-submit {
        padding: 8px 12px;
        border-radius: 10px;
    }
    
    .header-actions {
        order: 3;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .user-link,
    .cart-link {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 36px;
        border-radius: 8px;
        flex: 1;
        justify-content: center;
    }
    
    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .header-theme-toggle {
        flex: 1;
    }
    
    .theme-toggle-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 36px;
        border-radius: 8px;
        width: 100%;
        justify-content: center;
    }
    
    .header-bottom {
        padding: 6px 0;
    }
    
    .header-bottom-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .header-actions-icons {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .action-icon a {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    
    .track-orders-btn {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 8px;
        width: 100%;
        text-align: center;
    }
    
    .header-navigation {
        display: none;
    }
    
    .header-links {
        display: none;
    }
}

/* Large Mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .site-header {
        padding: 8px 0;
    }
    
    .header-main {
        padding: 12px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .header-logo {
        order: 1;
        text-align: center;
    }
    
    .header-logo img {
        max-height: 35px;
    }
    
    .header-search {
        order: 2;
        width: 100%;
        margin: 0;
    }
    
    .search-wrapper {
        border-radius: 20px;
        padding: 6px;
    }
    
    .search-category {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .search-field {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .search-submit {
        padding: 10px 15px;
    }
    
    .header-actions {
        order: 3;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .user-link,
    .cart-link {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 40px;
        border-radius: 10px;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    .header-theme-toggle {
        flex: 0 0 auto;
    }
    
    .theme-toggle-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 40px;
        border-radius: 10px;
    }
    
    .header-bottom {
        padding: 8px 0;
    }
    
    .header-bottom-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-actions-icons {
        justify-content: center;
        gap: 10px;
    }
    
    .action-icon a {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .track-orders-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .header-navigation {
        display: none;
    }
    
    .header-links {
        display: none;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .site-header {
        padding: 10px 0;
    }
    
    .header-main {
        padding: 15px 0;
    }
    
    .header-content {
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }
    
    .header-logo {
        flex: 0 0 auto;
    }
    
    .header-logo img {
        max-height: 40px;
    }
    
    .header-search {
        flex: 1;
        max-width: 400px;
    }
    
    .header-actions {
        flex: 0 0 auto;
        gap: 12px;
    }
    
    .user-link,
    .cart-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .header-bottom {
        padding: 10px 0;
    }
    
    .header-bottom-content {
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }
    
    .header-actions-icons {
        gap: 12px;
    }
    
    .action-icon a {
        width: 36px;
        height: 36px;
    }
    
    .header-navigation {
        flex: 1;
    }
    
    .header-links {
        display: none;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .header-content {
        gap: 30px;
    }
    
    .header-search {
        max-width: 500px;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .header-bottom-content {
        gap: 30px;
    }
    
    .header-actions-icons {
        gap: 15px;
    }
}

/* Mobile Navigation Enhancements */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block !important;
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 10001 !important;
    }
    
    .mobile-menu-toggle button {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 8px 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        backdrop-filter: blur(10px);
    }
    
    .mobile-menu-toggle button:hover {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .menu-toggle-icon {
        display: flex;
        flex-direction: column;
        gap: 3px;
        width: 20px;
        height: 16px;
    }
    
    .menu-toggle-icon span {
        width: 100%;
        height: 2px;
        background: #333;
        border-radius: 1px;
        transition: all 0.3s ease;
    }
    
    .menu-toggle-icon.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle-icon.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle-icon.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Dark Mode Mobile Styles */
@media (max-width: 767px) {
    [data-theme="dark"] .mobile-menu-toggle button {
        background: rgba(26, 26, 26, 0.9);
        border-color: #555;
        color: #fff;
    }
    
    [data-theme="dark"] .mobile-menu-toggle button:hover {
        background: rgba(26, 26, 26, 1);
    }
    
    [data-theme="dark"] .menu-toggle-icon span {
        background: #fff;
    }
}
    
    .header-links {
        order: 3;
        justify-content: center;
        gap: 12px;
    }
    
    .header-links a {
        font-size: 13px;
    }
    
    /* Mobile Menu Overlay */
    .novoshop-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 10000;
        transition: right 0.3s ease;
        padding: 60px 20px 20px;
        overflow-y: auto;
        display: block !important;
    }
    
    .novoshop-menu.mobile-menu-open {
        right: 0;
    }
    
    /* Ensure menu is visible when open */
    .novoshop-menu.mobile-menu-open {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .novoshop-menu ul {
        flex-direction: column;
        gap: 0;
    }
    
    .novoshop-menu li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .novoshop-menu a {
        padding: 15px 0;
        font-size: 16px;
        display: block;
        width: 100%;
    }
    
    .novoshop-menu .sub-menu {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .novoshop-menu .sub-menu a {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 10001;
    }
    
    
    .menu-toggle {
        background: var(--primary-color, #2e7d32);
        color: #fff;
        border: none;
        padding: 12px 15px;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        transition: background-color 0.3s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .menu-toggle:hover {
        background: var(--primary-dark, #1b5e20);
    }
    
    .menu-toggle-icon {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    
    .menu-toggle-icon span {
        width: 20px;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        transition: all 0.3s ease;
    }
    
    .menu-toggle.active .menu-toggle-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active .menu-toggle-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .menu-toggle-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Mobile Body Lock */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Mobile Touch Enhancements */
    .action-icon a,
    .user-link,
    .cart-link,
    .search-submit {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile Focus States */
    .search-field:focus,
    .search-category:focus {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile Animations */
    .novoshop-menu {
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .novoshop-menu.mobile-menu-open {
        transform: translateX(0);
    }
    
    /* Mobile Header Sticky */
    .site-header.sticky-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        animation: slideDown 0.3s ease;
    }
    
    /* Mobile Header Hidden on Scroll */
    .site-header.header-hidden {
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-content {
        flex-direction: row;
        gap: 20px;
    }
    
    .header-search {
        order: 2;
        flex: 1;
        max-width: 500px;
    }
    
    .header-actions {
        order: 3;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-navigation {
        display: block;
    }
    
    .novoshop-menu {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .novoshop-menu a {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Desktop Adjustments */
@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-navigation {
        display: block;
    }
    
    .header-bottom {
        display: block;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-content {
        gap: 20px;
    }
    
    .header-search {
        max-width: 400px;
    }
    
    .header-actions {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .header-actions {
        order: 2;
        justify-content: center;
    }
    
    .header-logo {
        order: 1;
    }
    
    .header-bottom {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-actions-icons {
        gap: 10px;
    }
    
    .action-icon a {
        width: 35px;
        height: 35px;
    }
    
    .track-orders-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-main {
        padding: 10px 0;
    }
    
    .header-logo img {
        max-height: 40px;
    }
    
    .search-wrapper {
        border-radius: 20px;
    }
    
    .search-category {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .search-field {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .search-submit {
        padding: 10px 15px;
    }
    
    .user-link,
    .cart-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .header-actions-icons {
        gap: 8px;
    }
    
    .action-icon a {
        width: 30px;
        height: 30px;
    }
    
    .action-icon i {
        font-size: 14px;
    }
}

/* Theme Toggle Button */
.header-theme-toggle {
    display: flex;
    align-items: center;
}

.theme-toggle-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
    transition: all 0.3s ease;
    min-height: 36px;
}

.theme-toggle-btn:hover {
    background: #e0e0e0;
    border-color: #bbb;
}

.theme-toggle-btn:focus {
    outline: 2px solid #2e7d32;
    outline-offset: 2px;
}

.theme-toggle-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover i {
    transform: rotate(15deg);
}

.theme-text {
    font-weight: 500;
}

/* Dark mode styles */
[data-theme="dark"] .theme-toggle-btn {
    background: #333;
    border-color: #555;
    color: #fff;
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: #444;
    border-color: #666;
}

/* Light mode styles */
[data-theme="light"] .theme-toggle-btn {
    background: #f5f5f5;
    border-color: #ddd;
    color: #333;
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: #e0e0e0;
    border-color: #bbb;
}

/* Light Mode Header Styles */
[data-theme="light"] .site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
}

[data-theme="light"] .header-main {
    background: #fff;
    border-bottom: 1px solid #eee;
}

[data-theme="light"] .header-bottom {
    background: #fff;
    border-top: 1px solid #eee;
}

[data-theme="light"] .header-top-bar {
    background: var(--primary-color, #2e7d32);
    color: #fff;
}

[data-theme="light"] .header-logo .site-title {
    color: #222;
}

[data-theme="light"] .header-logo a:hover .site-title {
    color: #2e7d32;
}

[data-theme="light"] .search-wrapper {
    background: #f8f9fa;
    border: 1px solid #ddd;
}

[data-theme="light"] .search-category {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

[data-theme="light"] .search-field {
    color: #333;
    background: #fff;
}

[data-theme="light"] .search-field::placeholder {
    color: #666;
}

[data-theme="light"] .user-link,
[data-theme="light"] .cart-link {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

[data-theme="light"] .user-link:hover,
[data-theme="light"] .cart-link:hover {
    background: #e9ecef;
}

[data-theme="light"] .action-icon a {
    background: #f8f9fa;
    color: #333;
}

[data-theme="light"] .action-icon a:hover {
    background: #2e7d32;
    color: #fff;
}

[data-theme="light"] .novoshop-menu a {
    color: #333;
}

[data-theme="light"] .novoshop-menu a:hover {
    color: #2e7d32;
}

[data-theme="light"] .header-links a {
    color: #666;
}

[data-theme="light"] .header-links a:hover {
    color: #333;
}

[data-theme="light"] .header-top-menu a {
    color: #fff;
}

[data-theme="light"] .header-contact-item {
    color: #fff;
}

[data-theme="light"] .track-orders-btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

[data-theme="light"] .track-orders-btn:hover {
    background: #e9ecef;
}

[data-theme="light"] .mobile-menu-toggle button {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

[data-theme="light"] .mobile-menu-toggle button:hover {
    background: #e9ecef;
}

[data-theme="light"] .menu-toggle-icon span {
    background: #333;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .site-header {
        background: #1a1a1a;
        color: #fff;
    }
    
    .header-main {
        background: #1a1a1a;
    }
    
    .header-bottom {
        background: #2a2a2a;
        border-top-color: #333;
    }
    
    .search-wrapper {
        background: #333;
        border-color: #555;
    }
    
    .search-category {
        background: #2a2a2a;
        color: #fff;
    }
    
    .search-field {
        color: #fff;
    }
    
    .search-field::placeholder {
        color: #999;
    }
    
    .cart-link {
        background: #333;
        color: #fff;
    }
    
    .cart-link:hover {
        background: #444;
    }
    
    .action-icon a {
        background: #333;
        color: #fff;
    }
    
    .action-icon a:hover {
        background: #2e7d32;
    }
    
    .novoshop-menu a {
        color: #fff;
    }
    
    .header-links a {
        color: #ccc;
    }
}

/* Enhanced Dark Mode with data-theme attribute - Using Redux Colors */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-tertiary: #333;
    --text-primary: #fff;
    --text-secondary: #ccc;
    --text-muted: #999;
    --border-color: #555;
    --hover-bg: #444;
    --header-bg: #1a1a1a;
    --header-top-bg: var(--primary-color, #2e7d32);
    --header-shadow: 0 2px 10px rgba(0,0,0,0.3);
    --dark-primary: var(--primary-color, #2e7d32);
    --dark-secondary: var(--secondary-color, #333333);
    --dark-accent: var(--accent-color, #0073aa);
}

[data-theme="dark"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Header Dark Mode Styles */
[data-theme="dark"] .site-header {
    background: var(--header-bg);
    box-shadow: var(--header-shadow);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .header-top-bar {
    background: var(--dark-primary);
    color: #fff;
}

[data-theme="dark"] .header-top-menu a {
    color: #fff;
}

[data-theme="dark"] .header-top-menu a:hover {
    opacity: 0.8;
}

[data-theme="dark"] .header-contact-item {
    color: #fff;
}

[data-theme="dark"] .header-contact-item i {
    color: #fff;
}

[data-theme="dark"] .separator {
    color: rgba(255,255,255,0.5);
}

[data-theme="dark"] .header-main {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .header-bottom {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .header-logo .site-title {
    color: var(--text-primary);
}

[data-theme="dark"] .header-logo a:hover .site-title {
    color: var(--dark-primary);
}

[data-theme="dark"] .search-wrapper {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

[data-theme="dark"] .search-category {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .search-field {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

[data-theme="dark"] .search-field::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .user-link,
[data-theme="dark"] .cart-link {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .user-link:hover,
[data-theme="dark"] .cart-link:hover {
    background: var(--hover-bg);
}

[data-theme="dark"] .action-icon a {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="dark"] .action-icon a:hover {
    background: var(--dark-primary);
}

[data-theme="dark"] .novoshop-menu a {
    color: var(--text-primary);
}

[data-theme="dark"] .header-links a {
    color: var(--text-secondary);
}

[data-theme="dark"] .header-top-menu a {
    color: var(--text-secondary);
}

[data-theme="dark"] .header-contact-item {
    color: var(--text-secondary);
}

[data-theme="dark"] .track-orders-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .track-orders-btn {
    background: var(--dark-accent);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .track-orders-btn:hover {
    background: var(--dark-primary);
}

/* Additional Header Dark Mode Elements */
[data-theme="dark"] .header-content {
    color: var(--text-primary);
}

/* Redux Color Integration for Dark Mode */
[data-theme="dark"] .badge {
    background: var(--dark-primary);
    color: #fff;
}

[data-theme="dark"] .cart-count {
    background: var(--dark-primary);
    color: #fff;
}

[data-theme="dark"] .search-submit {
    background: var(--dark-primary);
    color: #fff;
}

[data-theme="dark"] .search-submit:hover {
    background: var(--primary-dark, var(--dark-primary));
}

[data-theme="dark"] .user-link,
[data-theme="dark"] .cart-link {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .user-link:hover,
[data-theme="dark"] .cart-link:hover {
    background: var(--dark-primary);
    color: #fff;
}

[data-theme="dark"] .header-logo img {
    filter: brightness(1.1);
}

[data-theme="dark"] .mobile-menu-toggle {
    color: var(--text-primary);
}

[data-theme="dark"] .mobile-menu-toggle button {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .mobile-menu-toggle button:hover {
    background: var(--hover-bg);
}

[data-theme="dark"] .menu-toggle-icon span {
    background: var(--text-primary);
}

/* Header Bottom Dark Mode */
[data-theme="dark"] .header-bottom-content {
    color: var(--text-primary);
}

[data-theme="dark"] .header-navigation {
    color: var(--text-primary);
}

[data-theme="dark"] .novoshop-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .novoshop-menu a {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .novoshop-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--dark-primary);
}

[data-theme="dark"] .header-links a {
    color: var(--text-secondary);
}

[data-theme="dark"] .header-links a:hover {
    color: var(--text-primary);
}

/* Sticky Header Dark Mode */
[data-theme="dark"] .site-header.sticky-header {
    background: var(--header-bg);
    box-shadow: var(--header-shadow);
}

/* Mobile Menu Dark Mode */
@media (max-width: 767px) {
    [data-theme="dark"] .novoshop-menu {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
    }
    
    [data-theme="dark"] .novoshop-menu a {
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-color);
    }
    
    [data-theme="dark"] .novoshop-menu a:hover {
        background: var(--bg-tertiary);
        color: var(--dark-primary);
    }
}

/* Animation for sticky header */
.site-header.sticky-header {
    animation: slideDown 0.3s ease;
}

/* Hover effects */
.header-logo a:hover .site-title {
    color: #1b5e20;
}

.header-top-menu a:hover {
    text-decoration: underline;
}

.novoshop-menu a:hover {
    text-decoration: underline;
}

.header-links a:hover {
    text-decoration: underline;
}

/* Focus states for accessibility */
.search-field:focus,
.search-category:focus,
.search-submit:focus,
.user-link:focus,
.cart-link:focus,
.action-icon a:focus,
.track-orders-btn:focus {
    outline: 2px solid #2e7d32;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .site-header {
        display: none;
    }
}
