/* ==================================
   Estilos para la Página de Detalle de Producto
   ================================== */

.product-page-container {
    background-color: var(--color-white);
   /*  padding: 1rem 0 2rem 0; */
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    margin-bottom: 1rem;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}
.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span {
    font-weight: 600;
}

/* --- Layout Principal --- */
.product-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* --- Galería de Imágenes --- */
.product-gallery .main-image-container {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.product-gallery #main-product-image {
    width: 100%;
    height: auto;
    display: block;
}
.thumbnail-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}
.thumbnail-image {
    width: 100%;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.thumbnail-image:hover {
    border-color: var(--color-primary-dark);
    transform: scale(1.05);
}
.thumbnail-image.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(var(--color-primary), 0.5);
}

/* --- Información del Producto --- */
.product-info .product-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.product-info .product-tagline {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.product-info .product-price-main {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}
.product-info .product-description {
    line-height: 1.6;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--color-primary);
    color: var(--color-text);
    font-size: var(--font-size-base);
}

.product-info .product-description p {
    margin: 0;
}
.btn-cta-main {
    display: block;
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}
.btn-cta-main:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}
.key-benefits {
    margin-top: 2rem;
    background-color: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border);
}
.key-benefits h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}
.key-benefits ul {
    list-style: none;
    padding: 0;
}
.key-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.key-benefits i {
    color: var(--color-primary);
}

/* --- Pestañas de Detalles --- */
.product-details-tabs {
    margin-top: 3rem;
}
.tab-headers {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 2rem;
}
.tab-link {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-light);
    position: relative;
    transition: color 0.3s ease;
}
.tab-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.tab-link.active, .tab-link:hover {
    color: var(--color-text-dark);
}
.tab-link.active::after {
    transform: scaleX(1);
}
/* Ahora estas reglas solo se aplican dentro de .product-details-tabs */
.product-details-tabs .tab-content {
    display: none;
}
.product-details-tabs .tab-content.active {
    display: block;
}
.specs-list, .includes-list {
    list-style: none;
    padding: 0;
}
.includes-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* --- Responsividad --- */
@media (max-width: 992px) {
    .product-main-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .product-info .product-title { font-size: var(--font-size-2xl); }
    .thumbnail-strip { grid-template-columns: repeat(4, 1fr); }
    .tab-link { padding: 0.8rem 1rem; font-size: 1rem; }
}