/*=============================================
Breadcrumb de navegación
=============================================*/
.content-header {
	background-color: #f8f9fa;
	border-bottom: 1px solid #dee2e6;
}

.content-header .breadcrumb {
	background: transparent;
	padding: 0;
	margin: 0;
	font-size: 0.85rem;
}

.content-header .breadcrumb-item a {
	color: #555;
}

.content-header .breadcrumb-item a:hover {
	color: #000;
}

.content-header .breadcrumb-item.active {
	color: #888;
	max-width: 200px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: inline-block;
	vertical-align: middle;
}

@media (max-width: 576px) {
	.content-header .breadcrumb {
		float: none !important;
		margin-top: 4px;
	}

	.content-header .breadcrumb-item.active {
		max-width: 150px;
	}
}

/*=============================================
Animacíón botón de compra
=============================================*/
button.pulseAnimation{

	animation: increaseSize 3s infinite;
 
}

@keyframes increaseSize {
	0% {
	transform: scale(1);
	}
	10% {
	transform: scale(1.2);
	}

	20% {
	transform: scale(1);
	}

}

/*=============================================
Quitar controles de number
=============================================*/

input.showQuantity::-webkit-inner-spin-button, 
input.showQuantity::-webkit-outer-spin-button{ 
	-webkit-appearance: none; 
	margin: 0; 
}

.btnInc{
	cursor:pointer;
}

.blockQuantity .input-group{
	flex-wrap:nowrap;
}

.blockQuantity .input-group > .form-control{
	width:1%;
	flex:1 1 auto;
	min-width:0;
}

/*=============================================
Productos relacionados
=============================================*/
.relatedCard {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border-radius: 6px;
	overflow: hidden;
}

.relatedCard:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.relatedCard .imgProduct img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

@media (max-width: 576px) {
	.relatedCard .imgProduct img {
		height: 140px;
	}
}

/*=============================================
Botón Comprar ahora
=============================================*/
.btn-buyNow {
	background: linear-gradient(135deg, #f5a623, #e8850a);
	color: #fff;
	border: none;
	width: 100%;
	transition: filter 0.2s ease, transform 0.1s ease;
}

.btn-buyNow:hover {
	filter: brightness(1.08);
	color: #fff;
	transform: translateY(-1px);
}

.btn-buyNow:active {
	transform: translateY(0);
	filter: brightness(0.95);
}

/*=============================================
Botón Contra Entrega
=============================================*/
.btn-cod {
	background: linear-gradient(135deg, #28a745, #1e7e34);
	color: #fff;
	border: none;
	width: 100%;
	transition: filter 0.2s ease, transform 0.1s ease;
}

.btn-cod:hover {
	filter: brightness(1.08);
	color: #fff;
	transform: translateY(-1px);
}

.btn-cod:active {
	transform: translateY(0);
	filter: brightness(0.95);
}

/* Modal COD */
.codShippingOption {
	cursor: pointer;
	background: #f8f9fa;
	transition: background 0.15s;
}
.codShippingOption:hover { background: #e9ecef; }

#confirmCod { letter-spacing: 0.3px; font-size: 0.95rem; }

/*=============================================
Badges de confianza
=============================================*/
.trustBadges {
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	padding-top: 12px;
	padding-bottom: 12px;
}

.trustBadge {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 10px 6px;
	border-radius: 10px;
	transition: background 0.2s ease;
}

.trustBadge:hover {
	background: #f5f5f5;
}

.trustBadge i {
	font-size: 1.4rem;
	color: #222;
}

.trustBadge span {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #444;
}

@media (max-width: 576px) {
	.trustBadge i {
		font-size: 1.2rem;
	}
	.trustBadge span {
		font-size: 0.65rem;
	}
}

/*=============================================
Sección de Reseñas
=============================================*/
.reviewsSection {
	background: #f9f9f9;
}

.reviewsSummary {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
}

.reviewsAvgNumber {
	font-size: 3.8rem;
	font-weight: 700;
	line-height: 1;
	color: #222;
}

.reviewsBigStars span {
	font-size: 1.5rem;
}

.star-filled {
	color: #ffc107;
}

.star-empty {
	color: #ddd;
}

.ratingLabel {
	width: 30px;
	text-align: right;
}

/* Selector de estrellas del formulario */
.starSelector {
	display: flex;
	gap: 4px;
}

.starOption {
	font-size: 2rem;
	cursor: pointer;
	color: #ddd;
	transition: color 0.1s ease, transform 0.1s ease;
	line-height: 1;
}

.starOption:hover,
.starOption.hovered,
.starOption.selected {
	color: #ffc107;
	transform: scale(1.15);
}

/* Tarjeta del formulario */
.reviewFormBox {
	border-radius: 12px !important;
	background: #fff;
}

/* Items de reseña */
.reviewItem {
	animation: reviewFadeIn 0.3s ease;
}

.reviewStarsSmall span {
	font-size: 0.9rem;
}

@keyframes reviewFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 576px) {
	.reviewsAvgNumber {
		font-size: 3rem;
	}

	.starOption {
		font-size: 1.7rem;
	}
}

/*=============================================
Bloque de precio / oferta
=============================================*/
.blockPrice h3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.blockPrice .offerBadge {
    white-space: nowrap;
    border: 2px solid #000;
    border-radius: 50px;
    padding: 3px 16px;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 767px) {
    .blockPrice h3 { font-size: 1.35rem; }
    .blockPrice .offerBadge { font-size: 0.85rem; }
}

/*=============================================
Countdown local
=============================================*/

.localCountdown {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	padding: 14px 10px;
	background: #009B9D;
	border-radius: 10px;
	margin: 8px 0;
}

.cdBlock {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 52px;
}

.cdDigit {
	font-size: 2rem;
	font-weight: 700;
	color: #333;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: 1px;
}

.cdSep {
	font-size: 1.6rem;
	font-weight: 700;
	color: #333;
	line-height: 1;
	margin-bottom: 14px;
}

.cdUnit {
	font-size: 0.62rem;
	text-transform: uppercase;
	color: #333;
	letter-spacing: 0.5px;
	margin-top: 3px;
}

@media (max-width: 576px) {
	.cdBlock  { min-width: 42px; }
	.cdDigit  { font-size: 1.5rem; }
	.cdSep    { font-size: 1.2rem; }
}

/*=============================================
Galería de producto
=============================================*/

.productGallery {
	user-select: none;
}

.galleryMain {
	position: relative;
	background: #f8f8f8;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	cursor: zoom-in;
}

.galleryMainImg {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	display: block !important;
	transition: opacity 0.22s ease;
}

.galleryMainImg.fading {
	opacity: 0;
}

/* Flechas */
.galleryArrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.88);
	border: none;
	border-radius: 50%;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	opacity: 0;
	transition: opacity 0.2s, background 0.2s;
	color: #333;
}

