/**
 * InfoVentas - Estilos para página de detalle de producto
 */

/* Breadcrumbs */
.breadcrumbs-section {
    padding: 15px 0;
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    margin: 0 10px;
    color: var(--text-color);
}

.breadcrumbs span:after {
    content: '/';
    margin-left: 10px;
    color: var(--text-light);
}

.breadcrumbs span:last-child:after {
    content: '';
}

/* Estilos responsivos para breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 12px;
        padding: 0 10px;
    }
    
    .breadcrumbs span {
        margin: 0 5px;
    }
    
    .breadcrumbs span:after {
        margin-left: 5px;
    }
}

/* Product Detail */
.product-detail-section {
    padding: 50px 0;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-gallery {
    position: relative;
}

.main-image {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.stars {
    color: var(--warning-color);
    margin: 0 5px;
}

.product-brand {
    color: var(--text-light);
}

.product-price {
    margin: 20px 0;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 15px;
}

.old-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: var(--text-light);
}

.product-description {
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.8;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.product-tabs-section {
    padding: 50px 0;
    background-color: var(--background-light);
}

.product-tabs {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

#full-description {
    line-height: 1.8;
}

#features-list {
    list-style-type: none;
    padding-left: 0;
}

#features-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

#features-list li:before {
    content: '✓';
    color: var(--success-color);
    margin-right: 10px;
    font-weight: bold;
}

.reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.average-rating {
    text-align: center;
}

.average-rating h3 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.related-products-section {
    padding: 50px 0;
}

.related-products-section h2 {
    margin-bottom: 30px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: left;
        padding: 15px;
    }
    
    .tab-btn.active:after {
        width: 5px;
        height: 100%;
        top: 0;
        left: 0;
    }
}
