/**
 * Homepage Product Tabs styles.
 *
 * Location: /assets/css/frontend/homepage/sections/product-tabs/product-tabs.css
 * Purpose: Product Tabs wrapper matched with On Sale section width and spacing.
 *
 * @package SunTechPortal
 */

.stp-homepage-product-tabs,
.stp-homepage-product-tabs *,
.stp-homepage-product-tabs *::before,
.stp-homepage-product-tabs *::after {
	box-sizing: border-box;
}

.stp-homepage-product-tabs {
	--stp-tabs-section-width: 1300px;
	--stp-tabs-feature-width: 400px;
	--stp-tabs-gap: 28px;
	--stp-tabs-columns: 4;
	--stp-tabs-card-width: 205px;
	--stp-tabs-card-height: 330px;
	--stp-tabs-meta-height: 27px;
	--stp-tabs-media-height: 168px;
	--stp-tabs-body-height: 135px;
	--stp-tabs-title-height: 42px;
	--stp-tabs-summary-height: 28px;
	--stp-tabs-actions-height: 38px;
	--stp-tabs-card-padding: 17px;
	--stp-tabs-image-width: 171px;
	--stp-tabs-feature-height: 660px;
	--stp-tabs-feature-image-height: 300px;
	--stp-tabs-orange: #ff7900;
	--stp-tabs-green: #0f8f3d;
	--stp-tabs-navy: #111827;
	--stp-tabs-blue: #0750ad;
	--stp-tabs-border: #e5e7eb;

	position: relative;
	z-index: 1;
	width: 100%;
	margin: 0;
	padding: 12px 16px;
	overflow: visible;
	isolation: isolate;
}

.stp-homepage-product-tabs__inner {
	position: relative;
	z-index: 1;
	width: min(100%, var(--stp-tabs-section-width));
	max-width: var(--stp-tabs-section-width);
	margin: 0 auto;
	padding: 22px 24px 30px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
	overflow: visible;
}

.stp-homepage-product-tabs__head {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0 0 18px;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--stp-tabs-green);
}

.stp-homepage-product-tabs__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.stp-homepage-product-tabs__nav::-webkit-scrollbar {
	display: none;
}

.stp-homepage-product-tabs__tab {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 118px;
	min-height: 34px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	color: #0f172a;
	cursor: pointer;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.stp-homepage-product-tabs__tab:hover,
.stp-homepage-product-tabs__tab:focus-visible,
.stp-homepage-product-tabs__tab.is-active {
	background: var(--stp-tabs-navy);
	border-color: var(--stp-tabs-navy);
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
	color: #fff;
	outline: 0;
}

.stp-homepage-product-tabs__panels {
	position: relative;
	overflow: visible;
}

.stp-homepage-product-tabs__panel {
	position: relative;
	display: none;
	grid-template-columns: var(--stp-tabs-feature-width) minmax(0, 1fr);
	gap: var(--stp-tabs-gap);
	align-items: start;
	width: 100%;
	max-width: 100%;
	overflow: visible;
}

.stp-homepage-product-tabs__panel.is-active {
	display: grid;
}

.stp-homepage-product-tabs__feature {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	width: var(--stp-tabs-feature-width);
	min-width: var(--stp-tabs-feature-width);
	max-width: var(--stp-tabs-feature-width);
	height: var(--stp-tabs-feature-height);
	min-height: var(--stp-tabs-feature-height);
	max-height: var(--stp-tabs-feature-height);
	margin: 0;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--stp-tabs-orange);
	border-radius: 18px;
	overflow: hidden;
}

.stp-homepage-product-tabs__feature-badges {
	position: absolute;
	z-index: 4;
	top: 18px;
	left: 18px;
	right: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	pointer-events: none;
}

.stp-homepage-product-tabs__feature-badges span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: var(--stp-tabs-green);
	color: #fff;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.stp-homepage-product-tabs__feature-badges span:last-child {
	background: var(--stp-tabs-navy);
}

