.cart-matec__view-cart{
    cursor: pointer;
}


.cart-matec__badge {
    position: relative;
    top: -40px;
    right: -20px; /* Ajusta según el tamaño de tu burbuja y posición deseada */
    width: 20px;
    height: 20px;
    background-color: red; /* Color de fondo de la burbuja */
    color: white; /* Color del texto */
    border-radius: 50%; /* Forma redonda */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px; /* Tamaño del texto */
    font-weight: bold;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2); /* Opcional: sombra para resaltar la burbuja */
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.cart-matec__badge.active {
    opacity: 1;
}
/* Ajusta el contenedor para que la transición de mostrar y ocultar sea más suave */
.cart-matec-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    justify-content: flex-end;
    z-index: 999999;
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0;
}

/* Clase activa con animación */
.cart-matec-container.active {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    pointer-events: auto;
    opacity: 1;
}

/* Estilo para el carrito */
.cart-matec {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    width: 450px;
    max-width: 450px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%); /* Carrito oculto fuera de la pantalla */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Efecto de entrada más suave */
}

/* Carrito visible */
.cart-matec-container.active .cart-matec {
    transform: translateX(0);
    pointer-events: auto;
}
.cart-matec__header {
    display: flex;
    flex-direction: row;
    align-content: space-around;
    align-items: center;
    justify-content: space-between;
    padding: 0px 20px 0px 20px;
    border-bottom: 1px solid #efefef;
    flex-shrink: 0;
}

.cart-matec__header-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    align-items: center;
    gap: 24px;
}

.cart-matec__header-content h1 {
    font-size: 24px;
}

.cart-matec__close-btn {
    cursor: pointer;
}

.cart-matec__content {
    padding: 0px 20px 0px 20px;
    overflow-y: auto;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
    scrollbar-width: thin; /* Ancho de la scrollbar en Firefox */
    scrollbar-color: #AC1F4A #f1f1f1;
}

.cart-matec__content::-webkit-scrollbar {
    width: 8px; /* Ancho de la scrollbar */
}

.cart-matec__content::-webkit-scrollbar-thumb {
    background-color: #AC1F4A; /* Color del thumb */
    border-radius: 4px; /* Bordes redondeados */
}

.cart-matec__content::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.cart-matec__content::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* Color del fondo de la pista */
    border-radius: 4px;
}

.cart-matec__item_content .regular_price.old{
    opacity:.5;
    text-decoration-line: line-through;
}


.cart-matec__item{
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 10px 0px;
  border-bottom:  1px solid #efefef;
}

.cart-matec__item img{
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-matec__item h1{
    font-size: 16px;
}

.cart-matec__item_delete{
    opacity: .5;
    /* position: absolute;
  right: 10px; */
  cursor: pointer;
  transition: all ease-in-out 200ms;
}

.cart-matec__item_delete:hover{
    opacity: 1;

}

.cart-matec__footer {
    border-top: 1px solid #efefef;
    padding: 0px 20px 0px 20px;
    flex-shrink: 0;
}

.cart-matec__footer a {
    font-weight: bold;
    font-size: 24px;
    line-height: 48px;
    background: #AC1F4A;
    width: 100%;
    display: inline-block;
    text-align: center;
    color: #fff;
    border-radius: 5px;
    margin: 20px 0;
}

.cart-matec__footer_details table {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    border:none !important;
}

.cart-matec__footer_details table td, .cart-matec__footer_details table th{
    border:none !important;
    background-color: transparent !important;
}

.cart-matec__footer_details td {
    padding: 5px 0;
    font-size: 18px;
    color: #333;
}

.cart-matec__footer_details td:first-child {
    text-align: left;
}

.cart-matec__footer_details td:last-child {
    text-align: right;
    font-weight: 700;
}

.cart-matec__footer_details_savings td {
    font-weight: 700;
    color: green;
}

.cart-matec__footer_details_total td{
    font-weight: 700 !important;
}

/* QTY COUNTER */

.cart-matec__item_qt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90px; /* Ajusta este ancho según sea necesario */
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.cart-matec__item_qt input[type="number"] {
    width: 25px;
    text-align: center;
    border: none;
    outline: none;
    -moz-appearance: textfield; /* Elimina flechas en Firefox */
    padding: 0;
}

.cart-matec__item_qt input[type="number"]::-webkit-outer-spin-button,
.cart-matec__item_qt input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Elimina flechas en Chrome, Safari, Edge */
    margin: 0;
}

.cart-matec__item_qt .less_qty,
.cart-matec__item_qt .add_qty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s;
}

.cart-matec__item_qt .less_qty:hover,
.cart-matec__item_qt .add_qty:hover {
    background-color: #e0e0e0;
}

.cart-matec__item_qt .less_qty svg,
.cart-matec__item_qt .add_qty svg {
    fill: none;
    stroke: #000000;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 16px;
    height: 16px;
}

/* FREE SHIPPING */

.cart-matec__free_shipping {
    margin: 20px 0;
}

.cart-matec__free_shipping-label {
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
    text-align: center;
}

.cart-matec__free_shipping-progress {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.cart-matec__free_shipping-bar {
    height: 100%;
    width: 0%;
    background-color: #4caf50; /* Color de la barra de progreso */
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}

.mtc-overflow{
    overflow:hidden !important;
}