/**
 * WooCommerce presentation — 4-column catalog, product card, cart, checkout.
 */
.woocommerce .triumph-shop-grid,
.woocommerce ul.products.triumph-catalog-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px 16px;
	list-style: none;
	margin: 0 0 var(--triumph-space-xl);
	padding: 0;
}

.woocommerce ul.products.triumph-catalog-grid::before,
.woocommerce ul.products.triumph-catalog-grid::after {
	display: none;
}

.woocommerce ul.products.triumph-catalog-grid li.product {
	width: 100%;
	margin: 0;
	padding: 0;
	float: none;
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
	box-shadow: none !important;
	background: transparent !important;
	border: 0 !important;
}

/* Hide leftover Kadence archive title if any hook still fires. */
.triumph-screen-catalog .product-archive-hero-section,
.triumph-screen-category .product-archive-hero-section,
.triumph-screen-catalog .entry-hero.product-archive-hero-section,
.triumph-screen-category .entry-hero.product-archive-hero-section {
	display: none !important;
}

.triumph-product-card {
	position: relative;
	overflow: hidden !important;
	height: auto !important;
	box-shadow: none !important;
}

.triumph-product-card__inner {
	position: relative;
	height: 100%;
	min-height: 100%;
	border: 1px solid #c3c3c3;
	border-bottom-width: 3px;
	border-radius: 4px;
	background: #fff;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	text-align: center;
}

.triumph-product-card__markers {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 70px;
	height: 70px;
	overflow: hidden;
	pointer-events: none;
}

.triumph-product-card__disc {
	position: absolute;
	top: 10px;
	left: -28px;
	width: 100px;
	padding: 4px 0;
	background: #08bb9f;
	color: #fff;
	text-align: center;
	transform: rotate(-45deg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.triumph-product-card__disc-text {
	display: block;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.triumph-product-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	/* Квадрат + отступы: фото товаров (~7:6) целиком, без crop и без упора в края. */
	aspect-ratio: 1 / 1;
	width: 100%;
	padding: 18px 16px;
	box-sizing: border-box;
	overflow: hidden;
	background: #fff;
}

.triumph-product-card__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	margin: 0 auto;
}

.triumph-product-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 0;
	text-align: center;
}

.triumph-product-card__title {
	display: block;
	margin: 15px 0 10px;
	padding: 0 20px;
	font-size: 17px;
	line-height: 20px;
	font-weight: 400;
	color: #404040;
	text-decoration: none;
}

.triumph-product-card__title:hover {
	color: var(--triumph-color-accent);
}

.triumph-product-card__price {
	margin-bottom: 20px;
	padding: 0 20px;
}

.triumph-product-card__price-old {
	display: block;
	color: #ff0000;
	text-decoration: line-through;
	font-size: 17px;
	line-height: 20px;
	font-weight: 400;
}

.triumph-product-card__price-current {
	display: block;
	font-size: 21px;
	line-height: 20px;
	font-weight: 400;
	color: #404040;
}

/* Size left + cart right; button must not clip «В корзину» */
.triumph-product-card__actions {
	margin-top: auto;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
	overflow: visible;
	width: 100%;
	min-height: 30px;
	padding: 0 14px 16px;
	box-sizing: border-box;
}

.triumph-product-card__size {
	display: block;
	float: none;
	flex: 1 1 auto;
	width: auto;
	max-width: none;
	min-width: 0;
	text-align: left;
	margin: 0;
	padding-right: 0;
	box-sizing: border-box;
}

.triumph-product-card__size-spacer {
	display: block;
	float: none;
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: 1px;
}

.triumph-product-card__size-label {
	display: block;
	font-size: 11px;
	line-height: 1;
	color: #6b6b6b;
	margin-bottom: 2px;
}

.triumph-product-card__size-select,
.woocommerce ul.products li.product select.triumph-product-card__size-select,
.triumph-passport-size__select,
select.triumph-chevron-select.triumph-product-card__size-select,
select.triumph-chevron-select.triumph-passport-size__select {
	width: 100%;
	max-width: 100%;
	border: none !important;
	border-bottom: 1px solid #6b6b6b !important;
	border-radius: 0 !important;
	background-color: transparent !important;
	background-image: var(--triumph-chevron-down) !important;
	background-repeat: no-repeat !important;
	background-position: right 0 center !important;
	background-size: 12px 16px !important;
	font: inherit;
	font-size: 14px;
	padding: 4px 18px 4px 0 !important;
	color: #404040 !important;
	cursor: pointer;
	box-shadow: none !important;
	outline: none !important;
	accent-color: #6b6b6b;
	color-scheme: light;
}

/* Как на старом: hover/focus не меняют цвет и фон (в т.ч. против Kadence select:focus). */
.triumph-product-card__size-select:hover,
.triumph-product-card__size-select:focus,
.triumph-product-card__size-select:focus-visible,
.triumph-product-card__size-select:active,
.woocommerce ul.products li.product select.triumph-product-card__size-select:hover,
.woocommerce ul.products li.product select.triumph-product-card__size-select:focus,
.woocommerce ul.products li.product select.triumph-product-card__size-select:focus-visible,
.woocommerce ul.products li.product select.triumph-product-card__size-select:active,
.triumph-passport-size__select:hover,
.triumph-passport-size__select:focus,
.triumph-passport-size__select:focus-visible,
.triumph-passport-size__select:active {
	color: #404040 !important;
	background-color: transparent !important;
	background-image: var(--triumph-chevron-down) !important;
	border-color: transparent !important;
	border-bottom-color: #6b6b6b !important;
	outline: none !important;
	box-shadow: none !important;
	cursor: pointer;
}

/* Kadence: select:focus option { color:#333 } + системная синяя подсветка = тёмный на синем. */
.triumph-product-card__size-select option,
.woocommerce ul.products li.product select.triumph-product-card__size-select option,
.triumph-passport-size__select option,
.triumph-product-card__size-select:focus option,
.triumph-passport-size__select:focus option {
	color: #404040 !important;
	background-color: #fff !important;
}

.triumph-product-card__size-select option:checked,
.triumph-product-card__size-select option:hover,
.triumph-passport-size__select option:checked,
.triumph-passport-size__select option:hover {
	color: #404040 !important;
	background-color: #f0f0f0 !important;
}

.triumph-product-card__cart,
.woocommerce ul.products li.product .triumph-product-card__cart,
.woocommerce ul.products li.product a.button.triumph-product-card__cart,
.woocommerce ul.products li.product a.triumph-product-card__cart.add_to_cart_button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	float: none;
	clear: none;
	flex: 0 0 auto;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	min-width: 0;
	min-height: 30px !important;
	height: 30px !important;
	padding: 0 10px !important;
	background: #f23f3f !important;
	background-color: #f23f3f !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 3px !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	text-transform: none !important;
	box-shadow: inset 0 -3px 0 #f02727 !important;
	opacity: 1 !important;
	visibility: visible !important;
	gap: 5px;
	white-space: nowrap;
	overflow: visible;
}

