/* Product detail, 2026-11-16 redesign. Everything is scoped under .tcd so the old
   theme (style.css, generalMaquetacion.css) doesn't leak in and nothing leaks out. */

.tcd {
	--tcd-blue: #1d4d8b;
	--tcd-blue-dark: #153a6b;
	--tcd-blue-soft: #e8eff8;
	--tcd-cta: #ffc21a;
	--tcd-cta-hover: #f2b200;
	--tcd-cta-ink: #2b2000;
	--tcd-ink: #1c2532;
	--tcd-muted: #5e6b7b;
	--tcd-line: #e2e7ee;
	--tcd-bg: #f3f5f8;
	--tcd-card: #ffffff;
	--tcd-good: #137a4b;
	--tcd-good-soft: #e5f4ec;
	--tcd-bad: #b4372d;
	--tcd-radius: 14px;
	--tcd-shadow: 0 1px 2px rgba(16, 33, 60, .06), 0 8px 24px rgba(16, 33, 60, .08);

	background: var(--tcd-bg);
	color: var(--tcd-ink);
	font-family: "Figtree", "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	padding: 20px 0 48px;
}
.tcd *, .tcd *::before, .tcd *::after { box-sizing: border-box; }
.tcd ul, .tcd ol { list-style: none; margin: 0; padding: 0; }
.tcd p { margin: 0; }
.tcd label, .tcd legend { font-weight: 400; margin: 0; }
.tcd fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tcd button { font-family: inherit; cursor: pointer; }
.tcd img { display: block; max-width: 100%; }
.tcd [hidden], .tcd .tcd-hidden { display: none !important; }

.tcd-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* ---- Header ---------------------------------------------------------------- */
.tcd-head { margin-bottom: 16px; animation: tcd-rise .45s ease both; }
.tcd-dest { color: var(--tcd-blue); font-weight: 600; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.tcd-dest .fa { margin-right: 4px; }
.tcd-title {
	font-family: inherit; font-weight: 700; color: var(--tcd-ink);
	font-size: 30px; line-height: 1.15; letter-spacing: -.015em;
	margin: 6px 0 12px; text-transform: none;
}
.tcd-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tcd-badge {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--tcd-card); border: 1px solid var(--tcd-line);
	color: var(--tcd-muted); font-size: 13px; font-weight: 500;
	padding: 5px 11px; border-radius: 999px;
}
.tcd-badge .fa { color: var(--tcd-blue); }
.tcd-badge--good { background: var(--tcd-good-soft); border-color: transparent; color: var(--tcd-good); }
.tcd-badge--good .fa { color: var(--tcd-good); }

/* ---- Layout: gallery + content on the left, booking box on the right ------- */
.tcd-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	grid-template-areas: "gallery aside" "content aside";
	column-gap: 28px;
	align-items: start;
}
.tcd-gallery-area { grid-area: gallery; position: relative; margin-bottom: 24px; }
.tcd-aside { grid-area: aside; position: sticky; top: 16px; align-self: start; animation: tcd-rise .45s .08s ease both; }
.tcd-content { grid-area: content; min-width: 0; }

