/* ===================================
   PRODUCTO.CSS - Estilos para páginas de producto
   =================================== */

/* Contenedor Principal */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    min-height: 60vh;
}

/* ===== GALERÍA DE IMÁGENES ===== */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    border: 2px solid #333;
    transition: all 0.3s ease;
}

.main-image:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(3, 194, 255, 0.3);
}

.thumbnail-images {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 100px;
    height: 100px;
    background: #2a2a2a;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.thumbnail:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary);
    background: #333;
}

/* ===== INFORMACIÓN DEL PRODUCTO ===== */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-breadcrumb {
    color: #999;
    font-size: 0.9rem;
}

.product-breadcrumb a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s;
}

.product-breadcrumb a:hover {
    color: var(--primary);
}

.product-title {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.product-description {
    color: #ccc;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* ===== PRECIO Y DISPONIBILIDAD ===== */
.product-price-box {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--primary);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-large {
    font-size: 3rem;
    color: var(--success);
    font-weight: 800;
    text-shadow: 0 0 20px rgba(25, 207, 16, 0.3);
}

.stock-status {
    display: inline-block;
    padding: 8px 20px;
    background: var(--success);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
}

.stock-status.out-of-stock {
    background: var(--secondary);
}

/* ===== BOTONES DE COMPRA ===== */
.buy-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-buy {
    flex: 1;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-whatsapp {
    background: var(--success);
    color: white;
}

.btn-whatsapp:hover {
    background: #15b00d;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(25, 207, 16, 0.5);
}

.btn-cart {
    background: var(--primary);
    color: white;
}

.btn-cart:hover {
    background: #02a8d6;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(3, 194, 255, 0.5);
}

/* ===== TABS (CARACTERÍSTICAS Y ESPECIFICACIONES) ===== */
.product-tabs {
    margin-top: 40px;
    border-top: 2px solid #333;
}

.tab-buttons {
    display: flex;
    gap: 0;
    margin-top: -2px;
}

.tab-btn {
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-top: 2px solid transparent;
    color: #999;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    font-size: 1rem;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-top-color: var(--primary);
}

.tab-content {
    padding: 30px 0;
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== LISTA DE CARACTERÍSTICAS ===== */
.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid #333;
    color: #ccc;
    font-size: 1.05rem;
}

.features-list li:before {
    content: "✓ ";
    color: var(--success);
    font-weight: 700;
    margin-right: 10px;
    font-size: 1.2rem;
}

.features-list li:last-child {
    border-bottom: none;
}

/* ===== TABLA DE ESPECIFICACIONES ===== */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #333;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 15px 10px;
    font-size: 1.05rem;
}

.specs-table td:first-child {
    color: var(--primary);
    font-weight: 600;
    width: 40%;
}

.specs-table td:last-child {
    color: #ccc;
}

/* ===== PRODUCTOS RELACIONADOS ===== */
.related-products {
    padding: 60px 5%;
    background: #1a1a1a;
}

.related-products .section-title {
    margin-bottom: 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 5%;
    }
    
    .main-image {
        height: 400px;
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        gap: 30px;
        padding: 20px 5%;
    }
    
    .main-image {
        height: 300px;
        font-size: 5rem;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .price-large {
        font-size: 2rem;
    }
    
    .buy-buttons {
        flex-direction: column;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .specs-table td {
        padding: 12px 5px;
        font-size: 0.95rem;
    }
    
    .specs-table td:first-child {
        width: 35%;
    }
}

@media (max-width: 480px) {
    .main-image {
        height: 250px;
        font-size: 4rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .price-large {
        font-size: 1.8rem;
    }
    
    .product-price-box {
        padding: 20px;
    }
    
    .btn-buy {
        padding: 15px;
        font-size: 1rem;
    }
    
    .thumbnail {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
}