.triumph-product-card__cart-icon {
	display: block;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}

.triumph-product-card__cart-text {
	flex: 0 0 auto;
}

.triumph-product-card__cart:visited,
.triumph-product-card__cart:focus,
.woocommerce ul.products li.product a.button.triumph-product-card__cart:visited,
.woocommerce ul.products li.product a.button.triumph-product-card__cart:focus {
	background: #f23f3f !important;
	background-color: #f23f3f !important;
	color: #fff !important;
}

.triumph-product-card__cart:hover,
.woocommerce ul.products li.product .triumph-product-card__cart:hover,
.woocommerce ul.products li.product a.button.triumph-product-card__cart:hover {
	background: #f75c5c !important;
	background-color: #f75c5c !important;
	color: #fff !important;
	box-shadow: inset 0 -3px 0 #f02727 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.9375rem;
	color: var(--triumph-color-text);
}

.woocommerce ul.products li.product .price {
	color: var(--triumph-color-text);
	font-weight: 600;
}

.woocommerce ul.products li.product .price .amount::after {
	content: ' р.';
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--triumph-touch-min);
	background: var(--triumph-color-accent);
	color: #fff;
	border: none;
	border-radius: var(--triumph-radius);
	font-family: inherit;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover {
	background: #f75c5c;
	color: #fff;
}

.woocommerce nav.woocommerce-pagination {
	margin-top: var(--triumph-space-lg);
}

.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--triumph-space-xs);
	border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--triumph-touch-min);
	min-height: var(--triumph-touch-min);
	border: 1px solid var(--triumph-color-border);
	border-radius: var(--triumph-radius);
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.triumph-catalog-toolbar__pager .page-numbers.current {
	background: #f23f3f;
	border-color: #f23f3f;
	color: #fff;
}

.triumph-catalog-toolbar__pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	min-height: 28px;
	margin-left: 4px;
	border: 1px solid #c3c3c3;
	color: #404040;
	text-decoration: none;
	font-size: 13px;
}

.triumph-catalog-toolbar__pager .page-numbers.current {
	border-color: #f23f3f;
}

.woocommerce div.product .product_title {
	color: var(--triumph-color-text);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--triumph-color-text);
	font-size: 1.25rem;
	font-weight: 700;
}

.woocommerce div.product p.price .amount::after,
.woocommerce div.product span.price .amount::after {
	content: ' р.';
}

.woocommerce div.product form.cart .button.single_add_to_cart_button {
	background: #f23f3f;
	background-color: #f23f3f;
	color: #fff;
	min-height: 30px !important;
	height: 30px !important;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 3px !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 30px !important;
	box-shadow: inset 0 -3px 0 #f02727 !important;
	text-transform: none !important;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button:hover {
	background: #f75c5c;
	background-color: #f75c5c;
	color: #fff;
}

/* Эталон product page: [В корзину] затем [Количество] справа */
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart:not(.variations_form),
.woocommerce div.product form.cart .cart {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 20px;
}

.woocommerce div.product form.cart .variations_button {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 20px;
	width: 100%;
}

.woocommerce div.product form.cart .triumph-counter,
.woocommerce div.product form.cart .quantity.triumph-counter {
	order: 2;
	margin: 14px 0 0 !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
	order: 1;
	margin: 0 !important;
}

.triumph-cart-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: var(--triumph-space-xl);
}

.triumph-cart-table th,
.triumph-cart-table td {
	padding: var(--triumph-space-md);
	border-bottom: 1px solid var(--triumph-color-border);
	vertical-align: middle;
}

.triumph-cart-collaterals {
	max-width: 480px;
	margin-left: auto;
}

.woocommerce .cart-collaterals .cart_totals h2 {
	font-size: 1.25rem;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
	background: var(--triumph-color-accent);
	color: #fff;
	min-height: var(--triumph-touch-min);
	text-align: center;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
	background: #f75c5c;
}

.triumph-checkout-form .woocommerce-billing-fields h3,
.triumph-checkout-form .woocommerce-additional-fields h3 {
	color: var(--triumph-color-text);
}

.woocommerce #payment #place_order {
	background: var(--triumph-color-accent);
	color: #fff;
	min-height: var(--triumph-touch-min);
	width: 100%;
}

.woocommerce #payment #place_order:hover {
	background: #f75c5c;
}

.woocommerce-ordering select.orderby {
	min-height: var(--triumph-touch-min);
	padding: 0 var(--triumph-space-sm);
	border: 1px solid var(--triumph-color-border);
	border-radius: var(--triumph-radius);
	font-family: inherit;
}

@media (max-width: 1199px) {
	.woocommerce ul.products.triumph-catalog-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 879px) {
	.woocommerce ul.products.triumph-catalog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 559px) {
	.woocommerce ul.products.triumph-catalog-grid {
		grid-template-columns: 1fr;
	}
}

/* —— Cart (basket.act) —— эталон 1200: 4of6 + 2of6 —— */
.triumph-basket {
	padding-bottom: 50px;
}

.triumph-basket__title {
	margin: 0 0 20px;
	padding: 10px 10px 0;
	font-size: 30px;
	font-weight: 400;
	line-height: 35px;
	color: #404040;
}

.triumph-basket__layout {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 2fr);
	gap: 0;
	align-items: start;
	margin: -20px 0 0;
	padding: 10px;
}

.triumph-basket__main {
	min-width: 0;
	padding: 0 10px 0 0;
}

.triumph-basket__aside {
	min-width: 0;
	padding: 0 0 0 10px;
}

.triumph-basket-form .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}

/* Invisible layout table — headers sit above qty / price */
.triumph-basket__table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
	font-size: 14px;
	color: #404040;
	background: transparent;
	border: 0 !important;
}

.triumph-basket__table thead th,
.triumph-basket__table tbody td {
	border: 0;
	background: transparent;
	vertical-align: middle;
	font-weight: 400;
}

.triumph-basket__row--head th {
	padding: 15px 15px 15px 0;
	border-bottom: 1px solid #d8d8d8 !important;
	color: #9a9a9a;
	font-size: 13px;
	line-height: 20px;
	text-align: left;
}

.triumph-basket__row--item td {
	padding: 14px 15px 14px 0;
	border-bottom: 1px solid #e5e5e5 !important;
}

.triumph-basket__cell--media {
	width: 95px;
	padding-left: 15px !important;
}

.triumph-basket__cell--media img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	display: block;
}

.triumph-basket__cell--name {
	width: auto;
	text-align: left;
}

.triumph-basket__cell--name a {
	color: #404040;
	text-decoration: none;
	font-weight: 400;
}