/* ---- Gallery ---------------------------------------------------------------- */
.tcd-gallery {
	display: grid; gap: 6px; height: 420px;
	grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr;
	border-radius: var(--tcd-radius); overflow: hidden;
}
.tcd-shot { border: 0; padding: 0; background: #d8dee6; overflow: hidden; position: relative; }
.tcd-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tcd-shot:hover img { transform: scale(1.04); }
.tcd-shot:first-child { grid-row: 1 / span 2; }
.tcd-shot:nth-child(n+6) { display: none; }
.tcd-gallery .tcd-shot:only-child { grid-column: 1 / -1; }
.tcd-gallery:has(.tcd-shot:nth-child(2):last-child) { grid-template-columns: 2fr 1fr; }
.tcd-gallery:has(.tcd-shot:nth-child(2):last-child) .tcd-shot:nth-child(2) { grid-row: 1 / span 2; }
.tcd-gallery:has(.tcd-shot:nth-child(3):last-child) { grid-template-columns: 2fr 1fr; }
.tcd-gallery:has(.tcd-shot:nth-child(4):last-child) .tcd-shot:nth-child(4) { grid-column: 2 / span 2; }
.tcd-gallery-all {
	position: absolute; right: 14px; bottom: 14px;
	background: rgba(255, 255, 255, .95); color: var(--tcd-ink);
	border: 0; border-radius: 999px; padding: 8px 14px;
	font-size: 13px; font-weight: 600; box-shadow: var(--tcd-shadow);
}
.tcd-gallery-all .fa { margin-right: 4px; }
.tcd-gallery-count { display: none; }

/* ---- Booking box -------------------------------------------------------------- */
.tcd-book {
	background: var(--tcd-card); border: 1px solid var(--tcd-line);
	border-radius: var(--tcd-radius); box-shadow: var(--tcd-shadow);
	padding: 20px;
}
@media (min-width: 992px) {
	/* Short screens: the sticky box scrolls inside instead of hiding the button. */
	.tcd-book { max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }
}
.tcd-book-head { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--tcd-line); }
.tcd-from { color: var(--tcd-muted); font-size: 13px; }
.tcd-old { color: var(--tcd-muted); font-size: 13px; text-decoration: line-through; margin-left: 6px; }
.tcd-promo { background: #fde8e6; color: var(--tcd-bad); font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.tcd-from-price strong { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--tcd-ink); }
.tcd-from-price span { color: var(--tcd-muted); font-size: 13px; }

.tcd-field { display: block; margin-bottom: 14px; }
.tcd-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tcd-muted); margin-bottom: 6px; }

.tcd-options { display: grid; gap: 8px; }
.tcd-option {
	display: flex; align-items: center; gap: 10px;
	border: 1.5px solid var(--tcd-line); border-radius: 10px;
	padding: 10px 12px; cursor: pointer; transition: border-color .15s, background .15s;
}
.tcd-option:hover { border-color: #b9c6d6; }
.tcd-option input {
	/* style.css hides radios: draw our own */
	-webkit-appearance: none; appearance: none; opacity: 1 !important; position: static !important;
	flex: none; width: 18px; height: 18px; margin: 0; border-radius: 50%;
	border: 1.5px solid #b9c6d6; background: #fff; display: inline-block !important;
}
.tcd-option input:checked { border: 5px solid var(--tcd-blue); }
.tcd-option:has(input:checked) { border-color: var(--tcd-blue); background: var(--tcd-blue-soft); }
.tcd-option-body { flex: 1; min-width: 0; }
.tcd-option-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.tcd-option-meta { display: block; font-size: 12px; color: var(--tcd-muted); margin-top: 2px; }
.tcd-option-price { font-weight: 700; font-size: 14px; white-space: nowrap; }

.tcd-grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.tcd-input {
	display: flex; align-items: center; gap: 8px;
	border: 1.5px solid var(--tcd-line); border-radius: 10px;
	background: #fff; height: 44px; padding: 0 12px; transition: border-color .15s;
}
.tcd-input:focus-within { border-color: var(--tcd-blue); }
.tcd-input .fa { color: var(--tcd-blue); }
.tcd-input input, .tcd-input select {
	border: 0; outline: 0; background: transparent; width: 100%; height: 100%;
	font: inherit; font-size: 14px; font-weight: 600; color: var(--tcd-ink); padding: 0; cursor: pointer;
	-webkit-appearance: none; appearance: none;
}
.tcd-input select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235e6b7b' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right center; padding-right: 16px; }

.tcd-pax { border: 1.5px solid var(--tcd-line); border-radius: 10px; }
.tcd-pax-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; }
.tcd-pax-row + .tcd-pax-row { border-top: 1px solid var(--tcd-line); }
.tcd-pax-name { font-size: 14px; font-weight: 600; }
.tcd-pax-name small { display: block; font-size: 12px; font-weight: 400; color: var(--tcd-muted); }
.tcd-stepper { display: inline-flex; align-items: center; gap: 10px; }
.tcd-step {
	width: 32px; height: 32px; border-radius: 50%;
	border: 1.5px solid #c9d3df; background: #fff; color: var(--tcd-blue);
	display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
	transition: border-color .15s, background .15s;
}
.tcd-step:hover:not(:disabled) { border-color: var(--tcd-blue); background: var(--tcd-blue-soft); }
.tcd-step:disabled { opacity: .35; cursor: not-allowed; }
.tcd-qty { min-width: 18px; text-align: center; font-weight: 700; font-size: 15px; }