.stp-homepage-product-tabs__feature-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--stp-tabs-feature-image-height);
	min-height: var(--stp-tabs-feature-image-height);
	max-height: var(--stp-tabs-feature-image-height);
	margin: 34px 0 0;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--stp-tabs-border);
	border-radius: 16px;
	color: #94a3b8;
	text-decoration: none;
	overflow: hidden;
}

.stp-homepage-product-tabs__feature-image img {
	display: block;
	width: 100%;
	max-width: 315px;
	height: 248px;
	max-height: 248px;
	margin: 0 auto;
	object-fit: contain;
	object-position: center;
	transform: none;
}

.stp-homepage-product-tabs__feature-image span {
	font-size: 13px;
	font-weight: 700;
}

.stp-homepage-product-tabs__feature-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	min-height: 0;
	padding: 16px 0 0;
	text-align: left;
	overflow: hidden;
}

.stp-homepage-product-tabs__feature h3 {
	display: -webkit-box;
	width: 100%;
	min-height: 48px;
	max-height: 48px;
	margin: 0;
	overflow: hidden;
	color: var(--stp-tabs-blue);
	font-size: 18px;
	font-weight: 900;
	line-height: 1.34;
	text-align: left;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.stp-homepage-product-tabs__feature h3 a {
	color: inherit;
	text-decoration: none;
	text-underline-offset: 3px;
}

.stp-homepage-product-tabs__feature h3 a:hover,
.stp-homepage-product-tabs__feature h3 a:focus-visible {
	text-decoration: underline;
	outline: 0;
}

.stp-homepage-product-tabs__feature-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 32px;
	margin: 10px 0 0;
}

.stp-homepage-product-tabs__feature-price {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: var(--stp-tabs-green);
	font-size: 22px;
	font-weight: 900;
	letter-spacing: 0.01em;
	line-height: 1;
	text-align: left;
}

.stp-homepage-product-tabs__feature-stock {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 0 14px;
	border-radius: 999px;
	background: #dcfce7;
	color: #15803d;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
}

.stp-homepage-product-tabs__feature-stock--outofstock {
	background: #fff1f2;
	color: #e11d48;
}

.stp-homepage-product-tabs__feature-points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	width: 100%;
	min-height: 58px;
	margin: 12px 0 0;
	padding: 0;
	color: #92400e;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.25;
	list-style: none;
}

.stp-homepage-product-tabs__feature-points li {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	margin: 0;
	padding: 8px 6px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	text-align: center;
}

.stp-homepage-product-tabs__feature-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 44px;
	gap: 10px;
	width: 100%;
	margin-top: auto;
	padding-top: 12px;
}

.stp-homepage-product-tabs__feature-button,
.stp-homepage-product-tabs__feature-fav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	text-decoration: none;
}

.stp-homepage-product-tabs__feature-button {
	background: var(--stp-tabs-orange);
	color: #fff;
}

.stp-homepage-product-tabs__feature-button:hover,
.stp-homepage-product-tabs__feature-button:focus-visible {
	background: var(--stp-tabs-navy);
	color: #fff;
	outline: 0;
}

.stp-homepage-product-tabs__feature-fav {
	background: #fff;
	border: 1px solid var(--stp-tabs-border);
	color: #111827;
	font-size: 24px;
}

.stp-homepage-product-tabs__feature-fav:hover,
.stp-homepage-product-tabs__feature-fav:focus-visible {
	border-color: var(--stp-tabs-orange);
	color: var(--stp-tabs-orange);
	outline: 0;
}

.stp-homepage-product-tabs__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(var(--stp-tabs-columns), max(var(--stp-tabs-card-width), calc(100% / var(--stp-tabs-columns))));
	grid-auto-rows: var(--stp-tabs-card-height);
	align-content: start;
	justify-content: start;
	gap: 0;
	width: 100%;
	min-width: 0;
	height: var(--stp-tabs-feature-height);
	min-height: var(--stp-tabs-feature-height);
	max-height: var(--stp-tabs-feature-height);
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: visible;
	isolation: isolate;
}