.triumph-basket__cell--qty {
	width: 130px;
	text-align: center !important;
	vertical-align: middle;
}

.triumph-counter {
	position: relative;
	display: inline-block;
	box-sizing: border-box;
	width: 100px;
	height: 30px;
	margin: 14px auto 0;
	padding: 0 30px;
	vertical-align: top;
}

.triumph-counter__label {
	position: absolute;
	left: 0;
	right: 0;
	top: -14px;
	font-size: 11px;
	line-height: 10px;
	color: #aaa;
	text-align: center;
	pointer-events: none;
}

/* В корзине заголовок колонки уже есть — дубль «Количество» скрываем */
.triumph-basket__cell--qty .triumph-counter__label {
	display: none;
}

.triumph-basket__cell--qty .triumph-counter {
	margin-top: 0;
}

.triumph-counter__input,
.woocommerce .triumph-counter__input.qty,
.woocommerce .triumph-counter input.qty {
	display: block !important;
	box-sizing: border-box !important;
	width: 40px !important;
	height: 30px !important;
	min-height: 30px !important;
	max-height: 30px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #6b6b6b !important;
	border-radius: 3px !important;
	background: #fff !important;
	color: #404040 !important;
	font-family: inherit !important;
	font-size: 13px !important;
	line-height: 28px !important;
	text-align: center !important;
	-moz-appearance: textfield;
	appearance: textfield;
	transition: border-radius 0.15s, border-color 0.15s;
}

.triumph-counter__input::-webkit-outer-spin-button,
.triumph-counter__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.triumph-counter__button {
	position: absolute;
	top: 0;
	box-sizing: border-box;
	width: 31px;
	height: 30px;
	padding: 0;
	border: 1px solid #c3c3c3;
	background: #fff;
	color: #404040;
	font-size: 16px;
	line-height: 28px;
	text-align: center;
	cursor: pointer;
	user-select: none;
	opacity: 0;
	visibility: hidden;
	transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s, visibility 0.15s;
}

.triumph-counter__button--minus {
	left: 0;
	border-radius: 3px 0 0 3px;
}

.triumph-counter__button--plus {
	right: 0;
	border-radius: 0 3px 3px 0;
}

/* Hover рамки / фокус поля: оба +/- белые */
.triumph-counter:hover .triumph-counter__input,
.triumph-counter:focus-within .triumph-counter__input {
	border-radius: 0;
	border-color: #c3c3c3 !important;
}

.triumph-counter:hover .triumph-counter__button,
.triumph-counter:focus-within .triumph-counter__button {
	opacity: 1;
	visibility: visible;
	background: #fff;
	border-color: #c3c3c3;
	color: #404040;
}

.triumph-counter[data-value='1']:hover .triumph-counter__button--minus,
.triumph-counter[data-value='1']:focus-within .triumph-counter__button--minus,
.triumph-counter[data-value='0']:hover .triumph-counter__button--minus,
.triumph-counter[data-value='0']:focus-within .triumph-counter__button--minus {
	opacity: 0;
	visibility: hidden;
}

.triumph-counter[data-value='max']:hover .triumph-counter__button--plus,
.triumph-counter[data-value='max']:focus-within .triumph-counter__button--plus {
	opacity: 0;
	visibility: hidden;
}

/* Красный только у кнопки под курсором (специфичность выше белого :hover рамки) */
.triumph-counter:hover .triumph-counter__button--minus:hover,
.triumph-counter:focus-within .triumph-counter__button--minus:hover,
.triumph-counter:hover .triumph-counter__button--minus:focus-visible,
.triumph-counter:focus-within .triumph-counter__button--minus:focus-visible,
.triumph-counter:hover .triumph-counter__button--plus:hover,
.triumph-counter:focus-within .triumph-counter__button--plus:hover,
.triumph-counter:hover .triumph-counter__button--plus:focus-visible,
.triumph-counter:focus-within .triumph-counter__button--plus:focus-visible {
	background: #f23f3f;
	border-color: #f23f3f;
	color: #fff;
}

.triumph-counter:hover .triumph-counter__button:active,
.triumph-counter:focus-within .triumph-counter__button:active {
	background: #f75c5c;
	border-color: #f75c5c;
	color: #fff;
}

/* Single product / cart qty */
.woocommerce div.product form.cart .triumph-counter,
.triumph-product .triumph-counter,
.triumph-basket__cell--qty .triumph-counter {
	margin: 0;
	display: inline-block;
}

.woocommerce div.product form.cart .quantity,
.triumph-basket__cell--qty .quantity.triumph-counter {
	margin: 0;
	display: inline-block;
}

.triumph-basket__cell--price {
	width: 137px;
	text-align: right !important;
	padding-right: 15px !important;
}

.triumph-basket__cell--remove {
	width: 48px;
	text-align: center !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

.triumph-basket__sku,
.triumph-basket__size {
	margin-top: 4px;
	font-size: 13px;
	line-height: 18px;
	color: #6b6b6b;
}

.triumph-basket__product-title {
	color: #404040;
	text-decoration: none;
}

.triumph-basket__product-title:hover,
.triumph-basket__product-title:focus-visible {
	color: #f23f3f;
}

.triumph-basket__price-num {
	font-weight: 400;
	font-size: 14px;
}

.triumph-basket__remove,
.woocommerce a.triumph-basket__remove.remove,
.woocommerce-cart a.remove.triumph-basket__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: #aaa !important;
	text-decoration: none !important;
	font-size: 22px;
	line-height: 1;
	border: 0 !important;
	background: transparent !important;
}

.triumph-basket__remove:hover,
.triumph-basket__remove:focus,
.woocommerce a.triumph-basket__remove.remove:hover,
.woocommerce a.triumph-basket__remove.remove:focus,
.woocommerce-cart a.remove.triumph-basket__remove:hover {
	color: #e25959 !important;
}

.triumph-basket__update {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}

.triumph-basket-aside {
	background: #f5f5f5;
	padding: 30px 20px;
	margin: 0 0 20px;
	text-align: center;
}

.triumph-basket-aside__info {
	font-size: 14px;
	color: #404040;
	margin-bottom: 0;
}

.triumph-basket-aside__total {
	font-size: 35px;
	font-weight: 400;
	line-height: 35px;
	margin: 30px 0;
	overflow: hidden;
	white-space: nowrap;
}

.triumph-basket-aside__num {
	display: inline-block;
	vertical-align: top;
	line-height: inherit;
}

.triumph-basket-aside__currency {
	display: inline-block;
	margin-left: 6px;
	vertical-align: top;
	line-height: inherit;
}

.triumph-basket-aside__note {
	font-size: 13px;
	line-height: 1.4;
	color: #6b6b6b;
	margin: 0 0 20px;
}

