/*
 * WooCommerce Combined CSS - Mandyjumi Theme
 * Este archivo combina los estilos principales de WooCommerce
 */

/* ===== ESTILOS GENERALES DE WOOCOMMERCE ===== */
.woocommerce {
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
}

/* ===== PÁGINA DE TIENDA ===== */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 0;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    list-style: none;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ===== IMÁGENES DE PRODUCTOS ===== */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* ===== TÍTULOS Y PRECIOS ===== */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5187bc;
    margin: 10px 0;
    line-height: 1.3;
}

.woocommerce ul.products li.product .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #11c1c8;
    margin: 10px 0;
}

.woocommerce ul.products li.product .price del {
    color: #999;
    font-weight: 400;
    margin-right: 10px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: #11c1c8;
}

/* ===== BOTONES ===== */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    background-color: #5187bc;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
    background-color: #3d6b94;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ===== ORDENAMIENTO Y FILTROS ===== */
.woocommerce .woocommerce-ordering {
    margin-bottom: 30px;
    text-align: right;
}

.woocommerce .woocommerce-ordering select {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #2c3e50;
}

.woocommerce .woocommerce-result-count {
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 14px;
}

/* ===== PAGINACIÓN ===== */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin-top: 40px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: block;
    padding: 10px 15px;
    background: #f8f9fa;
    color: #5187bc;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #5187bc;
    color: white;
}

/* ===== MENSAJES ===== */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.woocommerce .woocommerce-message {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.woocommerce .woocommerce-info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.woocommerce .woocommerce-error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

/* ===== CARRITO ===== */
.woocommerce .cart-collaterals {
    margin-top: 30px;
}

.woocommerce table.cart {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.woocommerce table.cart th,
.woocommerce table.cart td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}

.woocommerce table.cart th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

/* ===== RESPONSIVE ===== */
/* Tablets: 3 columnas */

@media (max-width: 1024px) and (min-width: 769px) {
    .woocommerce .products {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
   
}

/* Móviles: 2 columnas */
@media (max-width: 768px) {
    .woocommerce .products {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    
div.related_products {
    
    width: 100%;

}


    .woocommerce ul.products li.product {
        padding: 15px;
    }
    
    .woocommerce ul.products li.product img {
        height: 200px;
    }
    
    .woocommerce .woocommerce-ordering {
        text-align: center;
        margin-bottom: 20px;
    }
}

/* Móviles pequeños: 1 columna */
@media (max-width: 480px) {
  
    
    .woocommerce ul.products li.product img {
        height: 180px;
    }
}

/* ===== LOADING Y ANIMACIONES ===== */
.woocommerce .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.8) !important;
}

.woocommerce .loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #5187bc;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== COMPATIBILIDAD CON TEMA MANDYJUMI ===== */
.woocommerce {
    --primary-color: #5187bc;
    --secondary-color: #91c4f6;
    --accent-color: #95ebd4;
    --teal-color: #11c1c8;
    --warm-color: #deb08e;
    --white: #ffffff;
    --dark: #2c3e50;
    --light-gray: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}