/* ==========================================================================
   MS Bought Together — Compre Junto
   ========================================================================== */

.msbt-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 32px;
    margin: 30px 0;
}

.msbt-title {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    line-height: 1.3;
}

/* ---------- Layout de produtos + sinais ---------- */

.msbt-products-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- Card de produto ---------- */

.msbt-product-card {
    position: relative;
    width: 210px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.msbt-product-card:hover {
    border-color: #764ea0;
    box-shadow: 0 4px 16px rgba(118, 78, 160, 0.12);
}

.msbt-product-card.msbt-current {
    border-color: #764ea0;
    border-style: solid;
}

/* ---------- Checkbox ---------- */

.msbt-checkbox {
    accent-color: #764ea0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0 0 8px 0;
}

/* ---------- Imagem do produto ---------- */

.msbt-image-link {
    display: block;
    text-decoration: none;
}

.msbt-product-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}

/* ---------- Info do produto ---------- */

.msbt-product-info {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.msbt-product-name {
    font-size: 13px;
    color: #333;
    line-height: 1.35;
    margin: 0 0 6px 0;
}

.msbt-product-price {
    font-size: 17px;
    font-weight: 700;
    color: #764ea0;
    margin: 0;
}

/* ---------- Sinais + e = ---------- */

.msbt-plus-sign,
.msbt-equals-sign {
    font-size: 30px;
    font-weight: 700;
    color: #764ea0;
    flex-shrink: 0;
    line-height: 1;
    user-select: none;
}

/* ---------- Bloco de total ---------- */

.msbt-total-block {
    text-align: center;
    padding: 16px 20px;
    min-width: 200px;
}

.msbt-total-label {
    font-size: 14px;
    color: #666;
    margin: 0 0 4px 0;
}

.msbt-total-value {
    font-size: 28px;
    font-weight: 700;
    color: #764ea0;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

/* ---------- Botão ---------- */

.msbt-add-btn {
    display: inline-block;
    background: #764ea0 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease !important;
    width: 100%;
    text-align: center;
    line-height: 1.3 !important;
}

.msbt-add-btn:hover {
    background: #5e3d82 !important;
    transform: translateY(-1px);
}

.msbt-add-btn:active {
    transform: translateY(0);
}

.msbt-add-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.msbt-add-btn.msbt-added {
    background: #27ae60 !important;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 900px) {
    .msbt-products-wrapper {
        gap: 10px;
    }

    .msbt-product-card {
        width: 180px;
        padding: 12px;
    }

    .msbt-product-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 640px) {
    .msbt-container {
        padding: 20px 16px;
        margin: 20px 0;
        border-radius: 12px;
    }

    .msbt-title {
        font-size: 22px;
        text-align: center;
    }

    .msbt-products-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .msbt-product-card {
        width: 100%;
        max-width: 320px;
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
        padding: 12px 16px;
    }

    .msbt-checkbox {
        margin: 0;
        flex-shrink: 0;
    }

    .msbt-image-link {
        flex-shrink: 0;
    }

    .msbt-product-image {
        width: 70px;
        height: 70px;
        margin: 0;
    }

    .msbt-product-info {
        flex: 1;
        min-height: auto;
    }

    .msbt-product-name {
        font-size: 13px;
    }

    .msbt-product-price {
        font-size: 16px;
    }

    .msbt-plus-sign {
        font-size: 22px;
    }

    .msbt-equals-sign {
        font-size: 22px;
    }

    .msbt-total-block {
        width: 100%;
        max-width: 320px;
        padding: 16px;
        border-top: 2px solid #f0f0f0;
    }

    .msbt-total-value {
        font-size: 24px;
    }

    .msbt-add-btn {
        padding: 14px 20px !important;
        font-size: 14px !important;
    }
}