.triumph-basket-aside__checkout,
.woocommerce .triumph-basket-aside__checkout {
	display: inline-flex;
	width: auto;
	max-width: 100%;
	justify-content: center;
	align-items: center;
	min-height: 40px !important;
	height: 40px;
	padding: 0 35px !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 40px !important;
	background: #f23f3f !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 2px !important;
	text-decoration: none;
	box-sizing: border-box;
}

.triumph-basket-aside__info,
.triumph-basket-aside__total,
.triumph-basket-aside__note {
	text-align: left;
}

.triumph-basket-phone {
	margin-top: 20px;
	text-align: center;
}

.triumph-basket-phone__text {
	margin-bottom: 10px;
	font-size: 14px;
	color: #404040;
}

.triumph-basket-phone .triumph-btn--bordered {
	min-height: 30px;
	height: 30px;
	padding: 0 20px;
	font-size: 14px;
	line-height: 30px;
	border-radius: 2px;
}

.triumph-basket__empty-msg {
	padding: 40px 0;
	text-align: center;
}

/* Empty cart — эталон basket.act */
.triumph-basket--empty .woocommerce-notices-wrapper,
.woocommerce-cart.triumph-cart-is-empty .woocommerce-notices-wrapper,
.woocommerce-cart.triumph-cart-is-empty .woocommerce-message,
.woocommerce-cart.triumph-cart-is-empty .woocommerce-info,
.woocommerce-cart.triumph-cart-is-empty .woocommerce-error {
	display: none !important;
}

.triumph-basket-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 40px 16px 80px;
	max-width: 720px;
	margin: 0 auto;
}

.triumph-basket-empty__title {
	margin: 0 0 12px;
	padding: 0;
	font-size: 35px;
	font-weight: 400;
	line-height: 40px;
	color: #404040;
}

.triumph-basket-empty__sad {
	margin: 0;
	font-size: 17px;
	line-height: 24px;
	color: #6b6b6b;
}

.triumph-basket-empty__pic {
	margin: 50px 0;
}

.triumph-basket-empty__svg {
	display: block;
	width: 195px;
	height: 200px;
	margin: 0 auto;
}

.triumph-basket-empty__main {
	fill: #f23f3f;
}

.triumph-basket-empty__hint {
	margin: 0;
	font-size: 17px;
	line-height: 24px;
	color: #404040;
}

.triumph-basket-empty__cta,
.woocommerce .triumph-basket-empty__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 30px;
	min-height: 40px !important;
	height: 40px !important;
	padding: 0 28px !important;
	background: #f23f3f !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 2px !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 40px !important;
	text-decoration: none !important;
	text-transform: none !important;
}

.triumph-basket-aside__checkout:hover,
.woocommerce .triumph-basket-aside__checkout:hover {
	background: #f75c5c !important;
	color: #fff !important;
}

.triumph-basket-empty__cta:hover,
.woocommerce .triumph-basket-empty__cta:hover {
	background: #f75c5c !important;
	color: #fff !important;
}

