#cart{
    height: 445px;
}

/*boton de carrito*/

.creaweb-cart-float-button{
    padding: 0px;
    width: 2em;
    height: 2em;
    background: var(--primary-color);
    color: var(--primary-text-color);
    box-shadow:2px 5px 10px rgb(0 0 0 / 60%);
    z-index: 1112;
}

.creaweb-cart-float-button .badge-notify {
    position: absolute;
    top: 0;
    right: -2px;
    color: var(--primary-text-color);
    background-color: #C53030;
    box-shadow:2px 2px 10px rgb(0 0 0 / 30%);
    border-radius: 50%;
}

.creaweb-cart-float-button:hover .badge-notify{
    background: #E53E3E;
}

/*Modal carrito*/
#my-cart-modal .my-cart-checkout{
    background: #10B981;
    color: #FFFFFF;
    border-color: transparent;
}

#my-cart-modal .my-cart-checkout:hover{
    color: #FFFFFF;
    background: #34D399;
    border-color: transparent;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease-in-out;
}

#my-cart-modal .remove-all{
    background: #FFFFFF;
    color: #EF4444;
    border-color: transparent;
    border: 1px solid #FCA5A5;
}

#my-cart-modal .remove-all:hover{
    color: #B91C1C;
    background: #FEE2E2;
    border-color: transparent;
    border: 1px solid #B91C1C;
}


/*Tabla de productos*/
#my-cart-table img{
    object-fit: cover;
}

#my-cart-table table th,
#my-cart-table table td{
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    color: #212529;
    background-color: transparent;
}

.table-hover tbody td{
    position: relative;
    z-index: 1;
}
.table-hover tbody td *{
    z-index: 1;
}
.table-hover tbody tr:hover {
    color: #212529;
    background-color: transparent;
}

.table-hover tbody tr:not(.not-hover):hover td:before {
    content: "";
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: -1;
    opacity: .3;
    background:var(--primary-color);
}
.table-hover tbody tr:not(.not-hover):hover td:after {
    content: "";
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    opacity: .1;
    z-index: -1;
    background:var(--primary-text-color);
}

#my-cart-table .product-value, #my-cart-table .product-value s{
    font-size: 14px;
}

#my-cart-table .product-value ul{
    margin-bottom: 0px;
}

.product-value ul{
    list-style: none;
    flex-wrap: wrap;
    display: flex;
    padding: 0px;
    align-items: center;
    justify-content: center ;
 }
 .product-value ul li{
     color: #333;
 }

 /* .product-value ul li:after{
    content: " - ";
    padding: 5px;
 } */

 .product-value ul li:last-child:after{
    display: none;
 }


.product-quantity{
    display: flex;
    align-items: center;
    justify-content: center;
    height:fit-content;
    margin: auto;
    width: fit-content;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 0;
    box-shadow: none;

}

.product-quantity button{
    border: none;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-quantity button.input-number-decrement{
    border-radius: 5px 0px 0px 5px;
    color: #B91C1C;
    transition: background-color 0.24s ease-in-out, color 0.24s ease-in-out, box-shadow 0.18s ease-in-out, transform 0.12s ease-in-out, border-color 0.18s ease-in-out;
    width: 30px;
}

.product-quantity button.input-number-decrement:hover{
    background-color: #B91C1C;
    color: #fff;
    border: 1px solid #B91C1C;
}

.product-quantity button.input-number-decrement:focus,
.product-quantity button.input-number-decrement:focus-visible{
    outline: none;
    background-color: #B91C1C;
    color: #fff;
    border: 1px solid #B91C1C;
    box-shadow: 0 0 0 3px rgba(185,28,28,0.12);
}

.product-quantity button.input-number-decrement:active{
    background-color: #7f1212;
    color: #fff;
    border: 1px solid #7f1212;
    transform: translateY(1px);
    box-shadow: none;
}


.product-quantity button.input-number-increment{
    border-radius: 0px 5px 5px 0px;
    color: #28a745;
    transition: background-color 0.24s ease-in-out, color 0.24s ease-in-out, box-shadow 0.18s ease-in-out, transform 0.12s ease-in-out, border-color 0.18s ease-in-out;
    width: 30px;
}
.product-quantity button.input-number-increment:hover{
    background-color: #28a745;
    color: #fff;
    border: 1px solid #28a745;
}

.product-quantity button.input-number-increment:focus,
.product-quantity button.input-number-increment:focus-visible{
    outline: none;
    background-color: #28a745;
    color: #fff;
    border: 1px solid #28a745;
    box-shadow: 0 0 0 3px rgba(40,167,69,0.12);
}

.product-quantity button.input-number-increment:active{
    background-color: #1e7e34;
    color: #fff;
    border: 1px solid #1e7e34;
    transform: translateY(1px);
    box-shadow: none;
}



.product-quantity input{
    height: 25px;
    width: 70px;
    padding: 2px;
    background: #fff;
    border: none;
    font-size: 14px;
    color: #333;
    font-family: var(--primary-font-family);
    text-align: center;
}

#precioiva .bg-total{
    border-bottom: 1px solid #333;
}

