/* --- استایل‌های قبلی بدون تغییر --- */
.bsc-container {
    max-width: 650px;
    margin: 2rem auto;
    padding: 2rem;
    font-family: inherit;
    background: #fff;
    direction: rtl;
    text-align: right;
}

.bsc-form p { margin-bottom: 2rem; }
.bsc-input-group {
    margin-bottom: 1.5rem;
}
.bsc-input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.bsc-input-wrapper {
    display: flex;
    align-items: center;
}
.bsc-input-wrapper input[type="number"] {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: left;
    -moz-appearance: textfield;
}
.bsc-input-wrapper .bsc-unit {
    padding: 0 15px;
    color: #777;
}
#bsc-calculate-btn {
    width: 100%;
    padding: 14px;
    background-color: #2d2d2d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 2rem;
    transition: background-color 0.2s;
}
#bsc-calculate-btn:hover { background-color: #000; }

#bsc-result-area { text-align: center; margin: 2.5rem 0; }
#bsc-result-area h3 { font-size: 1.2rem; font-weight: normal; color: #333; }
#bsc-final-size { font-weight: bold; font-size: 1.8rem; color: #000; margin-right: 5px;}
.bsc-error-message {
    color: #a94442; background-color: #f2dede; border: 1px solid #ebccd1;
    padding: 15px; border-radius: 4px; margin-top: 1.5rem; text-align: center;
}

#bsc-size-chart-container {
    margin-top: 2rem;
    text-align: center;
    direction: ltr;
}
.bsc-table-wrapper { overflow-x: auto; }
.bsc-size-chart {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.bsc-size-chart th, .bsc-size-chart td {
    padding: 14px 10px;
    border: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.bsc-size-chart thead th {
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.bsc-size-chart tbody tr { border-bottom: 1px solid #f0f0f0; }
.bsc-size-chart tbody tr:last-child { border-bottom: none; }
.bsc-size-chart tbody .band-label {
    text-align: left;
    font-weight: bold;
    color: #333;
}

.bsc-size-chart td {
    background-color: transparent;
    color: #333;
    font-weight: bold;
    text-align: center;
}
.bsc-size-chart td.highlight-main {
    background-color: #2d2d2d !important;
    color: #fff !important;
}
.bsc-size-chart td.highlight-sister {
    background-color: #f0f0f0 !important;
    color: #333 !important;
}

/* --- استایل‌های جدید برای پیشنهاد محصولات --- */
#bsc-product-suggestions {
    margin-top: 2.5rem;
    text-align: center;
}
#bsc-product-suggestions h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}
.bsc-suggestions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}
.bsc-suggestion-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1rem;
    width: 160px;
    text-align: center;
}
.bsc-suggestion-item a {
    text-decoration: none;
    color: inherit;
}
.bsc-suggestion-item img {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}
.bsc-suggestion-item h4 {
    font-size: 0.9rem;
    margin: 0.5rem 0;
    color: #111;
}
.bsc-suggestion-price {
    display: block;
    font-weight: bold;
    color: #2d2d2d;
    margin-top: 0.3rem;
}

/* کلاس مخفی‌سازی */
.bsc-hidden { display: none; }