/* ========================================
   HERO SECTION STYLES
======================================== */

/* Main hero section with background image */
.hero-section-with-bg {
    position: relative;
    height: 40vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Background image styling - Enhanced for better fitting */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    /* Ensure the image scales properly */
    max-width: none;
    max-height: none;
    /* Prevent any browser default image styling */
    border: none;
    outline: none;
}

/* Dark overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

/* Ensure content is above overlay */
.hero-section-with-bg .container {
    z-index: 2;
    position: relative;
}

/* Enhanced text styling for better visibility */
.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* CTA button styling */
.hero-cta {
    background-color: #fff;
    color: #000;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    background-color: #f8f9fa;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Stats section borders */
.border-white-50 {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Alternative hero section with gradient background */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

/* ========================================
   PRODUCT CARD STYLES
======================================== */

.product-card {
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* ========================================
   BUTTON STYLES
======================================== */

.rounded-button {
    border-radius: 50px !important;
}

/* Global Add to Cart Button Styles */
.add-to-cart-btn {
    background-color: transparent !important;
    border: 1px solid #212529 !important;
    color: #212529 !important;
    border-radius: 0.375rem !important; /* Bootstrap default border-radius */
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #212529 !important;
    color: #ffffff !important;
    border-color: #212529 !important;
}

.add-to-cart-btn:focus,
.add-to-cart-btn:active {
    background-color: #212529 !important;
    color: #ffffff !important;
    border-color: #212529 !important;
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25) !important;
}

/* ========================================
   BRAND SLIDER STYLES
======================================== */

.brand-slider {
    animation: scroll 20s linear infinite;
}

/* ========================================
   DROPDOWN STYLES
======================================== */

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.dropdown-item:focus, .dropdown-item:active {
    background-color: #e9ecef;
}

/* Custom scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ========================================
   INPUT GROUP STYLES
======================================== */

.badge {
    font-size: 0.75em;
}

.input-group {
    width: 300px;
}

/* ========================================
   HORIZONTAL SCROLL STYLES
======================================== */

/* Horizontal scroll container */
.horizontal-scroll-container {
    padding: 30px 0 40px 0; /* Extra padding top and bottom */
    margin: 0 -15px; /* Negative margin to extend beyond container padding */
}

.horizontal-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 0 15px;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.horizontal-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.scroll-item {
    flex: 0 0 280px; /* Fixed width, no shrinking or growing */
    min-width: 280px;
}

/* Ensure product cards maintain their styling */
.scroll-item .product-card {
    width: 100%;
    height: 100%;
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   MOBILE RESPONSIVE STYLES
======================================== */

@media (max-width: 768px) {
    /* Hero section mobile adjustments */
    .hero-section-with-bg {
        height: 25vh !important;
        min-height: 350px !important;
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .hero-overlay {
        background: linear-gradient(
            135deg, 
            rgba(0, 0, 0, 0.7) 0%, 
            rgba(0, 0, 0, 0.5) 50%, 
            rgba(0, 0, 0, 0.8) 100%
        );
    }
    
    /* Input group mobile adjustments */
    .input-group {
        width: 100%;
        margin: 1rem 0;
    }
    
    /* Dropdown mobile adjustments */
    .dropdown-menu {
        max-height: 300px;
    }
    
    /* Horizontal scroll mobile adjustments */
    .scroll-item {
        flex: 0 0 250px;
        min-width: 250px;
    }
    
    .horizontal-scroll-container {
        padding: 20px 0 30px 0;
    }
}


/* Messages Styling and Settings */
.toast-auto-hide {
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 2.7s forwards;
}

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

@keyframes fadeOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