.triumph-btn--bordered {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 0 20px;
	background: #fff;
	border: 1px solid #404040;
	border-radius: 2px;
	color: #404040;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.triumph-btn--bordered:link,
.triumph-btn--bordered:visited,
.triumph-btn--bordered:focus {
	background: #fff;
	border-color: #404040;
	color: #404040;
}

.triumph-btn--bordered:hover,
.triumph-btn--bordered:focus-visible {
	background: #fff;
	border-color: #f23f3f;
	color: #f23f3f;
}

/* —— Checkout (order.act) —— эталон: 3×2of6 ≈ 393px —— */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .checkout_coupon,
.woocommerce-checkout .woocommerce-form-coupon {
	display: none !important;
}

.triumph-order {
	padding-bottom: 50px;
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.triumph-order__title {
	margin: 0 0 20px;
	font-size: 25px;
	font-weight: 400;
	line-height: 30px;
	color: #404040;
}

.triumph-order__auth {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.triumph-order__auth-text {
	font-size: 14px;
	color: #404040;
}

.triumph-order__auth .triumph-btn--bordered {
	min-height: 30px;
	height: 30px;
	padding: 0 20px;
	font-size: 14px;
	line-height: 30px;
}

.triumph-order__grid {
	display: grid;
	/* Left (form) wider — fields match эталон underlines */
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 0 12px;
	align-items: start;
}

.triumph-order__fields {
	padding: 10px 20px 10px 0;
}

.triumph-order__methods {
	padding: 25px 20px 40px 0;
}

.triumph-order__summary {
	padding: 25px 0 10px;
}

.triumph-order .woocommerce-billing-fields > h3,
.triumph-order .woocommerce-additional-fields > h3,
.triumph-order .woocommerce-shipping-fields > h3 {
	display: none !important;
}

.triumph-order .form-row {
	position: relative;
	margin: 0 !important;
	padding: 0 !important;
	float: none;
	width: 100%;
}

.triumph-order .form-row-first,
.triumph-order .form-row-last {
	width: 48%;
	float: left;
}

.triumph-order .form-row-last {
	float: right;
}

.triumph-order .woocommerce-billing-fields__field-wrapper::after,
.triumph-order .woocommerce-additional-fields__field-wrapper::after,
.triumph-order #customer_details::after {
	content: '';
	display: table;
	clear: both;
}

.triumph-order .form-row .triumph-float {
	margin-bottom: 10px;
}

.triumph-order__policy {
	padding-top: 10px !important;
	clear: both;
}

.triumph-order__policy-text {
	color: #404040 !important;
	font-size: 12px;
	line-height: 16px;
	white-space: nowrap;
}

.triumph-order__policy-text a {
	color: #f23f3f !important;
	font-size: inherit;
	line-height: inherit;
}

.triumph-order__phone {
	margin-top: 24px;
	text-align: left;
}

.triumph-order__hr {
	height: 1px;
	margin: 18px 0;
	background: #e1e1e1;
	border: 0;
}

.triumph-order-method {
	display: block;
	position: relative;
	margin: 0 0 14px;
	padding: 0;
	cursor: pointer;
	font-size: 14px;
	line-height: 20px;
	color: #404040;
}

.triumph-order-method input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.triumph-order-method__label {
	display: block;
	padding-left: 28px;
	position: relative;
}

.triumph-order-method__icon {
	position: absolute;
	left: 0;
	top: 1px;
	width: 16px;
	height: 16px;
	border: 2px solid #c3c3c3;
	border-radius: 50%;
	box-sizing: border-box;
}

.triumph-order-method input:checked + .triumph-order-method__label .triumph-order-method__icon {
	border-color: #f23f3f;
	background: radial-gradient(circle at center, #f23f3f 0 5px, transparent 6px);
}

.triumph-order-method__price {
	color: #f00;
	margin-left: 4px;
}

.triumph-order-method__hint {
	display: block;
	padding-left: 28px;
	margin-top: 2px;
	font-size: 12px;
	line-height: 16px;
	color: #6b6b6b;
}

.triumph-order-method__box {
	margin: 8px 0 16px 28px;
	font-size: 13px;
	color: #6b6b6b;
}

.triumph-order__methods-empty {
	font-size: 14px;
	color: #6b6b6b;
	margin: 0;
}

/* Состав заказа — линии на всю ширину, имена влево, цены вправо */
.triumph-order-table {
	width: 100%;
	border: 1px solid #e1e1e1;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 20px;
	color: #404040;
	background: #fff;
	table-layout: fixed;
}

.triumph-order-table__col--name {
	width: 58%;
}

.triumph-order-table__col--price {
	width: 42%;
}

.woocommerce .triumph-order-table thead,
.woocommerce .triumph-order-table tbody,
.woocommerce .triumph-order-table tr,
.woocommerce table.triumph-order-table th,
.woocommerce table.triumph-order-table td,
.triumph-order-table thead,
.triumph-order-table tbody,
.triumph-order-table tr,
.triumph-order-table th,
.triumph-order-table td {
	border: 0;
	background: transparent;
	font-weight: 400;
	vertical-align: middle;
	box-shadow: none;
}

.triumph-order-table__row {
	width: 100%;
}

.triumph-order-table .triumph-order-table__cell,
.woocommerce table.triumph-order-table .triumph-order-table__cell {
	padding: 11px 8px;
	text-align: left;
	vertical-align: middle;
	border-top: 0 !important;
	border-left: 0 !important;
	border-right: 0 !important;
	border-bottom: 1px solid #e1e1e1 !important;
}

.triumph-order-table .triumph-order-table__row--head .triumph-order-table__cell,
.woocommerce table.triumph-order-table .triumph-order-table__row--head .triumph-order-table__cell {
	padding-top: 12px;
	padding-bottom: 12px;
	padding-left: 8px;
	padding-right: 8px;
	font-size: 17px;
	line-height: 22px;
	color: #404040;
}

.triumph-order-table__row--head .triumph-order-table__cell--price {
	padding: 0 !important;
	border-bottom: 1px solid #e1e1e1 !important;
	font-size: 0;
	line-height: 0;
}

.triumph-order-table__row--item .triumph-order-table__cell,
.triumph-order-table__row--delivery .triumph-order-table__cell {
	font-size: 14px;
	line-height: 20px;
}

.triumph-order-table__cell--price,
.triumph-order-table .shop-order-table__item-price {
	font-size: 14px;
	white-space: nowrap;
	text-align: right !important;
	padding-left: 4px !important;
	padding-right: 8px !important;
	color: #404040;
}

.triumph-order-table__row--item .triumph-order-table__cell:first-child,
.triumph-order-table__row--delivery .triumph-order-table__cell:first-child,
.triumph-order-table__row--total .triumph-order-table__cell:first-child {
	text-align: left !important;
	padding-left: 8px !important;
	padding-right: 4px !important;
}

.triumph-order-table__row--total,
.triumph-order-table .shop-order-table__footer {
	font-size: 21px;
	line-height: 25px;
	background: #e1e1e1 !important;
}

.triumph-order-table .triumph-order-table__row--total .triumph-order-table__cell,
.woocommerce table.triumph-order-table .triumph-order-table__row--total .triumph-order-table__cell {
	padding: 12px 8px;
	background: #e1e1e1 !important;
	vertical-align: middle;
	border-bottom: 0 !important;
}

.triumph-order-table__row--total .triumph-order-table__cell:first-child {
	font-size: 21px;
	line-height: 25px;
	text-align: left !important;
	padding-left: 8px !important;
}

.triumph-order-table__row--total .triumph-order-table__cell--price,
.triumph-order-table__row--total .shop-order-table__item-price {
	font-size: 25px;
	line-height: 25px;
	padding-right: 8px !important;
}

.triumph-order-table__total,
.triumph-order-table .shop-order-table__total {
	font-size: 25px;
	line-height: 25px;
	font-weight: 400;
}

.triumph-order-table__currency {
	font-size: 21px;
	margin-left: 4px;
}

/* WC/Kadence style #order_review as a floated block — kill that on our table body */
.woocommerce-checkout table.triumph-order-table > tbody,
.woocommerce-checkout table.triumph-order-table > thead,
.woocommerce-checkout table.triumph-order-table > tbody#order_review,
.woocommerce-checkout table.triumph-order-table > tbody.woocommerce-checkout-review-order {
	display: table-row-group !important;
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	position: static !important;
}

.woocommerce-checkout table.triumph-order-table > tr,
.woocommerce-checkout table.triumph-order-table > tbody > tr,
.woocommerce-checkout table.triumph-order-table > thead > tr {
	display: table-row !important;
	float: none !important;
	width: auto !important;
}

.woocommerce-checkout table.triumph-order-table > tbody > tr > td,
.woocommerce-checkout table.triumph-order-table > thead > tr > th,
.woocommerce-checkout table.triumph-order-table > tbody > tr > th {
	display: table-cell !important;
	float: none !important;
}

.triumph-order__submit-wrap {
	margin-top: 0;
	text-align: center;
}

.triumph-order__submit,
.woocommerce .triumph-order__submit {
	width: auto !important;
	min-width: 0 !important;
	min-height: 40px !important;
	height: 40px !important;
	padding: 0 35px !important;
	background: #f23f3f !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 2px !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 40px !important;
	text-transform: none !important;
}

.triumph-order__submit:hover,
.woocommerce .triumph-order__submit:hover {
	background: #f75c5c !important;
	color: #fff !important;
}

/* —— Auth modal / page —— */
/* Flip about horizontal axis (rotateX) — «по горизонтали», not left/right door */
.triumph-auth-flip {
	perspective: 1600px;
	perspective-origin: 50% 40%;
	width: 775px;
	max-width: calc(100vw - 40px);
	margin: 12vh auto;
}

.triumph-auth-flip__inner {
	position: relative;
	width: 100%;
	min-height: 280px;
	transform-style: preserve-3d;
	transform-origin: center center;
	transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
	transform: rotateX(0deg);
}

.triumph-auth-flip.is-flipped .triumph-auth-flip__inner {
	transform: rotateX(180deg);
}

.triumph-auth-flip__face {
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	background: #fff;
	box-sizing: border-box;
	width: 100%;
}

.triumph-auth-flip__face--front {
	position: relative;
	z-index: 2;
	transform: rotateX(0deg);
}

.triumph-auth-flip__face--back {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	z-index: 1;
	transform: rotateX(180deg);
}

.triumph-auth-modal__panel.triumph-modal__panel,
.triumph-auth-modal__panel {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 25px 30px 30px;
	border-radius: 0;
}

.triumph-auth-modal__close.triumph-modal__close,
.triumph-auth-modal .triumph-modal__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 36px;
	min-height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #404040 !important;
	opacity: 1 !important;
	visibility: visible !important;
	cursor: pointer;
}

.triumph-auth-modal__close svg {
	display: block;
	width: 14px;
	height: 20px;
}

.triumph-auth-modal__title,
.triumph-auth-page__title {
	margin: 0 50px 15px 0;
	font-size: 21px;
	font-weight: 400;
	line-height: 25px;
	color: #404040;
}

.triumph-auth-modal__hint {
	margin: 0 0 10px;
	padding: 5px;
	font-size: 14px;
	line-height: 20px;
	color: #404040;
}

.triumph-auth-modal__fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 10px;
	margin-bottom: 10px;
	align-items: end;
}

.triumph-auth-modal .triumph-field--remind,
.triumph-remind-modal .triumph-field--remind {
	padding: 5px;
	margin: 0 0 20px;
	display: flex;
	align-items: flex-end;
	min-height: 50px;
}

.triumph-remind-modal__fields {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.triumph-auth-modal__actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 20px;
	padding-top: 10px;
}

.triumph-auth-modal__actions--end {
	justify-content: flex-end;
}

.triumph-auth-modal__actions .woocommerce-form__label-for-checkbox,
.triumph-auth-modal__actions .triumph-consent--inline {
	margin: 0;
	font-size: 14px;
	color: #404040;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.triumph-auth-modal__actions .triumph-btn,
.triumph-auth-modal__actions .woocommerce-button {
	min-height: 30px !important;
	height: 30px !important;
	padding: 0 20px !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 30px !important;
	border-radius: 2px !important;
}

.triumph-auth-page {
	max-width: 775px;
	margin: 0 auto 48px;
}

@media (max-width: 879px) {
	.triumph-basket__layout,
	.triumph-order__grid {
		grid-template-columns: 1fr;
	}

	.triumph-basket__layout {
		margin: 0;
		padding: 0;
	}

	.triumph-basket__main,
	.triumph-basket__aside,
	.triumph-order__fields,
	.triumph-order__methods,
	.triumph-order__summary {
		padding: 0;
	}

	.triumph-basket__table,
	.triumph-basket__table thead,
	.triumph-basket__table tbody,
	.triumph-basket__table th,
	.triumph-basket__table td,
	.triumph-basket__table tr {
		display: block;
		width: 100%;
	}

	.triumph-basket__row--head {
		display: none;
	}

	.triumph-basket__row--item {
		padding-bottom: 8px;
		margin-bottom: 8px;
	}

	.triumph-basket__cell--media {
		width: 100% !important;
		padding: 12px 0 8px !important;
		text-align: left;
	}

	.woocommerce table.shop_table_responsive.triumph-basket__table tr td.triumph-basket__cell--media::before,
	.woocommerce-page table.shop_table_responsive.triumph-basket__table tr td.triumph-basket__cell--media::before,
	.woocommerce table.shop_table_responsive.triumph-basket__table tr td.triumph-basket__cell--remove::before,
	.woocommerce-page table.shop_table_responsive.triumph-basket__table tr td.triumph-basket__cell--remove::before {
		display: none !important;
		content: none !important;
	}

	.triumph-basket__cell--remove {
		justify-content: flex-end !important;
	}

	.triumph-basket__cell--media img,
	.triumph-basket__cell--media a {
		display: block;
		width: 96px !important;
		height: 96px !important;
		max-width: 96px;
		margin: 0;
	}

	.triumph-basket__cell--media img {
		object-fit: contain;
		background: #fff;
	}

	.triumph-basket__cell--name,
	.triumph-basket__cell--qty,
	.triumph-basket__cell--price,
	.triumph-basket__cell--remove {
		display: flex !important;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		padding: 10px 0 !important;
		text-align: left !important;
	}

	.triumph-basket__cell--price {
		text-align: left !important;
	}

	.triumph-auth-modal__fields {
		grid-template-columns: 1fr;
	}

	.triumph-auth-flip,
	.triumph-auth-modal__panel {
		width: auto;
	}

	.woocommerce .triumph-order .form-row-first,
	.woocommerce .triumph-order .form-row-last,
	.woocommerce-page .triumph-order .form-row-first,
	.woocommerce-page .triumph-order .form-row-last {
		width: 100% !important;
		float: none !important;
		clear: both;
	}

	.triumph-order__submit-wrap {
		text-align: center;
	}

	.triumph-order__submit,
	.woocommerce .triumph-order__submit,
	.triumph-basket-aside__checkout {
		width: 100% !important;
	}
}

/* —— Order received (orderDone.act) —— */
.triumph-order-done {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 16px 40px;
	text-align: center;
}

.triumph-order-done__title {
	margin: 40px 0 20px;
	font-size: 35px;
	font-weight: 400;
	line-height: 35px;
	color: #404040;
}

.triumph-order-done__table-title {
	margin: 30px 0 0;
	font-size: 21px;
	line-height: 25px;
	color: #404040;
}

.triumph-order-done__table-border {
	border: 1px solid #e1e1e1;
	border-radius: 5px;
	margin: 20px auto 40px;
	overflow: hidden;
	text-align: left;
}

.triumph-order-done__table {
	width: 100%;
	border-collapse: collapse;
}

.triumph-order-done__table thead td,
.triumph-order-done__table tbody td {
	padding: 20px;
	border-bottom: 1px solid #e1e1e1;
	vertical-align: top;
	font-size: 14px;
	line-height: 20px;
	color: #404040;
}

.triumph-order-done__table thead td {
	color: #c4c3c2;
	white-space: nowrap;
}

.triumph-order-done__table thead td:first-child,
.triumph-order-done__table tbody td:first-child {
	text-align: left;
}

.triumph-order-done__table thead td:nth-child(2),
.triumph-order-done__table tbody td:nth-child(2) {
	text-align: center;
}

.triumph-order-done__table thead td:last-child,
.triumph-order-done__table tbody td:last-child {
	text-align: right;
}

.triumph-order-done__name {
	font-size: 14px;
	line-height: 20px;
	color: #404040;
}

.triumph-order-done__meta {
	margin-top: 2px;
	font-size: 11px;
	line-height: 15px;
	color: #c4c3c2;
}

.triumph-order-done__table tfoot {
	background: #f23f3f;
	color: #fff;
}

.triumph-order-done__table tfoot td {
	padding: 20px;
	text-align: right;
	font-size: 17px;
	line-height: 21px;
}

.triumph-order-done__total-label {
	margin-right: 8px;
	font-weight: 400;
}

.triumph-order-done__total-value {
	font-weight: 700;
}

.triumph-order-done__banner {
	background-color: #f23f3f;
	background-image: url('../img/order/origami.svg');
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 28px 20px;
	margin: 0 0 50px;
}

.triumph-order-done__banner-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	max-width: 560px;
	margin: 0 auto;
	align-items: start;
}

.triumph-order-done__banner-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
}

