/* === Bulk Add Cart Dropdown - hello-elementor compatible style === */

/* --- WRAP GENERAL ------------------------------------------ */
.bacd-wrap {
    font-family: 'Commissioner', sans-serif;
    padding: 0;
}

/* --- SECTION / ACCORDION ---------------------------------- */
.bacd-section {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}

/* Buton toggle accordion */
.bacd-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-align: left;
    font-family: "teutonic", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #212121;
    transition: background 0.2s;
    gap: 8px;
    box-sizing: border-box;
}
.bacd-accordion-toggle:hover {
    background: #f7f7f7;
}
.bacd-accordion-toggle.is-open {
    background: #f7faf3;
    border-bottom: 1px solid #e0e0e0;
}

/* Titlu categorie / tag */
.bacd-group-title {
    font-family: "teutonic", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #212121;
    margin: 0;
}

/* Icon +/- */
.bacd-toggle-icon {
    flex-shrink: 0;
    font-size: 22px;
    line-height: 1;
    color: #6bb42f;
    transition: transform 0.2s;
    font-weight: 400;
}
.bacd-accordion-toggle.is-open .bacd-toggle-icon {
    transform: rotate(45deg);
}

/* Body accordion - ascuns la load */
.bacd-accordion-body {
    display: none;
    padding: 0 0 12px 0;
}

/* --- RAND PRODUS ------------------------------------------- */
.bacd-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid #f0f0f0;
    font-family: "teutonic", sans-serif;
    font-size: 14px;
    color: #212121;
}
.bacd-row:last-of-type {
    border-bottom: none;
}
.bacd-row:nth-child(even) {
    background: #fafafa;
}

/* Imagine */
.bacd-col-image {
    flex: 0 0 56px;
}
.bacd-col-image img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* SKU */
.bacd-col-sku {
    flex: 0 0 120px;
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

/* Nume */
.bacd-col-name {
    flex: 1 1 auto;
    min-width: 0;
}
.bacd-col-name a {
    font-family: "teutonic", sans-serif;
    color: #212121;
    font-weight: 400;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 90ch;
    display: block;
}
.bacd-col-name a:hover {
    color: #6bb42f;
}

/* Pret */
.bacd-col-price {
    flex: 0 0 110px;
    font-weight: 700;
    color: #146a21;
    font-size: 14px;
    white-space: nowrap;
}

/* Input cantitate */
.bacd-col-qty {
    flex: 0 0 80px;
}
.bacd-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.bacd-qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    color: #212121;
    font-family: "teutonic", sans-serif;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}
.bacd-qty-btn:hover {
    background: #f3f7ef;
}
.bacd-qty {
    width: 72px !important;
    padding: 6px 8px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 8px  !important;
    background: #fafafa !important;
    color: #333 !important;
    font-family: "teutonic", sans-serif !important;
    font-size: 13px     !important;
    text-align: center !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s !important;
}
.bacd-qty:focus {
    border-color: #6bb42f;
    outline: none;
    background: #fff;
}

/* Coloana buton Add */
.bacd-col-add {
    flex: 0 0 auto;
}

/* --- BUTOANE ----------------------------------------------- */
.bacd-btn {
    font-family: "teutonic", sans-serif !important;
    background: #6bb42f !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 14px   !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background 0.2s !important;
}
.bacd-btn:hover {
    background: #5a9a28;
}
.bacd-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Actiuni sectiune (Add all selected) */
.bacd-actions {
    display: flex;
    justify-content: flex-end;
    padding: 10px 18px 2px;
}

/* --- RESPONSIVE -------------------------------------------- */
@media (max-width: 640px) {
    .bacd-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .bacd-col-sku {
        display: none;
    }
    .bacd-col-image {
        flex: 0 0 44px;
    }
    .bacd-col-image img {
        width: 44px;
        height: 44px;
    }
    .bacd-col-price {
        flex: 0 0 auto;
    }
    .bacd-col-qty {
        flex: 0 0 64px;
    }
}