table .bg-total{
    position: relative;
}
table .bg-total *{
    z-index: 1;
}

table .bg-total:before{
    content: "";
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    opacity: .1;
    background:transparent;
}

table .bg-total:after{
    content: "";
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    opacity: .1;
    background:transparent;
}

/* .table td, .table th{
    border-top: 1px solid #333;
    color: #333;
} */

.table thead th{
    border-bottom: 2px solid #333;
}

.auth-tabs h6{
    margin-bottom: 1rem;
}

.auth-tabs h6 a{
    color: var(--primary-text-color);
    text-shadow: none;
}

.auth-tabs h6 a:hover{
    color: var(--primary-color);
}

.forgotPassword{
    color: var(--primary-text-color);
}

.forgotPassword:hover{
    color: var(--secondary-color);
    text-decoration: underline;
}

.btn-link .generate{
    background-color: var(--tertariry-color);
    color: var(--primary-text-color-inverse);
}

.btn-link .generate:hover{
    box-shadow: 0 4px 16px var(--tertariry-color);
    transition: all 0.2s ease;
    text-decoration: none;
}

.temporaryCode{
    background: var(--primary-color);
    color: var(--primary-text-color);
}

.temporaryCode:hover{
    box-shadow: 0 4px 16px var(--secondary-color);
    transition: all 0.2s ease;
    color: var(--primary-text-color);
    text-decoration: none;
}

/* .step-app > .step-steps > li.active {
    background-color: var(--primary-color-opacity-90);
    color: var(--primary-text-color-inverse);
} */

.billing_address h6, .shipping_address h6{
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
}

.swal2-container{
    z-index: 222222 !important;
}

.step-app > .step-content{
    border: none;
}
.step-app > .step-steps {
    margin-bottom: 30px;
    justify-content: space-between;
    position: relative;
}
.step-app > .step-steps:before {
    content: "";
    width: 100%;
    height: 2px;
    background: #777;
    opacity: .85;
    position: absolute;
    left: 0px;
    top: calc(50% - 1px);
}
.step-app > .step-steps > li{
    display: flex;
    flex: none;
    padding: 0px;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-text-color);
    border: 1px solid var(--primary-text-color-inverse);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    z-index: 1;
}

.checkout-cart-products .cart-item .prod-title-btn .btn{
    line-height: 1.5;
    padding: .375rem .75rem;
    margin: 0;
    max-height: 2rem;
}

.checkout-cart-products .cart-item{
    padding: 0 1.25rem;
}

.checkout-cart-products .title,
.checkout-cart-products .cart-summary-subtotal,
.checkout-cart-products .cart-summary-iva,
.checkout-cart-products .cart-summary-total{
    padding: 0.5rem 1.25rem;
}

.checkout-cart-products .cart-summary-subtotal{
    border-top: 1px solid lightgray;
}

.cart-empty,
.checkout-cart-empty {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 16px;
    padding-top: 48px;
    text-align: center;
    border-radius: 6px;
    min-height: 300px;
}