.stp-homepage-product-tabs__product {
	position: relative;
	z-index: 1;
	width: max(var(--stp-tabs-card-width), calc(100% / var(--stp-tabs-columns)));
	min-width: max(var(--stp-tabs-card-width), calc(100% / var(--stp-tabs-columns)));
	max-width: max(var(--stp-tabs-card-width), calc(100% / var(--stp-tabs-columns)));
	height: var(--stp-tabs-card-height);
	min-height: var(--stp-tabs-card-height);
	max-height: var(--stp-tabs-card-height);
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: visible;
}

.stp-homepage-product-tabs__product:hover,
.stp-homepage-product-tabs__product:focus-within {
	z-index: 1000;
}

.stp-homepage-product-tabs__product .stp-product-card {
	--stp-product-card-width: var(--stp-tabs-card-width);
	--stp-product-card-height: var(--stp-tabs-card-height);

	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: var(--stp-tabs-meta-height) var(--stp-tabs-media-height) var(--stp-tabs-body-height);
	width: var(--stp-tabs-card-width) !important;
	min-width: var(--stp-tabs-card-width) !important;
	max-width: var(--stp-tabs-card-width) !important;
	height: var(--stp-tabs-card-height) !important;
	min-height: var(--stp-tabs-card-height) !important;
	max-height: var(--stp-tabs-card-height) !important;
	margin: 0 auto !important;
	padding: 0 !important;
	background: #fff;
	border: 0 solid #d1d5db;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	transform: none !important;
	transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

.stp-homepage-product-tabs__product .stp-product-card:hover,
.stp-homepage-product-tabs__product .stp-product-card:focus-within {
	z-index: 1100;
	box-shadow: 0 0 5px rgba(17, 24, 39, 0.3);
	transform: none !important;
}

.stp-homepage-product-tabs__product .stp-product-card__catalog-meta {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	height: var(--stp-tabs-meta-height);
	min-height: var(--stp-tabs-meta-height);
	max-height: var(--stp-tabs-meta-height);
	margin: 0;
	padding: 6px var(--stp-tabs-card-padding) 3px;
	background: #fff;
	overflow: hidden;
}

.stp-homepage-product-tabs__product .stp-product-card__category {
	display: block;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stp-homepage-product-tabs__product .stp-product-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: var(--stp-tabs-media-height) !important;
	min-height: var(--stp-tabs-media-height) !important;
	max-height: var(--stp-tabs-media-height) !important;
	margin: 0;
	padding: 0 var(--stp-tabs-card-padding) !important;
	background: #fff;
	overflow: hidden;
}

.stp-homepage-product-tabs__product .stp-product-card__media-link {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 100% !important;
	padding: 0 var(--stp-tabs-card-padding);
	color: inherit;
	text-decoration: none;
	overflow: hidden;
}

.stp-homepage-product-tabs__product .stp-product-card__image,
.stp-homepage-product-tabs__product .stp-product-card__media-link .stp-product-card__image,
.stp-homepage-product-tabs__product img.stp-product-card__image {
	display: block;
	width: var(--stp-tabs-image-width) !important;
	min-width: var(--stp-tabs-image-width) !important;
	max-width: var(--stp-tabs-image-width) !important;
	height: var(--stp-tabs-media-height) !important;
	min-height: var(--stp-tabs-media-height) !important;
	max-height: var(--stp-tabs-media-height) !important;
	margin: 0 auto !important;
	object-fit: contain !important;
	object-position: center;
	transform: none !important;
	transition: none !important;
}

.stp-homepage-product-tabs__product .stp-product-card:hover .stp-product-card__image,
.stp-homepage-product-tabs__product .stp-product-card:focus-within .stp-product-card__image,
.stp-homepage-product-tabs__product .stp-product-card:hover img.stp-product-card__image,
.stp-homepage-product-tabs__product .stp-product-card:focus-within img.stp-product-card__image {
	width: var(--stp-tabs-image-width) !important;
	min-width: var(--stp-tabs-image-width) !important;
	max-width: var(--stp-tabs-image-width) !important;
	height: var(--stp-tabs-media-height) !important;
	min-height: var(--stp-tabs-media-height) !important;
	max-height: var(--stp-tabs-media-height) !important;
	transform: none !important;
}

.stp-homepage-product-tabs__product .stp-product-card__image-placeholder,
.stp-homepage-product-tabs__product .stp-product-card__media-link .stp-product-card__image-placeholder {
	width: var(--stp-tabs-image-width) !important;
	min-width: var(--stp-tabs-image-width) !important;
	max-width: var(--stp-tabs-image-width) !important;
	height: var(--stp-tabs-media-height) !important;
	min-height: var(--stp-tabs-media-height) !important;
	max-height: var(--stp-tabs-media-height) !important;
}

.stp-homepage-product-tabs__product .stp-product-card__quick-view {
	top: calc(50% - 54px);
	left: 50%;
	min-width: 112px;
	min-height: 36px;
	padding: 8px 13px;
	font-size: 12px;
	transform: translate(-50%, 8px) scale(0.96);
}

.stp-homepage-product-tabs__product .stp-product-card__media:hover .stp-product-card__quick-view {
	transform: translate(-50%, 0) scale(1);
}

.stp-homepage-product-tabs__product .stp-product-card__compare {
	top: calc(50% + 18px);
	left: 50%;
	width: 42px;
	height: 42px;
	min-height: 42px;
	transform: translate(-50%, -50%) scale(0.94);
}

.stp-homepage-product-tabs__product .stp-product-card__media:hover .stp-product-card__compare {
	transform: translate(-50%, -50%) scale(1);
}

.stp-homepage-product-tabs__product .stp-product-card__body {
	display: grid;
	grid-template-rows: var(--stp-tabs-title-height) var(--stp-tabs-summary-height) var(--stp-tabs-actions-height);
	gap: 6px;
	width: 100%;
	min-width: 0;
	height: var(--stp-tabs-body-height);
	min-height: var(--stp-tabs-body-height);
	max-height: var(--stp-tabs-body-height);
	margin: 0;
	padding: 4px var(--stp-tabs-card-padding) 10px;
	background: #fff;
	overflow: visible;
}

.stp-homepage-product-tabs__product .stp-product-card__title {
	height: var(--stp-tabs-title-height);
	min-height: var(--stp-tabs-title-height);
	max-height: var(--stp-tabs-title-height);
	margin: 0;
	overflow: hidden;
}

.stp-homepage-product-tabs__product .stp-product-card__summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) max-content;
	align-items: center;
	height: var(--stp-tabs-summary-height);
	min-height: var(--stp-tabs-summary-height);
	max-height: var(--stp-tabs-summary-height);
	margin: 0;
	overflow: hidden;
}

