/* ==================================================
   Best Selling Products Styles (Responsive & Neon)
   ================================================== */
.best-selling-section {
    padding: 30px 0 70px 0;
    background-color: #0B081D; /* Main Dark Background */
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

/* Header Area */
.bs-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
}

.bs-subtitle {
    font-size: 11px;
    letter-spacing: 2px;
    color: #8c8c9a;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.text-yellow {
    color: #FFD700;
}

.bs-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.text-purple {
    color: #a855f7; /* Purple highlight */
}

/* View All Button */
.bs-view-all-btn {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.bs-view-all-btn:hover {
    background: #a855f7;
    color: #fff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5); /* Neon glow for button */
}

/* Grid Layout */
.bs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Product Card - With Purple Neon Glow Effect */
.bs-card {
    background-color: #1a1635; /* Card dark background */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.bs-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.6);
    /* Purple Neon Magic */
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3), 0 0 40px rgba(168, 85, 247, 0.1);
}

/* Image Wrapper & Rank Badge */
.bs-img-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.bs-img-wrapper img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.bs-card:hover .bs-img-wrapper img {
    transform: scale(1.1);
}

/* The #1, #2 Rank Badge */
.bs-rank-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #a855f7; /* Purple */
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    border: 4px solid #1a1635; /* Creates the cut-out effect */
    z-index: 2;
}

/* Content Area */
.bs-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bs-rating {
    color: #FFD700;
    font-size: 11px;
    margin-bottom: 8px;
}

.bs-review-count {
    color: #6b7280;
    font-size: 10px;
    margin-left: 5px;
}

.bs-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 20px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price and Cart Row */
.bs-price-cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.bs-price {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

.bs-cart-btn {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.bs-cart-btn:hover {
    background: #a855f7;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6); /* Button Neon Glow */
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .bs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .bs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .bs-header-wrapper { flex-direction: column; align-items: flex-start; gap: 15px; }
}
@media (max-width: 480px) {
    .bs-grid { grid-template-columns: repeat(1, 1fr); }
}