/*
 * Страница товара (woocommerce/content-single-product.php), блоки по БЭМ:
 * product-page, buy-bar, breadcrumbs, stars, includes, shots, specs, product-review, faq, buy-box, doc-link.
 * Переменные — assets/css/base.css и components.css.
 */
/* ---------- buy-bar: fixed bottom bar ---------- */
.buy-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 50;
	border-top: 1px solid var(--c-gray-200);
	background: var(--c-white);
	box-shadow: var(--shadow-2xl);
	animation: buy-bar-in 0.3s ease;
}

@keyframes buy-bar-in {
	from {
		transform: translateY(100%);
	}
}

.buy-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.buy-bar__product {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.buy-bar__thumb {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 10px;
	background-image: linear-gradient(to bottom right in oklab, var(--c-gray-100), var(--c-gray-200));
}

.buy-bar__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.buy-bar__info {
	min-width: 0;
}

.buy-bar__title {
	margin: 0;
	overflow: hidden;
	color: var(--c-gray-900);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.buy-bar__price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.buy-bar__price {
	color: var(--c-gray-900);
	font-size: 24px;
	font-weight: 700;
	line-height: 32px;
}

.buy-bar__domain {
	color: var(--c-gray-500);
	font-size: 14px;
	line-height: 20px;
}

.buy-bar__actions {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 12px;
}

.buy-bar__demo {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border: 1px solid var(--c-gray-300);
	border-radius: 14px;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s var(--ease);
}

.buy-bar__demo:hover {
	background: var(--c-gray-50);
}

.buy-bar__buy {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 32px;
	border-radius: 14px;
	background-image: var(--g-accent);
	color: var(--c-white);
	font-weight: 600;
	text-decoration: none;
	transition: all 0.15s var(--ease);
}

.buy-bar__buy:hover {
	opacity: 0.9;
	box-shadow: var(--shadow-lg);
}

.buy-bar__icon {
	width: 20px;
	height: 20px;
}

/* ---------- product-page layout ---------- */
.product-page__inner {
	padding-top: 48px;
	padding-bottom: 48px;
}

.product-page__layout {
	display: grid;
	gap: 48px;
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
	margin-bottom: 32px;
}

.breadcrumbs__list {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	color: var(--c-gray-600);
	font-size: 14px;
	line-height: 20px;
	list-style: none;
}

.breadcrumbs__link {
	color: inherit;
	text-decoration: none;
}

.breadcrumbs__link:hover {
	color: var(--c-purple-600);
}

.breadcrumbs__current {
	color: var(--c-gray-900);
}

/* ---------- head of the product ---------- */
.product-page__head {
	margin-bottom: 48px;
}

.product-page__badge {
	display: inline-block;
	margin: 0 0 12px;
	padding: 4px 12px;
	border-radius: 999px;
	color: var(--c-white);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.product-page__badge--hit {
	background: var(--c-red-500);
}

.product-page__badge--new {
	background: var(--c-green-500);
}

.product-page__badge--best {
	background: var(--c-violet-500);
}

.product-page__title {
	margin: 0 0 16px;
	color: var(--c-gray-900);
	font-size: 36px;
	font-weight: 700;
	line-height: 40px;
}

.product-page__lead {
	margin: 0 0 40px;
	color: var(--c-gray-600);
	font-size: 20px;
	line-height: 28px;
}

.product-page__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	margin-bottom: 32px;
}

.product-page__rating,
.product-page__sales {
	display: flex;
	align-items: center;
	gap: 8px;
}

.product-page__rating-value {
	color: var(--c-gray-900);
	font-weight: 600;
}

.product-page__rating-count,
.product-page__sales {
	color: var(--c-gray-600);
}

.product-page__sales-icon {
	width: 20px;
	height: 20px;
}

.product-page__cover {
	margin: 0 0 32px;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: var(--shadow-2xl);
}

.product-page__cover-image {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- stars ---------- */
.stars {
	display: flex;
	align-items: center;
	gap: 4px;
}

.stars--sm {
	flex-shrink: 0;
}

.stars__star {
	width: 20px;
	height: 20px;
	fill: var(--c-amber-400);
}

.stars--sm .stars__star {
	width: 16px;
	height: 16px;
}

.stars__star--empty {
	fill: var(--c-gray-200);
}

/* ---------- sections of the main column ---------- */
.product-page__section {
	margin-bottom: 48px;
}

.product-page__heading {
	margin: 0 0 24px;
	color: var(--c-gray-900);
	font-size: 30px;
	font-weight: 700;
	line-height: 36px;
}

.product-page__content {
	padding: 32px;
	border: 1px solid var(--c-gray-200);
	border-radius: 16px;
	background: var(--c-white);
	color: var(--c-gray-700);
}

/* «Что входит в шаблон» */
.includes {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.includes__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--c-gray-200);
	border-radius: 14px;
	background: var(--c-white);
}

.includes__check {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-top: 2px;
	border-radius: 999px;
	background-image: linear-gradient(to right, #684dff, #4928d1);
	color: var(--c-white);
}

.includes__check-icon {
	width: 16px;
	height: 16px;
}

.includes__text {
	color: var(--c-gray-700);
}

/* Screenshots */
.shots {
	display: grid;
	gap: 16px;
}

.shots__item {
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--c-gray-200);
	border-radius: 14px;
	background: var(--c-gray-100);
	cursor: pointer;
	transition: box-shadow 0.15s var(--ease);
}

.shots__item:hover {
	box-shadow: var(--shadow-xl);
}

.shots__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s var(--ease);
}

.shots__image:hover {
	transform: scale(1.05);
}

/* ---------- specs ---------- */
.specs {
	overflow: hidden;
	border: 1px solid var(--c-gray-200);
	border-radius: 16px;
	background: var(--c-white);
}

.specs__pair {
	display: grid;
}

.specs__pair > .specs__item:first-child {
	border-bottom: 1px solid var(--c-gray-200);
}

.specs__item {
	padding: 24px;
}

.specs__item--row {
	border-top: 1px solid var(--c-gray-200);
}

.specs__name {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	color: var(--c-gray-900);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
}

.specs__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--c-purple-600);
}

