/* Quick Top Three Carousel Fix - Override conflicting styles */

/* Main carousel container */
#quick_top_3 {
    margin: 2rem 0;
}

/* Carousel slider */
.quick-top-three-slider {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 1rem 0;
}

/* Container for cards */
.quick-top-three-container {
    display: flex;
    gap: 1rem;
    padding: 0 1rem;
}

/* Individual card styling */
.quick-top-three-card {
    flex: 0 0 280px;
    min-width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem;
    position: relative;
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

.quick-top-three-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Card rank badge - positioned correctly */
.quick-top-three-card .card-rank-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    z-index: 2;
}

/* Card title */
.quick-top-three-card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    padding-right: 4rem; /* Space for badge */
    line-height: 1.3;
    color: #333;
}

/* Image wrapper */
.quick-top-three-card .image-wrapper {
    margin-bottom: 0.75rem;
    position: relative;
}

.quick-top-three-card .image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Bat grade and score positioned outside image */
.quick-top-three-card .bat-grade {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: #fff;
    border: 2px solid #333;
    color: #333;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    z-index: 2;
}

.quick-top-three-card .bat-score {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    color: #333;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    z-index: 2;
}

/* Subtitle */
.quick-top-three-card h6 {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 0.5rem 0;
    font-weight: 400;
}

/* Price link */
.quick-top-three-card .simple-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0073e6;
}

.quick-top-three-card .affiliate-price-link {
    text-decoration: none;
}

.quick-top-three-card .affiliate-price-link:hover .simple-price {
    text-decoration: underline;
}

/* Swing weight indicator */
.swing-weight-indicator.swing-weight-minimal {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-top: 0.5rem;
}

.swing-weight-indicator.swing-weight-minimal .swing-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e0e0e0;
}

.swing-weight-indicator.swing-weight-minimal .swing-indicator.active {
    background: #ff6b6b;
}

/* Filter bar improvements */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-bar button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-bar button:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.filter-bar button.active {
    background: linear-gradient(135deg, #0073e6 0%, #005bb5 100%);
    border-color: #0073e6;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 115, 230, 0.3);
}

.filter-bar .primary-button {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .quick-top-three-card {
        flex: 0 0 250px;
        min-width: 250px;
    }
    
    .quick-top-three-card h5 {
        font-size: 0.9rem;
    }
    
    .quick-top-three-card .card-rank-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}