/*!
 * TB Kart México — fichas de producto TB26 (2026-11-08)
 * Paleta del sitio y del logo: rojo TB, verde TB, negro, blanco. Tipos del sitio: Rajdhani + Ubuntu.
 * Todo bajo body.tb26.single-product (y .tb26 para la banda/botones).
 */

body.tb26 {
	--tb-red: #ED1D24;      /* rojo del sitio: decoración, franjas */
	--tb-red-ink: #C9151C;  /* rojo para fondos con texto blanco (5.3:1) */
	--tb-green: #009030;    /* verde del logo */
	--tb-black: #000;
	--tb-white: #fff;
	--tb-pit: #F1F1EF;      /* gris de pits: escenario de las fotos */
	--tb-line: #E2E2DE;
	--tb-text: #3A3A3A;
	--tb-muted: #5E5E5E;
	--tb-display: "Rajdhani", "Arial Narrow", sans-serif;
	--tb-body: "Ubuntu", "Segoe UI", sans-serif;
	--tb-r: 14px;
	--tb-ease: cubic-bezier(.16, 1, .3, 1);
}

body.tb26 ::selection { background: var(--tb-red-ink); color: #fff; }

/* ---------- Botones ---------- */
body.tb26 .tb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border: 2px solid transparent;
	border-radius: 8px;
	font-family: var(--tb-display);
	font-weight: 700;
	font-size: 19px;
	line-height: 1;
	letter-spacing: .01em;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s var(--tb-ease), color .2s var(--tb-ease), border-color .2s var(--tb-ease), box-shadow .2s var(--tb-ease);
}
body.tb26 .tb-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
body.tb26 .tb-btn--red, body.tb26 .tb-btn--red:visited { background: var(--tb-red-ink); color: #fff !important; box-shadow: 0 6px 16px rgba(201, 21, 28, .25); }
body.tb26 .tb-btn--red:hover { background: #A80F15; }
body.tb26 .tb-btn--line, body.tb26 .tb-btn--line:visited { background: #fff; color: var(--tb-black) !important; border-color: var(--tb-black); }
body.tb26 .tb-btn--line:hover { background: var(--tb-black); color: #fff !important; }
body.tb26 .tb-btn--white, body.tb26 .tb-btn--white:visited { background: #fff; color: var(--tb-red-ink) !important; }
body.tb26 .tb-btn--white:hover { background: var(--tb-black); color: #fff !important; }
body.tb26 .tb-btn:focus-visible,
body.tb26 .tb-band__link:focus-visible,
body.tb26.single-product .woocommerce-product-gallery__image a:focus-visible,
body.tb26.single-product section.related a:focus-visible {
	outline: 3px solid var(--tb-black);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #fff;
}
body.tb26 .tb-band .tb-btn:focus-visible,
body.tb26 .tb-band__link:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--tb-black); }

/* ---------- Composición: escenario (7) + ficha (5) ---------- */
body.tb26.single-product .mkdf-single-product-content {
	display: grid !important;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 56px;
	align-items: start;
	margin-top: 24px;
}
body.tb26.single-product .mkdf-single-product-content > * {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0;
}
body.tb26.single-product .mkdf-single-product-content::before,
body.tb26.single-product .mkdf-single-product-content::after { display: none; }

/* ---------- Galería: escenario + tira de miniaturas ---------- */
body.tb26.single-product .woocommerce-product-gallery { position: relative; width: auto !important; margin: 0 !important; }
body.tb26.single-product .woocommerce-product-gallery__wrapper {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	width: auto !important;
	margin: 0 !important;
}
body.tb26.single-product .woocommerce-product-gallery__image {
	position: relative;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	border: 0 !important;
	border-radius: 10px;
	background: var(--tb-pit);
	overflow: hidden;
	aspect-ratio: 1;
	transition: box-shadow .25s var(--tb-ease);
}
body.tb26.single-product .woocommerce-product-gallery__image a { display: block; width: 100%; height: 100%; }
body.tb26.single-product .woocommerce-product-gallery__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	padding: 6px;
	opacity: 1 !important;
	transition: transform .5s var(--tb-ease);
}
body.tb26.single-product .woocommerce-product-gallery__image:not(:first-child):hover { box-shadow: inset 0 0 0 2px var(--tb-black); }
body.tb26.single-product .woocommerce-product-gallery__image:not(:first-child):hover img { transform: scale(1.06); }

/* El escenario: primera foto, nombre gigante detrás y franja de colores TB */
body.tb26.single-product .woocommerce-product-gallery__image:first-child {
	grid-column: 1 / -1;
	aspect-ratio: 16 / 11;
	border-radius: var(--tb-r);
	isolation: isolate;
	background:
		radial-gradient(60% 18% at 50% 86%, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0) 70%),
		linear-gradient(180deg, #F7F7F5 0%, var(--tb-pit) 62%, #E7E7E3 100%);
}
body.tb26.single-product .woocommerce-product-gallery__image:first-child::before {
	content: attr(data-model);
	position: absolute;
	left: 4%;
	right: 4%;
	top: 6%;
	z-index: -1;
	font-family: var(--tb-display);
	font-weight: 700;
	font-size: clamp(90px, 14vw, 230px);
	line-height: .8;
	letter-spacing: -.01em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	color: transparent;
	-webkit-text-stroke: 2px rgba(0, 0, 0, .09);
	pointer-events: none;
}
body.tb26.single-product .woocommerce-product-gallery__image:first-child::after {
	content: "";
	position: absolute;
	left: -6%;
	bottom: 9%;
	z-index: -1;
	width: 58%;
	height: 26px;
	transform: skewX(-24deg);
	background: linear-gradient(180deg, var(--tb-red) 0 50%, var(--tb-green) 50% 100%);
	box-shadow: 0 30px 0 -8px rgba(0, 0, 0, .9);
	opacity: .95;
	pointer-events: none;
}
body.tb26.single-product .woocommerce-product-gallery__image:first-child img {
	padding: 7% 7% 9%;
	filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .18));
	animation: tb-roll-in .9s var(--tb-ease) both;
}
body.tb26.single-product .woocommerce-product-gallery__image:first-child:hover img { transform: scale(1.02); }
body.tb26.single-product .woocommerce-product-gallery__trigger { z-index: 3; }
@keyframes tb-roll-in { from { transform: translateX(-36px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Ficha ---------- */
body.tb26.single-product .mkdf-single-product-summary .summary { width: auto !important; float: none !important; margin: 0 !important; }
body.tb26.single-product .mkdf-single-product-title {
	margin: 0 !important;
	font-family: var(--tb-display) !important;
	font-weight: 700 !important;
	font-size: clamp(56px, 6vw, 92px) !important;
	line-height: .86 !important;
	letter-spacing: -.01em !important;
	text-transform: uppercase;
	color: var(--tb-black) !important;
	text-wrap: balance;
}
body.tb26.single-product .mkdf-single-product-title::after {
	content: "";
	display: block;
	width: 84px;
	height: 8px;
	margin-top: 18px;
	transform: skewX(-24deg);
	transform-origin: left;
	background: linear-gradient(90deg, var(--tb-red) 0 62%, var(--tb-green) 62% 100%);
}
body.tb26 .tb-kind {
	margin: 14px 0 0 !important;
	font-family: var(--tb-body);
	font-size: 18px;
	font-weight: 500;
	color: var(--tb-muted);
}
body.tb26.single-product .summary .price:empty,
body.tb26.single-product .ced_hpul_single_summary_wrapper:empty { display: none !important; }
body.tb26.single-product .woocommerce-product-details__short-description {
	margin: 24px 0 0 !important;
	max-width: 60ch;
}
body.tb26.single-product .woocommerce-product-details__short-description p {
	margin: 0 0 12px !important;
	font-family: var(--tb-body);
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 1.65 !important;
	color: var(--tb-text) !important;
}
body.tb26 .tb-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* Equipamiento (filas de WPBakery: ícono + texto) */
body.tb26 .tb-feat-title {
	margin: 44px 0 6px !important;
	font-family: var(--tb-display) !important;
	font-weight: 700 !important;
	font-size: 28px !important;
	line-height: 1 !important;
	text-transform: uppercase;
	color: var(--tb-black) !important;
}
body.tb26.single-product .summary .woocommerce-tabs { margin: 0 !important; padding: 0 !important; border: 0 !important; }
body.tb26.single-product .summary .woocommerce-tabs ul.tabs { display: none !important; }
body.tb26.single-product .summary .woocommerce-Tabs-panel { display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
body.tb26.single-product .summary .woocommerce-Tabs-panel > h2 { display: none !important; }
body.tb26.single-product .summary .wpb-content-wrapper > .vc_row:not(:has(.custom-table-img)):not(:has(iframe[src^="http"])):not(:has(img, p, h1, h2, h3, h4, li)) { display: none !important; }
body.tb26.single-product .summary .wpb_video_widget:not(:has(iframe[src^="http"])) { display: none !important; }
body.tb26.single-product .summary .vc_row:has(.custom-table-img) {
	display: flex !important;
	align-items: center;
	gap: 18px;
	margin: 0 !important;
	padding: 16px 0 !important;
	border-bottom: 1px solid var(--tb-line);
}
body.tb26.single-product .summary .vc_row:has(.custom-table-img)::before,
body.tb26.single-product .summary .vc_row:has(.custom-table-img)::after { display: none; }
body.tb26.single-product .summary .custom-table-img {
	flex: 0 0 64px !important;
	width: 64px !important;
	max-width: 64px !important;
	padding: 0 !important;
}
body.tb26.single-product .summary .custom-table-img .vc_column-inner,
body.tb26.single-product .summary .custom-table-txt .vc_column-inner { padding: 0 !important; }
body.tb26.single-product .summary .custom-table-img .mkdf-single-image-holder,
body.tb26.single-product .summary .custom-table-img .mkdf-si-inner {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 !important;
	border-radius: 12px;
	background: var(--tb-black) !important;
	position: relative;
	overflow: hidden;
}
body.tb26.single-product .summary .custom-table-img .mkdf-si-inner::after {
	content: "";
	position: absolute;
	right: -8px;
	bottom: 6px;
	width: 28px;
	height: 5px;
	transform: skewX(-24deg);
	background: var(--tb-red);
}
body.tb26.single-product .summary .custom-table-img img {
	width: 36px !important;
	height: 36px !important;
	object-fit: contain;
	margin: 0 auto;
}
body.tb26.single-product .summary .custom-table-txt {
	flex: 1 1 auto !important;
	width: auto !important;
	max-width: none !important;
	padding: 0 !important;
}
body.tb26.single-product .summary .custom-table-txt .wpb_content_element { margin: 0 !important; }
body.tb26.single-product .summary .custom-table-txt h3 {
	margin: 0 !important;
	font-family: var(--tb-display) !important;
	font-weight: 700 !important;
	font-size: 23px !important;
	line-height: 1.05 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase;
	color: var(--tb-black) !important;
}
body.tb26.single-product .summary .custom-table-txt p {
	margin: 4px 0 0 !important;
	font-family: var(--tb-body);
	font-size: 15.5px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: var(--tb-text) !important;
}
body.tb26.single-product .summary .custom-table-txt p:empty,
body.tb26.single-product .summary .custom-table-txt p:has(> br:only-child) { display: none; }

/* ---------- Banda de cotización (rojo TB a todo lo ancho) ---------- */
body.tb26 .tb-band {
	position: relative;
	margin: 96px 0 0;
	background: var(--tb-red-ink);
	box-shadow: 0 0 0 100vmax var(--tb-red-ink);
	clip-path: inset(0 -100vmax);
	color: #fff;
	overflow: hidden;
}
body.tb26 .tb-band::before {
	content: "";
	position: absolute;
	right: -40px;
	top: 0;
	bottom: 0;
	width: 220px;
	transform: skewX(-24deg);
	background: linear-gradient(90deg, rgba(0, 0, 0, .22) 0 40%, var(--tb-green) 40% 62%, rgba(0, 0, 0, 0) 62%);
	pointer-events: none;
}
body.tb26 .tb-band__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 32px 64px;
	align-items: center;
	padding: 64px 0;
}
body.tb26 .tb-band__title {
	margin: 0 !important;
	font-family: var(--tb-display);
	font-weight: 700;
	font-size: clamp(36px, 4.2vw, 58px);
	line-height: .95;
	text-transform: uppercase;
	color: #fff !important;
	text-wrap: balance;
}
body.tb26 .tb-band__text { margin: 16px 0 0 !important; max-width: 52ch; font-family: var(--tb-body); font-size: 17px; line-height: 1.6; color: #FFE9E9 !important; }
body.tb26 .tb-band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
body.tb26 .tb-band__link,
body.tb26 .tb-band__link:visited {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: #fff !important;
	font-family: var(--tb-body);
	font-size: 17px;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, .5);
	text-underline-offset: 5px;
}
body.tb26 .tb-band__link:hover { text-decoration-color: #fff; }
body.tb26 .tb-band__link svg { width: 20px; height: 20px; }

/* ---------- Otros modelos ---------- */
body.tb26.single-product section.related { margin-top: 88px !important; }
body.tb26.single-product section.related > h2 {
	margin: 0 0 28px !important;
	font-family: var(--tb-display) !important;
	font-weight: 700 !important;
	font-size: clamp(34px, 3.4vw, 48px) !important;
	line-height: 1 !important;
	text-transform: uppercase;
	color: var(--tb-black) !important;
}
body.tb26.single-product section.related ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	width: auto !important;
	margin: 0 !important;
}
body.tb26.single-product section.related ul.products::before,
body.tb26.single-product section.related ul.products::after { display: none !important; }
body.tb26.single-product section.related li.product {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}
body.tb26.single-product section.related .mkdf-pl-image {
	border-radius: 12px;
	background: linear-gradient(180deg, #F7F7F5, var(--tb-pit));
	overflow: hidden;
	border: 0 !important;
}
body.tb26.single-product section.related .mkdf-pl-image img { padding: 10px; transition: transform .5s var(--tb-ease); }
body.tb26.single-product section.related li.product:hover .mkdf-pl-image img { transform: translateX(6px); }
body.tb26.single-product section.related .mkdf-pl-text,
body.tb26.single-product section.related .mkdf-pl-text-outer { background: transparent !important; }
body.tb26.single-product section.related .mkdf-pl-category,
body.tb26.single-product section.related .mkdf-pl-category a {
	color: var(--tb-muted) !important;
	font-family: var(--tb-body) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
body.tb26.single-product section.related .mkdf-product-list-title,
body.tb26.single-product section.related .mkdf-product-list-title a,
body.tb26.single-product section.related .woocommerce-loop-product__title {
	font-family: var(--tb-display) !important;
	font-weight: 700 !important;
	font-size: 26px !important;
	line-height: 1 !important;
	color: var(--tb-black) !important;
	text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	body.tb26.single-product .mkdf-single-product-content { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	body.tb26.single-product section.related ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.tb26 .tb-band__inner { grid-template-columns: minmax(0, 1fr); padding: 52px 0; }
}
@media (max-width: 600px) {
	body.tb26.single-product .woocommerce-product-gallery__wrapper { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
	body.tb26.single-product .woocommerce-product-gallery__image:first-child { aspect-ratio: 4 / 3; }
	body.tb26.single-product .woocommerce-product-gallery__image:first-child::after { height: 16px; box-shadow: 0 20px 0 -5px rgba(0, 0, 0, .9); }
	body.tb26.single-product .woocommerce-product-gallery__image:first-child::before { -webkit-text-stroke-width: 1.5px; }
	body.tb26 .tb-ctas .tb-btn { width: 100%; }
	body.tb26 .tb-band__actions .tb-btn { width: 100%; }
	body.tb26.single-product section.related ul.products { gap: 12px; }
	body.tb26.single-product section.related .mkdf-product-list-title,
	body.tb26.single-product section.related .mkdf-product-list-title a,
	body.tb26.single-product section.related .woocommerce-loop-product__title { font-size: 21px !important; }
}
@media (prefers-reduced-motion: reduce) {
	body.tb26 *, body.tb26 *::before, body.tb26 *::after { animation: none !important; transition: none !important; }
}

/* Columna del ícono: el CSS viejo le daba fondo #333 y 110 px de alto */
body.tb26.single-product .summary .custom-table-img {
	background: transparent !important;
	min-height: 0 !important;
	height: auto !important;
}
/* Títulos de "Otros modelos": ancho completo, sin cortar palabras */
body.tb26.single-product section.related .mkdf-pl-text-wrapper { display: block !important; width: auto !important; }
body.tb26.single-product section.related .mkdf-product-list-title {
	display: block !important;
	width: 100% !important;
	overflow-wrap: normal !important;
	word-break: normal !important;
	hyphens: none;
	letter-spacing: 0 !important;
}