.cart-empty .cart-description .cart-description__text,
.checkout-cart-empty .cart-description .cart-description__text {
    font-size: 18px;
    font-family: var(--primaryary-font-family);
    text-align: center;
}

.cart-empty .cart-description .btn,
.checkout-cart-empty .cart-description .btn {
    margin: 24px 0 0;
}

.state_container__icon {
    height: auto;
    margin-bottom: 32px;
    width: 110px;
}

#my-checkout-table .cart-icon {
    text-align: center;
}

.modal-sidebar.fade .modal-dialog {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    /* Comienza fuera de la pantalla (a la derecha) */
}

/* Cuando el modal está activo */
.modal-sidebar.show .modal-dialog {
    transform: translateX(0);
    /* Se desplaza hacia la izquierda hasta estar visible */
}

/* Ajuste adicional para que el modal sea más ancho */
.modal-sidebar .modal-dialog {
    max-width: 100% !important;
    /* Puedes ajustar este valor según tus necesidades */
    height: 100%;
    margin: auto 0;
    /* Centra verticalmente */
}

.modal-sidebar .modal-content {
    height: 100%;
    width: 100%;
    background-color: transparent;
    border: none;
}

.modal-sidebar .modal-content .modal-body {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-sidebar .modal-content #cartAddModalBody {
    align-items: center;
}

.modal-sidebar .modal-header .close {
    border: none;
    background: transparent;
    text-shadow: none;
    position: relative;
}

.modal-sidebar .modal-header .close span {
    color: rgba(0, 0, 0, 0.55);
    font-size: 30px;
    font-weight: normal;
}


/* Estilo base para el modal */
.modal-sidebar {
    position: fixed;
    top: 0;
    right: -412px;
    /* Comienza fuera de la pantalla */
    width: 412px;
    /* Ancho fijo */
    height: 100%;
    /* Altura completa */
    left: auto;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 11111;
    transition: right 0.3s ease-in-out;
    /* Animación suave */
    overflow-y: auto;
    /* Scroll vertical si es necesario */
    padding: 0px;
}

/* Cuando el modal está activo */
.modal-sidebar.show {
    right: 0;
    /* Se desplaza hacia la derecha hasta estar visible */
}

.modal-sidebar .product-added {
    width: 70px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #00a650;
    box-sizing: border-box;
    position: relative;
}

.modal-sidebar .product-added img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    object-position: center;
}

.modal-sidebar .product-added .added-check {
    background: #00a650;
    left: 40px;
    top: -24px;
    border-radius: 50%;
    height: 24px;
    min-width: 24px;
    overflow: hidden;
    position: relative;
    width: 24px;
}

.modal-sidebar .cart-body,
.modal-sidebar .cart-footer {
    width: 100%;
}

.modal-sidebar .cart-item {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.modal-sidebar .cart-item:last-child {
    border-bottom: none;
}

.btn-go-to-cart,
.added-prod-btn .go-to-cart {
    background-color: #243B55;
    color: #fff;
    font-family: var(--secondary-font-family);
    text-shadow: none;
}

.btn-go-to-cart:hover,
.added-prod-btn .go-to-cart:hover {
    background-color: #057794;
    color: #fff;
}

.cart-description {
    text-align: center;
    font-size: 15px;
    line-height: 18px;
    color: var(--primary-text-color-inverse);
}

.modal-footer button.LearnMore,
.added-prod-btn button.keep-shopping{
    background-color: #F3F4F6;
    color: #374151;
    transition: all 0.3s ease-in-out;
    border: transparent;
    transition: all 0.3s ease-in-out;
}
.modal-footer button.LearnMore:hover,
.added-prod-btn button.keep-shopping:hover{
    background-color: #E5E7EB;
    color: var(--primary-color);
    border: transparent;
}

.modal-sidebar .my-product-remove {
    padding: 10px;
    line-height: 5px;
    margin: 0px;
    text-shadow: none;
    display: flex;
    align-items: center;
}

.side-cart-remove-btn {
    max-height: 2rem;
}

.cart-container {
    margin-bottom: 96px;
}

.cart-container>.card:first-of-type {
    border: none;
}

.cart-container>.card:first-of-type .card-header {
    border: none;
}

.cart-container .product-cart-list {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .1);
    border: none;
}

