/* ═══════════════════════════════════════════════════════════
   BBF Play Grid – Product Listing Styles
   ═══════════════════════════════════════════════════════════ */

:root {
    --bbf-primary: #6c5ce7;
    --bbf-primary-dark: #5a4bd1;
    --bbf-accent: #00cec9;
    --bbf-bg: #f8f9fe;
    --bbf-card-bg: #ffffff;
    --bbf-text: #2d3436;
    --bbf-text-light: #636e72;
    --bbf-shadow: 0 4px 20px rgba(108, 92, 231, 0.08);
    --bbf-shadow-hover: 0 12px 32px rgba(108, 92, 231, 0.18);
    --bbf-radius: 16px;
    --bbf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Filter tabs ─────────────────────────────────────────── */
.bbf-play-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    padding: 8px;
    background: var(--bbf-bg);
    border-radius: 12px;
}

.bbf-filter-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--bbf-text-light);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--bbf-transition);
    white-space: nowrap;
}

.bbf-filter-btn:hover {
    background: rgba(108, 92, 231, 0.08);
    color: var(--bbf-primary);
}

.bbf-filter-btn.active {
    background: var(--bbf-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

/* ── Product grid ────────────────────────────────────────── */
.bbf-play-grid {
    display: grid;
    gap: 24px;
}

.bbf-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.bbf-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bbf-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ── Product card ────────────────────────────────────────── */
.bbf-play-card {
    background: var(--bbf-card-bg);
    border-radius: var(--bbf-radius);
    box-shadow: var(--bbf-shadow);
    overflow: hidden;
    transition: var(--bbf-transition);
    display: flex;
    flex-direction: column;
}

.bbf-play-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bbf-shadow-hover);
}

.bbf-card-link {
    text-decoration: none !important;
    color: inherit !important;
    flex: 1;
}

.bbf-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bbf-bg);
}

.bbf-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bbf-play-card:hover .bbf-card-image img {
    transform: scale(1.08);
}

.bbf-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--bbf-bg), #e8e6ff);
}

.bbf-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--bbf-primary), var(--bbf-accent));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

.bbf-card-body {
    padding: 16px 20px 8px;
}

.bbf-card-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--bbf-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bbf-card-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--bbf-primary);
}

.bbf-card-price del {
    color: var(--bbf-text-light);
    font-weight: 400;
    font-size: 13px;
}

.bbf-card-actions {
    padding: 0 20px 20px;
}

.bbf-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: var(--bbf-transition);
    border: none;
}

.bbf-btn-primary {
    background: linear-gradient(135deg, var(--bbf-primary), var(--bbf-primary-dark));
    color: #fff !important;
}

.bbf-btn-primary:hover {
    background: linear-gradient(135deg, var(--bbf-primary-dark), #4834d4);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.35);
}

/* ── Empty state ──────────────────────────────────────────── */
.bbf-play-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--bbf-text-light);
}

.bbf-empty-icon {
    display: block;
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ── Pagination ───────────────────────────────────────────── */
.bbf-play-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.bbf-play-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--bbf-card-bg);
    color: var(--bbf-text);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--bbf-shadow);
    transition: var(--bbf-transition);
}

.bbf-play-pagination .page-numbers:hover,
.bbf-play-pagination .page-numbers.current {
    background: var(--bbf-primary);
    color: #fff;
}

/* ── Animation on page load ───────────────────────────────── */
@keyframes bbfFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bbf-play-card {
    animation: bbfFadeUp 0.5s ease forwards;
    opacity: 0;
}

.bbf-play-card:nth-child(1) {
    animation-delay: 0.05s;
}

.bbf-play-card:nth-child(2) {
    animation-delay: 0.10s;
}

.bbf-play-card:nth-child(3) {
    animation-delay: 0.15s;
}

.bbf-play-card:nth-child(4) {
    animation-delay: 0.20s;
}

.bbf-play-card:nth-child(5) {
    animation-delay: 0.25s;
}

.bbf-play-card:nth-child(6) {
    animation-delay: 0.30s;
}

.bbf-play-card:nth-child(7) {
    animation-delay: 0.35s;
}

.bbf-play-card:nth-child(8) {
    animation-delay: 0.40s;
}

.bbf-play-card:nth-child(9) {
    animation-delay: 0.45s;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .bbf-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .bbf-cols-3,
    .bbf-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .bbf-play-filters {
        justify-content: center;
    }

    .bbf-card-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .bbf-cols-2,
    .bbf-cols-3,
    .bbf-cols-4 {
        grid-template-columns: 1fr;
    }

    .bbf-play-grid {
        gap: 16px;
    }

    .bbf-filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}