.tpg-product-tabs-carousel,
.tpg-product-tabs-carousel * { box-sizing: border-box; }

.tpg-product-tabs-carousel { width: 100%; max-width: 100%; background: transparent; }
.tpg-carousel-panel[hidden] { display: none !important; }
.tpg-carousel-panel { position: relative; width: 100%; background: transparent; }

.tpg-products-viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	cursor: grab;
	outline: none;
	background: transparent;
	touch-action: pan-y pinch-zoom;
	-webkit-user-select: none;
	user-select: none;
}

.tpg-products-viewport.is-dragging { cursor: grabbing; }

.tpg-products-track {
	display: flex;
	align-items: stretch;
	gap: var(--tpg-gap, 24px);
	width: max-content;
	min-width: 100%;
	background: transparent;
	will-change: transform;
	transform: translate3d(0,0,0);
}

.tpg-product-slide { flex: 0 0 auto; display: flex; height: auto; min-width: 0; }
.tpg-product-slide.tpg-clone { pointer-events: auto; }

.tpg-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #f5f7ff;
	border: 1px solid #5b8cff;
	border-radius: 16px;
	padding: 24px;
	text-align: center;
	cursor: pointer;
}

.tpg-product-image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 280px;
	margin: 0 0 20px;
	text-decoration: none;
	overflow: hidden;
}

.tpg-product-image-wrap img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
	margin: 0 auto;
	pointer-events: none;
	-webkit-user-drag: none;
	user-drag: none;
}

.tpg-product-card-content { display: flex; flex: 1 1 auto; flex-direction: column; align-items: inherit; justify-content: flex-start; min-width: 0; }
.tpg-product-title { margin: 0 0 14px; padding: 0; font-size: 18px; font-weight: 700; line-height: 1.25; }
.tpg-product-title a { color: #111; text-decoration: none; }
.tpg-product-price { margin: 0 0 14px; line-height: 1.3; }
.tpg-product-price ins { text-decoration: none; }
.tpg-product-rating { display: flex; justify-content: inherit; margin: 0 0 14px; }

.tpg-product-rating .star-rating { position: relative; display: inline-block; width: 5.4em; height: 1em; margin: 0; overflow: hidden; font-family: star; font-size: 14px; line-height: 1; }
.tpg-product-rating .star-rating::before { position: absolute; top: 0; left: 0; content: "sssss"; color: #d3ced2; }
.tpg-product-rating .star-rating span { position: absolute; top: 0; left: 0; height: 1em; overflow: hidden; padding-top: 1.5em; }
.tpg-product-rating .star-rating span::before { position: absolute; top: 0; left: 0; content: "SSSSS"; color: #ffb800; }

.tpg-product-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	margin-top: auto;
	padding: 12px 34px;
	background: #000;
	color: #fff;
	border: 0 solid transparent;
	border-radius: 0;
	font-size: 15px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.tpg-product-button:hover,
.tpg-product-button:focus { color: #fff; text-decoration: none; }

.tpg-sale-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	background: #111;
	color: #fff;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .04em;
}

.tpg-carousel-arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	transform: translateY(-50%);
	border: 1px solid rgba(0,0,0,.15);
	border-radius: 50%;
	background: #fff;
	color: #111;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(0,0,0,.08);
	transition: opacity .2s ease, transform .2s ease, background-color .2s ease, color .2s ease;
}
.tpg-carousel-prev { left: 8px; }
.tpg-carousel-next { right: 8px; }
.tpg-carousel-arrow svg { display: block; width: 20px; height: 20px; }
.tpg-carousel-arrow:hover:not(:disabled) { transform: translateY(-50%) scale(1.04); }
.tpg-carousel-arrow:disabled { opacity: .35; cursor: not-allowed; }

.tpg-carousel-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}
.tpg-carousel-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: #c7c7c7;
	cursor: pointer;
	transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
}
.tpg-carousel-dot.is-active { background: #111; transform: scale(1.25); }
.tpg-carousel-dot:focus-visible,
.tpg-carousel-arrow:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.tpg-empty-message,
.tpg-editor-message { width: 100%; padding: 18px 20px; border: 1px dashed #c6c6c6; border-radius: 8px; font-size: 13px; line-height: 1.5; text-align: center; }

@media (max-width: 767px) {
	.tpg-product-card { padding: 18px; }
	.tpg-product-image-wrap { height: 220px; }
}

.tpg-external-tab-trigger { cursor: pointer; }
.tpg-external-tab-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
