/**
 * mod_jshoptabs 2.5.0 — 2026-08-02 — Claude (Anthropic)
 * Оформление цены повторяет шаблон магазина responsive_brooksite_v3.
 */

.jts {
	--jts-accent: #e0353f;
	--jts-border: #e8e8e8;
	--jts-text: #1c1c1c;
	--jts-star-off: #cfcfcf;
	--jts-price-size: 32px;
	--jts-gap: 15px;
	position: relative;
	padding: 40px 0;
	background: transparent;
	box-sizing: border-box;
}

.jts *,
.jts *::before,
.jts *::after { box-sizing: border-box; }

.jts-inner {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Вкладки */

.jts-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-bottom: 26px;
}

.jts-tab {
	appearance: none;
	padding: 13px 22px;
	border: 1px solid transparent;
	border-radius: 3px;
	background: transparent;
	color: var(--jts-accent);
	font: inherit;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.jts-tab:hover { color: var(--jts-text); }

.jts-tab.is-active {
	background: #fff;
	border-color: var(--jts-border);
	color: var(--jts-text);
	cursor: default;
}

.jts-tab:focus-visible {
	outline: 2px solid var(--jts-accent);
	outline-offset: 2px;
}

/* Карусель */

.jts-pane { display: none; }
.jts-pane.is-active { display: block; }

.jts-viewport {
	overflow: hidden;
	margin: 0 calc(var(--jts-gap) / -2);
}

.jts-track {
	display: flex;
	transform: translate3d(0, 0, 0);
	will-change: transform;
}

.jts-item {
	flex: 0 0 auto;
	width: 25%;
	padding: 0 calc(var(--jts-gap) / 2);
}

/* Карточка */

.jts-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	border: 1px solid #ecedf2;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
	transition: box-shadow .28s ease, border-color .28s ease, transform .28s ease;
}

.jts-card:hover {
	border-color: #dcd8f0;
	box-shadow: 0 12px 30px rgba(16, 24, 40, .10);
	transform: translateY(-3px);
}

.jts-thumb {
	display: block;
	overflow: hidden;
	padding: 1px;
}

.jts-thumb img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-style: none;
	vertical-align: middle;
	transition: transform .4s ease;
}

.jts-card:hover .jts-thumb img { transform: scale(1.04); }

.jts-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 15px 15px 13px;
}

.jts-name {
	display: block;
	margin-bottom: 12px;
	color: var(--jts-accent);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	transition: color .2s ease;
	overflow-wrap: anywhere;
}

.jts-name:hover {
	color: var(--jts-text);
	text-decoration: none;
}

.jts-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 6px;
}

/* Цена — по шаблону магазина */

.jts-price {
	display: inline-block;
	line-height: 1;
}

.jts-price > span {
	color: #000;
	font-size: var(--jts-price-size);
	font-style: italic;
	font-weight: bolder;
	line-height: 1;
	white-space: nowrap;
	text-shadow:
		-0.05em -0.04em 0 #fff,
		-0.07em 0.05em 0 #fff,
		0.07em -0.05em 0 #fff,
		0.04em 0.05em 0 #fff,
		0.08em 0.09em 0 #707070,
		-0.04em 0.09em 0.01em #707070;
}

.jts-price i {
	font-size: 85%;
	font-style: italic;
}

/* Звёзды — как в mod_recent_comments */

.jts-rating {
	--jts-star-size: 16px;
	--jts-star-gap: 1px;
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: .5em;
	vertical-align: middle;
	line-height: 1;
}

.jts-rating * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	float: none;
}

.jts-stars {
	display: inline-flex;
	align-items: center;
	gap: var(--jts-star-gap);
}

.jts-star {
	--jts-i: 0;
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: var(--jts-star-size);
	height: var(--jts-star-size);
}

.jts-star__off,
.jts-star__on {
	position: absolute;
	top: 0;
	left: 0;
	height: var(--jts-star-size);
	-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12.00 1.10 L14.79 8.16 L22.37 8.63 L16.52 13.47 L18.41 20.82 L12.00 16.75 L5.59 20.82 L7.48 13.47 L1.63 8.63 L9.21 8.16 Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12.00 1.10 L14.79 8.16 L22.37 8.63 L16.52 13.47 L18.41 20.82 L12.00 16.75 L5.59 20.82 L7.48 13.47 L1.63 8.63 L9.21 8.16 Z'/%3E%3C/svg%3E");
	-webkit-mask-size: var(--jts-star-size) var(--jts-star-size);
	mask-size: var(--jts-star-size) var(--jts-star-size);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: left top;
	mask-position: left top;
}

.jts-star__off {
	width: var(--jts-star-size);
	background-image: linear-gradient(160deg, #eef0f5 0%, #dde1e9 45%, #cbd1db 100%);
}

.jts-star__on {
	background-image:
		radial-gradient(120% 95% at 30% 20%, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .12) 30%, rgba(255, 255, 255, 0) 46%),
		linear-gradient(115deg, #ff5fa6 0%, #ff9f43 10%, #ffdf5e 20%, #78e8a8 32%, #3fc6f0 44%, #5f8bff 56%, #a95fff 68%, #ff6bd0 80%, #ff8fb0 90%, #ff5fa6 100%);
	background-size: 200% 100%, 440% 100%;
	background-position: -40% 0, 0% 0;
	background-repeat: no-repeat;
}

.jts-rating--shine .jts-star__on {
	animation: jts-gem 6s ease-in-out infinite;
	animation-duration: calc(5.2s + var(--jts-i) * 1.1s);
	animation-delay: calc(var(--jts-i) * -1.9s);
}

@keyframes jts-gem {
	0% { background-position: -40% 0, 0% 0; }
	50% { background-position: 140% 0, 100% 0; }
	100% { background-position: -40% 0, 0% 0; }
}

/* Точки */

.jts-dots {
	display: flex;
	justify-content: center;
	gap: 9px;
	margin-top: 26px;
}

.jts-dots:empty { display: none; }

.jts-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cdcdcd;
	cursor: pointer;
	transition: background-color .25s ease;
}

.jts-dot:hover { background: #a8a8a8; }
.jts-dot.is-active { background: #8e8e8e; }

.jts-dot:focus-visible {
	outline: 2px solid var(--jts-accent);
	outline-offset: 3px;
}

/* Адаптив */

@media (max-width: 1199px) {
	.jts-item { width: 33.3333%; }
}

@media (max-width: 991px) {
	.jts-item { width: 50%; }
	.jts { --jts-price-size: 28px; }
}

@media (max-width: 575px) {
	.jts { padding: 28px 0; --jts-price-size: 26px; }
	.jts-item { width: 100%; }
	.jts-tabs { gap: 2px; margin-bottom: 18px; }
	.jts-tab { padding: 10px 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.jts-track,
	.jts-card,
	.jts-thumb img { transition: none !important; }

	.jts-rating--shine .jts-star__on { animation: none; }
}