.tcd-note { font-size: 12px; color: var(--tcd-muted); margin-top: 6px; }
.tcd-note--warn { color: var(--tcd-bad); font-size: 14px; }

.tcd-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 0 14px; padding-top: 14px; border-top: 1px dashed var(--tcd-line); }
.tcd-breakdown { font-size: 13px; color: var(--tcd-muted); }
.tcd-total-value { font-size: 22px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }

.tcd-cta {
	display: block; width: 100%; border: 0; border-radius: 12px;
	background: var(--tcd-cta); color: var(--tcd-cta-ink);
	font-size: 16px; font-weight: 700; padding: 14px 18px; letter-spacing: .01em;
	transition: background .15s, transform .1s;
}
.tcd-cta:hover { background: var(--tcd-cta-hover); }
.tcd-cta:active { transform: scale(.99); }
.tcd-cta:disabled { background: #e6e9ee; color: #8b96a3; cursor: not-allowed; }
.tcd-error { margin-top: 10px; font-size: 13px; color: var(--tcd-bad); background: #fdecea; border-radius: 8px; padding: 8px 10px; }
.tcd-secure { margin-top: 12px; text-align: center; font-size: 12px; color: var(--tcd-muted); }
.tcd-secure .fa { color: var(--tcd-good); margin-right: 3px; }

/* ---- Content ------------------------------------------------------------------ */
.tcd-section {
	background: var(--tcd-card); border: 1px solid var(--tcd-line);
	border-radius: var(--tcd-radius); padding: 22px 24px; margin-bottom: 14px;
}
.tcd-h2 { font-family: inherit; font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 12px; color: var(--tcd-ink); text-transform: none; }
.tcd-lead { font-size: 16px; color: var(--tcd-ink); margin-bottom: 10px; }
.tcd-text { color: #374353; }
.tcd-text-icon { color: var(--tcd-blue); }
.tcd-more-body { color: #374353; max-height: 7.8em; overflow: hidden; position: relative; }
.tcd-more-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.tcd-more.is-open .tcd-more-body { max-height: none; }
.tcd-more.is-open .tcd-more-body::after { display: none; }
.tcd-more.is-short .tcd-more-body { max-height: none; }
.tcd-more.is-short .tcd-more-body::after, .tcd-more.is-short .tcd-link { display: none; }
.tcd-link { background: none; border: 0; padding: 0; margin-top: 8px; color: var(--tcd-blue); font-weight: 600; font-size: 14px; }
.tcd-link:hover { text-decoration: underline; }

.tcd-checks li { display: flex; gap: 10px; padding: 5px 0; color: #374353; }
.tcd-checks .fa { color: var(--tcd-good); margin-top: 4px; flex: none; width: 14px; }
.tcd-checks--no .fa { color: var(--tcd-bad); }
.tcd-inout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tcd-inout.is-flash { animation: tcd-flash 1.4s ease; }
@keyframes tcd-flash {
	0%, 35% { border-color: var(--tcd-blue); box-shadow: 0 0 0 4px var(--tcd-blue-soft); }
	100% { border-color: var(--tcd-line); box-shadow: none; }
}

.tcd-timeline { position: relative; counter-reset: tcd-step; }
.tcd-timeline li { position: relative; padding: 0 0 16px 34px; color: #374353; counter-increment: tcd-step; }
.tcd-timeline li::before {
	content: counter(tcd-step); position: absolute; left: 0; top: 1px;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--tcd-blue); color: #fff; font-size: 12px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.tcd-timeline li::after { content: ""; position: absolute; left: 10.5px; top: 26px; bottom: 2px; width: 1px; background: var(--tcd-line); }
.tcd-timeline li:last-child { padding-bottom: 0; }
.tcd-timeline li:last-child::after { display: none; }
.tcd-timeline-time { display: inline-block; font-size: 12px; font-weight: 600; color: var(--tcd-blue); background: var(--tcd-blue-soft); border-radius: 999px; padding: 0 8px; margin-left: 4px; }

.tcd-faq { border-top: 1px solid var(--tcd-line); }
.tcd-faq:last-child { border-bottom: 1px solid var(--tcd-line); }
.tcd-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-weight: 600; }
.tcd-faq summary::-webkit-details-marker { display: none; }
.tcd-faq summary .fa { color: var(--tcd-muted); transition: transform .2s; margin-top: 4px; }
.tcd-faq[open] summary .fa { transform: rotate(180deg); }
.tcd-faq p { padding: 0 0 14px; color: #374353; }

/* ---- Mobile bar ----------------------------------------------------------------- */
.tcd-bar { display: none; }

/* ---- Lightbox -------------------------------------------------------------------- */
.tcd-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 14, 24, .94); display: flex; align-items: center; }
.tcd-lightbox-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.tcd-lightbox-track::-webkit-scrollbar { display: none; }
.tcd-lightbox-track figure { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.tcd-lightbox-track img { max-height: 100%; width: auto; object-fit: contain; border-radius: 8px; }
.tcd-lightbox-close, .tcd-lightbox-nav { position: absolute; z-index: 2; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; }
.tcd-lightbox-close:hover, .tcd-lightbox-nav:hover { background: rgba(255,255,255,.24); }
.tcd-lightbox-close { top: 14px; right: 14px; }
.tcd-lightbox-prev { left: 14px; }
.tcd-lightbox-next { right: 14px; }
.tcd-lightbox-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; }

/* ---- Datepicker (jQuery UI) --------------------------------------------------------- */
#ui-datepicker-div.ui-datepicker {
	font-family: "Figtree", Arial, sans-serif; z-index: 1500 !important;
	padding: 12px; width: 300px; border: 1px solid var(--tcd-line, #e2e7ee);
	border-radius: 14px; box-shadow: 0 12px 32px rgba(16,33,60,.18); background: #fff;
}
#ui-datepicker-div .ui-datepicker-header { background: none; border: 0; padding: 4px 0 8px; }
#ui-datepicker-div .ui-datepicker-title { font-weight: 700; font-size: 15px; color: #1c2532; }
#ui-datepicker-div .ui-datepicker-prev, #ui-datepicker-div .ui-datepicker-next { top: 4px; cursor: pointer; border: 0; background: none; }
#ui-datepicker-div .ui-datepicker-prev-hover, #ui-datepicker-div .ui-datepicker-next-hover { background: #e8eff8; border-radius: 50%; }
#ui-datepicker-div th { font-size: 11px; color: #5e6b7b; font-weight: 600; text-transform: uppercase; }
#ui-datepicker-div td { padding: 2px; }
#ui-datepicker-div td a, #ui-datepicker-div td span {
	text-align: center; border: 0 !important; background: none !important;
	border-radius: 8px; padding: 7px 0; font-weight: 600; color: #1c2532;
}
#ui-datepicker-div td a:hover { background: #e8eff8 !important; color: #1d4d8b; }
#ui-datepicker-div td.ui-state-disabled span { color: #c3cad4; font-weight: 400; }
#ui-datepicker-div td a.ui-state-active { background: #1d4d8b !important; color: #fff !important; }
#ui-datepicker-div td.ui-datepicker-today a { box-shadow: inset 0 0 0 1px #9fb4cf; }

@keyframes tcd-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Tablet / mobile ------------------------------------------------------------------- */
@media (max-width: 991px) {
	.tcd { padding-top: 14px; padding-bottom: 96px; }
	.tcd-title { font-size: 24px; }
	.tcd-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "aside" "content"; }
	.tcd-aside { position: static; margin-bottom: 14px; }

	.tcd-gallery-area { margin: 0 -16px 16px; }
	.tcd-gallery {
		display: flex; height: 280px; gap: 0; border-radius: 0;
		overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	}
	.tcd-gallery::-webkit-scrollbar { display: none; }
	.tcd-shot, .tcd-shot:nth-child(n+6) { display: block; flex: 0 0 100%; scroll-snap-align: start; }
	.tcd-shot:hover img { transform: none; }
	.tcd-gallery-all { display: none; }
	.tcd-gallery-count {
		display: block; position: absolute; right: 12px; bottom: 12px;
		background: rgba(8, 14, 24, .65); color: #fff; font-size: 12px; font-weight: 600;
		border-radius: 999px; padding: 3px 9px;
	}

	.tcd-section { padding: 18px; }
	.tcd-inout { grid-template-columns: 1fr; gap: 8px; }

	.tcd-bar {
		display: flex; align-items: center; justify-content: space-between; gap: 14px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
		background: #fff; border-top: 1px solid var(--tcd-line);
		box-shadow: 0 -6px 20px rgba(16, 33, 60, .1);
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		transition: transform .25s ease;
	}
	.tcd-bar.is-hidden { transform: translateY(110%); }
	.tcd-bar-info { display: flex; flex-direction: column; line-height: 1.2; }
	.tcd-bar-info span { font-size: 12px; color: var(--tcd-muted); }
	.tcd-bar-info strong { font-size: 18px; font-weight: 700; }
	.tcd-bar .tcd-cta { width: auto; padding: 12px 26px; }

	.tcd-lightbox-track figure { padding: 56px 8px; }
	.tcd-lightbox-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.tcd-head, .tcd-aside { animation: none; }
	.tcd-shot img, .tcd-bar { transition: none; }
}

/* ---- Related products (related.php) ------------------------------------------
   Same card as the excursions of buenosairescitybus / glawebsite (.exc-card),
   with turismocity's colors. */
.tcd-related { margin: 34px 0 10px; }
.tcd-related-title { font-size: 22px; margin-bottom: 16px; }
.tcd-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.tcd .exc-card {
	background: var(--tcd-card); border-radius: 12px; overflow: hidden;
	box-shadow: 0 2px 10px rgba(16, 33, 60, .10);
	display: flex; flex-direction: column; height: 100%;
	color: var(--tcd-ink); text-decoration: none;
	transition: box-shadow .25s ease, transform .25s ease;
}
.tcd .exc-card:hover, .tcd .exc-card:focus-visible { box-shadow: 0 10px 28px rgba(16, 33, 60, .18); transform: translateY(-5px); color: var(--tcd-ink); text-decoration: none; }
.tcd .exc-card:focus-visible { outline: 3px solid var(--tcd-blue); outline-offset: 2px; }
.exc-card__img-wrap { position: relative; overflow: hidden; height: 200px; flex-shrink: 0; background: var(--tcd-blue-soft); }
.exc-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.exc-card:hover .exc-card__img { transform: scale(1.07); }
.exc-card__duration, .exc-card__promo {
	position: absolute; font-size: 12px; font-weight: 600; line-height: 1.5;
	padding: 3px 10px; border-radius: 20px; pointer-events: none;
}
.exc-card__duration { bottom: 10px; left: 10px; background: rgba(0, 0, 0, .6); color: #fff; backdrop-filter: blur(4px); }
.exc-card__duration .fa { margin-right: 3px; }
.exc-card__promo { top: 10px; left: 10px; background: var(--tcd-bad); color: #fff; }
.exc-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.tcd .exc-card__title {
	font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none;
	color: var(--tcd-ink); line-height: 1.45; margin: 0 0 14px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.exc-card__footer { display: flex; flex-direction: column; gap: 10px; }
.exc-card__price-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.exc-card__price-from { font-size: 11px; color: var(--tcd-muted); text-transform: uppercase; letter-spacing: .05em; }
.exc-card__price { font-size: 19px; font-weight: 700; color: var(--tcd-ink); }
.exc-card__btn {
	display: block; width: 100%; padding: 10px 14px; border-radius: 8px; text-align: center;
	background: var(--tcd-cta); color: var(--tcd-cta-ink); font-size: 14px; font-weight: 700;
	transition: background .2s ease;
}
.exc-card:hover .exc-card__btn { background: var(--tcd-cta-hover); }

/* Loading placeholders */
@keyframes tcd-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.tcd-skel { background: var(--tcd-card); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(16, 33, 60, .06); padding-bottom: 16px; }
.tcd-skel-img, .tcd-skel-line, .tcd-skel-btn {
	background: linear-gradient(90deg, #eef1f5 25%, #e2e7ee 50%, #eef1f5 75%);
	background-size: 200% 100%; animation: tcd-shimmer 1.4s infinite;
}
.tcd-skel-img { height: 200px; margin-bottom: 14px; }
.tcd-skel-line { height: 12px; border-radius: 4px; margin: 0 16px 10px; }
.tcd-skel-line--short { width: 45%; }
.tcd-skel-btn { height: 40px; border-radius: 8px; margin: 18px 16px 0; }

@media (max-width: 991px) {
	.tcd-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.tcd-related-grid .tcd-skel:nth-child(n+3) { display: none; }
}
@media (max-width: 575px) {
	/* Phones: a swipeable row instead of a long column of cards. */
	.tcd-related-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; gap: 12px; margin: 0 -16px; padding: 4px 16px 14px; }
	.tcd-related-grid > * { flex: 0 0 78%; scroll-snap-align: start; }
	.tcd-related-grid .tcd-skel:nth-child(n+2) { display: none; }
	.exc-card__img-wrap, .tcd-skel-img { height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
	.tcd .exc-card, .exc-card__img, .tcd-skel-img, .tcd-skel-line, .tcd-skel-btn { transition: none; animation: none; }
	.tcd .exc-card:hover { transform: none; }
	.exc-card:hover .exc-card__img { transform: none; }
}

/* ---- Product no longer available (template/detail_gone.php) --------------------- */
.tcd-gone {
	max-width: 620px; margin: 24px auto 0; text-align: center;
	background: var(--tcd-card); border: 1px solid var(--tcd-line); border-radius: var(--tcd-radius);
	padding: 36px 28px; box-shadow: var(--tcd-shadow);
}
.tcd-gone-icon {
	display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
	border-radius: 50%; background: var(--tcd-blue-soft); color: var(--tcd-blue); font-size: 30px; margin-bottom: 10px;
}
.tcd-gone .tcd-title { font-size: 26px; }
.tcd-gone .tcd-text { margin: 0 auto 22px; max-width: 460px; }
.tcd .tcd-gone-cta { display: inline-block; width: auto; padding: 13px 28px; text-decoration: none; }
.tcd .tcd-gone-cta:hover, .tcd .tcd-gone-cta:focus { color: var(--tcd-cta-ink); text-decoration: none; }
.tcd:has(.tcd-gone) { padding-bottom: 40px; }
