/* Orange-themed Animated Header - High Priority Override */

/* Force override existing mobile styles */
body {
    display: block !important;
    flex-direction: column !important;
    background: none !important;
}

.mobile-app-container {
    background: none !important;
    padding-top: 0 !important;
}

/* Hide conflicting headers */
.modern-header,
.main-header,
.business-header,
.search-section {
    display: none !important;
}

/* Top Contact Banner with Rotating Numbers */
.top-contact-banner {
    background: linear-gradient(135deg, #D4AF37 0%, #D4AF37 100%) !important;
    color: white !important;
    padding: 8px 0 !important;
    font-size: 0.85rem !important;
    position: static !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    overflow: hidden !important;
    z-index: 1001 !important;
    display: block !important;
    width: 100% !important;
    height: 32px !important;
}

.contact-info-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 24px;
}

.contact-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-in-out;
    white-space: nowrap;
}

.contact-item.active {
    opacity: 1;
    transform: translateY(0);
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: none;
    border-radius: 15px;
    text-decoration: none;
    color: #000 !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-option:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000 !important;
    transform: translateY(-1px);
}

.contact-option i {
    font-size: 1rem;
}

.divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
}

/* Enhanced Main Header with Orange Theme */
.enhanced-header {
    background: #ffffff !important;
    box-shadow: 0 2px 20px rgba(255, 107, 53, 0.15) !important;
    position: static !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1) !important;
}

.enhanced-header.scrolled {
    box-shadow: 0 4px 30px rgba(255, 107, 53, 0.25);
    border-bottom-color: #D4AF37;
}

.header-content {
    padding: 12px 0;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.logo-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.3);
}

.logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000 !important;
    margin: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1;
}

.brand-text:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.search-toggle {
    background: linear-gradient(135deg, #D4AF37 0%, #D4AF37 100%);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.search-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.cart-button {
    position: relative;
    background: #ffffff;
    border: 2px solid #D4AF37;
    color: #D4AF37;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
}

.cart-button:hover {
    background: #D4AF37;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.cart-count {
    background: #D4AF37;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -8px;
    animation: pulse 2s infinite;
}

.cart-button:hover .cart-count {
    background: white;
    color: #D4AF37;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Search Bar Slide Animation */
.search-bar {
    background: #f8f9fa;
    border-bottom: 2px solid #D4AF37;
    padding: 12px 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
}

.search-bar.active {
    transform: translateY(0);
    opacity: 1;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input-group {
    position: relative;
    background: white;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
    overflow: hidden;
}

.search-input {
    width: 100%;
    border: none;
    padding: 12px 50px 12px 20px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    background: linear-gradient(135deg, #D4AF37 0%, #D4AF37 100%);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 11;
}

.search-submit:hover {
    transform: scale(1.1);
}

/* Main content padding to account for fixed headers */
.main-content {
    padding-top: 0 !important; /* No gap between header and hero */
    margin-top: 0 !important;
}

/* Mobile Search Section */
.mobile-search-section {
    background: #f8f9fa;
    border-bottom: 2px solid #D4AF37;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.1);
    position: fixed !important;
    top: 90px !important; /* Below main header */
    left: 0 !important;
    right: 0 !important;
    z-index: 998 !important;
}

.mobile-search-section .search-input-group {
    position: relative;
    background: white;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
    overflow: hidden;
}

.mobile-search-section .search-input {
    width: 100%;
    border: none;
    padding: 12px 50px 12px 20px;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.mobile-search-section .search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    background: linear-gradient(135deg, #D4AF37 0%, #D4AF37 100%);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-search-section .search-submit:hover {
    transform: scale(1.1);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .top-contact-banner {
        font-size: 0.8rem !important;
        padding: 6px 0 !important;
        height: 28px !important;
    }
    
    .enhanced-header {
        top: 28px !important; /* Adjust for smaller mobile banner */
    }
    
    .mobile-search-section {
        top: 80px !important; /* Adjust for mobile header height */
    }
    
    .main-content {
        padding-top: 0 !important; /* No gap between header and hero */
    }
    
    .contact-option {
        padding: 3px 8px;
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .brand-text {
        font-size: 1.3rem;
        white-space: nowrap;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .header-actions {
        gap: 10px;
        flex: 1;
        justify-content: flex-end;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .brand-text {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .brand-section {
        gap: 8px;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .main-content {
        padding-top: 0 !important; /* No gap between header and hero */
    }
    
    .top-contact-banner {
        height: 26px !important;
        padding: 4px 0 !important;
    }
    
    .enhanced-header {
        top: 26px !important;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .brand-text {
        font-size: 1rem;
        white-space: nowrap;
    }
    
    .brand-section {
        gap: 6px;
    }
    
    .logo-image {
        height: 28px;
    }
    
    .main-content {
        padding-top: 0 !important; /* No gap between header and hero */
    }
    
    .top-contact-banner {
        height: 24px !important;
        padding: 3px 0 !important;
        font-size: 0.75rem !important;
    }
    
    .enhanced-header {
        top: 24px !important;
    }
    
    .header-content {
        padding: 8px 0;
    }
}

/* Mobile Search in Header Styling */
.header-actions .search-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 20px;
    padding: 2px;
    flex: 1;
    max-width: 180px;
    margin-right: 8px;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.search-input-mobile {
    background: transparent;
    border: none;
    outline: none;
    padding: 6px 10px;
    font-size: 0.85rem;
    color: #333;
    flex: 1;
    min-width: 0;
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.search-input-mobile::placeholder {
    color: #666;
}

.search-submit-mobile {
    background: #D4AF37;
    border: none;
    color: white;
    padding: 6px 8px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    pointer-events: auto;
    z-index: 11;
    position: relative;
    min-width: 28px;
    height: 28px;
}

.search-submit-mobile:hover {
    background: #D4AF37;
    transform: scale(1.05);
}

/* Responsive adjustments for mobile search */
@media (max-width: 576px) {
    .header-actions .search-input-group {
        max-width: 140px;
    }
    
    .search-input-mobile {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
    
    .search-submit-mobile {
        padding: 5px 7px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .header-actions .search-input-group {
        max-width: 120px;
    }
    
    .search-input-mobile {
        padding: 4px 6px;
    }
}
    
    .cart-button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .contact-item {
        gap: 10px;
    }
    
    .contact-option {
        padding: 2px 6px;
        font-size: 0.7rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .logo-image {
        height: 30px;
    }
}