/**
 * BEST SELLING PRODUCTS SECTION
 * Styling for the new featured products area
 */

.best-selling-section {
    padding: 80px 0;
    background: #0a0f1c;
    /* Deep dark background like the image */
    color: #fff;
    overflow: hidden;
}

/* Header Banner with Brand Logos */
.best-selling-header {
    position: relative;
    padding: 100px 0 60px;
    margin-bottom: 40px;
    background: linear-gradient(rgba(10, 15, 28, 0.7), rgba(10, 15, 28, 0.9)),
        url('https://images.unsplash.com/photo-1614850523296-d8c1af93d400?q=80&w=2070&auto=format&fit=crop');
    /* Placeholder for the background mosaic */
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-left: 40px;
    padding-right: 40px;
}

.best-selling-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 18px;
}

.best-selling-badge i {
    color: #ef4444;
    /* Red pulse icon */
}

.btn-explore {
    background: #3b82f6;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-explore:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Product Grid */
.best-selling-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bs-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    will-change: transform;
}

.bs-card:hover {
    transform: translateY(-8px);
    background: #fff;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
}

.bs-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bs-image-wrapper img {
    width: auto;
    height: 80%;
    max-width: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: 12px;
}

.bs-card:hover .bs-image-wrapper img {
    transform: scale(1.05);
}

/* Flag & Price Badges Overlay */
.bs-flag {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 20px;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bs-price-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.bs-type-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

/* Card Content */
.bs-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bs-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.bs-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bs-current-price {
    font-size: 18px;
    font-weight: 800;
    color: #2563eb;
}

.bs-old-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

.bs-discount {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.bs-purchases {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 13px;
    margin-top: auto;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 8px;
}

.bs-purchases i {
    font-size: 16px;
    color: #2563eb;
}

/* View More Button */
.bs-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-view-more {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.btn-view-more:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .best-selling-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .best-selling-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .best-selling-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .best-selling-grid {
        grid-template-columns: 1fr;
    }
}