.triumph-order-done__icon {
	display: block;
	width: 48px;
	height: auto;
}

.triumph-order-done__banner p {
	margin: 0;
	font-size: 14px;
	line-height: 17px;
}

@media (min-width: 720px) {
	.triumph-order-done__banner p {
		font-size: 17px;
		line-height: 21px;
	}

	.triumph-order-done__icon {
		width: 64px;
	}
}

@media (max-width: 719px) {
	.triumph-order-done {
		padding-left: 12px;
		padding-right: 12px;
	}

	.triumph-order-done__title {
		margin-top: 24px;
		font-size: 28px;
		line-height: 32px;
	}

	.triumph-order-done__table-title {
		font-size: 18px;
		line-height: 22px;
	}

	/* overflow:hidden + nowrap thead обрезали «Стоимость» и «Итого» на телефоне */
	.triumph-order-done__table-border {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.triumph-order-done__table {
		table-layout: fixed;
		width: 100%;
	}

	.triumph-order-done__table thead td,
	.triumph-order-done__table tbody td,
	.triumph-order-done__table tfoot td {
		padding: 12px 8px;
		word-break: break-word;
		overflow-wrap: anywhere;
	}

	.triumph-order-done__table thead td {
		white-space: normal;
		font-size: 12px;
		line-height: 16px;
	}

	.triumph-order-done__table thead td:first-child,
	.triumph-order-done__table tbody td:first-child {
		width: 46%;
	}

	.triumph-order-done__table thead td:nth-child(2),
	.triumph-order-done__table tbody td:nth-child(2) {
		width: 28%;
	}

	.triumph-order-done__table thead td:last-child,
	.triumph-order-done__table tbody td:last-child {
		width: 26%;
	}

	.triumph-order-done__table tfoot td {
		padding: 14px 10px;
		font-size: 15px;
		line-height: 20px;
		white-space: nowrap;
	}

	.triumph-order-done__banner-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 559px) {
	.triumph-order-done__table thead td,
	.triumph-order-done__table tbody td {
		padding: 10px 6px;
		font-size: 13px;
		line-height: 18px;
	}

	.triumph-order-done__table thead td {
		font-size: 11px;
		line-height: 14px;
	}

	.triumph-order-done__meta {
		font-size: 10px;
		line-height: 13px;
	}
}

/* Hide default WC thankyou chrome when custom template is used */
.woocommerce-order-received .woocommerce-order > .woocommerce-notice,
.woocommerce-order-received .woocommerce-order-overview,
.woocommerce-order-received .woocommerce-customer-details,
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-table--order-details {
	display: none !important;
}

.woocommerce-order-received .triumph-order-done .woocommerce-notice--error {
	display: block !important;
}

/* —— Single product passport (эталон shop-passport) —— */
.triumph-passport {
	margin: 0 0 40px;
}

.triumph-passport__title {
	margin: 0 0 8px;
	font-size: 25px;
	line-height: 30px;
	font-weight: 400;
	color: #404040;
}

.triumph-passport__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	margin-bottom: 16px;
}

