/* Hero Slider Styles */
.hero-slider {
    padding: 0;
    position: relative;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
}

.hero-slide {
    position: relative;
    min-height: 600px;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* Overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 45, 158, 0.85) 0%, rgba(46, 92, 154, 0.75) 100%);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding: 60px 0;
}

.hero-title {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 40px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.shop-now-btn {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2E5C9A !important;
    background-color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.shop-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #f8f9fa !important;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    opacity: 0.7;
    z-index: 3;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-size: 100%;
}

.carousel-indicators {
    margin-bottom: 30px;
    z-index: 3;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators button.active {
    background-color: #ffffff;
}

/* Store Selection Section */
.store-selection {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.store-selection h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.store-card {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.store-logo {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.store-logo:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.store-logo img {
    max-width: 100%;
    height: auto;
}

.amazon-logo {
    background-color: #FF6200;
}

.walmart-logo {
    background-color: #1173BE;
}

.ebay-logo {
    background-color: #2E0C7D;
}

.fashionnova-logo {
    background-color: #000000;
}

.shein-logo {
    background-color: #F3F3F3;
    border: 2px solid #000000;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-slide {
        min-height: 550px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-slide {
        min-height: 500px;
    }

    .hero-content {
        text-align: center;
        padding: 40px 0;
    }

    .store-selection h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-slide {
        min-height: 450px;
    }

    .shop-now-btn {
        font-size: 1.1rem;
        padding: 12px 30px !important;
    }
}

/* Animation for carousel transitions */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}


/* Main Header Styles */
.main-header {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1030;
}

.main-header .container-fluid {
    max-width: 1400px;
}

/* Logo */
.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Search Bar Wrapper */
.header-search-wrapper {
    max-width: 600px;
    width: 100%;
}

.header-search-form {
    width: 100%;
}

.header-search-group {
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header-search-group:focus-within {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.header-search-input {
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    background: transparent;
}

.header-search-input:focus {
    box-shadow: none;
    outline: none;
}

.header-search-input::placeholder {
    color: #999;
}

.header-search-btn {
    background: transparent;
    border: none;
    padding: 0 20px;
    color: #666;
    transition: color 0.3s ease;
}

.header-search-btn:hover {
    color: #d32f2f;
    background: transparent;
}

.header-search-btn i {
    font-size: 18px;
}

/* Right Side Navigation */
.header-nav-right {
    gap: 8px;
}

.header-nav-right .nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Login Button */
.header-login-btn {
    background-color: #d32f2f !important;
    color: #ffffff !important;
    border: 2px solid transparent;
    padding: .375rem 1.75rem !important;
}

.header-login-btn:hover {
    background-color: #fff5f5;
    border-color: #d32f2f;
}

.header-login-btn i {
    font-size: 16px;
}

/* Help Button */
.header-help-btn {
    border: 2px solid transparent;
}

.header-help-btn:hover {
    background-color: #f5f5f5;
}

.header-help-btn i {
    font-size: 16px;
}

/* Help Dropdown */
.header-dropdown {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    margin-top: 8px;
}

.header-dropdown .dropdown-item {
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.header-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #d32f2f;
    padding-left: 24px;
}

.header-dropdown .dropdown-item i {
    width: 20px;
    color: #666;
}

.header-dropdown .dropdown-item:hover i {
    color: #d32f2f;
}

/* Cart Button */
.header-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid transparent;
}

.header-cart-btn:hover {
    background-color: #f5f5f5;
}

.header-cart-btn i {
    font-size: 20px;
}

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

.cart-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: #d32f2f;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

/* Navbar Spacer */
.navbar-spacer {
    height: 70px;
}

/* Mobile Toggle */
.navbar-toggler {
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 991px) {
    .main-header .container-fluid {
        padding: 0 1rem;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem 0;
        border-top: 1px solid #e5e5e5;
    }

    .header-search-wrapper {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .header-nav-right {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0;
    }

    .header-nav-right .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
        margin-bottom: 4px;
    }

    .header-dropdown {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: 1px solid #e5e5e5;
        margin-top: 4px;
    }

    .cart-badge {
        top: 8px;
        right: 12px;
    }

    .navbar-spacer {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }

    .header-search-input {
        font-size: 13px;
        padding: 10px 20px;
    }

    .header-search-btn {
        padding: 0 16px;
    }

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

@media (max-width: 576px) {
    .main-header {
        padding: 0.5rem 0;
    }

    .main-header .container-fluid {
        padding: 0 0.75rem;
    }

    .navbar-brand {
        margin-right: 1rem;
    }

    .header-search-input::placeholder {
        font-size: 12px;
    }

    .cart-text {
        display: none;
    }

    .header-cart-btn i {
        font-size: 22px;
    }
}

/* Dropdown Animation */
.dropdown-menu {
    animation: slideDown 0.3s ease-out;
}

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


/* Mobile Search Section - Only visible on mobile devices */
.mobile-search-section {
    padding: 40px 0 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.mobile-search-wrapper {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.mobile-search-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.mobile-search-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

.mobile-search-input-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-search-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.mobile-search-input:focus {
    outline: none;
    border-color: #6B2D9E;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(107, 45, 158, 0.1);
}

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

.mobile-search-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #6B2D9E 0%, #4A47A3 100%);
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-search-btn:hover {
    background: linear-gradient(135deg, #5A2484 0%, #3A3793 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 45, 158, 0.3);
}

.mobile-search-btn:active {
    transform: translateY(0);
}

.mobile-search-btn i {
    font-size: 18px;
}

/* Ensure it's hidden on larger screens */
@media (min-width: 992px) {
    .mobile-search-section {
        display: none !important;
    }
}

/* Adjustments for very small phones */
@media (max-width: 375px) {
    .mobile-search-wrapper {
        padding: 25px 15px;
    }

    .mobile-search-title {
        font-size: 18px;
    }

    .mobile-search-subtitle {
        font-size: 13px;
    }

    .mobile-search-input {
        padding: 14px 18px;
        font-size: 14px;
    }

    .mobile-search-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}


/* Hide search on mobile, show on desktop */
@media (max-width: 991px) {
    .header-search-wrapper {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .header-search-wrapper {
        display: block !important;
    }
}