.specs__value {
	margin: 0;
	color: var(--c-gray-600);
}

.specs__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.specs__tag {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--c-violet-100);
	color: var(--c-emerald-700);
	font-size: 14px;
	line-height: 20px;
}

/* ---------- product-review (reviews filled in the product fields) ---------- */
:where(.product-reviews > :not(:last-child)) {
	margin-bottom: 24px;
}

.product-review {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 24px;
	border: 1px solid var(--c-gray-200);
	border-radius: 16px;
	background: var(--c-white);
}

.product-review__avatar {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	object-fit: cover;
}

.product-review__body {
	flex: 1 1 0%;
	min-width: 0;
}

.product-review__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.product-review__name {
	margin: 0;
	color: var(--c-gray-900);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

.product-review__date {
	margin: 0;
	color: var(--c-gray-600);
	font-size: 14px;
	line-height: 20px;
}

.product-review__text {
	margin: 0;
	color: var(--c-gray-700);
}

/* ---------- faq ---------- */
:where(.faq > :not(:last-child)) {
	margin-bottom: 12px;
}

.faq__item {
	overflow: hidden;
	border: 1px solid var(--c-gray-200);
	border-radius: 14px;
	background: var(--c-white);
}

.faq__question {
	margin: 0;
}

.faq__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 20px 24px;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s var(--ease);
}

.faq__toggle:hover {
	background: var(--c-gray-50);
}

.faq__text {
	padding-right: 16px;
	color: var(--c-gray-900);
	font-weight: 600;
}

.faq__chevron {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--c-gray-600);
}

.faq__toggle[aria-expanded="true"] .faq__chevron {
	transform: rotate(180deg);
}

.faq__answer {
	padding: 0 24px 20px;
	color: var(--c-gray-600);
}

/* ---------- buy-box (right column) ---------- */
.product-page__aside .buy-box {
	position: sticky;
	top: 96px;
}

.buy-box {
	padding: 24px;
	border: 1px solid var(--c-gray-200);
	border-radius: 16px;
	background: var(--c-white);
	box-shadow: var(--shadow-lg);
}

.buy-box__purchase {
	margin-bottom: 24px;
}

.buy-box__heading {
	margin: 0 0 16px;
	color: var(--c-gray-900);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
}

.buy-box__stack {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

:where(.buy-box__summary > :not(:last-child)) {
	margin-bottom: 16px;
}

.buy-box__demo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 16px 24px;
	border: 2px solid var(--c-gray-300);
	border-radius: 14px;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s var(--ease);
}

.buy-box__demo:hover {
	background: var(--c-gray-50);
}

.buy-box__demo-icon {
	width: 20px;
	height: 20px;
}

.buy-box__perks {
	margin: 0;
	padding: 24px 0 0;
	border-top: 1px solid var(--c-gray-200);
	list-style: none;
}

.buy-box__perk {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--c-gray-700);
	font-size: 14px;
	line-height: 20px;
}

.buy-box__perk + .buy-box__perk {
	margin-top: 12px;
}

.buy-box__perk-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--c-green-500);
}

.buy-box__block {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--c-gray-200);
}

.buy-box__subheading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	color: var(--c-gray-900);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

.buy-box__accent-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--c-purple-600);
}

.buy-box__help-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	color: var(--c-gray-900);
	font-weight: 600;
}

.buy-box__help-text {
	margin: 0 0 12px;
	color: var(--c-gray-600);
	font-size: 14px;
	line-height: 20px;
}

.buy-box__help-link {
	color: var(--c-purple-600);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
}

.buy-box__help-link:hover {
	text-decoration: underline;
}

