/* ============================================
   PROFESSIONAL AUTO-SWIPE CAROUSEL
   RL SHINE - Premium Buyer Cards
   ============================================ */

/* Carousel Container */
.buyer-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Carousel Wrapper */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

/* Carousel Track */
.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
    will-change: transform;
}

/* Buyer Cards inside Carousel */
.carousel-track .buyer-card {
    flex: 0 0 100%;
    background: white;
    border-radius: 28px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 5px solid transparent;
}

/* Card Colors */
.carousel-track .buyer-card:nth-child(1) { border-top-color: #38a169; }
.carousel-track .buyer-card:nth-child(2) { border-top-color: #ed8936; }
.carousel-track .buyer-card:nth-child(3) { border-top-color: #805ad5; }

/* Hover Effect */
.carousel-track .buyer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.12);
}

/* Card Icons */
.carousel-track .buyer-icon {
    width: 90px;
    height: 90px;
    background: #f7fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.3rem;
    transition: all 0.3s ease;
}

.carousel-track .buyer-card:hover .buyer-icon {
    transform: scale(1.05);
}

.carousel-track .buyer-card:nth-child(1) .buyer-icon {
    color: #38a169;
    background: #f0fff4;
}

.carousel-track .buyer-card:nth-child(2) .buyer-icon {
    color: #ed8936;
    background: #fffaf0;
}

.carousel-track .buyer-card:nth-child(3) .buyer-icon {
    color: #805ad5;
    background: #faf5ff;
}

/* Card Titles */
.carousel-track .buyer-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1a202c;
    font-weight: 700;
}

/* Card Description */
.carousel-track .buyer-card > p {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Benefits List */
.carousel-track .benefits {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    padding: 0 20px;
}

.carousel-track .benefits li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #475569;
}

.carousel-track .benefits i {
    color: #38a169;
    font-size: 1rem;
}

/* Buttons */
.carousel-track .btn-buyer {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: center;
}

.carousel-track .consumer-btn {
    background: linear-gradient(135deg, #38a169, #48bb78);
    color: white;
}

.carousel-track .retailer-btn {
    background: linear-gradient(135deg, #ed8936, #f59e0b);
    color: white;
}

.carousel-track .wholesaler-btn {
    background: linear-gradient(135deg, #805ad5, #6b46c1);
    color: white;
}

.carousel-track .btn-buyer:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   CAROUSEL NAVIGATION ARROWS
   ============================================ */

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.carousel-arrow:hover {
    background: #38a169;
    border-color: #38a169;
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow:hover i {
    color: white;
}

.carousel-arrow i {
    font-size: 1.3rem;
    color: #475569;
    transition: all 0.3s ease;
}

.carousel-arrow.prev {
    left: -25px;
}

.carousel-arrow.next {
    right: -25px;
}

/* Disabled Arrows */
.carousel-arrow.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   CAROUSEL DOTS
   ============================================ */

.carousel-dots-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 35px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: #38a169;
    transform: scale(1.2);
}

.carousel-dot.active {
    width: 30px;
    background: #38a169;
    border-radius: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Desktop: Show arrows and dots */
@media (min-width: 1024px) {
    .carousel-track .buyer-card {
        flex: 0 0 calc(33.333% - 20px);
    }
    
    .carousel-arrow {
        display: flex;
    }
}

/* Tablet: Show arrows */
@media (min-width: 768px) and (max-width: 1023px) {
    .carousel-track .buyer-card {
        flex: 0 0 calc(50% - 15px);
    }
    
    .carousel-arrow {
        display: flex;
        width: 40px;
        height: 40px;
    }
    
    .carousel-arrow.prev {
        left: -15px;
    }
    
    .carousel-arrow.next {
        right: -15px;
    }
}

/* Mobile: Hide arrows, use dots only */
@media (max-width: 767px) {
    .carousel-track .buyer-card {
        flex: 0 0 100%;
    }
    
    .carousel-arrow {
        display: none;
    }
    
    .carousel-dots-container {
        margin-top: 25px;
    }
}

/* Auto-play indicator */
.carousel-progress {
    position: absolute;
    bottom: -10px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #38a169, #48bb78);
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s linear;
}
