/* Checkout biomag — preluat din _themes/theme1/theme.css (.checkout-*) */
/* ==========================================
   CHECKOUT PAGE STYLES (New Design)
   ========================================== */

.checkout-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--bm-padding-y) var(--bm-padding-x);
    background: var(--bm-green-soft);
    border-radius: 12px;
}
.checkout-section {
    background: #fff;
    border-radius: var(--bm-radius);
    margin-bottom: var(--bm-margin-y);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: var(--bm-padding-y) var(--bm-padding-x);
}
.checkout-section-header {
    background: transparent;
    color: #333;
    padding: 0px 0px 5px 0px;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: none;
    border-bottom: 1px solid var(--bs-border-color);
    margin: 0;
}
.checkout-section-body {
    padding-top: var(--bm-padding-y);
}
.checkout-product {
    display: flex;
    gap: 15px;
    padding: var(--bm-padding-y) 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}
.checkout-product:last-child {
    border-bottom: none;
}
.checkout-product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: calc(var(--bm-radius) / 2);
    background: #f8f8f8;
    flex-shrink: 0;
}
.checkout-product-info {
    flex: 1;
    min-width: 0;
}
.checkout-product-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.95rem;
    line-height: 1.3;
}
.checkout-product-title a {
    color: inherit;
    text-decoration: none;
}
.checkout-product-title a:hover {
    color: var(--bs-primary);
}
.checkout-product-code {
    font-size: 0.85rem;
    color: #888;
}
.checkout-product-meta {
    font-size: 0.85rem;
    color: #666;
    margin-top: 3px;
}
.checkout-product-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.checkout-product-price {
    text-align: right;
}
.checkout-price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
}
.checkout-price-current {
    font-weight: 700;
    color: var(--bs-primary);
    font-size: 1.1rem;
}
.checkout-qty-selector {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 3px;
}
.checkout-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.checkout-qty-btn:hover {
    background: #e0e0e0;
    border-radius: 50%;
}
.checkout-qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: var(--bs-primary);
    color: #fff;
    border-radius: 15px;
    font-weight: 600;
    padding: 4px;
    font-size: 0.9rem;
}
.checkout-delete-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    padding: 0;
    transition: all 0.2s;
}
.checkout-delete-btn:hover {
    border-color: var(--bs-danger);
    color: var(--bs-danger);
    background: rgba(244, 101, 56, 0.1);
}
.checkout-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e8f4fc 0%, #d9eef9 100%);
    border-radius: var(--bm-radius);
    margin: 15px 0 0 0;
}
.checkout-subtotal-label {
    font-weight: 600;
    font-size: 1.1rem;
}
.checkout-subtotal-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--bs-primary);
}
.checkout-savings {
    color: #e74c3c;
    font-size: 0.9rem;
    text-align: right;
}
/* Radio/Checkbox groups */
.checkout-radio-group {
    padding: 0;
}
.checkout-radio-item {
    padding: 0px 0;
    /* border-bottom: 1px solid #f0f0f0; */
    margin-bottom: 0.5rem;
}
.checkout-radio-item:last-child {
    border-bottom: none;
    margin-bottom: 0px;
}
.checkout-radio-item label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-radio-item input[type="radio"],
.checkout-radio-item input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--bs-primary);
}
/* Form fields */
.checkout-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    /* margin-bottom: 15px; */
}
.checkout-form-row.full-width {
    grid-template-columns: 1fr;
}
.checkout-form-group {
    margin-bottom: 15px;
}
.checkout-form-group label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}
.checkout-form-group input,
.checkout-form-group select,
.checkout-form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: calc(var(--bm-radius) / 2);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.checkout-form-group input:focus,
.checkout-form-group select:focus,
.checkout-form-group textarea:focus {
    border-color: var(--bs-primary);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bm-green, var(--bm-green, #00a651)) 10%, transparent);
}
/* Shipping methods */
.checkout-shipping-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 12px 15px; */
    /* border: 1px solid #eee; */
    /* border-radius: calc(var(--bm-radius) / 2); */
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.checkout-shipping-option:hover {
    /* background: #f9f9f9; */
    /* border-color: #ddd; */
}
.checkout-shipping-option.active,
.checkout-shipping-option:has(input:checked) {
    /* border-color: var(--bs-primary); */
    /* background: color-mix(in srgb, var(--bm-green, var(--bm-green, #00a651)) 5%, transparent); */
}
.checkout-shipping-price {
    font-weight: 600;
    color: var(--bs-primary);
}
.checkout-shipping-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--bs-primary);
}
/* Payment methods */
.checkout-payment-option {
    padding: 10px 0;
}
/* Summary section */
.checkout-summary {
    background: #f8f9fa;
    border-radius: var(--bm-radius);
    padding: 20px;
}
.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}
.checkout-summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-top: 10px;
}
.checkout-summary-total .value {
    color: var(--bs-primary);
}
/* Voucher section */
.checkout-voucher {
    display: flex;
    gap: 10px;
    align-items: center;
}
.checkout-voucher input {
    flex: 1;
}
.checkout-voucher button {
    white-space: nowrap;
}
/* Voucher applied */
.checkout-voucher-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(6, 178, 106, 0.1);
    border-radius: calc(var(--bm-radius) / 2);
    border: 1px solid var(--bs-success);
}
.checkout-voucher-info {
    color: var(--bs-success);
    font-weight: 600;
}
/* Terms checkboxes */
.checkout-terms {
    padding: 10px 0;
}
.checkout-terms label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    font-size: 0.9rem;
}
.checkout-terms input {
    margin-top: 3px;
    flex-shrink: 0;
}
/* Global checkbox styling for checkout */
.checkout-section input[type="checkbox"],
.checkout-checkbox input[type="checkbox"],
.checkout-terms input[type="checkbox"],
#sameAddress {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--bs-primary) !important;
    cursor: pointer;
    flex-shrink: 0;
}
.checkout-checkbox {
    margin-top: 1rem;
}
.checkout-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}
/* Submit button */
.checkout-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: var(--bs-primary);
    color: #fff;
    border: none;
    border-radius: var(--bm-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.checkout-submit-btn:hover {
    background: var(--bs-primary);
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--bm-green, var(--bm-green, #00a651)) 30%, transparent);
}
/* Login section for existing clients */
.checkout-login-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: calc(var(--bm-radius) / 2);
    margin-top: 15px;
}
/* WhatsApp help */
.checkout-help {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--bm-radius);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.checkout-help:hover {
    background: #f0f0f0;
    color: inherit;
}
.checkout-help-icon {
    width: 50px;
    height: 50px;
    background: var(--bm-whatsapp, #25d366);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}
/* Address list */
.checkout-address-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}
.checkout-address-item {
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: calc(var(--bm-radius) / 2);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.checkout-address-item:hover {
    border-color: #ddd;
    background: #fafafa;
}
.checkout-address-item:has(input:checked) {
    border-color: var(--bs-primary);
    background: color-mix(in srgb, var(--bm-green, var(--bm-green, #00a651)) 5%, transparent);
}
.checkout-address-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}
.checkout-address-item input {
    margin-top: 3px;
}
.checkout-address-content {
    flex: 1;
}
.checkout-address-main {
    font-weight: 600;
    color: #333;
}
.checkout-address-detail {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}
/* Free shipping progress */
.checkout-free-shipping {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    padding: 12px 15px;
    border-radius: calc(var(--bm-radius) / 2);
    font-size: 0.9rem;
    margin-top: 15px;
}
.checkout-free-shipping strong {
    color: var(--bs-primary);
}
/* Locker selection */
.checkout-locker-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: calc(var(--bm-radius) / 2);
}
/* Tinute discount */
.checkout-discount-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(6, 178, 106, 0.1);
    border-radius: calc(var(--bm-radius) / 2);
    margin-bottom: 10px;
}
.checkout-discount-info {
    color: var(--bs-success);
}
/* Mobile responsive */
@media (max-width: 768px) {
    
    :root, [data-bs-theme=light] {
        --bs-padding-x: 15px;
        --bs-padding-y: 15px;
    }

    .checkout-wrapper {
        padding: 14px;
    }

    .checkout-section-body {
        padding: var(--bm-padding-y) 0px 0px;
    }

    .checkout-form-row {
        grid-template-columns: 1fr;
    }

    .checkout-product {
        flex-wrap: wrap;
    }

    .checkout-product-info {
        flex: 1 1 calc(100% - 95px);
    }

    .checkout-product-actions {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }

    .checkout-product-price {
        text-align: left;
    }

    .checkout-subtotal-row {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .checkout-voucher {
        flex-direction: column;
    }

    .checkout-voucher button {
        width: 100%;
    }
}
/* Compact Products Summary - New Layout (white card) */
.checkout-products-compact-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 0 20px 20px 20px;
    cursor: pointer;
}
.checkout-products-left {
    flex: 1;
}
.checkout-products-label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 5px;
}
.checkout-products-count {
    color: var(--bs-primary);
    font-weight: 600;
    margin-bottom: 10px;
}
.checkout-products-thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.checkout-products-thumbs img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #eee;
}
.checkout-products-more {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #666;
}
.checkout-products-right {
    text-align: right;
    min-width: 160px;
}
.checkout-products-oldprice {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}
.checkout-products-subtotal {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}
.checkout-products-savings {
    color: #e74c3c;
    font-size: 0.85rem;
}
.checkout-products-arrow {
    color: var(--bs-primary);
    align-self: center;
    font-size: 0.8rem;
}
/* Products Modal */
.checkout-modal-products .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}
.checkout-modal-products .checkout-product {
    padding: 12px 0;
}
.checkout-modal-subtotal {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--bm-radius);
    margin-top: 15px;
}
@media (max-width: 768px) {
    .checkout-products-compact-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-products-right {
        text-align: left;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(0,0,0,0.1);
    }

    .checkout-products-thumbs img {
        width: 45px;
        height: 45px;
    }

    .checkout-products-more {
        width: 45px;
        height: 45px;
    }
}
/* --- Cart Mobile Responsive --- */
@media (max-width: 740px) {
    .cart-summary__row {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-summary__right {
        justify-content: space-between;
    }

    .cart-summary__total {
        text-align: left;
        min-width: 0;
    }

    .cart-summary__total-line {
        justify-content: flex-start;
    }

    .cart-drawer {
        border-radius: 18px;
    }

    /* Cart Item - 2 rows layout (Option B) */
    .cart-item {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .cart-item__thumb {
        flex: 0 0 auto;
    }

    .cart-item__info {
        flex: 1 1 calc(100% - 70px); /* Full width minus thumb */
        max-width: none;
    }

    /* Row 2: Controls + Delete + Price - full width */
    .cart-item__controls {
        order: 3;
    }

    .cart-item__price {
        order: 4;
        margin-left: auto;
        min-width: auto;
        text-align: right;
    }

    .cart-item__qty {
        padding: 4px 6px;
    }

    .cart-item__iconbtn {
        width: 28px;
        height: 28px;
    }

    /* Minicart Grid - 2 row layout on mobile */
    .cart-group__items .cart-item,
    [data-minicart-items] .cart-item {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "thumb info"
            "controls price";
        row-gap: 8px;
    }

    .cart-group__items .cart-item__thumb,
    [data-minicart-items] .cart-item__thumb {
        grid-area: thumb;
        width: 40px;
        height: 40px;
    }

    .cart-group__items .cart-item__info,
    [data-minicart-items] .cart-item__info {
        grid-area: info;
    }

    .cart-group__items .cart-item__controls,
    [data-minicart-items] .cart-item__controls {
        grid-area: controls;
        justify-self: start;
    }

    .cart-group__items .cart-item__price,
    [data-minicart-items] .cart-item__price {
        grid-area: price;
        justify-self: end;
    }

    .cart-item__info{
        /* max-width: ; */
    }
    .checkout-form-group{
        width: 100%;
    }
}
.checkout-section.coupon {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin-bottom: 0;
    border: none;
    transition: max-height .25s ease, opacity .2s ease, margin .25s ease, padding .25s ease, border .25s ease;
}
.checkout-section.coupon .checkout-section-body {
    padding: 0;
    transition: padding .25s ease;
}
.checkout-section.coupon.is-open {
    max-height: 150px;
    opacity: 1;
    margin-bottom: 15px;
    /* border: 1px solid #dee2e6; */
}
.checkout-section.coupon.is-open .checkout-section-body {
    padding: var(--bm-padding-y) var(--bm-padding-x);
}
.checkout-section.no-wrp-padding {
    padding: 0px;
}
.checkout-section.no-wrp-padding .checkout-section-header {
    margin: var(--bm-padding-y) var(--bm-padding-x) 0px;
}
.checkout-section.no-wrp-padding .cart-summary {
    padding: 0px var(--bm-padding-x) var(--bm-padding-y);
}
/* mobile */
@media screen and (max-width: 576px) {
    
    div#carouselBlog .carousel-item {
        padding: 0px calc(var(--bs-gutter-x) * .5);
    }
    
    body{
        --bs-body-line-height:1.2;
    }

    div .biomag-body {
        padding-bottom: 0px;
    }

    div .biomag-card img{
        height: 190px;
    }

    div .biomag-title {
        font-size: 14px;
        height: 34px;
    }

    div .biomag-brand {
        font-size: 12px;
    }

     div .biomag-price {
        font-size: 16px;
        margin-bottom: 0px;
    }

    div .biomag-rating-count {
        font-size: 12px;
        display: none;
    }

    div .biomag-like-btn{
        font-size: 12px;
    }

    .biomag-price-section {
        display: flex;
        flex-direction: column;
        align-content: center;
        align-items: baseline;
        justify-content: flex-start;
        gap: 5px;
        margin-bottom: 5px;
    }

    div .biomag-rating-like{
        margin-bottom: 3px;
    }


    div .biomag-product-name a{
        height: 30px;
        overflow: elipsis;
    }

    .support-card .item {
        align-items: flex-start;
        display: flex;
    }

    .support-card .item .txt {
        text-align: left;
    }

    div .footer-logo {
        height: 30px;
    }

    .footer-logos-row{
        margin-top: var(--bm-margin-y);
        gap: var(--bm-gap);
    }

    ul.pagination{
        max-width: calc(100vw - var(--bs-gutter-x));
    }

    div .support-card .item {
        grid-template-columns: 24px 1fr;
    }

    .biomag-similar-products-title {
        font-size: 1.4rem;
    }

    div .benefits-box{
        background-color: transparent;
        padding: 0px;
        box-shadow: none;
    }

    div .benefits-row {
        flex-direction: column;
        gap: calc(var(--bs-gutter-x) * .5);
    }

    div .benefit-item {
        background-color: #fff;
        width: 100%;
        padding: var(--bm-padding-y) var(--bm-padding-x);
        border-radius: var(--bm-radius);
        box-shadow: var(--bm-shadow);
    }

    .checkout-terms label {
        display: inline-block;
    }

    .biomag-installments-content ul li {
        text-align: left;
    }

    .order-success-page .minicart-panel.order-products.mb-3 {
        height: auto;
    }
    
}
