:root {
    --dominant-color: #E65100;
    --dominant-text: #FFFFFF;
    --yellow: #FFD700;
    --orange: #F7931E;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #212121;
    --medium-gray: #616161;
    --soft-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background: linear-gradient(90deg, #E65100 0%, #F7931E 100%);
    color: var(--dark-gray);
    overflow-x: hidden;
    padding-top: 135px;
}

/* ================== Header y barra de búsqueda ================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(90deg, #E65100 0%, #F7931E 100%);
    padding: 1.5rem 2rem;
    box-shadow: var(--soft-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    padding: 10px 15px;
    border-radius: 50px;
    color: black;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background-color: var(--white) !important;
    border: none;
}

.back-btn:hover {
    background-color: rgba(255, 123, 0, 0.4);
}

.header-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 40px;
    flex-grow: 0;
    text-align: left;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    padding: 10px 15px;
    border-radius: 50px;
    color: linear-gradient(to right, #F7931E, #E65100);
    margin-left: 670px;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background-image: var(--white);
    border: none;
}

.share-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.search-container {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 50px;
    padding: 10px 20px;
    margin-left: 1rem;
    width: 100%;
    max-width: 600px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-container i {
    color: var(--orange);
    margin-right: 10px;
}

.search-container input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    background: transparent;
}

.search-container input::placeholder {
    color: #9e9e9e;
}

/* ================== Navegación por categoría ================== */

/* Estilos para la barra de navegación de categorías */
.category-nav {
    background-color: var(--light-gray);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
    position: fixed;
    top: 90px;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Contenedor que permite el scroll horizontal */
.category-nav-container {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
    position: relative;
    padding: 0 15px;
    padding: 10px 30px;
}

/* Estilo de cada botón de categoría */
.category-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 15px;
    margin: 0 5px;
    transition: all 0.3s ease;
    border-radius: 20px;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Estado al pasar el cursor */
.category-link:hover {
    color: var(--dominant-color);
    background-color: #f0f0f0;
}

/* Estado activo de la categoría */
.category-link.active {
    color: var(--white);
    font-weight: 600;
    background-color: var(--dominant-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* El indicador de la línea debajo ahora no es necesario */
.category-indicator {
    display: none;
}

/* ================== Estilos de productos mejorados ================== */

.cid-uSSQs9pxtz {
    padding-top: 3rem;
    padding-bottom: 5rem;
    position: relative;
    background: linear-gradient(90deg, #E65100 0%, #F7931E 100%);
}

.cid-uSSQs9pxtz .row {
    margin: 2rem auto;
    max-width: 1200px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    position: relative;
}

.cid-uSSQs9pxtz .content-wrapper .mbr-section-title {
    color: var(--dark-gray);
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.cid-uSSQs9pxtz .content-wrapper .mbr-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--yellow);
    border-radius: 2px;
}

.cid-uSSQs9pxtz .item {
    margin-bottom: 2rem;
}

.cid-uSSQs9pxtz .item .item-wrapper {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.cid-uSSQs9pxtz .item .item-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- DESPUÉS (SOLUCIÓN) --- */
.cid-uSSQs9pxtz .item .item-wrapper .item-img {
    height: 280px;
    position: relative;
    overflow: hidden;
}

.cid-uSSQs9pxtz .item .item-wrapper .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cid-uSSQs9pxtz .item .item-wrapper:hover .item-img img {
    transform: scale(1.05);
}

.cid-uSSQs9pxtz .item .item-wrapper .item-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cid-uSSQs9pxtz .item .item-wrapper .item-content .card-price {
    color: var(--orange);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.cid-uSSQs9pxtz .item .item-wrapper .item-content .card-title {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cid-uSSQs9pxtz .item .item-wrapper .item-content .card-desc {
    color: var(--medium-gray);
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

/* ================== Botones de Cantidad y Añadir (Mejorados) ================== */
.cid-uSSQs9pxtz .item .item-wrapper .item-content .counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.cid-uSSQs9pxtz .item .item-wrapper .item-content .counter .quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 50px;
    background-color: var(--light-gray);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.cid-uSSQs9pxtz .item .item-wrapper .item-content .counter .quantity-controls:hover {
    border-color: #aaa;
}

.cid-uSSQs9pxtz .item .item-wrapper .item-content .counter .quantity-controls button {
    background-color: transparent;
    color: var(--dominant-color);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.cid-uSSQs9pxtz .item .item-wrapper .item-content .counter .quantity-controls button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.cid-uSSQs9pxtz .item .item-wrapper .item-content .counter span {
    margin: 0 5px;
    color: var(--dark-gray);
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.add-btn {
    background-color: var(--orange);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.add-btn:hover {
    background-color: var(--dominant-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.cid-uSSQs9pxtz .item .item-wrapper .item-content .add-btn {
    background-color: #28a745 !important;
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cid-uSSQs9pxtz .item .item-wrapper .item-content .add-btn:hover {
    background-color: #218838 !important;
}

/* Estilos para emojis y contenido de texto */
.card-desc {
    line-height: 1.5;
    min-height: 60px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-controls button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.add-btn:hover {
    background-color: #218838;
}

/* ================== Carrusel (Slick) - SOLUCIÓN DEFINITIVA ================== */
.carousel-wrapper {
    position: relative;
    padding: 0 15px;
    margin: 0 -15px;
}

.slick-carousel {
    margin: 0 -10px;
}

.slick-slide {
    padding: 0 10px;
    height: auto;
}

.slick-list {
    margin: 0 -10px;
    padding: 20px 0;
}

/* Contenedor principal de cada item */
.cid-uSSQs9pxtz .item.features-image {
    height: 100%;
    display: flex !important;
}

/* Tarjeta de producto */
.cid-uSSQs9pxtz .item .item-wrapper {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ocupa toda la altura disponible en el slide */
    width: 100%;
}

.cid-uSSQs9pxtz .item .item-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Imagen del producto */
.cid-uSSQs9pxtz .item .item-wrapper .item-img {
    aspect-ratio: 1 / 1;  /* ESTO HACE QUE SEA UN CUADRADO PERFECTO */
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto; /* Dejamos que el aspect-ratio controle la altura */
}

.cid-uSSQs9pxtz .item .item-wrapper .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Rellena el cuadrado sin deformarse */
    object-position: center; /* Centra la imagen antes de recortar */
    transition: transform 0.3s ease;
}

.cid-uSSQs9pxtz .item .item-wrapper:hover .item-img img {
    transform: scale(1.05);
}

/* Contenido de la tarjeta */
.cid-uSSQs9pxtz .item .item-wrapper .item-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Contador y botones */
.cid-uSSQs9pxtz .item .item-wrapper .item-content .counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

/* Flechas del carrusel */
.slick-prev, .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: none;
}

.slick-prev {
    left: -20px;
}

.slick-next {
    right: -20px;
}

.slick-prev:before, .slick-next:before {
    color: var(--dominant-color);
    font-size: 1.2rem;
    opacity: 1;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.slick-prev:before {
    content: '\f104';
}

.slick-next:before {
    content: '\f105';
}

.slick-prev:hover, .slick-next:hover {
    background-color: var(--dominant-color);
}

.slick-prev:hover:before, .slick-next:hover:before {
    color: var(--white);
}

/* Puntos de navegación */
.slick-dots {
    bottom: -40px;
}

.slick-dots li button:before {
    color: var(--medium-gray);
    font-size: 10px;
    opacity: 0.5;
}

.slick-dots li.slick-active button:before {
    color: var(--dominant-color);
    opacity: 1;
}

/* Responsive para el carrusel */
@media (max-width: 1200px) {
    .carousel-wrapper {
        padding: 0 10px;
    }
    
    .slick-prev {
        left: -15px;
    }
    
    .slick-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 5px;
    }
    
    .slick-prev, .slick-next {
        width: 35px;
        height: 35px;
    }
    
    .slick-prev {
        left: -10px;
    }
    
    .slick-next {
        right: -10px;
    }
}

/* ================== Botón de carrito ================== */

.cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--dominant-color);
    color: var(--white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), box-shadow 0.3s ease;
}
.cart-btn .fa-shopping-cart {
    animation: cart-shake 0.8s ease-in-out infinite;
}
.cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--orange);
    color: var(--white);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    border: 3px solid var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}
.cart-btn:hover .cart-count {
    transform: scale(1.1);
}
@keyframes cart-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
/* ================== Modal del carrito ================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeInScale 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: var(--dark-gray);
    font-size: 1.8rem;
    font-weight: 700;
}

.close-modal {
    font-size: 2rem;
    color: var(--medium-gray);
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--dominant-color);
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.cart-items {
    list-style: none;
    padding: 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eeeeee;
}

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

.cart-item .item-info {
    flex-grow: 1;
}

.cart-item .item-info p {
    margin: 0;
    font-size: 1rem;
}

.cart-item .item-info .item-title {
    font-weight: 600;
    color: var(--dark-gray);
}

.cart-item .item-info .item-price {
    color: var(--orange);
    font-size: 0.9rem;
}

.cart-item .quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item .quantity-controls button {
    background-color: var(--dominant-color);
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}

.cart-item .quantity-controls button:hover {
    background-color: var(--orange);
}

.cart-item .quantity-controls span {
    color: var(--dark-gray);
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

/* --- DESPUÉS (código corregido para tu menu.css) --- */
.cart-item .remove-item-btn {
  background-color: #dc3545;
  color: var(--white);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.cart-item .remove-item-btn:hover {
  background-color: #c82333;
}

.modal-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-gray);
}

.proceed-btn {
    background-color: var(--dominant-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.proceed-btn:hover {
    background-color: var(--orange);
}

/* ================== Animaciones ================== */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================== Media Queries (Responsivo) ================== */

/* Desktop y Tablets grandes */
@media (min-width: 992px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
    }
    .header-title {
        text-align: left;
    }
    .search-container {
        margin-left: auto;
        margin-right: 20px;
    }
}

@media (max-width: 991px) {
    /* Encabezado */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 1rem;
    }

    /* Ocultar el título del menú */
    .header-title {
        display: none;
    }

    /* La barra de navegación de categorías ahora se queda fija debajo del header */
    .category-nav {
        position: fixed;
        left: 0;
        width: 100%;
        z-index: 999;
        top: 75px;
        display: flex;
        align-items: center;
        padding: 0 10px;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .category-nav-container {
        flex-grow: 1;
        overflow-x: auto;
        -ms-overflow-style: none;
        white-space: nowrap;
        padding: 0.5rem 0;
    }
    
    body {
        padding-top: 135px;
    }

    /* Ajuste para el botón de regresar */
    .back-btn {
        position: static;
        margin-right: 10px;
        transform: none;
        bottom: 75px;
    }

    /* La barra de búsqueda ahora ocupa el espacio central */
    .search-container {
        width: auto;
        flex-grow: 1;
        margin-left: 10px;
    }

    /* El botón de compartir ahora está en el flujo normal */
    .share-btn {
        position: static;
        margin-left: 10px;
    }

    .cid-uSSQs9pxtz .row {
        padding: 1.5rem;
    }

    .cid-uSSQs9pxtz .item .item-wrapper .item-content .card-title {
        font-size: 1.1rem;
    }

    .cid-uSSQs9pxtz .item .item-wrapper .item-content .add-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .cid-uSSQs9pxtz .item .item-wrapper {
  width: calc(100% - 20px);
  margin: 0 10px;
  max-width: 400px;
}

    .cart-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Móviles pequeños */
@media (max-width: 600px) {
    .category-nav-container {
        padding: 0.8rem 1rem;
    }
    .category-link {
        font-size: 0.9rem;
    }

    .slick-prev, .slick-next {
        width: 30px;
        height: 30px;
        font-size: 1.5rem;
    }

    .slick-prev {
        left: -15px;
    }

    .slick-next {
        right: -15px;
    }

    .cid-uSSQs9pxtz .content-wrapper .mbr-section-title {
        font-size: 1.8rem;
    }

    .cid-uSSQs9pxtz .item .item-wrapper .item-content {
        padding: 0.8rem;
    }
    
    .cid-uSSQs9pxtz .item .item-wrapper {
  width: calc(100% - 20px);
  margin: 0 10px;
  max-width: 300px;
}

    .modal-content {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }
    .cart-item .item-info .item-title {
        font-size: 0.9rem;
    }
    .cart-item .remove-item-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    .proceed-btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
    .header-title {
        display: none;
    }
}

/* Estilos del Modal de Advertencia */
#emptyCartModal .modal-content-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    text-align: center;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
}

#emptyCartModal.show-modal .modal-content-empty {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

#emptyCartModal.hide-modal .modal-content-empty {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
}

.modal-header-empty {
    position: absolute;
    top: 15px;
    right: 15px;
}

.close-btn-empty {
    color: var(--dark-gray);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.close-btn-empty:hover {
    transform: rotate(90deg);
    color: var(--dominant-color);
}

/* Estilos para el cuerpo del modal */
.modal-body-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
}

.empty-icon {
    font-size: 60px;
    color: var(--dominant-color);
    margin-bottom: 20px;
    animation: bounceIn 0.8s;
}

.modal-body-empty h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-body-empty p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Animación de entrada para el icono */
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ================== Modal de Producto Agregado ================== */

#itemAddedModal .modal-content-added {
    position: relative;
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: fadeInScale 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-header-added {
    position: absolute;
    top: 15px;
    right: 15px;
}

.close-btn-added {
    font-size: 24px;
    color: var(--medium-gray);
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn-added:hover {
    color: var(--dominant-color);
}

.modal-body-added {
    padding-top: 20px;
}

.added-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 15px;
    animation: bounceIn 0.8s;
}

.modal-body-added h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.added-item-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    background-color: var(--light-gray);
}

.added-item-details img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.added-item-details .item-title-added {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.added-item-details .item-info-added {
    font-size: 0.9rem;
    color: #666;
}

.continue-shopping-btn {
    background-color: var(--dominant-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.continue-shopping-btn:hover {
    background-color: var(--orange);
}

/* ================== Notificación Mejorada ================== */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    color: white;
    font-weight: 500;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    transform: translateY(100px);
    opacity: 0;
    overflow: hidden;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.hide {
    transform: translateY(100px);
    opacity: 0;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-content i {
    font-size: 20px;
}

/* Barra de progreso en la parte inferior */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    transform-origin: left;
}

/* Animación de la barra de progreso */
@keyframes progress-fill {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* ================== Animaciones (opcional) ================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================== Modal de Horario ================== */
.modal-content-hours {
    position: relative;
    background-color: var(--white);
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInScale 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-header-hours {
    position: absolute;
    top: 15px;
    right: 15px;
}

.close-btn-hours {
    color: var(--dark-gray);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.close-btn-hours:hover {
    transform: rotate(90deg);
    color: var(--dominant-color);
}

.modal-body-hours {
    padding-top: 20px;
}

.hours-icon {
    font-size: 60px;
    color: var(--orange);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.countdown-container {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 10px;
}

.countdown {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dominant-color);
    font-family: 'Courier New', monospace;
    margin: 10px 0;
}

.fun-message {
    font-style: italic;
    color: var(--medium-gray);
    margin-top: 15px;
}