.stp-homepage-product-tabs__product .stp-product-card__actions {
	display: grid;
	grid-template-columns: 38px 36px;
	align-items: center;
	justify-content: space-between;
	height: var(--stp-tabs-actions-height);
	min-height: var(--stp-tabs-actions-height);
	max-height: var(--stp-tabs-actions-height);
	margin: 0;
	overflow: visible;
}

@media (max-width: 1280px) {
	.stp-homepage-product-tabs__inner {
		overflow-x: auto;
		overflow-y: visible;
		scroll-behavior: smooth;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.stp-homepage-product-tabs__panel {
		width: calc(var(--stp-tabs-feature-width) + var(--stp-tabs-gap) + (var(--stp-tabs-card-width) * var(--stp-tabs-columns)));
		min-width: calc(var(--stp-tabs-feature-width) + var(--stp-tabs-gap) + (var(--stp-tabs-card-width) * var(--stp-tabs-columns)));
		max-width: none;
		grid-template-columns: var(--stp-tabs-feature-width) calc(var(--stp-tabs-card-width) * var(--stp-tabs-columns));
	}

	.stp-homepage-product-tabs__grid {
		grid-template-columns: repeat(var(--stp-tabs-columns), var(--stp-tabs-card-width));
		width: calc(var(--stp-tabs-card-width) * var(--stp-tabs-columns));
		min-width: calc(var(--stp-tabs-card-width) * var(--stp-tabs-columns));
	}

	.stp-homepage-product-tabs__product {
		width: var(--stp-tabs-card-width);
		min-width: var(--stp-tabs-card-width);
		max-width: var(--stp-tabs-card-width);
	}
}

@media (max-width: 1024px) {
	.stp-homepage-product-tabs {
		padding: 10px 12px;
	}

	.stp-homepage-product-tabs__inner {
		padding: 18px 16px 24px;
		border-radius: 16px;
		overflow: visible;
	}

	.stp-homepage-product-tabs__head {
		justify-content: flex-start;
		margin-bottom: 14px;
		padding-bottom: 14px;
	}

	.stp-homepage-product-tabs__nav {
		justify-content: flex-start;
		width: 100%;
	}

	.stp-homepage-product-tabs__panel.is-active {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		overflow: visible;
	}

	.stp-homepage-product-tabs__feature {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.stp-homepage-product-tabs__grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-auto-rows: auto;
		gap: 12px;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		height: auto;
		min-height: 0;
		max-height: none;
		overflow: visible;
	}

	.stp-homepage-product-tabs__product {
		width: auto;
		min-width: 0;
		max-width: none;
		height: auto;
		min-height: 0;
		max-height: none;
		overflow: visible;
	}

	.stp-homepage-product-tabs__product .stp-product-card {
		--stp-product-card-width: 100%;
		--stp-product-card-height: 300px;
		--stp-tabs-card-width: 100%;
		--stp-tabs-card-height: 300px;
		--stp-tabs-meta-height: 24px;
		--stp-tabs-media-height: 145px;
		--stp-tabs-body-height: 131px;
		--stp-tabs-title-height: 40px;
		--stp-tabs-summary-height: 26px;
		--stp-tabs-actions-height: 36px;
		--stp-tabs-card-padding: 12px;
		--stp-tabs-image-width: 100%;

		grid-template-rows: var(--stp-tabs-meta-height) var(--stp-tabs-media-height) var(--stp-tabs-body-height);
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		height: var(--stp-tabs-card-height) !important;
		min-height: var(--stp-tabs-card-height) !important;
		max-height: var(--stp-tabs-card-height) !important;
		border: 1px solid #eef2f7;
		border-radius: 12px;
		overflow: hidden;
	}

	.stp-homepage-product-tabs__product .stp-product-card:hover,
	.stp-homepage-product-tabs__product .stp-product-card:focus-within {
		box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
	}

	.stp-homepage-product-tabs__product .stp-product-card__catalog-meta {
		padding: 6px var(--stp-tabs-card-padding) 2px;
	}

	.stp-homepage-product-tabs__product .stp-product-card__media {
		padding: 0 var(--stp-tabs-card-padding) !important;
	}

	.stp-homepage-product-tabs__product .stp-product-card__image,
	.stp-homepage-product-tabs__product .stp-product-card__media-link .stp-product-card__image,
	.stp-homepage-product-tabs__product img.stp-product-card__image {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}

	.stp-homepage-product-tabs__product .stp-product-card__body {
		grid-template-rows: var(--stp-tabs-title-height) var(--stp-tabs-summary-height) var(--stp-tabs-actions-height);
		gap: 6px;
		padding: 4px var(--stp-tabs-card-padding) 10px;
		overflow: hidden;
	}

	.stp-homepage-product-tabs__product .stp-product-card__title {
		font-size: 13px;
		line-height: 1.4;
	}

	.stp-homepage-product-tabs__product .stp-product-card__price {
		font-size: 12px;
	}

	.stp-homepage-product-tabs__product .stp-product-card__rating {
		font-size: 9px;
	}

	.stp-homepage-product-tabs__product .stp-product-card__actions {
		grid-template-columns: 34px 34px;
		height: var(--stp-tabs-actions-height);
		min-height: var(--stp-tabs-actions-height);
		max-height: var(--stp-tabs-actions-height);
	}

	.stp-homepage-product-tabs__product .stp-product-card__wishlist,
	.stp-homepage-product-tabs__product .stp-product-card__button {
		width: 34px;
		height: 34px;
		min-height: 34px;
	}
}

@media (max-width: 782px) {
	.stp-homepage-product-tabs__inner {
		padding: 16px 12px 22px;
	}

	.stp-homepage-product-tabs__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.stp-homepage-product-tabs__product .stp-product-card {
		--stp-product-card-height: 268px;
		--stp-tabs-card-height: 268px;
		--stp-tabs-meta-height: 22px;
		--stp-tabs-media-height: 124px;
		--stp-tabs-body-height: 122px;
		--stp-tabs-title-height: 40px;
		--stp-tabs-summary-height: 24px;
		--stp-tabs-actions-height: 34px;
		--stp-tabs-card-padding: 10px;
	}

	.stp-homepage-product-tabs__product .stp-product-card__category {
		font-size: 10px;
	}

	.stp-homepage-product-tabs__product .stp-product-card__title {
		font-size: 12px;
		line-height: 1.35;
	}

	.stp-homepage-product-tabs__product .stp-product-card__summary {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.stp-homepage-product-tabs__product .stp-product-card__rating {
		display: none;
	}
}

@media (max-width: 380px) {
	.stp-homepage-product-tabs__product .stp-product-card {
		--stp-product-card-height: 252px;
		--stp-tabs-card-height: 252px;
		--stp-tabs-media-height: 112px;
		--stp-tabs-body-height: 118px;
	}

	.stp-homepage-product-tabs__product .stp-product-card__title {
		font-size: 11px;
	}
}

/*
 * Zoom and viewport containment fix.
 * Keeps Product Tabs cards inside the section at browser zoom levels and narrow desktop widths.
 */
.stp-homepage-product-tabs {
	max-width: 100%;
	overflow-x: clip;
}

.stp-homepage-product-tabs__inner,
.stp-homepage-product-tabs__panels,
.stp-homepage-product-tabs__panel,
.stp-homepage-product-tabs__grid,
.stp-homepage-product-tabs__product {
	max-width: 100%;
	min-width: 0;
}

@media (max-width: 1280px) {
	.stp-homepage-product-tabs__inner {
		overflow-x: clip !important;
		overflow-y: visible !important;
		scroll-snap-type: none !important;
	}

	.stp-homepage-product-tabs__panel,
	.stp-homepage-product-tabs__panel.is-active {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		grid-template-columns: minmax(280px, min(100%, var(--stp-tabs-feature-width))) minmax(0, 1fr) !important;
		overflow: visible !important;
	}

	.stp-homepage-product-tabs__grid {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--stp-tabs-card-width)), 1fr)) !important;
		grid-auto-rows: var(--stp-tabs-card-height) !important;
		align-items: start !important;
		justify-items: center !important;
		overflow: visible !important;
	}

	.stp-homepage-product-tabs__product {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}

	.stp-homepage-product-tabs__product .stp-product-card {
		width: min(100%, var(--stp-tabs-card-width)) !important;
		min-width: 0 !important;
		max-width: var(--stp-tabs-card-width) !important;
	}

	.stp-homepage-product-tabs__product .stp-product-card__image,
	.stp-homepage-product-tabs__product .stp-product-card__media-link .stp-product-card__image,
	.stp-homepage-product-tabs__product img.stp-product-card__image {
		width: min(100%, var(--stp-tabs-image-width)) !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}
}

@media (max-width: 1120px) {
	.stp-homepage-product-tabs__panel,
	.stp-homepage-product-tabs__panel.is-active {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 16px !important;
	}

	.stp-homepage-product-tabs__feature {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
	}
}