.galleryMain:hover .galleryArrow {
	opacity: 1;
}

.galleryPrev { left: 10px; }
.galleryNext { right: 10px; }

.galleryArrow:hover {
	background: #fff;
	box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

/* Contador */
.galleryCounter {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0,0,0,0.42);
	color: #fff;
	font-size: 0.72rem;
	padding: 3px 11px;
	border-radius: 20px;
	pointer-events: none;
	letter-spacing: 0.4px;
	white-space: nowrap;
}

/* Botón expandir */
.galleryExpandBtn {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: rgba(255,255,255,0.88);
	border: none;
	border-radius: 6px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	font-size: 0.8rem;
	color: #333;
	opacity: 0;
	transition: opacity 0.2s;
}

.galleryMain:hover .galleryExpandBtn {
	opacity: 1;
}

/* Thumbnails */
.galleryThumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
}

.galleryThumbs::-webkit-scrollbar { height: 4px; }
.galleryThumbs::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.galleryThumb {
	flex: 0 0 72px;
	width: 72px !important;
	height: 72px !important;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color 0.18s, transform 0.15s;
	background: #f0f0f0;
}

.galleryThumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	pointer-events: none;
	display: block !important;
}

.galleryThumb:hover {
	border-color: #aaa;
	transform: translateY(-2px);
}

.galleryThumb.active {
	border-color: #111;
}

/* Lightbox */
.galleryLightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.galleryLightbox.open {
	display: flex;
}

.lightboxBackdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.92);
}

.lightboxImgWrap {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightboxImg {
	max-width: 88vw;
	max-height: 86vh;
	object-fit: contain;
	border-radius: 4px;
	display: block;
	transition: opacity 0.18s ease;
}

.lightboxImg.fading {
	opacity: 0;
}

.lightboxClose {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	background: rgba(255,255,255,0.12);
	border: none;
	color: #fff;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 1.1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.lightboxClose:hover { background: rgba(255,255,255,0.24); }

.lightboxNav {
	position: relative;
	z-index: 2;
	background: rgba(255,255,255,0.12);
	border: none;
	color: #fff;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 1.2rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.2s;
	margin: 0 12px;
}

.lightboxNav:hover { background: rgba(255,255,255,0.24); }

.lightboxCounter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255,255,255,0.65);
	font-size: 0.85rem;
	z-index: 2;
	letter-spacing: 0.5px;
	pointer-events: none;
}

@media (max-width: 576px) {
	.galleryThumb {
		flex: 0 0 58px;
		width: 58px !important;
		height: 58px !important;
	}

	.galleryArrow,
	.galleryExpandBtn {
		opacity: 1;
	}

	.galleryArrow {
		width: 32px;
		height: 32px;
		font-size: 0.85rem;
	}

	.lightboxNav {
		width: 40px;
		height: 40px;
		font-size: 1rem;
		margin: 0 6px;
	}

	.lightboxImg {
		max-width: 94vw;
		max-height: 80vh;
	}
}