/* HEADER2 - Modern Dynamic Header Styles */
/* Bu CSS FOUC problemini çözmek için ayrı dosyada tutulur */
/* Updated: 2025-08-29 - Kapazität Mega Menu Expanded v2.0 */

/* Modern Header Base - Let header2.php handle positioning */
.modern-header {
    width: 100%;
    background: linear-gradient(65deg, #0d1e3070 0%, #a9a4a4 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Desktop Header */
.desktop-header {
    border-bottom: 1px solid #f0f2f5;
    background: transparent; /* Let header2.php handle background */
}


.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

/* Logo Section */
.logo-section {
    flex-shrink: 0;
    min-width: 180px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
color: #dc2626;
    letter-spacing: -0.5px;
}

/* Search Section */
.search-section {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.modern-search-form {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
border-color: #dc2626;
    background: #fff;
box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    color: #333;
}

.search-input-wrapper input::placeholder {
    color: #8e9297;
}

.search-btn {
background: #dc2626;
    border: none;
    color: white;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
background: #b91c1c;
}

/* Actions Section */
.actions-section {
    flex-shrink: 0;
    min-width: 120px;
    display: flex;
    justify-content: flex-end;
}

.modern-cart-btn, .modern-wishlist-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    margin-left: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.modern-cart-btn:hover, .modern-wishlist-btn:hover {
border-color: #dc2626;
background: #fef2f2;
color: #dc2626;
    text-decoration: none;
    transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.modern-cart-btn i, .modern-wishlist-btn i {
    font-size: 18px;
color: #dc2626;
}

/* Wishlist specific styles */
.modern-wishlist-btn i {
    color: #e74c3c;
}

.modern-wishlist-btn:hover i {
    color: #c0392b;
}

.wishlist-count {
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    position: absolute;
    top: -5px;
    right: -5px;
}

.cart-text {
    font-size: 14px;
    font-weight: 500;
}

.cart-count {
    background: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Main Navigation */
.main-navigation {
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 8px 2px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-link i {
    font-size: 13px;
    opacity: 0.9;
}

.dropdown-arrow {
    font-size: 10px !important;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-width: 450px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.total-products {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
}

.dropdown-grid {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
}

/* Special styling for Kapazität mega menu - 2 columns, 3 rows layout */
.kapazitat-dropdown .dropdown-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    max-height: 500px;
    min-width: 600px;
    padding: 30px;
}

.kapazitat-dropdown {
    min-width: 660px;
    max-width: 720px;
    left: -180px; /* Better centering for much wider 2 columns */
}

/* Compact styling for Kapazität dropdown items */
.kapazitat-dropdown .dropdown-item {
    padding: 12px 15px;
    font-size: 13px;
    gap: 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.kapazitat-dropdown .item-name {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    text-align: left;
}

.kapazitat-dropdown .item-count {
    font-size: 11px;
    padding: 3px 6px;
    min-width: 30px;
    text-align: center;
}

.kapazitat-dropdown .dropdown-item i {
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: #ff6b35;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.dropdown-item i {
    font-size: 12px;
    color: #ff6b35;
    width: 16px;
    text-align: center;
}

.dropdown-item:hover i {
    color: white;
}

.item-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.item-count {
    font-size: 11px;
    color: #8e9297;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.dropdown-item:hover .item-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.dropdown-footer {
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #e55829;
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

/* Mobile Header - Uses standard classes from header1 for consistency */
.mobile-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    z-index: 1000;
    position: relative;
}

/* Header2 Mobile - Inherits from main.php mobile styles */
/* Mobile header now uses same structure as header1 for consistency */

/* Mobile Navigation Menu - Initial State */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
}

.mobile-nav-overlay.show {
    opacity: 1;
    visibility: visible;
    display: block !important;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: white;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-nav-menu.show {
    left: 0;
}

.mobile-nav-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-nav-content {
    padding: 20px 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f2f5;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-item:hover {
    background: #fef2f2;
    color: #dc2626;
    padding-left: 25px;
    text-decoration: none;
}

.mobile-nav-item i {
    font-size: 16px;
    color: #dc2626;
    width: 20px;
    text-align: center;
}

.mobile-nav-item span {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

.category-count {
    background: #e9ecef;
    color: #6c757d;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 10px;
    margin-left: auto;
}

.mobile-nav-item:hover .category-count {
    background: #dc2626;
    color: white;
}

/* Mobile Category Styling */
.mobile-nav-category {
    margin-bottom: 10px;
}

.category-main {
    font-weight: 600 !important;
    background: #f8f9fa;
    border-left: 4px solid #dc2626;
    position: relative;
}

/* Collapse toggle button on the right of category row */
.category-main .mobile-sub-toggle {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.category-main .mobile-sub-toggle::before {
    content: "\f078"; /* Font Awesome chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: #dc2626;
    transition: transform 0.25s ease;
}
.mobile-nav-category.open .category-main .mobile-sub-toggle::before {
    transform: rotate(180deg);
}

/* Collapsed by default */
.mobile-subcategories {
    display: none;
    background: #fafbfc;
    padding: 8px 12px 12px 12px;
}

/* Open state: grid with two columns */
.mobile-nav-category.open .mobile-subcategories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

/* Subcategory item in grid */
.subcategory {
    padding: 10px 12px !important;
    background: #ffffff !important;
    border: 1px solid #f0f2f5 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}

.subcategory:hover {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
}

.sub-icon {
    font-size: 8px !important;
    color: #8e9297 !important;
}

.subcategory:hover .sub-icon {
    color: #dc2626 !important;
}

.sub-count {
    background: #e9ecef;
    color: #8e9297;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 8px;
}

.subcategory:hover .sub-count {
    background: #dc2626;
    color: white;
}

/* Cart Item and Wishlist Item Special Styling */
.cart-item, .wishlist-item {
    background: #fef2f2 !important;
    border-left: 4px solid #dc2626 !important;
    margin-top: 20px;
}

.wishlist-item {
    border-left-color: #e74c3c !important;
}

.mobile-cart-badge, .mobile-wishlist-badge {
    background: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 10px;
    margin-left: auto;
}

.mobile-wishlist-badge {
    background: #e74c3c;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 400px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10001;
}

.search-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
    z-index: 99998 !important;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.close-dropdown {
    background: none;
    border: none;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-dropdown:hover {
    color: #ef4444;
    background: #fee2e2;
}

.search-results-content {
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background: #f9fafb;
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-image {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    flex-shrink: 0;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-category {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 4px 0;
}

.result-price {
    font-size: 14px;
    font-weight: 700;
    color: #ff6b35;
    margin: 0;
}

.search-highlight {
    background: #fef3c7;
    color: #92400e;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 600;
}

.search-results-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.view-all-results-btn {
    width: 100%;
    padding: 10px 16px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.view-all-results-btn:hover {
    background: #e55829;
}

.search-loading {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

.search-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
}

.search-no-results i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 15px;
}

.search-no-results h4 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

.search-no-results p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Mobile Search Specific Styles */
@media (max-width: 768px) {
  #desktop-search-dropdown { display: none !important; visibility: hidden !important; pointer-events: none !important; }
}
.mobile-search-bar {
    position: relative;
    padding: 20px 0 15px 0;
    margin-top: 15px;
    border-top: 1px solid #f0f2f5;
    overflow: visible; /* ensure button not clipped */
}

.mobile-search-bar .search-form {
    position: relative;
    overflow: visible;
    z-index: 2;
    display: block;
}

/* Ensure search form container doesn't hide button */
.mobile-search-bar form {
    position: relative !important;
    overflow: visible !important;
    z-index: 2 !important;
    display: block !important;
}

.mobile-search-bar input {
    width: 100%;
    padding: 12px 56px 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    background: #f8f9fa;
    transition: all 0.3s ease;
    height: 48px;
    line-height: 48px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.mobile-search-bar input:focus {
    border-color: #ff6b35;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.mobile-search-bar button {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: #dc2626 !important;
    color: white !important;
    border: none;
    padding: 0 12px;
    height: 44px; /* inside 48px input */
    line-height: 44px;
    border-radius: 0 23px 23px 0; /* Square left, rounded right to match input */
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-search-bar button:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

/* Ensure global flat styles don't break mobile header button */
.mobile-search-bar .search-form button {
    border-radius: 0 23px 23px 0 !important; /* Square left, rounded right */
    padding: 0 12px !important;
    height: 44px !important;
    line-height: 44px !important;
    top: 50% !important;
    right: 2px !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #dc2626 !important; /* red background */
    border: 2px solid #dc2626 !important;
    color: #fff !important; /* text/icon default white */
    min-width: 44px !important;
    position: absolute !important;
}

/* Icon color inside search button */
.mobile-search-bar .search-form button i {
    color: #fff !important; /* keep icon white */
}

/* Mobile Search Dropdown - FIXED */
#search-dropdown-mobile {
      position: fixed !important;
      top: 210px !important;
      left: 10px !important;
      right: 10px !important;
      background: white !important;
      border-radius: 12px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
      border: 2px solid #dc2626 !important;
      margin-top: 8px;
      max-height: 400px;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s ease;
      z-index: 999999 !important;
  }
  
  /* Ensure inputs/buttons are clickable */
  .mobile-search-bar input,
  .mobile-search-bar button { pointer-events: auto !important; }

#search-dropdown-mobile.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

/* Search Results Content Scrolling */
.search-results-content {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
}

.search-results-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.search-results-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Search Result Items */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 4px;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.result-image {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal !important;
    word-break: break-word;
}

.result-category {
    font-size: 12px;
    color: #666;
    margin: 0 0 4px 0;
}

.result-price {
    font-size: 14px;
    font-weight: 700;
    color: #ff6b35;
    margin: 0;
}

.search-highlight {
    background: #fff3cd;
    color: #856404;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Loading and No Results Styles */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.search-no-results i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.search-no-results h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.search-no-results p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
}

.view-all-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    width: 100%;
}

.view-all-btn:hover {
    background: #e55829;
    text-decoration: none;
    color: white;
}

.close-dropdown {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.close-dropdown:hover {
    color: #333;
}

/* Responsive - Critical CSS for proper loading */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .mobile-nav-menu {
        width: 90%;
        max-width: 350px;
    }
    
    /* Mobile search dropdown takes more space */
    .search-dropdown {
        position: fixed;
        top: auto;
        left: 10px;
        right: 10px;
        max-height: 60vh;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        z-index: 10003;
        overflow: hidden;
    }
    
    #search-dropdown-mobile {
        position: static;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        max-height: 250px;
        margin-top: 5px;
        overflow: hidden;
    }
    
    /* Mobile search results content */
    .search-results-content {
        max-height: 200px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 4px;
    }
    
    .search-result-item {
        padding: 6px;
        gap: 8px;
    }
    
    .result-image {
        width: 40px;
        height: 40px;
    }
    
    .result-title {
        font-size: 13px;
        -webkit-line-clamp: 1;
    }
    
    .result-category {
        font-size: 11px;
    }
    
    .result-price {
        font-size: 13px;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block !important;
    }
}

/* Navigation responsiveness */
@media (max-width: 1200px) {
    .nav-dropdown {
        min-width: 280px;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .header-content {
        gap: 20px;
    }
    
    .search-section {
        max-width: 400px;
    }
}

/* FOUC Prevention - Header2 Specific */
.modern-header {
    min-height: 100px; /* Prevent layout shift */
}

.desktop-header {
    min-height: 100px;
}

.mobile-header {
    min-height: 90px; /* Reduce mobile header height */
}

/* Initial state - prevent flash */
body.loading .modern-header {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

body .modern-header {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Header Specific Styles */
.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    gap: 3px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(220, 53, 69, 0.1);
}

.burger-line {
    width: 24px;
    height: 3px;
    background: #dc3545 !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(220, 53, 69, 0.3);
}

.mobile-menu-toggle:hover .burger-line {
    background: #c82333 !important;
    transform: scaleY(1.2);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.5);
}

.mobile-logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mobile-logo a {
    text-decoration: none;
}

.mobile-site-logo {
    max-height: 35px;
    width: auto;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #333;
    text-decoration: none;
    position: relative;
}

.mobile-actions a i,
.mobile-actions button i,
.cart-link i,
.wishlist-link i {
    font-size: 20px !important;
    color: #dc3545 !important;
}

.mobile-actions .cart-count,
.mobile-actions .wishlist-count,
.cart-count,
.wishlist-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc3545 !important;
    color: white !important;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
    border: 2px solid white;
}

/* Mobile cart/wishlist buttons as buttons */
.mobile-actions button.cart-link,
.mobile-actions button.wishlist-link {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-decoration: none;
}
