/* ===== BESTSELLERS / POPULAR ===== */
.bs-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px 60px;
}
.bs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.bs-title {
    font-size: 28px;
    font-weight: 800;
}

/* Category filters */
.bs-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 24px;
    padding-bottom: 4px;
}
.bs-filters::-webkit-scrollbar { display: none; }
.bs-filter {
    flex-shrink: 0;
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.bs-filter:hover {
    border-color: var(--text-muted);
    color: var(--text);
}
.bs-filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Scrollable row */
.bs-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    /* no snap — free scroll */
    scrollbar-width: none;
    /* scroll-behavior controlled by JS */
    padding: 4px 0;
    cursor: grab;
}
.bs-grid::-webkit-scrollbar { display: none; }
.bs-grid.grabbing { cursor: grabbing; }

.bs-card {
    position: relative;
    flex: 0 0 calc(25% - 9px);
    max-width: calc(25% - 9px);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    /* free scroll */
    text-decoration: none;
    color: inherit;
}
.bs-card[style*="display: none"] {
    flex: 0 0 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}
.bs-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.bs-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-secondary);
}
.bs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.bs-card:hover .bs-card-img img {
    transform: scale(1.05);
}

/* Hover overlay actions */
.bs-card-actions {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}
.bs-card:hover .bs-card-actions {
    opacity: 1;
}
.bs-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}
.bs-action-btn:hover {
    background: var(--accent, #e91e63);
    transform: scale(1.1);
}
.bs-action-btn svg {
    width: 15px;
    height: 15px;
}

/* Hit badge */
.bs-hit {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ff6b00, #e91e63);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(233,30,99,0.4);
    z-index: 4;
}
.bs-hit svg { width: 11px; height: 11px; }

/* PS badge */
.bs-ps {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    z-index: 4;
}
.bs-ps.ps5 { background: rgba(0,112,216,0.7); color: #fff; }
.bs-ps.ps4 { background: rgba(109,40,217,0.7); color: #fff; }
.bs-ps.ps4_ps5 { background: rgba(34,197,94,0.7); color: #fff; }

/* Card body */
.bs-card-body {
    padding: 8px 10px;
}
.bs-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price row */
.bs-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.bs-price-current {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}
.bs-price-old {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.bs-discount {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    background: #e91e63;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .bs-card { flex: 0 0 calc(33.333% - 8px); max-width: calc(33.333% - 8px); }
}
@media (max-width: 768px) {
    .bs-card { flex: 0 0 calc(50% - 6px); max-width: calc(50% - 6px); min-width: 150px; }
}
@media (max-width: 640px) {
    .bs-section { padding: 24px 16px 40px; }
    .bs-title { font-size: 22px; }
    .bs-filter { padding: 8px 16px; font-size: 13px; }
    .bs-card { flex: 0 0 calc(50% - 6px); max-width: calc(50% - 6px); min-width: 130px; }
    .bs-card-name { font-size: 11px; }
    .bs-price-current { font-size: 13px; }
    .bs-card-body { padding: 6px 8px; }
    .bs-card-footer { gap: 4px; }
    .bs-card-actions { display: none; }
}
