﻿/* GearChase Rotating Banner */
.gearchase-banner {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    margin-bottom: 40px;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none; /* Prevent inactive slides from blocking clicks */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    display: flex;
    align-items: center;
    background: transparent;
}

    .banner-slide.active {
        opacity: 1;
        pointer-events: auto; /* Allow clicks on the active slide */
        transform: translateX(0);
    }

    .banner-slide.prev {
        transform: translateX(-100%);
    }

    .banner-slide.next {
        transform: translateX(100%);
    }

/* Slide Content */
.slide-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.slide-text {
    flex: 1;
    max-width: 650px;
    color: white;
    z-index: 3;
    position: relative;
}

    .slide-text h1 {
        font-size: 3.2rem;
        font-weight: 800;
        margin: 0 0 20px 0;
        line-height: 1.2;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        animation: slideInUp 1.2s ease-out;
        letter-spacing: -1px;
    }

    .slide-text .subtitle {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0 0 12px 0;
        color: #ff6b35;
        text-transform: uppercase;
        letter-spacing: 2px;
        animation: slideInUp 1s ease-out 0.1s both;
    }

    .slide-text p {
        font-size: 1.1rem;
        margin: 0 0 28px 0;
        line-height: 1.6;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        animation: slideInUp 1s ease-out 0.3s both;
        font-weight: 400;
    }

.slide-cta {
    display: inline-flex;
    gap: 20px;
    animation: slideInUp 1s ease-out 0.5s both;
}



.slide-image {
    flex: 1;
    max-width: 500px;
    text-align: right;
    z-index: 1;
}

    .slide-image img {
        max-width: 100%;
        height: auto;
        border-radius: 16px;
        box-shadow: 0 25px 50px rgba(0,0,0,0.4);
        animation: slideInRight 1.2s ease-out 0.4s both;
        transition: transform 0.3s ease;
    }

        .slide-image img:hover {
            transform: scale(1.05);
        }

/* Remove background overlays and specific slide backgrounds */
.banner-slide::before {
    display: none;
}

.slide-outdoor,
.slide-climbing,
.slide-camping {
    background: transparent;
}

/* Navigation Dots */
.banner-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 10;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

    .dot::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.6);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
    }

    .dot.active {
        background: #ff6b35;
        transform: scale(1.3);
        border-color: rgba(255, 255, 255, 0.6);
    }

        .dot.active::after {
            background: white;
            width: 6px;
            height: 6px;
        }

    .dot:hover {
        background: rgba(255, 107, 53, 0.8);
        transform: scale(1.2);
    }

/* Navigation Arrows */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 107, 53, 0.8);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    font-weight: bold;
}

    .banner-nav:hover {
        background: #ff6b35;
        transform: translateY(-50%) scale(1.15);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    }

    .banner-nav.prev {
        left: 40px;
    }

    .banner-nav.next {
        right: 40px;
    }

/* Progress Bar */
.banner-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    z-index: 10;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
    width: 0%;
    transition: width 0.1s linear;
}

