/*
Theme Name: Divi Tienda Custom
Template: Divi
Version: 1.0
Description: Tema hijo personalizado para mostrar productos WooCommerce con Divi.
Author: ChatGPT
*/

body {
    font-family: sans-serif;
}



/* Estructura del grid */
.tienda-loop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta de producto */
.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Imagen */
.product-thumb img {
    max-width: 100%;
    border: 1px solid #ccc;
}

/* Insignia de oferta */
.badge-oferta {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d9001b;
    color: #fff;
    padding: 4px 10px;
    font-size: 14px;
    border-radius: 10px;
}

/* Título */
.product-title {
    font-weight: bold;
    font-size: 18px;
    margin: 10px 0;
}

/* Tallas */
.product-sizes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.product-sizes .variation-button {
    border: 2px solid #000;
    background: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
}
.product-sizes .variation-button.active,
.product-sizes .variation-button:hover {
    background: #000;
    color: #fff;
}

/* Cantidad */
.product-qty {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #d9d9d9;
    border-radius: 10px;
    padding: 5px;
    gap: 10px;
    margin-bottom: 10px;
}
.product-qty button {
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}
.product-qty input.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
}

/* Precio */
.product-price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
.product-price del {
    color: red;
    margin-right: 5px;
}

/* Botón Agregar */
.add-to-cart {
    background: #000;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.add-to-cart .cart-icon {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 767px) {
    .tienda-loop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
