/* =====================================================
   Bestseller Categories Grid — Base Styles Only
   v1.0.5 — Grid columns/rows handled by <style> tag
   ===================================================== */

/* Base wrapper — colors/layout overridden by <style> tag */
.bcg-wrapper {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bcg-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1c1c1c;
    margin: 0 0 14px 2px;
    padding: 0;
    line-height: 1.2;
}

/* Grid base — actual columns/rows set by <style> tag per instance */
.bcg-grid {
    display: grid;
}

/* Cards */
.bcg-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bcg-card:hover { transform: translateY(-2px); text-decoration: none; color: inherit; }
.bcg-card:active { transform: scale(0.98); }

/* 2x2 product thumbnails inside card */
.bcg-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #ebebeb;
}
.bcg-thumb-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}
.bcg-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    box-sizing: border-box;
    display: block;
}

/* Footer */
.bcg-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 8px;
    width: 100%;
}
.bcg-more {
    display: block;
    font-size: 0.71rem;
    font-weight: 500;
    color: #777;
    margin-bottom: 3px;
}
.bcg-cat-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1c1c1c;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
}

/* Ghost card */
.bcg-card--ghost {
    pointer-events: none;
    opacity: 0.2;
    min-height: 80px;
}

/* Empty */
.bcg-empty { color: #888; font-style: italic; padding: 20px 0; }
