/* Botón de cotizar de la ficha de producto. */

.antidote-quote {
	margin: 24px 0 8px;
}

.antidote-quote__btn.button,
.antidote-quote__btn.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 420px;
	min-height: 54px;
	padding: 0 28px;
	border: 0;
	border-radius: 4px;
	/* WoodMart pinta sus botones con variables propias y gana por orden de
	   carga, así que el color va con !important sobre la propiedad. */
	background-color: #111 !important;
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: none;
	transition: background-color .18s ease;
}

.antidote-quote__btn.button:hover,
.antidote-quote__btn.button.alt:hover {
	background-color: #333 !important;
	color: #fff !important;
}

.antidote-quote__icon {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
}

.antidote-quote__note {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.5;
	opacity: .7;
}

.antidote-quote-warning {
	padding: 12px 16px;
	border-left: 3px solid #b32d2e;
	background: #fcf0f1;
	font-size: 14px;
}

@media (max-width: 768px) {
	.antidote-quote__btn.button,
	.antidote-quote__btn.button.alt {
		max-width: none;
	}
}

/* Marca sobre el nombre del producto. */

.antidote-pdp-brand {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.2;
}

.antidote-pdp-brand a,
.antidote-pdp-brand a:hover,
.antidote-pdp-brand a:focus {
	color: inherit;
	/* El tema subraya los enlaces del contenido: hay que forzarlo. */
	text-decoration: none !important;
	opacity: .75;
}

.antidote-pdp-brand a:hover {
	opacity: 1;
}


/* Bloque de servicio de la ficha: la acción (guía de tallas) arriba, separada
   por una línea, y debajo la lista de condiciones. Todo con una sola escala de
   grises para que no convivan dos criterios. */

.antidote-pdp-extra {
	margin-top: 18px;
}

.antidote-service[hidden] {
	display: none;
}

.antidote-service {
	--antidote-line: rgba(0, 0, 0, .12);
	--antidote-soft: rgba(0, 0, 0, .58);
}

.antidote-pdp-aside {
	display: flex;
}

/* El tema estiliza cualquier <button> con fondo y padding: hay que
   desactivarlo pieza por pieza o sale como una caja gris descuadrada. */
.antidote-sizes__open,
.antidote-sizes__open:hover,
.antidote-sizes__open:focus {
	display: flex !important;
	align-items: center;
	gap: 12px !important;
	width: 100% !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 13px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid var(--antidote-line) !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: inherit !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 24px !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-align: left !important;
	cursor: pointer;
}

.antidote-sizes__open span {
	flex: 1 1 auto;
	text-align: left !important;
}

/* La flecha indica que abre algo, y se desplaza un poco al pasar el cursor. */
.antidote-sizes__open .antidote-pdp-icon:last-child {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	opacity: .4;
	transition: transform .16s ease, opacity .16s ease;
}

.antidote-sizes__open:hover .antidote-pdp-icon:last-child {
	transform: translateX(3px);
	opacity: .8;
}

/* Lista de condiciones. */

.antidote-service__list {
	margin: 0;
	padding: 16px 0 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.antidote-service__row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
}

.antidote-service__text {
	display: block;
	line-height: 1.45;
}

.antidote-service__title {
	display: block;
	font-size: 14px;
	font-weight: 500;
}

.antidote-service__note {
	display: block;
	margin-top: 1px;
	font-size: 13px;
	color: var(--antidote-soft);
}

.antidote-pdp-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	margin-top: 2px;
	opacity: .8;
}

/* Las cajas de servicio del layout de WoodMart se retiran: sus textos
   duplicaban los de arriba y traían su propio «Ver más» y su propio gris. */
.single-product .wd-info-box {
	display: none !important;
}

/* Guía de tallas nativa: se oculta su disparador de abajo, porque el nuestro
   (que le reenvía el clic) ya está junto al bloque de compra. */

body.antidote-has-sizeguide .tab-title-custom-tabs-size-guide {
	display: none !important;
}

/* Cuotas sin intereses. */

.antidote-msi {
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 3px;
}

.antidote-msi__line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}

.antidote-msi__line strong {
	font-weight: 600;
}

.antidote-msi__amount {
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -.01em;
}

.antidote-msi__amount .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.antidote-msi__badge {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .55;
}