.triumph-passport__sku {
	font-size: 14px;
	color: #404040;
}

.triumph-passport__stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #404040;
}

.triumph-passport__stock.is-out {
	color: #f23f3f;
}

.triumph-passport__stock-icon {
	color: #08bb9f;
	flex: 0 0 auto;
}

.triumph-passport__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr) minmax(0, 2fr);
	gap: 24px 20px;
	align-items: start;
}

.triumph-passport-gallery {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.triumph-passport-gallery__thumbs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 72px;
	flex: 0 0 72px;
}

.triumph-passport-gallery__thumb {
	display: block;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 1px solid #c3c3c3;
	background: #fff;
	cursor: pointer;
	overflow: hidden;
}

.triumph-passport-gallery__thumb.is-active {
	border-color: #f23f3f;
}

.triumph-passport-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.triumph-passport-gallery__main {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	background: #fff;
}

.triumph-passport-gallery__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: contain;
	margin: 0 auto;
}

.triumph-passport-gallery__zoom {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 18px;
	background: #000;
	border: 0;
	border-radius: 999px;
	color: #fff;
	font: inherit;
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.triumph-passport-gallery__zoom svg {
	display: block;
	flex: 0 0 auto;
	fill: currentColor;
	color: #fff;
}

.triumph-passport-gallery__main:hover .triumph-passport-gallery__zoom,
.triumph-passport-gallery__main:focus-within .triumph-passport-gallery__zoom {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.triumph-passport-gallery__zoom:hover,
.triumph-passport-gallery__zoom:focus-visible {
	background: #222;
	color: #fff;
	transform: translateX(-50%) scale(1.04);
}

/* Product lightbox */
body.triumph-lightbox-open {
	overflow: hidden;
}

.triumph-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 72px 32px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

.triumph-lightbox.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.triumph-lightbox[hidden] {
	display: none !important;
}

.triumph-lightbox.is-open[hidden] {
	display: flex !important;
}

.triumph-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.84);
	cursor: pointer;
}

.triumph-lightbox__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(1180px, 96vw);
	max-height: calc(100vh - 72px);
}

