.bbr-bundle-box {
    margin: 35px 0 30px;
    padding: 24px 26px;
    border: 1px solid #dfe5ea;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.03);
}

.bbr-bundle-box.bbr-above-tabs {
    margin: 25px 0 25px;
}

.bbr-title {
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf0f2;
    color: #36424c;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.bbr-bundle {
    padding: 18px 0 4px;
    border-top: 1px solid #f2f4f5;
}

.bbr-bundle:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.bbr-bundle-name {
    margin: 0 0 18px;
    color: #333f48;
    font-size: 15px;
    font-weight: 700;
}

.bbr-row-multiple {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px 340px;
    align-items: center;
    gap: 26px;
}

.bbr-products-list {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    overflow: visible;
    padding: 4px 0 14px;
}

.bbr-product {
    flex: 1 1 0;
    min-width: 0;
    padding: 16px 14px 14px;
    border: 1px solid #e7edf2;
    background: #fff;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.bbr-product:hover {
    border-color: #cfdde8;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.bbr-product img {
    max-width: 135px;
    max-height: 135px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 13px;
}

.bbr-product-name {
    min-height: 52px;
    display: -webkit-box;
    overflow: hidden;
    color: #222;
    font-size: 13px;
    line-height: 1.32;
    text-decoration: none !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.bbr-product-name:hover {
    color: #149bd7;
    text-decoration: none !important;
}

.bbr-product-price {
    margin-top: 9px;
    color: #2f3b44;
    font-size: 14px;
    font-weight: 800;
}

.bbr-plus,
.bbr-equal {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: #159bd7;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(21, 155, 215, 0.28);
}

.bbr-plus {
    flex: 0 0 34px;
    align-self: center;
}

.bbr-equal {
    margin: 0 auto;
}

/* Zona pret - Varianta 1 / Card elegant */
.bbr-actions {
    width: 100%;
    min-width: 340px;
    padding: 24px 26px 26px;
    background: #fff;
    border: 1px solid #e7edf2;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 14px;
}

.bbr-old-price {
    grid-column: 1 / 2;
    position: relative;
    display: inline-block;
    width: max-content;
    max-width: 100%;
    margin: 0;
    padding-top: 20px;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.bbr-old-price::before {
    content: "PRET INITIAL";
    position: absolute;
    left: 0;
    top: 0;
    color: #7b8794;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
    white-space: nowrap;
}

.bbr-old-price::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 30px;
    height: 2px;
    background: #111827;
    opacity: 0.8;
}

.bbr-discount-label {
    grid-column: 2 / 3;
    margin: 19px 0 0;
    padding: 8px 14px;
    background: #ff2f45;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    box-shadow: 0 5px 12px rgba(255, 47, 69, 0.28);
}

.bbr-total-price {
    grid-column: 1 / -1;
    margin: 4px 0 14px;
    padding-top: 18px;
    border-top: 1px solid #e8edf2;
    color: #ff2337;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.05;
    text-align: left;
}

.bbr-total-price::before {
    content: "PRET FINAL";
    display: block;
    margin-bottom: 8px;
    color: #2f3b44;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Buton Adauga in cos */
.bbr-add-bundle {
    grid-column: 1 / -1;
    position: relative;
    width: 100%;
    min-height: 48px;
    padding: 0 18px 0 60px !important;
    border: 0 !important;
    background: #0876d8 !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 8px 18px rgba(22, 142, 234, 0.22);
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 48px;
}

.bbr-add-bundle .bbr-btn-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 48px;
    line-height: 48px;
    background: #ffae00 !important;
    color: #fff !important;
    text-align: center;
    border-top-right-radius: 0;
    border-bottom-right-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.bbr-add-bundle .bbr-btn-icon:after {
    display: none;
}

.bbr-add-bundle .bbr-btn-icon i {
    color: #fff !important;
    font-size: 17px;
    line-height: 1;
}

.bbr-add-bundle .bbr-btn-text {
    position: relative;
    z-index: 2;
    display: inline-block;
    color: #fff;
}

.bbr-add-bundle:before {
    content: "";
    position: absolute;
    top: 0;
    left: -90%;
    width: 65%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-22deg);
    z-index: 1;
}

.bbr-add-bundle:hover,
.bbr-add-bundle:focus {
    background: #005eb8 !important;
    color: #fff !important;
}

.bbr-add-bundle:hover:before,
.bbr-add-bundle:focus:before {
    animation: bbrButtonShine 0.85s ease forwards;
}

.bbr-add-bundle:disabled {
    opacity: 0.65;
    cursor: wait;
}

.bbr-add-bundle:disabled:before {
    display: none;
}

@keyframes bbrButtonShine {
    0% {
        left: -90%;
    }

    100% {
        left: 130%;
    }
}

/* Desktop mediu */
@media (max-width: 1199px) {
    .bbr-row-multiple {
        grid-template-columns: minmax(0, 1fr) 38px 300px;
        gap: 18px;
    }

    .bbr-products-list {
        gap: 14px;
    }

    .bbr-product {
        padding: 14px 10px 12px;
    }

    .bbr-product img {
        max-width: 115px;
        max-height: 115px;
    }

    .bbr-actions {
        min-width: 300px;
        padding: 22px 20px 22px;
    }

    .bbr-total-price {
        font-size: 30px;
    }

    .bbr-add-bundle {
        min-height: 44px;
        line-height: 44px;
        font-size: 14px;
    }

    .bbr-add-bundle .bbr-btn-icon {
        height: 44px;
        line-height: 44px;
    }
}

/* Tableta */
@media (max-width: 991px) {
    .bbr-row-multiple {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .bbr-products-list {
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        gap: 12px;
        padding-bottom: 14px;
        scrollbar-width: thin;
    }

    .bbr-product {
        flex: 0 0 170px;
        width: 170px;
        min-width: 170px;
    }

    .bbr-plus {
        flex: 0 0 34px;
        margin-top: 60px;
    }

    .bbr-equal {
        margin: 0 auto;
    }

    .bbr-actions {
        width: 100%;
        max-width: 340px;
        min-width: 0;
       margin: -15px auto 18px;
    }
}



/* Mobile */
@media (max-width: 767px) {
    .bbr-bundle-box {
        margin: 20px 0;
        padding: 14px 14px 16px;
    }

    .bbr-title {
        margin: 0 0 14px;
        padding-bottom: 13px;
        font-size: 15px;
        letter-spacing: 0.2px;
    }

    .bbr-bundle {
        padding: 6px 0 0;
    }

    .bbr-bundle-name {
        display: none;
    }

    .bbr-row-multiple {
        display: block;
        width: 100%;
    }

    .bbr-products-list {
        display: block;
        width: 100%;
        overflow: visible;
        padding: 0;
    }

    .bbr-product {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 14px;
        align-items: center;
        padding: 16px 0;
        border: 0;
        border-bottom: 1px solid #d8d8d8;
        background: transparent;
        box-shadow: none;
        text-align: left;
        transform: none !important;
    }

    .bbr-product:hover {
        border-color: #d8d8d8;
        box-shadow: none;
        transform: none !important;
    }

    .bbr-product img {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        max-width: 70px;
        max-height: 70px;
        width: auto;
        height: auto;
        margin: 0 auto;
    }

    .bbr-product-name {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        min-height: 0;
        display: -webkit-box;
        overflow: hidden;
        color: #111;
        font-size: 13px;
        line-height: 1.35;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .bbr-product-price {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        margin-top: 8px;
        color: #2f3b44;
        font-size: 14px;
        font-weight: 800;
    }

    .bbr-plus {
        position: relative;
        width: 30px;
        height: 30px;
        min-width: 30px;
        margin: -15px auto -15px;
        background: #159bd7;
        color: #fff;
        font-size: 16px;
        z-index: 3;
        box-shadow: 0 4px 10px rgba(21, 155, 215, 0.28);
    }

    .bbr-plus::before {
        display: none;
    }

    .bbr-equal {
    position: relative;
    width: 30px;
    height: 30px;
    min-width: 30px;
    margin: -15px auto 16px;
    background: #159bd7;
    color: #fff;
    font-size: 16px;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(21, 155, 215, 0.28);
}

    .bbr-actions {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0 auto;
        padding: 18px 18px 20px;
        background: #fff;
        border: 1px solid #e7edf2;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 12px;
        text-align: left;
    }

    .bbr-old-price {
        grid-column: 1 / 2;
        position: relative;
        display: inline-block;
        width: max-content;
        max-width: 100%;
        margin: 0;
        padding-top: 20px;
        color: #111827;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        text-decoration: none;
    }

    .bbr-old-price::before {
        content: "PRET INITIAL";
        position: absolute;
        left: 0;
        top: 0;
        color: #7b8794;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        line-height: 1;
        white-space: nowrap;
    }

    .bbr-old-price::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 30px;
        height: 2px;
        background: #111827;
        opacity: 0.8;
    }

    .bbr-discount-label {
        grid-column: 2 / 3;
        margin: 20px 0 0;
        padding: 7px 10px;
        background: #ff2f45;
        color: #fff;
        font-size: 13px;
        font-weight: 900;
        line-height: 1;
        text-align: center;
        box-shadow: 0 5px 12px rgba(255, 47, 69, 0.28);
    }

    .bbr-total-price {
        grid-column: 1 / -1;
        margin: 4px 0 14px;
        padding-top: 16px;
        border-top: 1px solid #e8edf2;
        color: #ff2337;
        font-size: 28px;
        font-weight: 900;
        line-height: 1.05;
        text-align: left;
    }

    .bbr-total-price::before {
        content: "PRET FINAL";
        display: block;
        margin-bottom: 7px;
        color: #2f3b44;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    .bbr-add-bundle {
        grid-column: 1 / -1;
        min-height: 44px;
        padding: 0 14px 0 60px !important;
        font-size: 13px;
        line-height: 44px;
    }

    .bbr-add-bundle .bbr-btn-icon {
        width: 50px;
        height: 44px;
        line-height: 44px;
    }

    .bbr-add-bundle .bbr-btn-icon i {
        font-size: 16px;
    }
}
.bbr-product-qty {
    display: inline-block;
    margin-top: 7px;
    padding: 3px 8px;
    background: #eef7fc;
    color: #159bd7;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 767px) {
    .bbr-product-qty {
        grid-column: 2 / 3;
        margin-top: 6px;
        width: max-content;
    }
}

@media (max-width: 767px) {
    .bbr-product {
        grid-template-rows: auto auto auto;
    }

    .bbr-product img {
        grid-row: 1 / 4;
    }

    .bbr-product-qty {
        grid-row: 2 / 3;
    }

    .bbr-product-price {
        grid-row: 3 / 4;
    }
}

/* Qty/free labels inside product title */
.bbr-product-qty-inline,
.bbr-product-free-inline {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    vertical-align: baseline;
}

.bbr-product-qty-inline {
    background: #eef7fc;
    color: #159bd7;
}

.bbr-product-free-inline {
    background: #fff1f2;
    color: #ff2337;
}

.bbr-product-price-free {
    color: #ff2337;
    font-weight: 900;
}

@media (max-width: 767px) {
    .bbr-product-qty-inline,
    .bbr-product-free-inline {
        margin-right: 5px;
        padding: 1px 5px;
        font-size: 10px;
    }
}


/* Badge cadou pentru produs gratuit */
.bbr-product {
    position: relative;
}

.bbr-free-corner-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    background: #168eea;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(22, 142, 234, 0.32);
    z-index: 5;
}

.bbr-free-corner-badge svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 767px) {
    .bbr-free-corner-badge {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
    }

    .bbr-free-corner-badge svg {
        width: 16px;
        height: 16px;
    }
}
