/* ── Grid Layout ──────────────────────────────────────────── */
.bsp-preorder-grid {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}

.bsp-cols-1 { grid-template-columns: 1fr; }
.bsp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bsp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bsp-cols-4 { grid-template-columns: repeat(4, 1fr); }
.bsp-cols-5 { grid-template-columns: repeat(5, 1fr); }
.bsp-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ── Card ─────────────────────────────────────────────────── */
.bsp-preorder-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.bsp-preorder-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* ── Image Wrap ───────────────────────────────────────────── */
.bsp-card-image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 5 / 6;
    background: #f5f5f5;
}

.bsp-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.bsp-preorder-card:hover .bsp-card-image-wrap img {
    transform: scale(1.04);
}

.bsp-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 13px;
}

/* ── Badge ────────────────────────────────────────────────── */
.bsp-card-badge {
    top: 10px;
    left: 10px;
    z-index: 1;
    position: absolute !important;
    margin: 0 !important;
    font-size: 11px !important;
    padding: 3px 10px !important;
}

/* ── Card Body ────────────────────────────────────────────── */
.bsp-card-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bsp-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}

.bsp-card-title a { color: inherit; text-decoration: none; }
.bsp-card-title a:hover { color: #0073aa; }

.bsp-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.bsp-card-availability {
    font-size: 12.5px;
    color: #777;
    font-style: italic;
    margin-bottom: 8px;
}

/* ── Days Badge ───────────────────────────────────────────── */
.bsp-days-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    margin-top: auto;
}

.bsp-days-soon { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6c6; }
.bsp-days-near { background: #fff8e1; color: #b07d00; border: 1px solid #fce6a0; }
.bsp-days-far  { background: #e8f4fd; color: #0073aa; border: 1px solid #b3d7f0; }

/* ── Button ───────────────────────────────────────────────── */
.bsp-card-btn {
    display: block;
    text-align: center;
    background: #0073aa;
    padding: 10px 16px;
    border-radius: 5px;
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.2s;
    margin-top: auto;
    color: #fff !important;
    text-decoration: none !important;
}

.bsp-card-btn:hover { background: #005f8d; color: #fff !important; }

.bsp-no-products {
    text-align: center;
    padding: 48px 24px;
    color: #888;
    font-size: 15px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
}

/* ── Responsive breakpoints — MUST come AFTER base rules ─── */
@media (max-width: 1024px) {
    .bsp-cols-5, .bsp-cols-6 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .bsp-cols-4, .bsp-cols-5, .bsp-cols-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
    .bsp-cols-2, .bsp-cols-3, .bsp-cols-4, .bsp-cols-5, .bsp-cols-6 { grid-template-columns: repeat(2, 1fr); }
    .bsp-preorder-grid { gap: 14px; }
}

@media (max-width: 480px) {
    .bsp-preorder-grid { gap: 12px; grid-template-columns: repeat(2, 1fr) !important; }
    .bsp-card-image-wrap { aspect-ratio: unset; height: 230px; }
    .bsp-card-body { padding: 10px 10px 14px; }
    .bsp-card-title { font-size: 13px; }
    .bsp-card-price { font-size: 13px; }
    .bsp-card-availability { font-size: 11px; }
    .bsp-days-badge { font-size: 10.5px; padding: 2px 8px; }
    .bsp-card-btn { font-size: 12px; padding: 8px 10px; }
}

@media only screen and (max-device-width: 768px) {
    .bsp-preorder-grid { gap: 12px; grid-template-columns: repeat(2, 1fr) !important; }
    .bsp-card-image-wrap { aspect-ratio: unset; height: 230px; }
    .bsp-card-body { padding: 10px 10px 14px; }
    .bsp-card-title { font-size: 13px; }
    .bsp-card-price { font-size: 13px; }
    .bsp-card-availability { font-size: 11px; }
    .bsp-days-badge { font-size: 10.5px; padding: 2px 8px; }
    .bsp-card-btn { font-size: 12px; padding: 8px 10px; }
}

@media (pointer: coarse) and (max-width: 768px) {
    .bsp-preorder-grid { gap: 12px; grid-template-columns: repeat(2, 1fr) !important; }
    .bsp-card-image-wrap { aspect-ratio: unset; height: 230px; }
    .bsp-card-body { padding: 10px 10px 14px; }
    .bsp-card-title { font-size: 13px; }
    .bsp-card-price { font-size: 13px; }
    .bsp-card-availability { font-size: 11px; }
    .bsp-days-badge { font-size: 10.5px; padding: 2px 8px; }
    .bsp-card-btn { font-size: 12px; padding: 8px 10px; }
}