.cart-container {
    position: fixed;
    top: 0;
    right: -100%; /* HIDDEN FIRST */

    width: 100%;
    max-width: 25.8625rem; /*413.8*/
    height: 100dvh;

    display: flex;
    flex-direction: column;

    background: linear-gradient(135deg, #FEFDF4, #FBFBEE);
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.15);

    transition: right 0.3s ease-in-out;
    z-index: 9999;
}

/* TO SHOW THE CART */
.cart-container.show {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1.25rem;

    background: linear-gradient(180deg, #000002 0%, #000100 100%);
    
    padding: 0.9375rem;
}

.btn-close-cart {
    font-size: 1.5rem;

    background-color: transparent;
    color: #FBFBEE;
    text-shadow: rgba(248, 92, 92, 0.3);
    border: none;

    padding: 5px;

    transition: color 0.2s ease;
}

.btn-close-cart:hover {
    color: #F85C5C;
}

.btn-close-cart:active {
    color: #F0595A;
}

.cart-header > h1 {
    font-size: 1.5rem;
    font-weight: 600;

    color: #FBFBEE;
}

/* PRINCIPAL AREA OF CART (IT'S SCROLLEABLE) */
.cart-main {
    flex: 1;

    overflow-y: auto;

    position: relative;
}

/* PRODUCTS SECTION */
.products-cart-section {
    display: flex;
    flex-direction: column;

    padding: 0.625rem;
}

.products-cart-section.hidden {
    display: none;
}

.products-cart-section.show {
    display: flex;
}

/* CATEGORIES */
.empty-category-message {
    font-size: 1rem;
    font-weight: 500;

    color: #444444;

    text-align: center;
}

.category-cart-container {
    margin-bottom: 1.25rem;
}

.category-cart-container:last-child {
    margin-bottom: 0;
}

.category-cart-container > header {
    width: 100%;

    display: flex;
    align-items: center;
    
    margin-bottom: 0.3125rem;
}

.category-cart-container > header hr {
    height: 1px;

    flex-grow: 1;
    
    background-color: #B9B9B1;
    border: none;
    border-radius: 5px;
}

.category-cart-container > header h1 {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;

    color: #000100;
    
    padding: 0 0.625rem;
}

.category-cart-container > main {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
}

/* EMPTY CART MESSAGE */
.empty-cart-message {
    color: #7A7A7A;
    font-size: 1rem; /*16*/
    font-weight: 500;
    text-align: center;
    padding: 0.625rem; /*10*/
}

/* CART CARDS */
.cart-card {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.625rem;

    background: linear-gradient(135deg, #FBFBEE, #FDFDF0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #B9B9B1;
    border-radius: 0.625rem;

    padding: 0.625rem;
}

/* IMAGE */
.cart-card-image {
    width: 60px;
    height: 75px;

    border-radius: 0.3125rem;

    overflow: hidden;
}

.cart-card-image > img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

/* INFO */
.cart-card-info {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.3125rem;
    flex: 1;
}

.cart-product-name {
    font-size: 1rem;
    font-weight: 600;

    color: #000100;
}

.cart-product-price {
    font-size: 0.8125rem; /*13*/
    font-weight: 500;

    color: #444444;
}

/* BUTTONS */
.cart-product-buttons {
    display: flex;
    align-items: center;
}

.cart-product-buttons button {
    font-size: 1rem;

    width: 1.5rem;
    height: 1.5rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    background: linear-gradient(135deg, #F85C5C, #F0595A);
    color: #FEFDF4;
    text-shadow: 0 0 3px rgba(0,0,0,0.2);
    border: 1px solid #F0595A;
    border-radius: 5px;
    box-shadow: 0 6px 15px rgba(248, 92, 92, 0.4);
}

.cart-product-buttons div {
    width: 1.875rem; /*30*/
    height: 1.5rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-trash {
    font-size: 1rem;

    width: 1.5rem;
    height: 1.5rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: red;
    color: #fff;
    border-radius: 5px;
    border: none;

    transition: background-color 0.2s ease;
}

.btn-trash:hover {
    background-color: #A00116;
}

/*************/
/* FORM CART */
/*************/
.form-cart-section.hidden {
    display: none;
}

.form-cart-section.show {
    display: flex;
}

.form-cart-section {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    padding: 0.625rem;
}
  
.form-cart-header h2 {
    font-size: 1.3125rem;
    font-weight: 500;

    text-align: center;
    text-transform: uppercase;

    color: #000100;
}

.form-cart {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
  
.form-cart > div {
    /*position: relative;*/

    display: flex;
    flex-direction: column;
    gap: 3.75px;
}

.form-cart > div input,
.form-cart > div select {
    height: 2.5rem;

    border-radius: 0.625rem;
}

.form-cart > div textarea {
    resize: none;

    height: 5rem;

    border-radius: 0.625rem;
}

.form-cart > div input,
.form-cart > div select,
.form-cart > div textarea {
    font-family: 'Quicksand', Arial, Helvetica, sans-serif;
    font-size: 1rem;

    width: 100%;
    
    background-color: #fff; 
    border: 1px solid #D1D5DB;

    padding: 0 0.625rem;

    transition: all 0.3s ease;
}

.form-cart > div input:focus,
.form-cart > div select:focus,
.form-cart > div textarea:focus {
    border-color: #f85c5c;
    outline: none;
    box-shadow: 0 0 4px rgba(248, 92, 92, 0.4);
}

.form-cart > div input:hover,
.form-cart > div select:hover,
.form-cart > div textarea:hover {
    border-color: #f85c5c;
}

/* ERROR MESSAGES */
.error {
    font-size: 0.8125rem; /*13*/
    font-weight: 500;
    
    display: inline-block;

    color: #D0021B;
}

.error:empty {
    display: none;
}

/***************/
/* FOOTER CART */
/***************/
.cart-footer {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.625rem;

    background: linear-gradient(135deg, #EDEDE2, #F5F5EF);;
    border-top: 2px solid #D6D6CC;

    padding: 0.9375rem;
}

.cart-footer.hidden {
    display: none;
}

.cart-footer.show {
    display: flex;

    animation: fadeInUp 0.3s ease-in-out;
}

.cart-footer > hr {
    height: 1px;
    
    width: 100%;
    
    background-color: #B9B9B1;
    border: none;
    border-radius: 0.3125rem;

    margin: auto;
}

.cart-footer > p {
    font-size: 1rem;
    font-weight: 500;

    color: #555546;
}

.cart-footer > p span {
    font-weight: 600;

    color: #2E2E28;
}

/* FOOTER BUTTONS */
.cart-footer-buttons {
    width: 100%;

    margin-top: 0.3125rem;
}

.cart-buttons-products,
.cart-buttons-form {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 0.9375rem;
}

.cart-footer-buttons > div.hidden {
    display: none;
}

.cart-footer-buttons button {
    font-size: 1.125rem;
    font-weight: 500;
    color: #fff;

    border-radius: 1.875rem;
    box-shadow: 0px 3px 0px rgba(0, 0, 0, 0.8);

    padding: 0.3125rem 0.9375rem;

    transition: background-color 0.3s ease, box-shadow .2s ease;
}

.cart-footer-buttons button:active {
    box-shadow: 0 0 3px rgba(0, 0, 0, 1);
}

.cart-footer-buttons > div button:first-child {
    background-color: #25D366;
    border: 3px solid #1DA851;
}

.cart-footer-buttons > div button:first-child:hover {
    background-color: #1DA851;
}

.cart-footer-buttons > div button:last-child {
    background: #D0021B;
    border: 3px solid #A00116;
}

.cart-footer-buttons > div button:last-child:hover {
    background-color: #A00116;
}



/***************************************/
/*Opcion si el carro se encuentra vacio*/
/***************************************/
.carrito-vacio {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.carrito-vacio img {
    width: 100%;
    display: block;
}

.carrito-vacio p {
    font-size: 21px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
}

/***********************************/
/*Notificacion de producto agregado*/
/***********************************/
.custom-toast {
    background-color: #fff !important;  /* Fondo oscuro */
    color: #000 !important;  /* Texto blanco */
    font-family: "Quicksand", sans-serif !important;  /* Fuente personalizada */
    font-size: 15px !important;
    border: 1px solid #000 !important;  /* Borde amarillo */
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 1) !important; /* Sombra */
    padding: 15px !important;
    text-align: center !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
}