/* Brand Badge */
.slide-badge {
    position: absolute;
    top: 30px;
    right: 40px;
    background: rgba(0, 0, 0, 0.8);
    color: #ebebeb;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    animation: fadeInDown 1s ease-out 0.8s both;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FRIENDLY
======================================== */

/* Tablets and below (1024px) */
@media (max-width: 1024px) {
    .gearchase-banner {
        height: 500px;
    }

    .slide-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding: 20px 30px;
        gap: 20px;
    }

    .slide-text {
        max-width: 100%;
        margin-bottom: 0;
    }

        .slide-text h1 {
            font-size: 2.4rem;
        }

        .slide-text .subtitle {
            font-size: 1rem;
        }

        .slide-text p {
            font-size: 1rem;
        }

    .slide-image {
        max-width: 400px;
        text-align: center;
    }

    .slide-cta {
        justify-content: center;
    }

    .banner-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

        .banner-nav.prev {
            left: 20px;
        }

        .banner-nav.next {
            right: 20px;
        }

    .slide-badge {
        top: 20px;
        right: 20px;
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Mobile devices (768px) */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    .gearchase-banner,
    .banner-container,
    .slide-content {
        max-width: 100%;
        overflow-x: hidden;
    }

    .gearchase-banner {
        height: 550px;
    }

    .slide-content {
        padding: 20px 20px;
    }

    .slide-text h1 {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .slide-text .subtitle {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .slide-text p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .slide-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }



    .slide-image {
        max-width: 320px;
        margin-top: 10px;
    }

    .banner-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

        .banner-nav.prev {
            left: 15px;
        }

        .banner-nav.next {
            right: 15px;
        }

    .banner-dots {
        bottom: 30px;
        gap: 12px;
    }

    .dot {
        width: 14px;
        height: 14px;
    }

    /* Hide badge on mobile to prevent content shifting */
    .slide-badge {
        display: none;
    }
}

/* Small mobile devices (480px) */
@media (max-width: 480px) {
    /* Prevent horizontal overflow */
    .gearchase-banner,
    .banner-container,
    .slide-content {
        max-width: 100%;
        overflow-x: hidden;
    }

    .gearchase-banner {
        height: 600px;
    }

    .slide-content {
        padding: 15px;
    }

    .slide-text h1 {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .slide-text .subtitle {
        font-size: 0.85rem;
    }

    .slide-text p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .slide-image {
        max-width: 280px;
        display: block;
    }

        .slide-image img {
            border-radius: 12px;
        }

    .banner-dots {
        bottom: 25px;
    }

    .dot {
        width: 12px;
        height: 12px;
    }

    /* Badge already hidden on mobile */
    .slide-badge {
        display: none;
    }
}

/* Extra small devices (380px) */
@media (max-width: 380px) {
    .gearchase-banner {
        height: 580px;
    }

    .slide-text h1 {
        font-size: 1.5rem;
    }

    .slide-text p {
        font-size: 0.85rem;
    }

    .slide-image {
        max-width: 240px;
    }

    .banner-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

        .banner-nav.prev {
            left: 10px;
        }

        .banner-nav.next {
            right: 10px;
        }
}

/* Enhanced Product Section Styles */
.product-section {
    padding: 20px 0;
    background: #fff;
}

    .product-section h2 {
        text-align: center;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 48px;
        color: #333;
    }

.product-carousel-container {
    position: relative;
    margin: 0 -15px;
}

.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 60px 20px;
    margin: 0 -60px;
    scrollbar-width: thin;
    scrollbar-color: #2c3e50 #f1f1f1;
}

    .product-carousel::-webkit-scrollbar {
        height: 8px;
    }

    .product-carousel::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .product-carousel::-webkit-scrollbar-thumb {
        background: #00b894;
        border-radius: 4px;
    }

        .product-carousel::-webkit-scrollbar-thumb:hover {
            background: #00a085;
        }


/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #00b894;
    color: #00b894;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

    .carousel-nav:hover {
        background: #00b894;
        color: white;
        transform: translateY(-50%) scale(1.1);
    }

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }

.view-more {
    text-align: center;
    margin-top: 48px;
}

.view-more-btn {
    background: white;
    color: #00b894;
    border: 2px solid #00b894;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .view-more-btn:hover {
        background: #00b894;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 184, 148, 0.3);
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-carousel {
        padding: 0 20px 20px;
        margin: 0 -20px;
    }

    .product-card {
        flex: 0 0 250px;
    }

    .product-image {
        height: 300px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

        .carousel-nav.prev {
            left: 5px;
        }

        .carousel-nav.next {
            right: 5px;
        }

    .product-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .product-carousel {
        padding: 0 10px 20px;
        margin: 0 -10px;
    }

    .product-card {
        flex: 0 0 220px;
    }

    .product-image {
        height: 280px;
    }

    .carousel-nav {
        display: none;
    }
}

/* Touch scrolling indicators */
@media (hover: none) and (pointer: coarse) {
    .product-carousel::after {
        position: absolute;
        bottom: -10px;
        right: 0;
        font-size: 12px;
        color: #999;
        animation: fadeInOut 3s infinite;
    }
}

@keyframes fadeInOut {
    0%, 50%, 100% {
        opacity: 0.7;
    }

    25%, 75% {
        opacity: 0.3;
    }
}

/* ========================================
   TRENDING & SPONSORED ROWS - MOBILE SCROLL
======================================== */

/* Tablets and below (768px) */
@media (max-width: 768px) {
    /* Make the entire row scrollable horizontally */
    .trending-content,
    .sponsored-content {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 12px;
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .trending-content::-webkit-scrollbar,
    .sponsored-content::-webkit-scrollbar {
        display: none;
    }

    .trending-label,
    .sponsored-label {
        flex-shrink: 0;
        font-size: 11px;
    }

    .trending-items,
    .sponsored-items {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        flex-shrink: 0;
        overflow: visible;
    }

        .trending-items a,
        .sponsored-items a {
            white-space: nowrap;
            flex-shrink: 0;
            font-size: 13px;
            padding: 6px 12px;
        }

    /* Add scroll indicator */
/*    .trending-nav::after,
    .sponsored-nav::after {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        opacity: 0.6;
        pointer-events: none;
        animation: slideHint 2s ease-in-out infinite;
    }*/

    .trending-nav::after {
        color: rgba(255, 255, 255, 0.7);
    }

    .sponsored-nav::after {
        color: rgba(0, 0, 0, 0.4);
    }
}

/* Mobile devices (480px) */
@media (max-width: 480px) {
    .trending-content,
    .sponsored-content {
        padding: 0 8px;
        gap: 8px;
    }

    .trending-label,
    .sponsored-label {
        font-size: 10px;
        padding: 3px 6px;
    }

    .trending-items,
    .sponsored-items {
        gap: 10px;
    }

        .trending-items a,
        .sponsored-items a {
            font-size: 12px;
            padding: 5px 10px;
        }

    .deal-badge,
    .hot-badge {
        font-size: 10px;
        padding: 4px 5px;
    }
}

@keyframes slideHint {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(-50%) translateX(0);
    }

    50% {
        opacity: 0.3;
        transform: translateY(-50%) translateX(5px);
    }
}
