/**
 * YopShop — фронтенд.
 * Использует переменные темы, но работает и без них.
 */

.yop-catalog {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 22px;
}

.yop-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .12));
	border-radius: var(--yp-radius, 18px);
	background: var(--yp-glass, rgba(255, 255, 255, .04));
	overflow: hidden;
	transition: transform .25s, border-color .25s;
}

.yop-card:hover { transform: translateY(-3px); border-color: var(--yp-line, rgba(232, 194, 90, .35)) }

.yop-card__media { display: block; aspect-ratio: 16 / 10; background: rgba(0, 0, 0, .3); overflow: hidden }
.yop-card__media img { width: 100%; height: 100%; object-fit: cover; display: block }
.yop-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(120% 90% at 25% 15%, rgba(232, 194, 90, .22), transparent 60%),
		linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .35));
	color: rgba(232, 194, 90, .75);
	font-size: 42px;
	font-weight: 800;
	letter-spacing: .04em;
}

.yop-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1 }

.yop-card__title { margin: 0; font-size: 18px; line-height: 1.3 }
.yop-card__title a { color: var(--yp-cream, #f6f1e4); text-decoration: none }
.yop-card__title a:hover { color: var(--yp-accent, #e8c25a) }

.yop-card__excerpt { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--yp-muted, #94aca0) }

.yop-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }

.yop-price { display: flex; align-items: baseline; gap: 6px; font-size: 15px }
.yop-price s { color: var(--yp-muted, #94aca0); font-size: 13px }
.yop-price strong { font-size: 20px; color: var(--yp-cream, #f6f1e4) }

.yop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border: 0;
	border-radius: 12px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: filter .2s, background .2s, border-color .2s, color .2s;
}

/*
 * Тема сайта задаёт цвет ссылок правилом .yp-page-body a:not(...) с большей
 * специфичностью, из-за чего текст кнопки сливался с золотым фоном.
 */
a.yop-btn,
.yop-btn {
	text-decoration: none !important;
}

a.yop-btn--gold,
.yop-btn--gold {
	color: #14201a !important;
	text-decoration: none !important;
}

a.yop-btn--ghost,
.yop-btn--ghost {
	color: var(--yp-text, #eaf3ee) !important;
	text-decoration: none !important;
}

.yop-btn--gold {
	color: #14201a;
	background: linear-gradient(135deg, #f6e2a4, var(--yp-accent, #e8c25a) 55%, var(--yp-accent-2, #c9862a));
	box-shadow: 0 12px 26px -16px rgba(232, 194, 90, .9);
}

.yop-btn--gold:hover { filter: brightness(1.06) }

.yop-btn--ghost {
	color: var(--yp-text, #eaf3ee);
	background: rgba(255, 255, 255, .05);
	border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .12));
}

.yop-btn--ghost:hover { border-color: var(--yp-accent, #e8c25a) }
.yop-btn--wide { width: 100% }
.yop-btn--sm { padding: 8px 12px; font-size: 13.5px; border-radius: 10px }

.yop-table { width: 100%; border-collapse: collapse; font-size: 15px }
.yop-table th, .yop-table td { padding: 12px 10px; border-bottom: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .1)); text-align: left; vertical-align: middle }
.yop-table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--yp-muted, #94aca0) }
.yop-table .yop-right { text-align: right }
.yop-table code { font-size: 14px; color: var(--yp-accent, #e8c25a) }

.yop-cart__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px }
.yop-cart__total { font-size: 17px }
.yop-cart__total strong { font-size: 22px; color: var(--yp-cream, #f6f1e4) }

.yop-qty { width: 72px; padding: 8px 10px; text-align: center }

.yop-remove { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--yp-muted, #94aca0); text-decoration: none; font-size: 18px }
.yop-remove:hover { color: #fff; background: rgba(239, 111, 99, .2) }

.yop-empty { display: grid; gap: 14px; justify-items: start; padding: 26px; border: 1px dashed var(--yp-line-soft, rgba(255, 255, 255, .15)); border-radius: 16px }

.yop-form { display: grid; gap: 14px; max-width: 640px }
.yop-field { display: grid; gap: 6px; font-size: 14px }
.yop-field > span { color: var(--yp-muted, #94aca0) }

.yop-form input[type="text"],
.yop-form input[type="email"],
.yop-form input[type="tel"],
.yop-form input[type="password"],
.yop-form input[type="number"],
.yop-form select,
.yop-form textarea,
.yop-table input[type="number"] {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--yp-text, #eaf3ee);
	background: rgba(0, 0, 0, .3);
	border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .12));
	border-radius: 12px;
	outline: none;
}

.yop-form input:focus,
.yop-form select:focus,
.yop-form textarea:focus { border-color: var(--yp-accent, #e8c25a); box-shadow: 0 0 0 4px rgba(232, 194, 90, .14) }

/* Клавиатурный фокус: рамку не убираем, иначе навигация с Tab не видна */
.yop-btn:focus-visible,
.yop-cart-link:focus-visible,
.yop-tabs__link:focus-visible,
.yop-remove:focus-visible,
.yop-link:focus-visible,
.yop-card__title a:focus-visible,
.yop-form input:focus-visible,
.yop-form select:focus-visible,
.yop-form textarea:focus-visible,
.yop-qty:focus-visible {
	outline: 2px solid var(--yp-accent, #e8c25a);
	outline-offset: 2px;
}

/* Системная настройка «меньше движения» */
@media (prefers-reduced-motion: reduce) {
	.yop-card,
	.yop-btn,
	.yop-cart-link { transition: none }
	.yop-card:hover { transform: none }
}

.yop-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px }

.yop-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start }
.yop-panel { padding: 20px 22px; border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .12)); border-radius: var(--yp-radius, 18px); background: var(--yp-glass, rgba(255, 255, 255, .04)) }
.yop-panel h2, .yop-panel h3 { margin-top: 0 }

.yop-note { margin: 14px 0; padding: 14px 16px; border-left: 2px solid var(--yp-accent, #e8c25a); background: rgba(232, 194, 90, .06); border-radius: 0 10px 10px 0; font-size: 14.5px }

.yop-msg { margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; font-size: 14.5px }
.yop-msg--ok { color: #0e2018; background: #a9e6c0 }
.yop-msg--err { color: #fff; background: rgba(239, 111, 99, .22); border: 1px solid rgba(239, 111, 99, .4) }

.yop-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .12)) }
.yop-tabs__link { padding: 10px 14px; border-radius: 10px 10px 0 0; color: var(--yp-muted, #94aca0) !important; text-decoration: none !important; font-weight: 600; font-size: 14.5px }
.yop-tabs__link:hover { color: var(--yp-cream, #f6f1e4) !important }
.yop-tabs__link.is-active { color: #14201a !important; background: var(--yp-accent, #e8c25a) }

.yop-profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px }
.yop-avatar { border-radius: 50%; display: block }

.yop-status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700 }
.yop-status--pending { color: #3a2a06; background: #f3d78a }
.yop-status--paid { color: #0e2018; background: #a9e6c0 }
.yop-status--cancelled { color: #fff; background: rgba(239, 111, 99, .85) }
.yop-status--refunded { color: #fff; background: rgba(127, 200, 255, .8) }

.yop-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px }
.yop-stat { padding: 16px 18px; border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .12)); border-radius: 14px; background: var(--yp-glass, rgba(255, 255, 255, .04)); display: grid; gap: 4px }
.yop-stat span { font-size: 12.5px; color: var(--yp-muted, #94aca0) }
.yop-stat strong { font-size: 22px; color: var(--yp-cream, #f6f1e4) }

.yop-copy { display: flex; gap: 8px; margin: 10px 0 }
.yop-copy input { flex: 1; padding: 11px 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .12)); border-radius: 10px; color: var(--yp-text, #eaf3ee); font: inherit; font-size: 14px }

.yop-license { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .12)); border-radius: 12px; display: grid; gap: 4px }
.yop-license code { font-size: 16px; color: var(--yp-accent, #e8c25a) }

.yop-buybox { display: grid; gap: 12px; margin: 26px 0 0; padding: 20px; border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .12)); border-radius: var(--yp-radius, 18px); background: var(--yp-glass, rgba(255, 255, 255, .04)) }
.yop-buybox__price { display: flex; align-items: baseline; gap: 10px; font-size: 15px }
.yop-buybox__price strong { font-size: 28px; color: var(--yp-cream, #f6f1e4) }

.yop-muted { color: var(--yp-muted, #94aca0); font-size: 14px }
.yop-link { color: var(--yp-accent, #e8c25a) }

.yop-log { padding: 16px; border-radius: 12px; background: #0d1714; color: #cfe0d6; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-x: auto }

@media (max-width: 900px) {
	.yop-checkout { grid-template-columns: 1fr }
}

@media (max-width: 640px) {
	.yop-table thead { display: none }
	.yop-table tr { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .1)) }
	.yop-table td { border: 0; padding: 2px 0 }
	.yop-cart__foot { justify-content: stretch }
	.yop-cart__foot .yop-btn { flex: 1 1 100% }

	/* Сводка заказа: строка «товар — цена», без рамок вокруг каждой ячейки */
	.yop-checkout__summary .yop-table tr {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		gap: 12px;
		padding: 10px 0;
		border-bottom: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .1));
	}
	.yop-checkout__summary .yop-table td { display: block; border: 0; padding: 0 }
	.yop-checkout__summary .yop-table td:first-child { flex: 1 1 auto }
	.yop-checkout__summary .yop-table td:last-child { flex: 0 0 auto; width: auto !important; min-width: 0; white-space: nowrap; text-align: right }
	.yop-checkout__summary .yop-table tbody tr:last-child { border-bottom: 0 }

	/* Заголовки столбцов скрыты — подписываем значения из data-label */
	.yop-table td[data-label] { display: flex; justify-content: space-between; gap: 12px }
	.yop-table td[data-label]::before {
		content: attr(data-label);
		flex: 0 0 auto;
		color: var(--yp-muted, #94aca0);
		font-size: 13px;
	}
}

/* Скрытое поле антиспама */
.yop-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }

/* Ссылка на корзину со счётчиком */
.yop-cart-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 12px;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none;
	color: var(--yp-text, #eaf3ee);
	background: rgba(255, 255, 255, .05);
	border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .12));
	transition: border-color .2s, color .2s;
}

.yop-cart-link:hover { border-color: var(--yp-accent, #e8c25a); color: var(--yp-cream, #f6f1e4) }
.yop-cart-link__icon { display: inline-flex }

.yop-cart-link__count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	color: #14201a;
	background: var(--yp-accent, #e8c25a);
}

/*
 * Светлая тема. Переменные темы имеют приоритет: этот блок задаёт читаемые
 * значения только там, где тема их не передала.
 */
@media (prefers-color-scheme: light) {
	.yop-btn--gold { color: #1a1408 }
	.yop-btn--ghost { color: #14201a; border-color: rgba(20, 32, 26, .2) }
	.yop-panel--auth input[type="text"],
	.yop-panel--auth input[type="password"],
	.yop-panel--auth input[type="email"] {
		color: #14201a;
		background: #fff;
		border-color: rgba(20, 32, 26, .18)
	}
	.yop-card__title a,
	.yop-price strong,
	.yop-cart__total strong,
	.yop-buybox__price strong,
	.yop-stat strong { color: #14201a }
	.yop-cart-link { color: #14201a; background: rgba(20, 32, 26, .04); border-color: rgba(20, 32, 26, .12) }
	.yop-cart-link:hover { color: #14201a }
	.yop-tabs__link { color: #4a5a52 !important }
	.yop-tabs__link:hover { color: #14201a !important }
	.yop-form input[type="text"],
	.yop-form input[type="email"],
	.yop-form input[type="tel"],
	.yop-form input[type="password"],
	.yop-form input[type="number"],
	.yop-form select,
	.yop-form textarea,
	.yop-table input[type="number"],
	.yop-copy input {
		color: #14201a;
		background: #fff;
		border-color: rgba(20, 32, 26, .18)
	}
	.yop-panel,
	.yop-stat,
	.yop-license,
	.yop-buybox { background: rgba(20, 32, 26, .03); border-color: rgba(20, 32, 26, .12) }
	.yop-table th,
	.yop-table td { border-color: rgba(20, 32, 26, .1) }
	.yop-table thead th { color: #4a5a52 }
	.yop-muted { color: #4a5a52 }
	.yop-card__media { background: rgba(20, 32, 26, .06) }
	.yop-log { background: #f3f5f4; color: #14201a }
}
/* Заголовки-ссылки и вкладки: без подчёркивания от темы */
.yop-card__title a,
.yop-tabs__link,
.yop-link,
.yop-table a {
	text-decoration: none !important;
}

.yop-card__title a:hover,
.yop-tabs__link:hover,
.yop-link:hover,
.yop-table a:hover {
	text-decoration: underline !important;
	text-decoration-color: rgba(232, 194, 90, .5);
}

/* Форма входа WordPress внутри кабинета */
.yop-panel--auth form p { margin: 0 0 12px }
.yop-panel--auth label { display: block; margin-bottom: 6px; color: var(--yp-muted, #94aca0); font-size: 14px }
.yop-panel--auth input[type="text"],
.yop-panel--auth input[type="password"],
.yop-panel--auth input[type="email"] {
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(0, 0, 0, .35);
	border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .14));
	color: var(--yp-text, #eaf3ee);
	font: inherit;
	font-size: 15px;
	box-sizing: border-box;
}
.yop-panel--auth input:focus {
	outline: none;
	border-color: var(--yp-accent, #e8c25a);
	box-shadow: 0 0 0 4px rgba(232, 194, 90, .14);
}
.yop-panel--auth .login-remember label { display: inline-flex; align-items: center; gap: 8px }
.yop-panel--auth input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 20px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #f6e2a4, var(--yp-accent, #e8c25a) 55%, var(--yp-accent-2, #c9862a));
	color: #14201a !important;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.yop-panel--auth input[type="submit"]:hover { filter: brightness(1.06) }
/* Ссылки в реквизитах оплаты */
.yop-note a,
.yop-ext {
	color: var(--yp-accent, #e8c25a) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	word-break: break-word;
}
.yop-note a:hover,
.yop-ext:hover { color: var(--yp-cream, #f6f1e4) !important }
/* Оформление заказа: заголовки и суммы не переносятся построчно */
.yop-checkout h2 { font-size: 20px !important; margin: 0 0 14px !important; letter-spacing: 0 }
.yop-checkout__summary .yop-table td { vertical-align: top }
.yop-checkout__summary .yop-table td:last-child { white-space: nowrap; text-align: right; width: 1% }
.yop-checkout__summary .yop-table tbody tr:last-child td { border-bottom: 0 }

/* Лицензии: ключ не переносится по дефисам */
.yop-table code,
.yop-license code {
	white-space: nowrap !important;
	word-break: keep-all !important;
	overflow-wrap: normal !important;
}

/* Корзина на телефоне: строка = карточка товара */
@media (max-width: 640px) {
	.yop-cart__table tbody tr {
		display: grid;
		border-radius: 14px;
		overflow: hidden;
		grid-template-columns: 1fr auto;
		gap: 8px 14px;
		padding: 14px 16px;
		border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .12));
		border-radius: 14px;
		margin-bottom: 12px;
	}
	.yop-cart__table td { display: block; border: 0 !important; padding: 0 !important; background: none !important }
	.yop-cart__table td[data-label] {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		gap: 12px;
	}
	.yop-cart__table td[data-label]::before {
		content: attr(data-label);
		color: var(--yp-muted, #94aca0);
		font-size: 13px;
	}
	.yop-cart__table td:first-child { grid-column: 1 / -1 }
	.yop-cart__table td:last-child { grid-column: 1 / -1; display: flex; justify-content: flex-end }
	.yop-cart__table .yop-remove {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
		border-radius: 10px;
		background: rgba(255, 255, 255, .06);
		color: var(--yp-cream, #f6f1e4) !important;
		text-decoration: none !important;
		font-size: 18px;
	}
	.yop-cart__table .yop-qty { width: 96px }
}

/* Кабинет: блоки профиля */
.yop-account .yop-form + .yop-form {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .1));
}
.yop-account .yop-form input[type="file"] {
	color: var(--yp-muted, #94aca0);
	font-size: 14px;
}
.yop-account__logout { margin: 24px 0 0 }

/* Нет в наличии и галерея товара */
.yop-card__media { position: relative }
.yop-card__soldout {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .72);
	color: #ffb4ab;
	font-size: 12px;
	font-weight: 700;
}
.yop-btn--disabled { opacity: .55; cursor: not-allowed }
.yop-available { margin: 0; font-size: 14px }
.yop-available--yes { color: #9fe3b5 }
.yop-available--no { color: #ffb4ab }

.yop-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px }
.yop-gallery__item { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .12)) }
.yop-gallery__item img { display: block; width: 132px; height: 132px; object-fit: cover }

.yop-related { margin-top: 26px }
.yop-related ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px }
.yop-related li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .1)); border-radius: 10px }

/* Оформление заказа: поля в две колонки, без растянутых на всю ширину */
.yop-checkout__form { max-width: 760px }
.yop-checkout__form .yop-field { margin-bottom: 14px }

@media (min-width: 700px) {
	.yop-checkout__form {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 18px;
		align-items: start;
	}
	.yop-checkout__form > h2,
	.yop-checkout__form > .yop-field--wide,
	.yop-checkout__form > .yop-check,
	.yop-checkout__form > .yop-hp,
	.yop-checkout__form > button {
		grid-column: 1 / -1;
	}
	.yop-checkout__form .yop-field { margin-bottom: 12px }
}

/* Оформление заказа: форма и сводка переносятся по месту, а не сжимаются */
.yop-checkout {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	align-items: flex-start;
}
.yop-checkout__form { flex: 1 1 420px; max-width: 760px }
.yop-checkout__summary { flex: 1 1 300px; max-width: 460px; margin: 0 }

/* Поля не должны растягиваться шире формы */
.yop-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.yop-form select,
.yop-form textarea,
.yop-copy input {
	max-width: 100%;
	box-sizing: border-box;
}
.yop-form textarea {
	resize: vertical;
	min-height: 90px;
	max-height: 320px;
}

/* Данные пользователя в кабинете */
.yop-userdata { margin-bottom: 20px }
.yop-userdata dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 18px; margin: 0 }
.yop-userdata dt { color: var(--yp-muted, #94aca0); font-size: 14px }
.yop-userdata dd { margin: 0; word-break: break-word }
.yop-userdata code { font-size: 15px; color: var(--yp-accent, #e8c25a) }

/* Сообщить об оплате */
.yop-payment { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .12)); border-radius: var(--yp-radius, 16px); background: var(--yp-glass, rgba(255, 255, 255, .04)) }
.yop-payment h3 { margin: 0 0 6px }
.yop-drop {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
	padding: 14px 16px;
	border: 1px dashed var(--yp-line, rgba(232, 194, 90, .45));
	border-radius: 12px;
	margin: 12px 0;
	color: var(--yp-muted, #94aca0);
	font-size: 14px;
}
.yop-drop:focus-within { border-color: var(--yp-accent, #e8c25a) }
.yop-receipt { color: var(--yp-text, #eaf3ee); font-size: 14px }
.yop-receipt-preview img { display: block; max-width: 260px; max-height: 220px; border-radius: 10px; border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .15)) }
.yop-paid-report { margin: 16px 0 0; color: #9fe3b5 }

/* Покупатель в оформлении */
.yop-buyer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; padding: 12px 16px; margin-bottom: 14px; border: 1px solid var(--yp-line-soft, rgba(255, 255, 255, .12)); border-radius: 12px; background: var(--yp-glass, rgba(255, 255, 255, .03)) }
.yop-buyer strong { font-size: 16px }

/* ============================================================
   Дизайн-слой магазина (0.4)
   ============================================================ */

/* Полная ширина: на страницах магазина сайдбар блога не нужен */
body.yopshop-page .yp-layout { grid-template-columns: minmax(0, 1fr) !important }
body.yopshop-page .yp-sidebar { display: none !important }
body.yopshop-page .yp-layout__main { min-width: 0; max-width: none }

/* Сетка каталога */
.yopshop-page .yop-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
@media (min-width: 1100px) {
	.yopshop-page .yop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (min-width: 1400px) {
	.yopshop-page .yop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) }
}

/* Карточка */
.yop-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 16px;
	overflow: hidden;
	background: #0f1613;
	border: 1px solid rgba(232, 194, 90, .14);
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.yop-card:hover,
.yop-card:focus-within {
	transform: translateY(-3px);
	border-color: rgba(232, 194, 90, .45);
	box-shadow: 0 20px 44px -28px rgba(0, 0, 0, .95);
}
.yop-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background:
		radial-gradient(circle at 30% 20%, rgba(232, 194, 90, .16), transparent 58%),
		linear-gradient(160deg, #17231b, #0b100d);
}
.yop-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}
.yop-card:hover .yop-card__media img { transform: scale(1.04) }
.yop-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(52px, 7vw, 76px);
	font-weight: 700;
	color: rgba(232, 194, 90, .5);
	letter-spacing: .02em;
}
.yop-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
	padding: 16px 18px 18px;
}
.yop-card__title { margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: 0 }
.yop-card__title a { color: #f2f7f3; text-decoration: none }
.yop-card__title a:hover { color: var(--yp-accent, #e8c25a) }
.yop-card__excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #9fb2a7;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.yop-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 10px;
}
.yop-card__foot .yop-btn { padding: 9px 16px; font-size: 14px; border-radius: 10px }

/* Цены */
.yop-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap }
.yop-price strong { font-size: 20px; letter-spacing: -.01em }
.yop-price s { font-size: 13px; opacity: .55 }

/* Бейджи на карточке */
.yop-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	background: rgba(232, 194, 90, .92);
	color: #231a06;
}
.yop-card__badge--new { background: rgba(126, 217, 165, .92); color: #06231a }

/* Поля: тёмные, аккуратные */
.yop-form input[type="text"],
.yop-form input[type="email"],
.yop-form input[type="tel"],
.yop-form input[type="url"],
.yop-form input[type="password"],
.yop-form input[type="number"],
.yop-form select,
.yop-form textarea,
.yop-copy input {
	width: 100%;
	background: #0b120f !important;
	color: #eaf3ee !important;
	border: 1px solid rgba(234, 243, 238, .16) !important;
	border-radius: 10px !important;
	padding: 12px 14px !important;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none !important;
	min-height: 44px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.yop-form input:focus,
.yop-form select:focus,
.yop-form textarea:focus,
.yop-copy input:focus {
	border-color: rgba(232, 194, 90, .75) !important;
	box-shadow: 0 0 0 3px rgba(232, 194, 90, .16) !important;
	outline: none;
}
.yop-form input::placeholder,
.yop-form textarea::placeholder { color: rgba(234, 243, 238, .38) }
.yop-field > span { display: block; margin-bottom: 6px; font-size: 13px; color: #9fb2a7 }

/* Кнопки: один акцент, без лишнего свечения */
.yop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	border-radius: 12px;
	font-weight: 700;
	letter-spacing: .01em;
	text-decoration: none;
	transition: transform .12s ease, filter .15s ease, background .15s ease;
	box-shadow: none;
}
.yop-btn--gold {
	background: linear-gradient(180deg, #f0cd73, #d9ab3f);
	color: #241a03;
	border: 1px solid rgba(255, 235, 180, .5);
}
.yop-btn--gold:hover { filter: brightness(1.05); transform: translateY(-1px) }
.yop-btn--ghost {
	background: rgba(255, 255, 255, .05);
	color: #eaf3ee;
	border: 1px solid rgba(234, 243, 238, .18);
}
.yop-btn--ghost:hover { background: rgba(255, 255, 255, .1) }
.yop-btn:focus-visible { outline: 3px solid rgba(232, 194, 90, .55); outline-offset: 2px }
.yop-btn--disabled { opacity: .5; pointer-events: none }

/* Блоки страниц */
.yopshop-page .yop-page { display: grid; gap: 22px }
.yopshop-page .yop-panel { border-radius: 16px }

/* Панель каталога */
.yop-toolbar { display: grid; gap: 12px; margin: 0 0 20px }
.yop-toolbar__cats { display: flex; flex-wrap: wrap; gap: 8px }
.yop-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid rgba(234, 243, 238, .16);
	background: rgba(255, 255, 255, .04);
	color: #cfe0d6;
	font-size: 13px;
	text-decoration: none;
	min-height: 36px;
}
.yop-chip span { opacity: .55; font-size: 12px }
.yop-chip:hover { border-color: rgba(232, 194, 90, .5); color: #fff }
.yop-chip.is-active { background: rgba(232, 194, 90, .16); border-color: rgba(232, 194, 90, .65); color: #f4d98a }
.yop-toolbar__form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center }
.yop-search { display: flex; gap: 8px; flex: 1 1 260px; max-width: 420px }
.yop-search input { flex: 1 }
.yop-toolbar__form select {
	background: #0b120f;
	color: #eaf3ee;
	border: 1px solid rgba(234, 243, 238, .16);
	border-radius: 10px;
	padding: 10px 12px;
	min-height: 44px;
}
.yop-toolbar__count { margin: 0; font-size: 13px; color: #8fa397 }
.yop-empty { padding: 28px; border: 1px dashed rgba(234, 243, 238, .18); border-radius: 14px; text-align: center; color: #9fb2a7 }

/* Карточка товара: две колонки, липкая покупка */
.yop-product { display: grid; gap: 26px; align-items: start; margin-top: 10px }
@media (min-width: 900px) {
	.yop-product { grid-template-columns: minmax(0, 1fr) 340px }
	.yop-product__aside { position: sticky; top: 96px }
}
.yop-product__main { min-width: 0 }
.yop-product__main > p:first-child { margin-top: 0 }
.yop-buybox {
	display: grid;
	gap: 12px;
	padding: 20px;
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(24, 36, 29, .9), rgba(12, 18, 15, .95));
	border: 1px solid rgba(232, 194, 90, .22);
	box-shadow: 0 24px 60px -40px rgba(0, 0, 0, .9);
}
.yop-buybox__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px }
.yop-buybox__price strong { font-size: 30px; letter-spacing: -.02em }
.yop-buybox__price s { opacity: .5; font-size: 15px }
.yop-buybox .yop-btn--wide { width: 100% }
.yop-trust { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(234, 243, 238, .1); display: grid; gap: 8px }
.yop-trust li { display: flex; gap: 8px; font-size: 13px; color: #a8bcb0; line-height: 1.4 }
.yop-trust__ico { color: #8fdcae; font-weight: 700 }
.yop-includes { margin-top: 24px; padding: 18px 20px; border: 1px solid rgba(234, 243, 238, .12); border-radius: 14px; background: rgba(255, 255, 255, .03) }
.yop-includes h3 { margin: 0 0 10px; font-size: 16px }
.yop-includes ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: #cfe0d6 }
.yop-gallery { margin: 18px 0 }
.yop-related { margin-top: 32px }
.yop-related__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) }
.yop-related__item { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid rgba(234, 243, 238, .12); border-radius: 12px; text-decoration: none; background: rgba(255, 255, 255, .03) }
.yop-related__item:hover { border-color: rgba(232, 194, 90, .45) }
.yop-related__title { color: #eaf3ee; font-weight: 600; font-size: 14px; line-height: 1.35 }
.yop-related__price { color: var(--yp-accent, #e8c25a); font-weight: 700 }

/* Шаги оформления */
.yop-steps { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 22px; padding: 0 }
.yop-steps__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid rgba(234, 243, 238, .14);
	color: #8fa397;
	font-size: 13px;
}
.yop-steps__item a { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none }
.yop-steps__num {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, .08);
	font-size: 12px;
	font-weight: 700;
}
.yop-steps__item.is-active { border-color: rgba(232, 194, 90, .6); background: rgba(232, 194, 90, .1); color: #f4d98a }
.yop-steps__item.is-done .yop-steps__num { background: rgba(126, 217, 165, .2); color: #8fdcae }
.yop-steps__item.is-done { color: #b9c9c0 }

/* Корзина */
.yop-cart__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; margin-top: 20px }
.yop-cart__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px }
.yop-link { background: none; border: 0; padding: 8px; color: #9fb2a7; text-decoration: underline; cursor: pointer; font-size: 14px }
.yop-link:hover { color: #eaf3ee }
.yop-cart__summary { display: grid; gap: 10px; min-width: 300px; flex: 1 1 300px; max-width: 420px }
.yop-cart__total { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; font-size: 15px; color: #9fb2a7 }
.yop-cart__total strong { font-size: 26px; color: #f2f7f3 }
.yop-qty { display: inline-flex; align-items: center; border: 1px solid rgba(234, 243, 238, .16); border-radius: 10px; background: #0b120f; overflow: hidden }
.yop-qty__btn { width: 38px; height: 42px; border: 0; background: transparent; color: #eaf3ee; font-size: 18px; cursor: pointer }
.yop-qty__btn:hover { background: rgba(255, 255, 255, .08) }
.yop-qty__input { width: 46px !important; min-height: 42px !important; border: 0 !important; background: transparent !important; text-align: center; padding: 0 !important; box-shadow: none !important }

/* Сводка оформления липнет на десктопе */
@media (min-width: 900px) {
	.yop-checkout__summary { position: sticky; top: 96px }
}

/* Спасибо */
.yop-thanks { padding: 20px; border: 1px solid rgba(234, 243, 238, .12); border-radius: 16px; background: rgba(255, 255, 255, .03) }
.yop-thanks h2 { margin-top: 0 }

/* Лицензии в кабинете */
.yop-licenses { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) }
.yop-license {
	padding: 18px;
	border-radius: 16px;
	border: 1px solid rgba(234, 243, 238, .12);
	background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
	display: grid;
	gap: 12px;
}
.yop-license.is-active { border-color: rgba(232, 194, 90, .3) }
.yop-license__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px }
.yop-license__head h3 { margin: 0; font-size: 16px; line-height: 1.35 }
.yop-license__key { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.yop-license__key code {
	font-size: 15px;
	letter-spacing: .04em;
	color: #f4d98a;
	background: rgba(232, 194, 90, .08);
	border: 1px solid rgba(232, 194, 90, .2);
	border-radius: 8px;
	padding: 6px 10px;
	white-space: nowrap;
}
.yop-btn--small { min-height: 34px; padding: 6px 12px; font-size: 13px }
.yop-license__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 }
.yop-license__meta dt { margin: 0; font-size: 12px; color: #8fa397 }
.yop-license__meta dd { margin: 2px 0 0; font-size: 14px; color: #eaf3ee }
.yop-license__files { display: flex; flex-wrap: wrap; gap: 8px }
.yop-license__files .yop-btn { min-height: 38px; padding: 8px 12px; font-size: 13px }

/* ============================================================
   Токены и доступность (P6)
   ============================================================ */
:root {
	--yp-bg: #080d0a;
	--yp-surface: #0f1613;
	--yp-surface-2: #131c17;
	--yp-line: rgba(234, 243, 238, .12);
	--yp-line-strong: rgba(232, 194, 90, .45);
	--yp-text: #eaf3ee;
	--yp-muted: #9fb2a7;
	--yp-accent: #e8c25a;
	--yp-radius: 16px;
	--yp-radius-sm: 10px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid rgba(232, 194, 90, .55);
	outline-offset: 2px;
}

.yop-remove {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	text-decoration: none;
	font-size: 20px;
	line-height: 1;
}
.yop-remove:hover { background: rgba(255, 255, 255, .08); color: #ffb4ab }

/* На карточке товара дата публикации — лишний шум */
body.single-yopshop_product .yp-post-meta { display: none }

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* Мобильные правки */
@media (max-width: 700px) {
	.yop-card__media { aspect-ratio: 16 / 10 }
	.yop-toolbar__form { display: grid; grid-template-columns: 1fr }
	.yop-search { max-width: none }
	.yop-cart__summary { min-width: 0; max-width: none }
	.yop-steps { gap: 6px }
	.yop-steps__item { padding: 6px 10px; font-size: 12px }
	.yop-product { gap: 18px }
	.yop-buybox { padding: 16px }
	.yop-buybox__price strong { font-size: 26px }
	.yop-licenses { grid-template-columns: 1fr }
}

/* Количество: контейнер не наследует старую ширину поля */
.yop-cart__table .yop-qty,
.yop-qty {
	width: auto;
	min-width: 118px;
	padding: 0;
	text-align: center;
	overflow: hidden;
}
.yop-qty__input {
	flex: 0 0 42px;
	width: 42px !important;
	color: #eaf3ee !important;
}

/* Корзина: карточки + липкая сводка */
.yop-cart-page { display: grid; gap: 24px; align-items: start }
@media (min-width: 900px) {
	.yop-cart-page { grid-template-columns: minmax(0, 1fr) 360px }
	.yop-cart-summary { position: sticky; top: 96px }
}
.yop-cart-main { min-width: 0 }
.yop-cart-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto 110px 40px;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	border: 1px solid var(--yp-line);
	border-radius: 14px;
	background: var(--yp-surface);
}
.yop-cart-item + .yop-cart-item { margin-top: 10px }
.yop-cart-item__info { display: grid; gap: 4px; min-width: 0 }
.yop-cart-item__title { color: #f2f7f3; font-weight: 600; font-size: 15px; line-height: 1.35; text-decoration: none }
.yop-cart-item__title:hover { color: var(--yp-accent) }
.yop-cart-item__price { font-size: 13px; color: var(--yp-muted) }
.yop-cart-item__sum { font-weight: 700; font-size: 16px; text-align: right; white-space: nowrap }
.yop-cart-item__remove {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #9fb2a7;
	text-decoration: none;
	font-size: 22px;
	line-height: 1;
}
.yop-cart-item__remove:hover { background: rgba(255, 255, 255, .08); color: #ffb4ab }
.yop-cart__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px }

.yop-cart-summary {
	display: grid;
	gap: 12px;
	padding: 22px;
	border: 1px solid rgba(232, 194, 90, .22);
	border-radius: var(--yp-radius);
	background: linear-gradient(180deg, rgba(24, 36, 29, .95), rgba(12, 18, 15, .98));
}
.yop-cart-summary h2 { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--yp-muted) }
.yop-cart-summary dl { display: grid; gap: 8px; margin: 0 }
.yop-cart-summary dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: #cfe0d6 }
.yop-cart-summary dt, .yop-cart-summary dd { margin: 0 }
.yop-cart-summary__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-top: 12px;
	border-top: 1px solid rgba(234, 243, 238, .12);
	font-size: 14px;
	color: var(--yp-muted);
}
.yop-cart-summary__total strong { font-size: 28px; color: #f2f7f3; letter-spacing: -.02em }
.yop-cart-summary .yop-btn--wide { width: 100% }
.yop-cart-summary .yop-muted { margin: 0; font-size: 12px; line-height: 1.5 }

@media (max-width: 700px) {
	.yop-cart-item { grid-template-columns: minmax(0, 1fr) auto 36px; grid-template-areas: 'info sum remove' 'qty qty qty'; row-gap: 12px }
	.yop-cart-item__info { grid-area: info }
	.yop-cart-item__sum { grid-area: sum }
	.yop-cart-item__remove { grid-area: remove; width: 36px; height: 36px }
	.yop-cart-item .yop-qty { grid-area: qty; justify-self: start }
}

/* Сводка оформления — как карточка */
.yop-checkout__summary {
	padding: 20px;
	border: 1px solid rgba(232, 194, 90, .2);
	border-radius: var(--yp-radius);
	background: linear-gradient(180deg, rgba(24, 36, 29, .92), rgba(12, 18, 15, .96));
}
.yop-checkout__summary h2 { margin-top: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--yp-muted) }
.yop-checkout__summary .yop-table { border: 0 }
.yop-checkout__summary .yop-table td { border-color: rgba(234, 243, 238, .08) }

/* QR чека */
.yop-qr-note {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(126, 217, 165, .35);
	background: rgba(126, 217, 165, .08);
	color: #9fe3b5;
	font-size: 13px;
}
.yop-qr-note.is-bad { border-color: rgba(255, 180, 171, .4); background: rgba(255, 180, 171, .08); color: #ffb4ab }
