:root {
        --nike-black: #000;
        --nike-gray: #f6f6f6;
        --nike-dark-gray: #757575;
    }

    .product-container {
        display: flex;
        flex-wrap: wrap;
        flex-direction:row-reverse;
        max-width: 800px;
        margin: 40px auto;
        padding: 20px;
        gap: 40px;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

    /* Parte Izquierda: Imagen */
    .product-image {
        flex: 1 1 500px;
        background-color: var(--nike-gray);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-image img {
        max-width: 100%;
        height: auto;
        mix-blend-mode: multiply; /* Ideal si la foto tiene fondo blanco */
    }

    /* Parte Derecha: Info */
    .product-info {
        flex: 1 1 400px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .product-category {
        font-weight: 700;
        font-size: 14px;
        color: #9e3500; /* Color acento tipo Nike */
        text-transform: uppercase;
    }

    .product-title {
        font-size: 32px;
        font-weight: 900;
        text-transform: uppercase;
        margin: 0;
        line-height: 1;
    }

    .product-price {
        font-size: 20px;
        font-weight: 600;
    }

    /* Tallas */
    .size-section {
        margin-top: 10px;
    }

    .size-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .size-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .size-item {
        border: 1px solid #e5e5e5;
        padding: 12px;
        text-align: center;
        cursor: pointer;
        border-radius: 4px;
        transition: 0.2s;
    }

    .size-item:hover {
        border-color: var(--nike-black);
    }

    /* Botón de compra */
    .btn-buy {
        background-color: var(--nike-black);
        color: white;
        padding: 18px;
        border-radius: 30px;
        text-align: center;
        text-decoration: none;
        font-weight: 700;
        margin-top: 10px;
        transition: opacity 0.3s;
    }

    .btn-buy:hover {
        opacity: 0.7;
    }

    .product-description {
        line-height: 1.6;
        color: var(--nike-dark-gray);
        font-size: 15px;
    }

    /* Responsivo */
    @media (max-width: 768px) {
        .product-container {
            flex-direction: column;
            margin: 10px auto;
        }
        .product-title {
            font-size: 26px;
        }
    }

    /* Estenedor de info extra */
.product-extra-info {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-icon {
    font-size: 20px;
}

.info-item strong {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.info-item p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

/* Historia de marca */
.brand-story h3 {
    font-size: 16px;
    font-weight: 800;
    font-style: italic;
    margin-bottom: 10px;
}

.brand-story p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.slogan-footer {
    font-weight: 900;
    font-size: 18px !important;
    margin-top: 15px !important;
    color: #000 !important;
    text-transform: uppercase;
}

/*Toaster*/
/* Contenedor de notificaciones */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

/* Estilo del Toast */
.toast {
  background-color: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  margin-top: 10px;
  font-family: sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-left: 5px solid #4CAF50; /* Color verde para éxito */
}

/*Table*/
table {
    font-family: Arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
  }
  td, th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
  }
  tr:nth-child(even) {
    background-color: #f2f2f2;
  }
  th {
    background-color: #b4b3b3;
    color: white;
  }

  #cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #ff0000; /* Rojo Nike */
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    min-width: 10px;
    text-align: center;
    display: none; /* Se oculta si es 0 */
}

/* --- ESTILO RECOMENDACIONES VECCHIA --- */
.recommendations {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    font-family: 'Montserrat', sans-serif;
}

.recommendations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.recommendations-title {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.view-all {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 13px;
    transition: 0.3s;
}

.view-all:hover {
    text-decoration: underline;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.rec-card {
    transition: transform 0.3s ease;
}

.rec-card a {
    text-decoration: none;
    color: inherit;
}

.rec-card:hover {
    transform: translateY(-5px);
}

.rec-img-container {
    background-color: #f7f7f7;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
}

.rec-img-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Si tus imágenes tienen fondo blanco puro */
}

.rec-cat {
    font-size: 12px;
    color: #757575;
    text-transform: uppercase;
    font-weight: 500;
}

.rec-name {
    font-size: 15px;
    font-weight: 700;
    margin: 5px 0;
    letter-spacing: -0.2px;
}

.rec-price {
    font-size: 14px;
    font-weight: 900;
    color: #000;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 productos por fila en móvil */
        gap: 15px;
    }
    .rec-name { font-size: 13px; }
}

/* Tallas agotadas */
.size-item:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
    pointer-events: none;
}