.antidote-msi__banks {
	margin: 9px 0 0;
	padding-top: 9px;
	border-top: 1px solid rgba(0, 0, 0, .08);
	font-size: 12px;
	line-height: 1.5;
	opacity: .6;
}

.antidote-msi__banks span {
	letter-spacing: .01em;
}

/* Carrusel de productos.
   Proporciones tomadas de la referencia que pasó el usuario: título grande en
   versalitas a la izquierda, flechas a la derecha, tarjetas anchas con la foto
   sobre fondo claro, y una barra de progreso fina bajo el carril. */

.antidote-carousel {
	--antidote-gap: 24px;
	max-width: 1600px;
	margin: 72px auto;
	padding: 0 40px;
}

.antidote-carousel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.antidote-carousel__title {
	margin: 0;
	font-size: clamp(24px, 3vw, 38px);
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.05;
	text-transform: uppercase;
}

.antidote-carousel__nav {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
}

.antidote-carousel__arrow {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 42px !important;
	height: 42px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(0, 0, 0, .18) !important;
	border-radius: 50% !important;
	background: none !important;
	color: inherit !important;
	cursor: pointer;
	transition: border-color .16s ease, background-color .16s ease;
}

.antidote-carousel__arrow:hover {
	border-color: currentColor !important;
	background: rgba(0, 0, 0, .05) !important;
}

.antidote-carousel__arrow svg {
	width: 18px;
	height: 18px;
}

.antidote-carousel__track {
	display: flex;
	gap: var(--antidote-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.antidote-carousel__track::-webkit-scrollbar {
	display: none;
}

.antidote-card {
	flex: 0 0 clamp(240px, 25vw, 340px);
	scroll-snap-align: start;
}

.antidote-card__link,
.antidote-card__link:hover,
.antidote-card__link:focus,
.antidote-card__link * {
	/* El carrusel puede vivir dentro del contenido de la página, y ahí el tema
	   subraya todos los enlaces. Hay que desactivarlo con !important. */
	text-decoration: none !important;
}

.antidote-card__link {
	display: block;
	color: inherit;
}

.antidote-card__media {
	position: relative;
	display: block;
	margin-bottom: 18px;
	background: #efedea;
	overflow: hidden;
}

.antidote-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: cover;
	transition: transform .5s ease;
}

.antidote-card__link:hover .antidote-card__media img {
	transform: scale(1.045);
}

/* Etiqueta configurable por producto («Último stock»…). Minimalista: pastilla
   blanca sobre la foto, sin color de alarma. */
.antidote-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 6px 11px;
	background: #fff;
	color: #1a1a1a;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .13em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.antidote-card__brand {
	display: block;
	margin-bottom: 5px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, .5);
}

.antidote-card__name {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	/* Los nombres son largos: se cortan a dos líneas para que todas las
	   tarjetas midan lo mismo. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.antidote-card__price {
	display: block;
	font-size: 15px;
	font-weight: 600;
}

.antidote-card__price .woocommerce-Price-amount {
	color: inherit;
}

/* Barra de progreso. */

.antidote-carousel__progress {
	position: relative;
	height: 2px;
	margin-top: 28px;
	background: rgba(0, 0, 0, .1);
}

.antidote-carousel__progress-bar {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 25%;
	background: #1a1a1a;
	transition: transform .15s linear, width .15s linear;
}

@media (max-width: 1024px) {
	.antidote-carousel {
		padding: 0 24px;
	}
}

@media (max-width: 768px) {
	.antidote-carousel {
		--antidote-gap: 14px;
		margin: 48px auto;
		padding: 0 18px;
	}

	.antidote-carousel__head {
		margin-bottom: 20px;
	}

	.antidote-carousel__nav {
		display: none; /* En móvil se desliza con el dedo. */
	}

	.antidote-card {
		flex: 0 0 68vw;
	}

	.antidote-carousel__progress {
		margin-top: 20px;
	}
}

/* Migas de pan: fuera en la ficha de producto. */

.single-product .wd-breadcrumbs,
.single-product .woocommerce-breadcrumb,
.single-product .wd-el-breadcrumbs {
	display: none !important;
}

/* Logo del pie: el hueco de la demo traía height="24" fijo (era un wordmark
   muy apaisado). El logo de Antidote es 4:1, así que se libera la altura para
   que no salga aplastado. */

img[src*="antidotepe"][height="24"] {
	height: auto !important;
	max-width: 200px;
}
