/* Product Detail Page Styles */

/* Sticky Header */
.product-sticky-header {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 75px;
	z-index: 2 !important;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
	.product-sticky-header {
		position: sticky !important;
		top: 130px !important;
		text-align: center;
		padding: 6px;
        background-color: #0d6efd;       
	}
}

.product-sticky-image {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 80px;
    z-index: 1 !important;
}

/* Product Tabs - Diseño simple y limpio */
.product-tabs-section .nav-tabs {
	border-bottom: 1px solid #dee2e6;
	margin-bottom: 0;
}

.product-tabs-section .nav-tabs .nav-link {
	border: none;
	color: #495057;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 1rem 1.5rem;
	background: transparent;
	border-bottom: 3px solid transparent;
	transition: all 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.product-tabs-section .nav-tabs .nav-link:hover {
	color: #0d6efd;
	background: transparent;
	border-bottom: 3px solid #0d6efd;
}

.product-tabs-section .tab-content {
	border: none;
	background: white;
}

.product-tabs-section .tab-pane {
	color: #495057;
	line-height: 1.6;
}

.prod-img-gall img {
    max-height: 450px;
}

.prod-img-nogall img {
    max-height: 500px;
}

/* Estilos para contenido de Descripción y Especificaciones */
/* Base: Estandarizar todo el texto a 15px */
#productTabsContent,
#productTabsContent * {
    font-size: 15px !important;
    line-height: 1.7;
    color: #495057;
}

/* Títulos jerarquizados */
#productTabsContent h1,
#productTabsContent h2,
#productTabsContent h3,
#productTabsContent h4,
#productTabsContent h5,
#productTabsContent h6 {
    color: #212529;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

#productTabsContent h1 { font-size: 20px !important; }
#productTabsContent h2 { font-size: 19px !important; }
#productTabsContent h3 { font-size: 18px !important; }
#productTabsContent h4 { font-size: 17px !important; }
#productTabsContent h5 { font-size: 16px !important; }
#productTabsContent h6 { font-size: 15px !important; }

/* Párrafos y textos */
#productTabsContent p {
    margin-bottom: 1rem;
    text-align: justify;
}

#productTabsContent p:last-child {
    margin-bottom: 0;
}

/* Listas */
#productTabsContent ul,
#productTabsContent ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

#productTabsContent li {
    margin-bottom: 0.5rem;
}

/* Enlaces */
#productTabsContent a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s ease;
}

#productTabsContent a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Texto en negrita y cursiva */
#productTabsContent strong,
#productTabsContent b {
    font-weight: 600;
    color: #212529;
}

#productTabsContent em,
#productTabsContent i {
    font-style: italic;
}

/* Tablas (si las hay) */
#productTabsContent table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 14px !important;
}

#productTabsContent table th,
#productTabsContent table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

#productTabsContent table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #212529;
}

#productTabsContent table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Imágenes dentro del contenido */
#productTabsContent img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.375rem;
}

/* Bloques de código o citas */
#productTabsContent blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #6c757d;
    font-style: italic;
}

#productTabsContent code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 14px !important;
    color: #d63384;
}

/* Divisores horizontales */
#productTabsContent hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #dee2e6;
}

/* Forzar tamaño máximo de fuente para casos extremos */
#productTabsContent span[style*="font-size"] {
    font-size: 15px !important;
}

/* Eliminar estilos inline de color si son muy llamativos */
#productTabsContent [style*="color: #ff"] {
    color: #495057 !important;
}

/* Estilo personalizado para alerta de sin stock */
.stock-info .alert-warning {
    background-color: #E68B3A !important;
    border-color: #E68B3A !important;
    color: #ffffff !important;
}

.stock-info .alert-warning i,
.stock-info .alert-warning strong {
    color: #ffffff !important;
}