/* Product detail styles */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

/* Product images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: var(--shadow-medium);
}

.main-image:hover {
    transform: scale(1.02);
}

.thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 5px 0;
    align-items: center;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.thumbnail.active::before,
.thumbnail:hover::before {
    opacity: 0.8;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(79, 233, 229, 0.3);
}

/* Integración con videos estilo historias */
.video-thumbnail-item {
    flex-shrink: 0;
    margin: 0 2px;
}

/* Product info */
.product-info h1 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    color: var(--text-color);
}

.category {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.price .original {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1rem;
    margin-right: 10px;
}

.description {
    margin-bottom: 1.5rem;
    color: #444;
}

.description p {
    margin-bottom: 0.8rem;
}

.description ul {
    padding-left: 20px;
    margin: 0.8rem 0;
}

.description li {
    margin-bottom: 0.4rem;
}

.actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Back button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: #f5f5f5;
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.back-btn:hover {
    background: #e5e5e5;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .product-info h1 {
        font-size: 1.5rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding: 0.5rem 0;
    }
    
    .product-info h1 {
        font-size: 1.3rem;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    .thumbnail {
        width: 45px;
        height: 45px;
    }
}
