/*
 * Narrow compatibility layer between the Tropicanna homepage pattern and
 * Glozin. Every rule is homepage-section scoped; WooCommerce pages are not
 * changed here.
 */

.tc-home .tc-hero img,
.tc-home .tc-hero video {
	border-radius: 0;
}

.tc-home .tc-hero__media video {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	object-fit: cover;
	object-position: center;
	filter: saturate(1.16) contrast(1.07) brightness(1.13);
}

.tc-home .tc-hero__poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.tc-home .tc-hero__media {
	width: 82%;
	max-width: none !important;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 10%, rgba(0, 0, 0, 0.82) 30%, #000 44%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 10%, rgba(0, 0, 0, 0.82) 30%, #000 44%);
}

.tc-home .tc-hero__title {
	width: max-content;
	max-width: none;
	padding-right: 0.14em;
	overflow: visible;
	background: linear-gradient(145deg, #ff6c5d, var(--color-pink) 72%);
	-webkit-background-clip: text;
	background-clip: text;
	color: #ff5f70;
	-webkit-text-fill-color: transparent;
}

.tc-home .tc-hero__title span {
	display: block;
	white-space: nowrap;
}

.tc-home .tc-button--primary .wp-block-button__link,
.tc-home .tc-button--primary .wp-block-button__link:visited {
	color: var(--color-white);
}

.tc-home .tc-button--text .wp-block-button__link,
.tc-home .tc-button--text .wp-block-button__link:visited {
	color: var(--color-cyan);
}

.tc-home .tc-section-title,
.tc-home .tc-experience-card__copy h3,
.tc-home .tc-guide-card__copy h3,
.tc-home .tc-support-strip h2 {
	font-family: var(--highlight-font-family);
}

.tc-home .tc-section-title {
	font-size: clamp(2.25rem, 3.4vw, 3.25rem);
	font-stretch: 100%;
	font-style: italic;
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.04;
}

.tc-home .tc-experiences .tc-section-title,
.tc-home .tc-guide .tc-section-title {
	color: var(--color-white);
}

.tc-home .tc-guide .tc-section-title {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	text-align: center;
}

.tc-home .tc-club-banner__benefits {
	display: grid;
	gap: 0.75rem;
	margin: 1.75rem 0 2rem;
}

.tc-home .tc-club-banner__benefits > div {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	gap: 0.85rem;
	align-items: center;
	padding: 0.8rem 0;
	border-bottom: 1px solid rgba(255, 250, 244, 0.12);
}

.tc-home .tc-club-banner__benefits img {
	width: 1.45rem;
	height: 1.45rem;
}

.tc-home .tc-club-banner__benefits p {
	display: grid;
	gap: 0.16rem;
	max-width: none;
	margin: 0;
	font-size: 0.9rem;
}

.tc-home .tc-club-banner__benefits strong {
	color: var(--color-white);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tc-home .tc-club-banner__benefits span {
	color: rgba(255, 250, 244, 0.66);
}

.tc-home .tc-experiences .tc-section-title,
.tc-home .tc-experience-grid {
	width: 100%;
	max-width: none;
	margin-left: auto;
	margin-right: auto;
}

.tc-home .tc-experience-grid {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tc-home .tc-experience-grid > .tc-experience-card {
	margin-block-start: 0;
}

.tc-home .tc-experience-card {
	height: 300px;
}

.tc-home .tc-experience-card__copy h3 {
	font-size: 1.05rem;
	overflow-wrap: normal;
	word-break: normal;
}

.tc-home .tc-collection ul.products {
	list-style: none;
}

.tc-home .tc-collection .woocommerce {
	width: var(--shell-width);
	max-width: var(--shell-width);
	margin-left: auto;
	margin-right: auto;
}

.tc-home .tc-category-links {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 48px;
}

.tc-home .tc-category-card,
.tc-home .tc-category-card:visited {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 88px;
	padding: 10px 10px 10px 20px;
	color: var(--color-ink);
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid var(--line-dark);
	border-radius: 12px;
	box-shadow: 0 3px 0 rgba(16, 5, 31, 0.12);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.tc-home .tc-category-card img {
	width: 80px;
	height: 68px;
	margin: 0;
	object-fit: contain;
	background: rgba(238, 233, 246, 0.9);
	border: 0;
	border-radius: 10px;
}

.tc-home .tc-category-card.is-active,
.tc-home .tc-category-card:hover,
.tc-home .tc-category-card:focus-visible {
	color: var(--color-white);
	background: var(--color-ink);
	border-color: var(--color-ink);
	box-shadow: 0 3px 0 var(--color-coral);
}

.tc-home .tc-collection ul.products > li.product {
	min-width: 0;
	align-items: stretch;
}

.tc-home .tc-collection ul.products > li.product .product-inner {
	height: 100%;
	width: 100%;
	align-items: stretch;
	display: flex;
	flex-direction: column;
}

.tc-home .tc-collection ul.products > li.product .product-thumbnail,
.tc-home .tc-collection ul.products > li.product .product-thumbnail > a {
	display: block;
	min-width: 100%;
	width: 100%;
}

.tc-home .tc-collection ul.products > li.product .product-summary {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tc-home .tc-collection ul.products > li.product .product-summary .button {
	margin-top: auto;
}

.tc-home .tc-collection .woocommerce-loop-product__title {
	margin-bottom: 0;
}

.tc-home .tc-collection .glozin-rating {
	margin-top: 0;
}

.tc-home .tc-collection ul.products li.product .price ins,
.tc-home .tc-collection ul.products li.product .price ins bdi {
	color: var(--color-violet);
	text-decoration: none;
}

.tc-home .tc-collection ul.products li.product .price del,
.tc-home .tc-collection ul.products li.product .price del bdi {
	color: rgba(16, 5, 31, 0.68);
}

.tc-home .tc-guide-grid--dynamic .tc-guide-card__image {
	display: block;
	height: 13.75rem;
	margin: 0;
	overflow: hidden;
}

.tc-home .tc-guide-grid--dynamic .tc-guide-card__image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
	transform: none;
}

.tc-home .tc-guide-card__copy h3 a,
.tc-home .tc-guide-card__copy h3 a:visited {
	color: var(--color-coral);
}

.tc-home .tc-guide-grid--dynamic .tc-guide-card__copy h3 {
	font-size: 1.15rem;
	overflow-wrap: normal;
	word-break: normal;
}

.tc-home .tc-guide-card__more {
	display: inline-flex;
	margin-top: 1rem;
	color: var(--color-cyan);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tc-home .tc-support-strip__inner {
	display: grid;
	grid-template-columns: 1fr repeat(3, 0.5fr);
	gap: 0;
	min-height: 9.375rem;
}

.tc-home .tc-support-strip__inner h2 {
	margin: 0;
	font-size: 2.25rem;
}

.tc-home .tc-support-strip__inner p {
	height: 4.0625rem;
	margin: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.tc-home .tc-support-strip__inner a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	height: 100%;
}

.tc-home .tc-support-strip__inner img {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
}

/* Guide: use the same homepage shell as the hero and collection, with a tighter rhythm. */
.tc-home .tc-guide {
	padding-top: clamp(3.5rem, 4vw, 4.5rem);
	padding-bottom: clamp(3.5rem, 4vw, 4.5rem);
}

.tc-home .tc-guide > .alignwide {
	width: var(--shell-width);
	max-width: var(--shell-width);
	margin-left: auto;
	margin-right: auto;
}

.tc-home .tc-guide-grid {
	width: 100%;
	max-width: none;
	margin-top: 1.5rem;
}

.tc-home .tc-guide-grid--dynamic .tc-guide-card__image {
	height: auto;
	aspect-ratio: 16 / 9;
}

.tc-home .tc-guide-card__copy {
	padding: 1.25rem;
}

/* FAQ: keep the native Details blocks, but give the section a stronger visual anchor. */
.tc-home .tc-faq {
	background: var(--color-lilac);
	padding-top: clamp(4rem, 5vw, 5.25rem);
	padding-bottom: clamp(4rem, 5vw, 5.25rem);
}

.tc-home .tc-faq__layout {
	align-items: stretch;
}

.tc-home .tc-faq__intro {
	display: flex;
	flex-direction: column;
}

.tc-home .tc-faq__image {
	position: relative;
	min-height: 0;
	margin: 1.5rem 0 0;
	overflow: hidden;
	border: 1px solid rgba(16, 5, 31, 0.28);
	border-radius: 18px;
	box-shadow: 0 8px 0 rgba(16, 5, 31, 0.1);
}

.tc-home .tc-faq__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.tc-home .tc-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	border-top: 0;
}

.tc-home .tc-faq__list details {
	margin: 0;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(16, 5, 31, 0.22);
	border-radius: 12px;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.tc-home .tc-faq__list details[open] {
	background: var(--color-white);
	border-color: var(--color-violet);
}

.tc-home .tc-faq__list summary {
	padding: 0.95rem 1.25rem;
	font-size: 1rem;
}

.tc-home .tc-faq__list details p {
	padding: 0 1.25rem 1rem;
}

@media (max-width: 55rem) {
	.tc-home .tc-hero__media {
		width: 100%;
		height: 57%;
		top: 4.5rem;
		right: 0;
		bottom: auto;
		left: 0;
		-webkit-mask-image: linear-gradient(#000 0%, #000 68%, transparent 100%);
		mask-image: linear-gradient(#000 0%, #000 68%, transparent 100%);
	}

	.tc-home .tc-hero__title {
		width: auto;
		max-width: calc(100vw - 2rem);
		font-size: clamp(2.25rem, 11.2vw, 3.25rem);
	}

	.tc-home .tc-hero__media video {
		object-position: 50% center;
		filter: saturate(1.08) contrast(1.04) brightness(1.1);
	}

	.tc-home .tc-category-links {
		grid-template-columns: repeat(6, minmax(170px, 1fr));
		padding-bottom: 8px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
	}

	.tc-home .tc-experience-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tc-home .tc-experience-card {
		height: 300px;
	}

	.tc-home .tc-category-card {
		scroll-snap-align: start;
	}

	.tc-home .tc-support-strip__inner {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding-block: 1.625rem;
	}

	.tc-home .tc-support-strip__inner h2 {
		grid-column: 1 / -1;
		margin-bottom: 1.375rem;
		text-align: center;
	}

	.tc-home .tc-support-strip__inner p:first-of-type {
		border-left: 0;
	}

	.tc-home .tc-faq__image {
		max-width: 36rem;
	}
}

@media (max-width: 30rem) {
	.tc-home .tc-support-strip__inner a {
		flex-direction: column;
		gap: 0.4rem;
		font-size: 0.7rem;
	}

	.tc-home .tc-section-title {
		font-size: 2.15rem;
	}

	.tc-home .tc-experience-card {
		height: 245px;
	}
}