.cart-container .product-cart-list table td.img-product {
    width: 30px;
}

.cart-container p.products-available {
    margin: 12px 0 0 0;
}

.cart-container .card .card-header{
    background-color: transparent;
}

.cart-list-header {
    padding: 0.75rem 1.25rem 0.75rem 0;
}

.cart-table-page tbody tr:first-child td {
    border: none;
}

.cart-table-page td {
    padding: 0.80rem 0.5rem;
}

#my-cart-table img {
    object-fit: cover;
}

#my-cart-table table th,
#my-cart-table table td {
    vertical-align: middle;
}

.img-product img {
    height: 72px;
    width: 72px;
}

p.title-product {
    font-family: var(--secondary-font-family);
    font-weight: 600;
}

#my-cart-table .link-container {
    display: flex;
    flex-direction: row;
    margin-top: 16px;
    padding-bottom: 0;
}

#my-cart-table .my-product-remove {
    align-items: center;
    color: #EF4444;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--primary-font-family);
    font-size: 14px;
    font-weight: 600;
    background: none;
    border: 2px solid rgba(252, 165, 165, .45);
    border-radius: 2px;
    line-height: 14px;
    position: relative;
    text-decoration: none;
    transition: background-color .18s ease-in-out, color .18s ease-in-out, box-shadow .18s ease-in-out, border-color .18s ease-in-out, transform .12s ease-in-out;
    margin-right: 10px;
    padding: 6px 3px;
}

#my-cart-table .my-product-remove:hover {
    color: #fff;
    background: #B91C1C;
    border-color: transparent;
    box-shadow: inset 0 0 0 1px #FEE2E2;
}

#my-cart-table .my-product-remove:focus,
#my-cart-table .my-product-remove:focus-visible {
    outline: none;
    color: #fff;
    background: #B91C1C;
    border-color: transparent;
    box-shadow: inset 0 0 0 1px #FEE2E2, 0 0 0 3px rgba(254,226,226,0.45);
}

#my-cart-table .my-product-remove:active {
    color: #fff;
    background: #7f1212;
    border-color: transparent;
    box-shadow: inset 0 0 0 1px #FEE2E2;
    transform: translateY(1px);
}

.card-invoice {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .1);
    border: none;
}

.card-invoice .card-footer {
    background-color: transparent;
    border-top: 0;
    padding: 0 .75rem 1.25rem;
}



@media screen and (max-width: 1140px){
    .product-quantity input{
        width: 50px;
    }
}

@media screen and (max-width: 850){
    .title-cart{
        font-size: 0.8rem !important;
    }
}

@media screen and (max-width: 769px){
    .creaweb-cart-float-button {
        bottom: 60px;
    }
    .section-checkout .btn{
        font-weight: 400;
        min-width: 300px;
        font-size: 14px;
        margin: 2px 0px;
    }

    .product-quantity button {
        height: 20px;
    }

    .product-quantity input {
        width: 40px;
        height: 20px;
    }

    .product-info {
        font-size: 0.9rem;
    }

    .product-info ul {
        font-size: 14px;
    }

    .purchase-total-iva td {
        border-top: none;
        padding: 0.5rem 0.75rem;
    }

    .product-table {
        margin-bottom: 0.5rem;
    }

    .purchase-total td {
        padding: 0.5rem 0.75rem;
    }

    #my-cart-table .product-value,
    #my-cart-table .product-value s {
        font-size: 0.75rem;
    }

}

@media (min-width: 991px) and (max-width: 1028px) {
    .table thead th {
        font-size: 0.8rem !important;
    }
}

@media screen and (max-width: 426px){
    .creaweb-cart-float-button {
        bottom: 80px;
    }

    .section-checkout .btn{
        font-weight: 400;
        min-width: 250px;
        font-size: 14px;
        margin: 2px 0px;
    }
    .section-checkout table th,  .section-checkout table td{
        font-size: 14px;
    }
}

@media screen and (max-width: 321px){
    .creaweb-cart-float-button {
        bottom: 60px;
    }
}