.triumph-lightbox__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: 100%;
	max-height: calc(100vh - 160px);
	padding: 6px;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.triumph-lightbox__image {
	display: block;
	width: auto;
	max-width: min(1120px, 92vw);
	height: auto;
	max-height: calc(100vh - 180px);
	object-fit: contain;
	opacity: 0;
	transform: scale(0.97);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.triumph-lightbox__image.is-ready {
	opacity: 1;
	transform: scale(1);
}

.triumph-lightbox__close,
.triumph-lightbox__nav {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	outline: none;
	cursor: pointer;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	transition:
		background 0.18s ease,
		transform 0.18s ease,
		box-shadow 0.18s ease,
		color 0.18s ease;
}

.triumph-lightbox__close {
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.triumph-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
}

.triumph-lightbox__nav--prev {
	left: 16px;
}

.triumph-lightbox__nav--next {
	right: 16px;
}

.triumph-lightbox__nav[hidden],
.triumph-lightbox__thumbs[hidden] {
	display: none !important;
}

.triumph-lightbox__close:hover,
.triumph-lightbox__close:focus-visible {
	background: var(--triumph-color-accent, #f23f3f);
	color: #fff;
	transform: scale(1.08);
	box-shadow: 0 4px 16px rgba(242, 63, 63, 0.45);
}

.triumph-lightbox__nav:hover,
.triumph-lightbox__nav:focus-visible {
	background: var(--triumph-color-accent, #f23f3f);
	color: #fff;
	transform: translateY(-50%) scale(1.08);
	box-shadow: 0 4px 16px rgba(242, 63, 63, 0.45);
}

.triumph-lightbox__thumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 14px;
	max-width: 100%;
}

.triumph-lightbox__thumb {
	width: 68px;
	height: 68px;
	padding: 0 !important;
	border: 2px solid transparent !important;
	border-radius: 3px !important;
	background: #fff !important;
	background-color: #fff !important;
	color: inherit !important;
	cursor: pointer;
	overflow: hidden;
	outline: none !important;
	box-shadow: none !important;
	transition:
		border-color 0.18s ease,
		transform 0.18s ease,
		box-shadow 0.18s ease;
}

.triumph-lightbox__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Kadence button:hover даёт синий фон — гасим. */
.triumph-lightbox__thumb:hover,
.triumph-lightbox__thumb:focus,
.triumph-lightbox__thumb:focus-visible,
.triumph-lightbox__thumb:active {
	background: #fff !important;
	background-color: #fff !important;
	color: inherit !important;
	border-color: #c3c3c3 !important;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28) !important;
	outline: none !important;
	transform: translateY(-3px) scale(1.03);
}

.triumph-lightbox__thumb.is-active,
.triumph-lightbox__thumb.is-active:hover,
.triumph-lightbox__thumb.is-active:focus {
	border-color: var(--triumph-color-accent, #f23f3f) !important;
	background: #fff !important;
	box-shadow: 0 0 0 1px var(--triumph-color-accent, #f23f3f) !important;
}

@media (max-width: 720px) {
	.triumph-lightbox {
		padding: 52px 12px 20px;
	}

	.triumph-lightbox__nav--prev {
		left: 6px;
	}

	.triumph-lightbox__nav--next {
		right: 6px;
	}

	.triumph-lightbox__close {
		top: 10px;
		right: 10px;
	}

	.triumph-lightbox__stage {
		padding: 4px;
	}

	.triumph-lightbox__image {
		max-width: min(96vw, 100%);
		width: auto;
	}

	.triumph-lightbox__thumb {
		width: 56px;
		height: 56px;
	}
}

.single-product .related {
	display: none !important;
}

/* Hide default WC add-to-cart chrome — replaced by triumph-added-modal */
.woocommerce-message,
.woocommerce-info.wc-forward,
a.added_to_cart.wc-forward,
.woocommerce a.added_to_cart {
	display: none !important;
}

.woocommerce-notices-wrapper:empty {
	display: none !important;
}

.triumph-passport-price__current {
	font-size: 25px;
	line-height: 25px;
	font-weight: 400;
	color: #404040;
}

.triumph-passport-price__bottom {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	margin-bottom: 18px;
}

.triumph-passport-price__disc {
	display: inline-block;
	padding: 5px 10px;
	background: #08bb9f;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	border-radius: 3px;
}

.triumph-passport-price__old {
	font-size: 14px;
	color: #aaa;
	text-decoration: line-through;
}

.triumph-passport-size {
	display: block;
	margin-bottom: 20px;
}

.triumph-passport-size__label {
	display: block;
	font-size: 11px;
	line-height: 1;
	color: #6b6b6b;
	margin-bottom: 2px;
}

.triumph-passport-size__select {
	width: 100%;
	border: none !important;
	border-bottom: 1px solid #6b6b6b !important;
	border-radius: 0 !important;
	background-color: transparent !important;
	background-image: var(--triumph-chevron-down) !important;
	background-repeat: no-repeat !important;
	background-position: right 0 center !important;
	background-size: 12px 16px !important;
	font: inherit;
	font-size: 14px;
	padding: 4px 18px 4px 0 !important;
	color: #404040 !important;
	cursor: pointer;
	box-shadow: none !important;
	outline: none !important;
	accent-color: #6b6b6b;
	color-scheme: light;
}

.triumph-passport-buy {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: end;
	margin-bottom: 12px;
}

.triumph-passport-buy .triumph-counter,
.triumph-passport-buy .quantity.triumph-counter {
	margin: 14px auto 0 !important;
	width: 100px;
}

.woocommerce div.product form.cart .triumph-passport-buy__cart.single_add_to_cart_button,
.triumph-passport-buy__cart {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 40px !important;
	height: 40px !important;
	padding: 0 12px !important;
	margin: 0 !important;
	background: #f23f3f !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 3px !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 40px !important;
	box-shadow: inset 0 -3px 0 #f02727 !important;
	text-transform: none !important;
	order: 0 !important;
}

.woocommerce div.product form.cart .triumph-passport-buy__cart.single_add_to_cart_button:hover,
.triumph-passport-buy__cart:hover {
	background: #f75c5c !important;
	color: #fff !important;
}

.triumph-passport-buy .triumph-counter {
	order: 0 !important;
}

.triumph-passport-phone {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 4px;
	min-height: 40px;
	padding: 0 14px !important;
}

.triumph-passport-phone svg {
	display: block;
	flex: 0 0 auto;
	width: 16px;
	height: 18px;
}

.triumph-passport-spec {
	margin: 0;
	padding: 0;
}

.triumph-passport-spec__row {
	display: grid;
	grid-template-columns: minmax(90px, auto) 1fr;
	gap: 8px 12px;
	align-items: baseline;
	margin: 0 0 10px;
}

.triumph-passport-spec__row dt,
.triumph-passport-spec__row dd {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: #404040;
}

.triumph-passport-spec__row dt span {
	display: inline;
	background: #fff;
	padding-right: 6px;
}

.triumph-passport-spec__row dt {
	position: relative;
}

.triumph-passport-spec__row dt::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 4px;
	border-bottom: 1px dotted #c3c3c3;
	z-index: 0;
}

.triumph-passport-spec__row dt span {
	position: relative;
	z-index: 1;
}

.triumph-passport-spec__row dd span {
	display: inline;
	background: #fff;
	padding-left: 6px;
}

/* Hide default WC chrome on passport pages */
.single-product .woocommerce-product-gallery,
.single-product .summary.entry-summary,
.single-product .woocommerce-tabs,
.single-product .product_meta {
	display: none !important;
}

.single-product .related > h2,
.single-product .related .woocommerce-loop-product__title {
	text-align: center;
}

@media (max-width: 1199px) {
	.triumph-passport__grid {
		grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
	}

	.triumph-passport__right {
		grid-column: 1 / -1;
	}
}

@media (max-width: 879px) {
	.triumph-passport__grid {
		grid-template-columns: 1fr;
	}

	.triumph-passport-gallery {
		flex-direction: column-reverse;
	}

	.triumph-passport-gallery__thumbs {
		flex-direction: row;
		width: auto;
		flex: 0 0 auto;
	}
}
