/**
 * Pizza Products System - Estilos
 * Archivo: pizza-styles.css
 */

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.pizza-products-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    background: #3A3534;
}

/* ============================================
   BOTONES DE FILTRO
   ============================================ */
.pizza-category-filters {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    background: #fff;
    padding: 0 170px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.pizza-filter-btn {
    background: #fff;
    border: none;
    border-right: 1px solid #e0e0e0;
    padding: 25px 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 0;
    text-transform: uppercase;
    flex: 1;
    height: 100%;
    color: #333;
}

.pizza-filter-btn:last-child {
    border-right: none;
}

.pizza-filter-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    color: black;
}

.pizza-filter-btn.active {
    background: #EEEEEE;
    color: black;
}

.filter-icon {
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.icon-pizza {
    background-image: url('http://pruebas.dgtalit.com/wp-content/uploads/2026/01/0604-pizza-slice_32.png');
}

.icon-postre {
    background-image: url('http://pruebas.dgtalit.com/wp-content/uploads/2026/01/0603-muffin_32.png');
}

.icon-bebidas {
    background-image: url('http://pruebas.dgtalit.com/wp-content/uploads/2026/01/0305-wine_32.png');
}

.icon-platos {
    background-image: url('http://pruebas.dgtalit.com/wp-content/uploads/2026/01/0103-served-plate_32.png');
}

.icon-ofertas {
    background-image: url('http://pruebas.dgtalit.com/wp-content/uploads/2026/01/alert-hand-drawn-symbol.png');
}

.filter-text {
    font-size: 14px;
}


/* ============================================
   GRID DE PRODUCTOS
   ============================================ */
.pizza-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px; /* Reducido de 40px */
    margin-top: 30px;
	margin-left: 70px !important;
	margin-right: 70px !important;
}

/* ============================================
   TARJETA DE PRODUCTO
   ============================================ */
.pizza-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 27px; /* Reducido de 30px */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pizza-product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Ocultar productos por categoría */
.pizza-product-card {
    display: none;
}

.pizza-product-card[data-category="pizza"] {
    display: flex;
}
/* ============================================
   IMAGEN DEL PRODUCTO
   ============================================ */
.product-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 25px;
    background: #f9f9f9;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.pizza-product-card:hover .product-image {
    transform: scale(1.05);
}

/* ============================================
   INFORMACIÓN DEL PRODUCTO
   ============================================ */
.product-info {
    text-align: center;
    margin-bottom: 25px;
}

.product-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    color: #333;
}

.product-description {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   VARIANTES Y CONTROLES
   ============================================ */
.product-variants {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.variant-row {
    display: grid;
    grid-template-columns: 100px 80px 1fr 50px;
    gap: 15px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
}

.variant-row:first-child {
    border-top: none;
}

.variant-row-simple {
    grid-template-columns: 100px 1fr 50px;
}

/* Tamaño de variante */
.variant-size {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.size-icon {
    font-size: 16px;
}

.size-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Precio */
.variant-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* ============================================
   CONTROLES DE CANTIDAD
   ============================================ */
.variant-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #333;
}

.qty-btn:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.qty-input {
    width: 50px;
    height: 35px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ============================================
   BOTÓN AÑADIR AL CARRITO
   ============================================ */
.add-to-cart-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #333;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.add-to-cart-btn:hover {
    background: #333;
    transform: scale(1.1);
}

.cart-icon {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.add-to-cart-btn:hover .cart-icon {
    transform: scale(1.1);
}

.add-to-cart-btn.adding {
    pointer-events: none;
    opacity: 0.6;
}

.add-to-cart-btn.added {
    background: #4caf50;
    border-color: #4caf50;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .pizza-products-grid {
        gap: 30px;
    }
    
    .product-image-wrapper {
        height: 250px;
    }
    
    .variant-row {
        grid-template-columns: 90px 70px 1fr 45px;
        gap: 10px;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .pizza-products-container {
        padding: 0 15px 30px 15px;
    }
    
    .pizza-category-filters {
        gap: 0;
        margin-bottom: 30px;
        flex-wrap: wrap;
        padding: 0;
    }
    
    .pizza-filter-btn {
        padding: 12px 20px;
        font-size: 12px;
        flex: 1 1 calc(33.333% - 2px);
        border-right: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .filter-icon {
        font-size: 18px;
    }
    
    .pizza-products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
    
    .product-image-wrapper {
        height: 280px;
    }
    
    .product-name {
        font-size: 18px;
    }
    
    .variant-row {
        grid-template-columns: 80px 70px 1fr 45px;
        gap: 8px;
        font-size: 12px;
    }
    
    .variant-row-simple {
        grid-template-columns: 90px 1fr 45px;
    }
    
    .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .qty-input {
        width: 45px;
        height: 32px;
        font-size: 13px;
    }
    
    .add-to-cart-btn {
        width: 45px;
        height: 45px;
    }
    
    .cart-icon {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .pizza-filter-btn {
        flex: 1 1 calc(50% - 1px);
        min-width: unset;
        justify-content: center;
    }
    
    .variant-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
        background: #f9f9f9;
    }
    
    .variant-row-simple {
        grid-template-columns: 1fr;
    }
    
    .variant-size,
    .variant-price {
        justify-self: start;
    }
    
    .variant-quantity {
        justify-content: flex-start;
    }
    
    .add-to-cart-btn {
        width: 100%;
        height: 45px;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pizza-product-card {
    animation: fadeIn 0.5s ease forwards;
}

/* ============================================
   UTILIDADES
   ============================================ */
.pizza-product-card.hidden {
    display: none !important;
}

/* Imágenes de bebidas con contain y menor altura */
.pizza-product-card[data-category="bebidas"] .product-image-wrapper {
    height: 250px !important;
}

.pizza-product-card[data-category="bebidas"] .product-image {
    object-fit: contain !important;
    background: #fff;
}

/* Botón de ofertas en rojo */
.pizza-filter-btn[data-category="ofertas"] {
    color: #e74c3c;
}

.pizza-filter-btn[data-category="ofertas"]:hover,
.pizza-filter-btn[data-category="ofertas"].active {
    color: #c0392b;
}