/* ===================================
   Home Page Styles - Gumex Webshop
   =================================== */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    background-image: url('/images/gumex-landing.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 187, 52, 0.95) 0%, rgba(255, 187, 52, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

    .hero-actions .btn {
        padding: 15px 35px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .hero-actions .btn-primary {
        background: #e74c3c;
        border-color: #e74c3c;
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    }

        .hero-actions .btn-primary:hover {
            background: #c0392b;
            border-color: #c0392b;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
        }

    .hero-actions .btn-outline-light {
        border: 2px solid #fff;
        color: #fff;
        background: transparent;
    }

        .hero-actions .btn-outline-light:hover {
            background: #fff;
            color: #1e3c72;
            transform: translateY(-2px);
        }

/* Quick Search Section */
.quick-search-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

    .quick-search-section .card {
        border: none;
        border-radius: 12px;
    }

    .quick-search-section h2 {
        color: #1e3c72;
        font-weight: 700;
        font-size: 2rem;
    }

    .quick-search-section .form-label {
        color: #495057;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .quick-search-section .form-select {
        border-radius: 8px;
        padding: 12px;
        border: 2px solid #dee2e6;
        transition: all 0.3s ease;
    }

        .quick-search-section .form-select:focus {
            border-color: #2a5298;
            box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.25);
        }

#quickSearchBtn {
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
}

    #quickSearchBtn:hover {
        transform: translateY(-1px);
    }

/* Categories Section */
.categories-section {
    padding: 80px 20px;
    background: #fff;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

.category-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

    .category-card .card {
        border: 2px solid #e9ecef;
        border-radius: 12px;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .category-card:hover .card {
        transform: translateY(-10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
        border-color: #2a5298;
    }

.category-icon {
    width: 100px;
    height: 100px;
    margin: 30px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 3rem;
}

    .category-icon.summer {
        background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
        color: #fff;
    }

    .category-icon.winter {
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
        color: #fff;
    }

    .category-icon.allseason {
        background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
        color: #fff;
    }

    .category-icon i {
        font-size: 4rem;
    }

.category-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.category-card .card-text {
    color: #6c757d;
    line-height: 1.6;
    min-height: 80px;
}

.category-card .btn-link {
    color: #e74c3c;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card:hover .btn-link {
    transform: translateX(5px);
    display: inline-block;
}

/* Brands Section */
.brands-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.brands-grid-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.desktop-indicators {
    display: flex;
}

.mobile-indicators {
    display: none;
}

.brand-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    height: 100%;
    min-height: 180px;
}

    .brand-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border-color: #2a5298;
    }

.brand-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3c72;
    text-align: center;
    margin-bottom: 10px;
}

.brand-logo-img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.brand-count {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 8px;
    font-weight: 500;
}

/* Carousel Styles */
#brandsCarousel {
    position: relative;
    padding: 20px 0;
}

    #brandsCarousel .carousel-inner {
        padding: 0 50px;
    }

    #brandsCarousel .carousel-item {
        transition: transform 0.2s ease-in-out;
    }

    /* Ensure brand items in carousel don't have scroll animations applied */
    #brandsCarousel .brand-item {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: all 0.3s ease !important;
    }

    #brandsCarousel .carousel-control-prev,
    #brandsCarousel .carousel-control-next {
        width: 50px;
        height: 50px;
        top: 50%;
        transform: translateY(-50%);
        background: #2a5298;
        border-radius: 50%;
        opacity: 0.8;
        transition: all 0.2s ease;
    }

    #brandsCarousel .carousel-control-prev {
        left: 0;
    }

    #brandsCarousel .carousel-control-next {
        right: 0;
    }

        #brandsCarousel .carousel-control-prev:hover,
        #brandsCarousel .carousel-control-next:hover {
            opacity: 1;
            background: #1e3c72;
            transform: translateY(-50%) scale(1.1);
        }

    #brandsCarousel .carousel-control-prev-icon,
    #brandsCarousel .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }

    #brandsCarousel .carousel-indicators {
        position: relative;
        margin-top: 30px;
        margin-bottom: 0;
    }

        #brandsCarousel .carousel-indicators button {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: #dee2e6;
            border: none;
            opacity: 1;
            transition: all 0.3s ease;
        }

            #brandsCarousel .carousel-indicators button.active {
                background-color: #2a5298;
                transform: scale(1.2);
            }

            #brandsCarousel .carousel-indicators button:hover {
                background-color: #2a5298;
            }

/* CTA Section */
.cta-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 0;
}

.cta-section .btn-light {
    background: #fff;
    color: #1e3c72;
    font-weight: 600;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .cta-section .btn-light:hover {
        background: #e74c3c;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

/* Info Section */
.info-section {
    padding: 60px 20px;
    background: #fff;
}

.info-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    height: 100%;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

    .info-card:hover {
        border-color: #2a5298;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }

.info-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 1rem;
}

    .info-title i {
        color: #e74c3c;
    }

.info-text {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Utility Classes */
.wrap-width {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hover-lift {
    transition: all 0.3s ease;
}

    .hover-lift:hover {
        transform: translateY(-5px);
    }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .quick-search-section {
        padding: 40px 20px;
    }

    .categories-section,
    .features-section,
    .brands-section {
        padding: 50px 20px;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-section .btn-light {
        width: 100%;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .desktop-slide {
        display: none !important;
    }
    
    .desktop-indicators {
        display: none !important;
    }
    
    .mobile-indicators {
        display: flex !important;
    }
    
    .brands-grid-mobile .brand-item {
        min-width: 250px;
        max-width: 350px;
    }
    
    #brandsCarousel .carousel-inner {
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 60px 20px;
    }

    .hero-actions {
        flex-direction: column;
    }

        .hero-actions .btn {
            width: 100%;
        }

    .category-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .desktop-slide {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-slide {
        display: none !important;
    }
}

.carousel-wrapper {
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 20px;
}

.carousel-card {
    flex: 0 0 calc(100% - 20px);
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Navigation buttons */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.nav-button {
    background: #4A90E2;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .nav-button:hover:not(:disabled) {
        background: #357ABD;
    }

    .nav-button:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

/* Dots indicator */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

    .dot.active {
        background: #4A90E2;
    }

/* Desktop:  5 cards */
@media (min-width: 1024px) {
    .carousel-card {
        flex: 0 0 calc(20% - 16px);
    }
}

/* Tablet: 3 cards */
@media (min-width: 768px) and (max-width: 1023px) {
    .carousel-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

/* Mobile: 1 card */
@media (max-width: 767px) {
    .carousel-card {
        flex: 0 0 100%;
    }

    .carousel-track {
        gap: 0;
    }
}