/* ---------- doc-link (documentation and changelog) ---------- */
:where(.doc-links > :not(:last-child)) {
	margin-bottom: 8px;
}

.doc-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--c-hairline);
	border-radius: 14px;
	color: inherit;
	text-decoration: none;
	transition: all 0.15s var(--ease);
}

.doc-link--docs {
	border-color: var(--c-blue-200);
}

.doc-link__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	color: var(--c-white);
	transition: transform 0.15s var(--ease);
}

.doc-link--docs .doc-link__icon {
	background-image: linear-gradient(to bottom right in oklab, var(--c-blue-500), var(--c-cyan-500));
}

.doc-link--changelog .doc-link__icon {
	background-image: linear-gradient(to bottom right in oklab, var(--c-purple-500), var(--c-pink-500));
}

.doc-link:hover .doc-link__icon {
	transform: scale(1.1);
}

.doc-link__svg {
	width: 20px;
	height: 20px;
}

.doc-link__text {
	flex: 1 1 0%;
	min-width: 0;
}

.doc-link__title {
	display: block;
	color: var(--c-gray-900);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.doc-link__sub {
	display: block;
	color: var(--c-gray-600);
	font-size: 12px;
	line-height: 16px;
}

/* «Домены можно менять в любое время» under the license cards (functions.php) */
.variation-tip {
	margin: 16px 0 8px;
	padding: 12px;
	border: 1px solid var(--c-blue-200);
	border-radius: 10px;
	background: oklch(0.97 0.014 254.604);
}

.variation-tip__text {
	margin: 0;
	color: oklch(0.424 0.199 265.638);
	font-size: 14px;
	line-height: 20px;
}

/* ---------- breakpoints ---------- */
@media (min-width: 768px) {
	.buy-bar__demo {
		display: flex;
	}

	.product-page__title {
		font-size: 48px;
		line-height: 48px;
	}

	.includes,
	.shots,
	.specs__pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.specs__pair > .specs__item:first-child {
		border-right: 1px solid var(--c-gray-200);
		border-bottom: 0;
	}
}

@media (min-width: 1024px) {
	.product-page__layout {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.product-page__main {
		grid-column: span 2 / span 2;
	}

	.product-page__aside {
		grid-column: span 1 / span 1;
	}
}

/* ---------- license-card (inc/gambling-license-variations.php) ---------- */
.license-cards {
	margin-bottom: 16px;
}

:where(.license-cards > :not(:last-child)) {
	margin-bottom: 8px;
}

.gw-variation-license-row > td.value {
	padding: 0;
}

.license-card {
	position: relative;
	display: block;
	cursor: pointer;
}

.license-card__input {
	position: absolute;
	inset: 0;
	z-index: 10;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.license-card__box {
	position: relative;
	display: block;
	width: 100%;
	padding: 16px;
	border: 2px solid var(--c-gray-200);
	border-radius: 14px;
	background: var(--c-white);
	text-align: left;
	transition: all 0.15s var(--ease);
}

.license-card:hover .license-card__box {
	border-color: var(--c-gray-300);
}

.license-card__input:checked + .license-card__box {
	border-color: var(--c-violet-500);
	background: oklch(0.969 0.016 293.756);
}

.license-card__input:focus-visible + .license-card__box {
	outline: 2px solid var(--c-violet-500);
	outline-offset: 2px;
}

.license-card__popular {
	position: absolute;
	top: -8px;
	right: 16px;
	padding: 4px 8px;
	border-radius: 999px;
	background-image: linear-gradient(to right in oklab, oklch(0.596 0.145 163.225) 0%, oklch(0.627 0.194 149.214) 50%, oklch(0.6 0.118 184.704) 100%);
	color: var(--c-white);
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	pointer-events: none;
}

.license-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.license-card__title {
	display: block;
	margin-bottom: 4px;
	color: var(--c-gray-900);
	font-weight: 600;
}

.license-card__sub {
	display: block;
	color: var(--c-gray-600);
	font-size: 14px;
	line-height: 20px;
}

.license-card__price {
	flex-shrink: 0;
	color: var(--c-gray-900);
	font-size: 24px;
	font-weight: 700;
	line-height: 32px;
}

/* ---------- buy-button («Купить сейчас» in the WooCommerce forms) ---------- */
.buy-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 16px 24px;
	border: 0;
	border-radius: 14px;
	background-image: var(--g-accent);
	color: var(--c-white);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s var(--ease);
}

.buy-button:hover {
	opacity: 0.9;
	box-shadow: var(--shadow-lg);
}

.buy-button__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

/* Simple product: the single license shown as a chosen card (functions.php) */
.simple-license {
	margin-bottom: 16px;
}

.license-card__box--static {
	border-color: var(--c-violet-500);
	background: oklch(0.969 0.016 293.756);
	pointer-events: none;
	user-select: none;
}

.buy-button {
	text-decoration: none;
}
