/* Bank Showcase — Frontend */

.bs-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Filters */
.bs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}

.bs-filter-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bs-filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.bs-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

/* Cards Grid */
.bs-grid {
    display: grid;
    grid-template-columns: repeat(var(--bs-columns, 3), 1fr);
    gap: 20px;
}

.bs-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.bs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.bs-card.bs-top {
    border: 2px solid #d63384;
}

.bs-card.bs-popular {
    border: 2px solid #0d6efd;
}

/* Badges */
.bs-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.bs-badge-top {
    background: linear-gradient(135deg, #d63384, #e83e8c);
    color: #fff;
}

.bs-badge-popular {
    background: linear-gradient(135deg, #0d6efd, #6ea8fe);
    color: #fff;
}

/* Card Header */
.bs-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.bs-bank-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.bs-bank-name {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    display: block;
}

.bs-type-label {
    font-size: 11px;
    color: #aaa;
    display: block;
}

/* Card Image */
.bs-card-image {
    margin: -24px -24px 16px;
    overflow: hidden;
    max-height: 160px;
}

.bs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Title */
.bs-card-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #222;
    line-height: 1.3;
}

/* Rate */
.bs-card-rate {
    text-align: center;
    padding: 14px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f0ff 100%);
    border-radius: 12px;
    margin-bottom: 16px;
}

.bs-rate-main {
    font-size: 24px;
    font-weight: 800;
    color: #667eea;
}

.bs-rate-label {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* Details */
.bs-card-details {
    flex: 1;
    margin-bottom: 16px;
}

.bs-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}

.bs-detail:last-child {
    border-bottom: none;
}

.bs-detail-label {
    color: #888;
}

.bs-detail-value {
    font-weight: 600;
    color: #333;
}

.bs-detail-value.bs-highlight {
    color: #198754;
}

/* Features */
.bs-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.bs-features li {
    padding: 4px 0 4px 20px;
    font-size: 13px;
    color: #555;
    position: relative;
}

.bs-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #198754;
    font-weight: 700;
}

/* Actions */
.bs-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.bs-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.bs-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.bs-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
    color: #fff;
}

.bs-btn-secondary {
    background: #f0f0f0;
    color: #555;
    border: none;
}

.bs-btn-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

/* Compare Table */
.bs-compare-table {
    overflow-x: auto;
    margin: 20px 0;
}

.bs-compare-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.bs-compare-table th,
.bs-compare-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.bs-compare-table th {
    background: #f8f9fa;
    font-weight: 700;
}

.bs-compare-table .bs-compare-label {
    text-align: left;
    font-weight: 600;
    color: #555;
    background: #fafafa;
}

/* Responsive */
@media (max-width: 992px) {
    .bs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .bs-grid { grid-template-columns: 1fr; }
    .bs-card { padding: 20px 16px; }
    .bs-card-image { margin: -20px -16px 12px; }
    .bs-rate-main { font-size: 20px; }
}

/* ===== SINGLE PRODUCT PAGE ===== */

.bsp-single {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.bsp-breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
}
.bsp-breadcrumb a { color: #888; text-decoration: none; }
.bsp-breadcrumb a:hover { color: #667eea; }
.bsp-breadcrumb span { color: #333; }

/* Hero */
.bsp-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.bsp-hero-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.bsp-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.bsp-gallery {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.bsp-gallery-item {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #eee;
    transition: border-color 0.2s;
}
.bsp-gallery-item:hover { border-color: #667eea; }
.bsp-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Bank Row */
.bsp-bank-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.bsp-bank-logo { height: 36px; width: auto; object-fit: contain; }
.bsp-bank-name { font-size: 14px; font-weight: 600; color: #666; }

/* Title */
.bsp-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #222;
    line-height: 1.3;
}

.bsp-type {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #f0f0f0;
    color: #666;
    margin-bottom: 12px;
}

.bsp-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.bsp-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.bsp-badge-top { background: linear-gradient(135deg, #d63384, #e83e8c); color: #fff; }
.bsp-badge-popular { background: linear-gradient(135deg, #0d6efd, #6ea8fe); color: #fff; }

/* Main Rate */
.bsp-main-rate {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f0ff 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}
.bsp-main-rate-num {
    font-size: 32px;
    font-weight: 800;
    color: #667eea;
}
.bsp-main-rate-label {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

/* Key Numbers */
.bsp-key-numbers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.bsp-key-num {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
}
.bsp-key-num-val {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
.bsp-key-num-label {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* Apply Button */
.bsp-btn-apply {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.bsp-btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
    color: #fff;
}
.bsp-btn-apply-lg {
    padding: 16px 32px;
    font-size: 18px;
    width: auto;
}

/* Sections */
.bsp-section, .bsp-content-section {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.bsp-section h2, .bsp-content-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #222;
}

/* Conditions Grid */
.bsp-conditions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.bsp-condition {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 10px;
}
.bsp-condition-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.bsp-condition-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}
.bsp-condition-value {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

/* Features Full */
.bsp-features-full {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 30px;
}
.bsp-features-full li {
    padding: 8px 0 8px 24px;
    font-size: 14px;
    color: #555;
    position: relative;
    break-inside: avoid;
}
.bsp-features-full li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #198754;
    font-weight: 700;
}

/* Pros & Cons */
.bsp-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.bsp-pros, .bsp-cons {
    padding: 20px;
    border-radius: 12px;
}
.bsp-pros { background: #f0fff4; }
.bsp-cons { background: #fff5f5; }
.bsp-pros h3, .bsp-cons h3 {
    font-size: 16px;
    margin: 0 0 12px;
}
.bsp-pros ul, .bsp-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bsp-pros li, .bsp-cons li {
    padding: 6px 0 6px 20px;
    font-size: 14px;
    position: relative;
}
.bsp-pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #198754;
    font-weight: 700;
}
.bsp-cons li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: 700;
}

/* CTA */
.bsp-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    color: #fff;
}
.bsp-cta h3 {
    margin: 0 0 4px;
    font-size: 20px;
}
.bsp-cta p {
    margin: 0;
    opacity: 0.85;
    font-size: 14px;
}

/* Back */
.bsp-back {
    text-align: center;
    padding: 20px 0 40px;
}
.bsp-back a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.bsp-back a:hover { text-decoration: underline; }

/* Responsive Single */
@media (max-width: 768px) {
    .bsp-hero { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
    .bsp-conditions-grid { grid-template-columns: 1fr; }
    .bsp-features-full { columns: 1; }
    .bsp-pros-cons { grid-template-columns: 1fr; }
    .bsp-cta { flex-direction: column; text-align: center; }
    .bsp-key-numbers { grid-template-columns: repeat(2, 1fr); }
    .bsp-main-rate-num { font-size: 24px; }
}
