/* ============================================
   ESTILOS ARCHIVO DE PRODUCTOS
   ============================================ */

.woocommerce.archive .elementor-archive-products,
.tax-product_cat .elementor-archive-products {
    max-width: 1200px;
    margin: 0 auto;
}

.woocommerce.archive .e-loop-item,
.tax-product_cat .e-loop-item {
    transition: box-shadow .2s ease, transform .2s ease;
}

.woocommerce.archive .e-loop-item:hover,
.tax-product_cat .e-loop-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

/* ============================================
   ELEMENTOR MENU CART - MINI CART DEL HEADER
   ============================================ */

/* Contenedor principal */
.elementor-menu-cart__main,
div.elementor-menu-cart__main {
    padding: 20px !important;
    background: #f8f9fa !important;
    position: relative !important;
    z-index: 10000 !important;
    max-width: 420px !important;
    width: 100% !important;
    height: 100vh !important;
    overflow-y: auto !important;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3) !important;
    animation: slideInFromRight 0.3s ease !important;
}

.elementor-menu-cart__container,
div.elementor-menu-cart__container {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Overlay oscuro */
.elementor-menu-cart__container.elementor-lightbox {
    background: rgba(0, 0, 0, 0.5) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
}

/* Evitar scroll en body cuando está abierto */
body.elementor-menu-cart--shown {
    overflow: hidden !important;
}

/* Animación de entrada */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Productos del cart - tarjetas */
.elementor-menu-cart__product,
.elementor-menu-cart__products .elementor-menu-cart__product {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    animation: slideInElementorCart 0.4s ease !important;
}

.elementor-menu-cart__product:hover {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
    border-color: #28a745 !important;
}

@keyframes slideInElementorCart {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Imagen del producto */
.elementor-menu-cart__product-image,
.elementor-menu-cart__product-image img {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 2px solid #e9ecef !important;
    flex-shrink: 0 !important;
}

/* Nombre del producto */
.elementor-menu-cart__product-name,
.elementor-menu-cart__product-name a {
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    flex: 1 !important;
}

.elementor-menu-cart__product-name a:hover {
    color: #28a745 !important;
}

/* Precio del producto */
.elementor-menu-cart__product-price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
}

.elementor-menu-cart__product-price del {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    color: #999 !important;
    order: 1 !important;
}

.elementor-menu-cart__product-price del * {
    display: inline !important;
    white-space: nowrap !important;
}

.elementor-menu-cart__product-price ins {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    background: transparent !important;
    order: 2 !important;
}

.elementor-menu-cart__product-price ins *,
.elementor-menu-cart__product-price ins .woocommerce-Price-amount,
.elementor-menu-cart__product-price ins .woocommerce-Price-currencySymbol,
.elementor-menu-cart__product-price ins bdi,
.elementor-menu-cart__product-price .woocommerce-Price-amount,
.elementor-menu-cart__product-price .amount {
    display: inline !important;
    white-space: nowrap !important;
    color: #e53935 !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

/* Botón eliminar */
.elementor-menu-cart__product-remove,
.elementor-menu-cart__product-remove a {
    color: #e53935 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
    border: 2px solid #e0e0e0 !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.elementor-menu-cart__product-remove:hover,
.elementor-menu-cart__product-remove a:hover {
    background: #e53935 !important;
    color: #ffffff !important;
    border-color: #e53935 !important;
    transform: rotate(90deg) !important;
}

/* Subtotal */
.elementor-menu-cart__subtotal {
    background: #ffffff !important;
    padding: 18px !important;
    border-radius: 10px !important;
    margin: 15px 0 20px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: 2px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.elementor-menu-cart__subtotal-title {
    font-size: 18px !important;
    color: #333 !important;
    font-weight: 700 !important;
}

.elementor-menu-cart__subtotal-amount,
.elementor-menu-cart__subtotal .woocommerce-Price-amount {
    color: #e53935 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

/* Botones de acción */
.elementor-menu-cart__footer-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.elementor-menu-cart__footer-buttons .elementor-button,
.elementor-menu-cart__footer-buttons a {
    width: 100% !important;
    padding: 16px 24px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: block !important;
}

.elementor-menu-cart__footer-buttons .elementor-button--checkout,
.elementor-button.elementor-button--checkout {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.35) !important;
}

.elementor-menu-cart__footer-buttons .elementor-button--checkout:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea87a 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 22px rgba(40, 167, 69, 0.5) !important;
}

.elementor-menu-cart__footer-buttons .elementor-button--view-cart,
.elementor-button.elementor-button--view-cart {
    background: #6c757d !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.25) !important;
}

.elementor-menu-cart__footer-buttons .elementor-button--view-cart:hover {
    background: #5a6268 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 22px rgba(108, 117, 125, 0.35) !important;
}

/* Lista de productos con scroll */
.elementor-menu-cart__products {
    max-height: 400px !important;
    overflow-y: auto !important;
    padding: 10px !important;
}

.elementor-menu-cart__products::-webkit-scrollbar {
    width: 8px !important;
}

.elementor-menu-cart__products::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 4px !important;
}

.elementor-menu-cart__products::-webkit-scrollbar-thumb {
    background: #28a745 !important;
    border-radius: 4px !important;
}

.elementor-menu-cart__products::-webkit-scrollbar-thumb:hover {
    background: #218838 !important;
}

/* Botón cerrar */
.elementor-menu-cart__close-button {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 10001 !important;
    background: #e53935 !important;
    color: white !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.elementor-menu-cart__close-button:hover {
    background: #c62828 !important;
    transform: rotate(90deg) scale(1.1) !important;
}