/**
 * WooCommerce styles for A-Service theme.
 */

.page--woocommerce {
	padding: 40px 0 80px;
}

.page--shop-archive {
	padding: 0;
	background: var(--color-white);
}

.page--shop-archive .section--catalog,
.woocommerce.archive .section--catalog {
	padding: 40px 0 80px;
}

/* Same .container as header / footer — no wider catalog shell */
.page--shop-archive .section--catalog > .container {
	width: 100%;
}

/* Catalog header — desktop 58:2876, mobile 58:2913 */
.catalog-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 30px;
	flex-wrap: nowrap;
	width: 100%;
}

.catalog-header__title {
	margin: 0;
	font-family: var(--font);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	color: #282828;
	flex: 1 1 auto;
	min-width: 0;
}

.catalog-header--search {
	align-items: center;
}

.catalog-header__title--search {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 12px;
}

.catalog-header__search-query {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 36px;
	padding: 6px 14px;
	border-radius: 1000px;
	background: var(--color-gray-bg);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--color-dark);
	overflow-wrap: anywhere;
}

.catalog-header__search-page {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--color-gray-muted);
}

.catalog-header__tools {
	margin-left: auto;
	flex: 0 0 auto;
	position: relative;
	z-index: 5;
}

.catalog-model-filter {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 30px;
}

.catalog-model-filter__label {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-dark);
}

.catalog-model-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.catalog-model-filter__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid #e2e2e6;
	border-radius: 1000px;
	background: #fff;
	color: var(--color-dark);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.catalog-model-filter__item:hover,
.catalog-model-filter__item:focus-visible,
.catalog-model-filter__item.is-active {
	border-color: var(--color-red);
	background: var(--color-red);
	color: #fff;
}

.catalog-header__tools .woocommerce-ordering,
.catalog-ordering {
	position: relative;
	margin: 0;
}

.catalog-ordering__toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-family: var(--font);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	color: #282828;
}

.catalog-ordering__label {
	white-space: nowrap;
}

.catalog-ordering__chevron {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.catalog-ordering.is-open .catalog-ordering__chevron {
	transform: rotate(180deg);
}

.catalog-ordering__dropdown {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	box-sizing: border-box;
	min-width: 240px;
	padding: 30px;
	border-radius: 40px;
	border: 1.5px solid #f0f0f2;
	background: #fff;
	box-shadow: 0 0 14px rgba(51, 51, 51, 0.04);
}

.catalog-ordering__dropdown[hidden] {
	display: none !important;
}

.catalog-ordering__option {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 12px 20px;
	border: 0;
	border-radius: 1000px;
	background: transparent;
	cursor: pointer;
	font-family: var(--font);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	color: #282828;
	text-align: left;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.catalog-ordering__option:hover,
.catalog-ordering__option.is-active {
	background: #f0f0f2;
}

.catalog-ordering select.orderby {
	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;
	appearance: none !important;
}

.page--shop-archive .woocommerce-result-count,
.page--shop-archive .woocommerce-breadcrumb,
.page--shop-archive .woocommerce-notices-wrapper,
.woocommerce.archive .woocommerce-result-count,
.woocommerce.archive .woocommerce-breadcrumb,
.woocommerce.archive .woocommerce-products-header,
.woocommerce.archive:has(.catalog-header) h1.page-title,
.woocommerce-page.archive:has(.catalog-header) h1.page-title {
	display: none !important;
}

.woocommerce.archive h1.page-title,
.woocommerce-page.archive h1.page-title {
	width: 100%;
	max-width: calc(var(--container) + (var(--container-pad) * 2));
	margin: 0 auto 40px;
	padding: 40px var(--container-pad) 0;
	box-sizing: border-box;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-dark);
}

.catalog-empty {
	margin: 0;
	padding: 40px 0;
	font-size: 16px;
	color: var(--color-gray-muted);
}

/*
 * Catalog grid — Figma 58:2860: 4×330px cards, gap 30px in 1410px container.
 */
.catalog-grid {
	--catalog-cols: 4;
	--catalog-gap: 30px;
}

.woocommerce ul.products,
.woocommerce-page ul.products,
.page--shop-archive ul.products,
ul.products.columns-4,
ul.products.catalog-grid {
	display: grid !important;
	grid-template-columns: repeat(var(--catalog-cols, 4), minmax(0, 1fr)) !important;
	gap: var(--catalog-gap, 30px) !important;
	align-items: stretch !important;
	margin: 0 0 40px !important;
	padding: 0 !important;
	list-style: none !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	clear: both !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
.page--shop-archive ul.products::before,
.page--shop-archive ul.products::after,
ul.products.columns-4::before,
ul.products.columns-4::after,
ul.products.catalog-grid::before,
ul.products.catalog-grid::after {
	display: none !important;
	content: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.page--shop-archive ul.products li.product,
ul.products.columns-4 li.product,
ul.products.catalog-grid li.product,
.shop-card-wrap {
	display: flex !important;
	flex-direction: column !important;
	float: none !important;
	clear: none !important;
	position: relative !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	list-style: none !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.catalog-grid > .shop-card-wrap,
.catalog-grid > li.product {
	height: 100%;
}

.woocommerce ul.products li.product .shop-card,
.companion-products__grid .shop-card {
	display: flex;
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	min-height: 400px;
}

.tax-product_cat.term-iphone .catalog-grid .shop-card__image img,
.tax-product_cat.term-apple-iphone .catalog-grid .shop-card__image img {
	object-fit: contain;
	object-position: center center;
}

.woocommerce ul.products li.product a.shop-card,
.companion-products__grid a.shop-card {
	text-decoration: none;
	color: inherit;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	display: none !important;
}

.page--shop-archive .woocommerce-pagination {
	margin: 0;
	padding: 0;
	text-align: center;
}

.page--shop-archive .woocommerce-pagination ul {
	display: inline-flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
}

.page--shop-archive .woocommerce-pagination li {
	border: 0;
	overflow: visible;
}

.page--shop-archive .woocommerce-pagination a,
.page--shop-archive .woocommerce-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 1000px;
	border: 1px solid #f0f0f2;
	background: #fff;
	color: #282828;
	font-size: 14px;
	font-weight: 500;
}

.page--shop-archive .woocommerce-pagination .current {
	background: #282828;
	border-color: #282828;
	color: #fff;
}

.page--shop-archive .section--tradein {
	padding-top: 0;
	padding-bottom: 80px;
}

/* Single product — Figma 58:3066 */
.page--product {
	padding: 0;
}

.page--product .section--product {
	padding: 40px 0 80px;
}

.page--product .section--product > .container {
	width: 100%;
}

.product-figma {
	margin: 0;
	width: 100%;
	max-width: none;
}

/*
 * Hero grid — 690px gallery + 690px panel + 30px gap = 1410px (same as header .container).
 */
.product-hero {
	display: grid;
	width: 100%;
	max-width: none;
	grid-template-columns: minmax(0, 690fr) minmax(0, 690fr);
	gap: 30px;
	align-items: start;
}

.product-gallery {
	display: grid;
	grid-template-columns: 90px minmax(0, 1fr);
	gap: 30px;
	width: 100%;
	min-width: 0;
}

.product-gallery__thumbs-wrap {
	position: relative;
	width: 90px;
	min-height: 0;
}

/* Desktop: thumbs column is exactly as tall as the main photo and scrolls inside. */
.product-gallery__thumbs {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scroll-snap-type: y proximity;
	scrollbar-width: none;
}

.product-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.product-gallery__thumb {
	position: relative;
	display: block;
	flex: 0 0 90px;
	width: 90px;
	height: 90px;
	padding: 6px;
	border: 1.5px solid #f0f0f2;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	cursor: pointer;
	scroll-snap-align: start;
	transition: border-color 0.2s, opacity 0.2s;
}

.product-gallery__thumb:not(.is-active) img {
	opacity: 0.85;
}

.product-gallery__thumb:hover,
.product-gallery__thumb:focus-visible {
	border-color: #c0c1cc;
	outline: none;
}

.product-gallery__thumb.is-active {
	border-color: var(--color-gray-dark, #282828);
}

.product-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.2s;
}

.product-gallery__scroll {
	position: absolute;
	left: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 90px;
	height: 36px;
	padding: 8px;
	border: 0;
	border-radius: 10px;
	background: rgba(240, 240, 242, 0.96);
	box-shadow: 0 4px 14px rgba(40, 40, 40, 0.1);
	cursor: pointer;
	transition: background-color 0.2s;
}

.product-gallery__scroll[hidden] {
	display: none;
}

.product-gallery__scroll--prev {
	top: 0;
}

.product-gallery__scroll--prev img {
	transform: rotate(180deg);
}

.product-gallery__scroll--next {
	bottom: 0;
}

.product-gallery__scroll:hover,
.product-gallery__scroll:focus-visible {
	background: var(--color-gray-dark);
}

.product-gallery__scroll:hover img,
.product-gallery__scroll:focus-visible img {
	filter: brightness(0) invert(1);
}

.product-gallery__main {
	position: relative;
	width: 100%;
	max-width: 570px;
	height: auto;
	aspect-ratio: 1 / 1;
	background: #fff;
}

.product-gallery__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.product-gallery__image.is-active {
	opacity: 1;
	pointer-events: auto;
}

.product-panel {
	display: flex;
	flex-direction: column;
	gap: 120px;
	width: 100%;
	min-width: 0;
}

.product-panel__cards {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.product-config-card,
.product-buy-card {
	padding: 30px;
	border-radius: var(--radius-md);
	background: #f0f0f2;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.product-config-card__title {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 30px;
	max-width: 100%;
	min-width: 0;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	color: #282828;
	overflow-wrap: anywhere;
}

.product-config-card__title span {
	max-width: 100%;
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
}

.product-buy-card__pricing {
	display: flex;
	gap: 60px;
	align-items: flex-start;
	margin-bottom: 20px;
}

.product-buy-card__price--cash .product-buy-card__amount {
	margin: 0;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	color: #282828;
}

.product-buy-card__price--regular .product-buy-card__amount {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	color: #787980;
}

.product-buy-card__caption {
	margin: 2px 0 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	color: inherit;
}

.product-buy-card__price--cash .product-buy-card__caption {
	color: #282828;
}

.product-buy-card__price--regular .product-buy-card__caption {
	color: #787980;
}

.product-buy-card__actions {
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
}

.product-buy-card__cart {
	margin: 0;
}

.product-buy-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 48px;
	padding: 10px 20px;
	border-radius: 1000px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	box-sizing: border-box;
}

.product-buy-card__btn--buy {
	background: var(--color-red);
	color: #fff;
	transition: background-color 0.2s;
}

.product-buy-card__btn--buy:hover,
.product-buy-card__btn--buy:focus-visible {
	background: var(--color-red-hover);
}

.product-buy-card__btn--buy img {
	filter: brightness(0) invert(1);
}

.product-buy-card__btn--call {
	background: #fff;
	color: #282828;
	border: 1px solid #282828;
	font-size: 14px;
	transition: color 0.2s, border-color 0.2s;
}

.product-buy-card__btn--call:hover,
.product-buy-card__btn--call:focus-visible {
	border-color: var(--color-red);
	color: var(--color-red);
}

.product-buy-card__btn--disabled,
.product-buy-card__btn--disabled:hover,
.product-buy-card__btn--disabled:focus-visible {
	background: var(--color-gray-dark);
	color: #fff;
	border-color: transparent;
	opacity: 1;
	cursor: not-allowed;
	pointer-events: none;
}

.product-buy-card__note {
	margin: 30px 0 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	color: #787980;
}

.product-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
}

.product-tabs__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 15px;
	border: 0;
	border-radius: 61px;
	background: #f0f0f2;
	color: #282828;
	font-family: var(--font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.product-tabs__tab:hover:not(.is-active),
.product-tabs__tab:focus-visible:not(.is-active) {
	background: #282828;
	color: #fff;
}

.product-tabs__tab.is-active {
	background: #282828;
	color: #fff;
}

.product-tabs__text,
/* Specs — Figma «Строка характеристики» 4285:17364 (same row as delivery) */
.product-tabs__specs {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin: 0;
	width: 100%;
}

.product-tabs__spec-row {
	display: grid;
	grid-template-columns: minmax(120px, 210px) minmax(0, 1fr);
	gap: 30px;
	align-items: start;
	margin: 0;
}

.product-tabs__spec-row dt {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #282828;
}

.product-tabs__spec-row dd {
	margin: 0;
	padding: 0 0 30px;
	border-bottom: 1px solid #f0f0f2;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	color: #787980;
}

/* Delivery — Figma 58:3259 */
.product-tabs__delivery {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin: 0;
	width: 100%;
}

.product-tabs__delivery-row {
	display: grid;
	grid-template-columns: minmax(120px, 210px) minmax(0, 1fr);
	gap: 30px;
	align-items: start;
	margin: 0;
}

.product-tabs__delivery-row dt {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #282828;
}

.product-tabs__delivery-row dd {
	margin: 0;
	padding: 0 0 30px;
	border-bottom: 1px solid #f0f0f2;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	color: #787980;
}

.product-variants {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.product-variants__group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.product-variants__label {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	color: #282828;
}

.product-variants__options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.product-variants__option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 15px;
	border-radius: 61px;
	background: #fff;
	color: #282828;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.product-variants__option:hover:not(.is-active):not(.is-disabled),
.product-variants__option:focus-visible:not(.is-active):not(.is-disabled) {
	background: #282828;
	color: #fff;
}

.product-variants__option.is-active {
	background: #282828;
	color: #fff;
}

.product-variants__option.is-disabled {
	background: var(--color-gray-light);
	color: var(--color-gray-line);
	opacity: 1;
	pointer-events: none;
}

.product-variants__option--color-thumb {
	width: 90px;
	height: 90px;
	padding: 0;
	border: 1.5px solid #fff;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.product-variants__option--color-thumb.is-active,
.product-variants__option--color-thumb:hover:not(.is-disabled),
.product-variants__option--color-thumb:focus-visible:not(.is-disabled) {
	background: #fff;
	border-color: #787980;
}

.product-variants__option--color-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 6px;
	box-sizing: border-box;
	object-fit: contain;
	object-position: center;
}

.product-variants__swatch {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--swatch-color, #d9d9de);
}

.section--companion-products {
	margin-top: 60px;
	padding: 0;
}

.section--companion-products .section__title--solo {
	margin: 0 0 40px;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	color: #282828;
}

.companion-products__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
	width: 100%;
}

.companion-products__grid .shop-card {
	width: 100%;
	max-width: none;
}

/* Cart & checkout */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
	max-width: 900px;
}

.woocommerce table.shop_table {
	border-collapse: collapse;
	width: 100%;
	border: none;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 16px 12px;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review {
	background: var(--color-gray-bg);
	border-radius: var(--radius-md);
	padding: 30px;
}

.woocommerce .checkout-button,
.woocommerce #place_order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	border-radius: 52px;
	background: var(--color-dark) !important;
	color: var(--color-white) !important;
	font-size: 14px;
	font-weight: 500;
	padding: 0 34px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid #e5e5e5;
	font-family: var(--font);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 24px;
	list-style: none;
}

.woocommerce-pagination {
	margin-top: 40px;
}

.woocommerce-pagination ul {
	display: flex;
	gap: 10px;
	list-style: none;
	padding: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--color-gray-bg);
	font-weight: 500;
}

.woocommerce-pagination ul li span.current {
	background: var(--color-dark);
	color: var(--color-white);
}

/* Header cart badge */
.site-header__cart {
	position: relative;
}

.site-header__cart-count {
	position: absolute;
	top: -4px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 50%;
	background: var(--color-red);
	color: var(--color-white);
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

.shop-card__price .woocommerce-Price-amount {
	font-size: 20px;
	font-weight: 600;
}

.shop-card__price del {
	font-size: 14px;
	color: var(--color-gray-muted);
	margin-right: 8px;
}

.btn--disabled,
.btn--disabled:hover {
	background: var(--color-gray-dark);
	color: var(--color-white);
	opacity: 1;
	cursor: not-allowed;
	pointer-events: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.added_to_cart {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: var(--color-red);
}

@media (max-width: 1200px) {
	.catalog-grid {
		--catalog-cols: 3;
		--catalog-gap: 20px;
	}

	.companion-products__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 900px) {
	.catalog-grid {
		--catalog-cols: 2;
		--catalog-gap: 16px;
	}

	.companion-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 1200px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products,
	.page--shop-archive ul.products,
	ul.products.columns-4,
	ul.products.catalog-grid {
		grid-template-columns: repeat(var(--catalog-cols, 3), minmax(0, 1fr)) !important;
		gap: var(--catalog-gap, 20px) !important;
	}
}

@media (max-width: 1024px) {
	.woocommerce ul.products li.product .shop-card,
	.companion-products__grid .shop-card {
		height: auto;
		min-height: 400px;
	}

	.shop-card__image {
		min-height: 160px;
	}

	.shop-card__image img {
		position: relative;
		inset: auto;
		height: 160px;
	}

	.product-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.product-gallery {
		grid-template-columns: 90px minmax(0, 1fr);
	}

	.product-panel {
		gap: 60px;
	}

	.product-buy-card__pricing {
		gap: 30px;
		flex-wrap: wrap;
	}

	.companion-products__grid {
		display: flex;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.companion-products__grid::-webkit-scrollbar {
		display: none;
	}

	.companion-products__grid .shop-card {
		flex: 0 0 min(330px, calc(100vw - 40px));
		width: min(330px, calc(100vw - 40px));
		scroll-snap-align: start;
	}
}

/* Single product — mobile Figma 58:3277 */
@media (max-width: 767px) {
	.page--product .section--product {
		padding: 24px 0 48px;
	}

	.page--product .section--product > .container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.product-hero {
		gap: 20px;
	}

	.product-gallery {
		display: flex;
		flex-direction: column;
		gap: 20px;
		width: 100%;
	}

	.product-gallery__main {
		order: -1;
		width: 100%;
		max-width: none;
		aspect-ratio: 1 / 1;
	}

	.product-gallery__thumbs-wrap {
		position: relative;
		width: 100%;
	}

	.product-gallery__thumbs-wrap.is-single {
		display: none;
	}

	.product-gallery__thumbs {
		position: static;
		flex-direction: row;
		gap: 8px;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
	}

	.product-gallery__thumb {
		flex: 0 0 72px;
		width: 72px;
		height: 72px;
		padding: 5px;
	}

	.product-gallery__scroll {
		display: none;
	}

	.product-panel {
		gap: 40px;
	}

	.product-config-card,
	.product-buy-card {
		padding: 20px;
		border-radius: 40px;
	}

	.product-config-card__title {
		margin-bottom: 20px;
		font-size: 26px;
		gap: 8px;
	}

	.product-config-card__title span {
		white-space: normal;
	}

	.product-variants__label {
		font-size: 16px;
	}

	.product-variants__options {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 2px;
	}

	.product-variants__options::-webkit-scrollbar {
		display: none;
	}

	.product-variants__options--colors {
		flex-wrap: nowrap;
	}

	.product-buy-card__pricing {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		gap: 16px;
		margin-bottom: 20px;
		flex-wrap: nowrap;
	}

	.product-buy-card__price--cash .product-buy-card__amount {
		font-size: 26px;
	}

	.product-buy-card__price--regular .product-buy-card__amount {
		font-size: 18px;
		line-height: 1.2;
	}

	.product-buy-card__caption {
		font-size: 12px;
	}

	.product-buy-card__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.product-buy-card__cart,
	.product-buy-card__btn--buy,
	.product-buy-card__btn--call {
		width: 100%;
	}

	.product-buy-card__btn--call {
		background: #fff;
		border: 1px solid #282828;
	}

	.product-buy-card__note {
		margin-top: 20px;
		font-size: 12px;
	}

	/* Figma «Строка характеристики» Type=Mobile 4285:17365 — label above value */
	.product-tabs__specs,
	.product-tabs__delivery {
		gap: 20px;
	}

	.product-tabs__spec-row,
	.product-tabs__delivery-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.product-tabs__spec-row dt,
	.product-tabs__delivery-row dt {
		font-size: 14px;
		line-height: 1.3;
	}

	.product-tabs__spec-row dd,
	.product-tabs__delivery-row dd {
		padding-bottom: 20px;
		font-size: 14px;
	}

	.section--companion-products {
		margin-top: 40px;
	}

	.section--companion-products .section__title--solo {
		margin-bottom: 24px;
		font-size: 26px;
	}

	.companion-products__grid {
		gap: 10px;
		margin: 0 -16px;
		padding: 0 16px;
	}

	.companion-products__grid .shop-card {
		flex: 0 0 min(358px, calc(100vw - 32px));
		width: min(358px, calc(100vw - 32px));
		height: 400px;
		min-height: 400px;
		padding: 30px;
		border-radius: 40px;
	}

	.companion-products__grid .shop-card__image {
		min-height: 0;
	}

	.companion-products__grid .shop-card__image img {
		position: absolute;
		inset: 0;
		height: 100%;
	}

	.companion-products__dots {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 2px;
		margin-top: 16px;
	}

	.companion-products__dot {
		width: 4px;
		height: 4px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #c0c1cc;
		cursor: pointer;
	}

	.companion-products__dot.is-active {
		background: #282828;
	}
}

@media (min-width: 768px) {
	.companion-products__dots {
		display: none;
	}
}

@media (max-width: 900px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products,
	.page--shop-archive ul.products,
	ul.products.columns-4,
	ul.products.catalog-grid {
		grid-template-columns: repeat(var(--catalog-cols, 2), minmax(0, 1fr)) !important;
		gap: var(--catalog-gap, 16px) !important;
	}
}

@media (max-width: 768px) {
	.page--shop-archive .section--catalog {
		padding: 24px 0 48px;
	}

	.catalog-grid {
		--catalog-cols: 1;
		--catalog-gap: 12px;
	}

	.woocommerce ul.products,
	.woocommerce-page ul.products,
	.page--shop-archive ul.products,
	ul.products.columns-4,
	ul.products.catalog-grid {
		grid-template-columns: repeat(var(--catalog-cols, 1), minmax(0, 1fr)) !important;
		gap: var(--catalog-gap, 12px) !important;
	}

	.catalog-grid .shop-card {
		min-height: 360px;
		height: auto;
	}

	/* Mobile catalog header — Figma 58:2913 */
	.catalog-header {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 10px;
		margin-bottom: 24px;
		flex-wrap: wrap;
	}

	.catalog-header__title {
		font-size: 26px;
		width: 100%;
	}

	.catalog-header__title--search {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.catalog-header__search-label {
		font-size: 22px;
	}

	.catalog-header__search-query {
		max-width: 100%;
		min-height: 32px;
		padding: 6px 12px;
		font-size: 14px;
	}

	.catalog-header__tools {
		margin-left: 0;
		align-self: flex-start;
		width: auto;
	}

	.catalog-ordering {
		width: auto;
	}

	.catalog-ordering__dropdown {
		left: 0;
		right: auto;
		min-width: 240px;
		width: max-content;
	}

	.shop-card__head {
		min-height: 50px;
	}
}

/* ---------- Product photo zoom ---------- */

.product-gallery__image.is-active {
	cursor: zoom-in;
}

.product-gallery__image:focus-visible {
	outline: 2px solid var(--color-dark);
	outline-offset: 4px;
	border-radius: 20px;
}

html.has-lightbox,
html.has-lightbox body {
	overflow: hidden;
}

.product-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	background: #fff;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.product-lightbox[hidden] {
	display: none;
}

.product-lightbox.is-open {
	opacity: 1;
}

.product-lightbox__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 30px;
}

.product-lightbox__counter {
	font-size: 16px;
	font-weight: 500;
	color: #787980;
}

.product-lightbox__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #f0f0f2;
	color: #282828;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.product-lightbox__btn:hover,
.product-lightbox__btn:focus-visible {
	background: #787980;
	color: #fff;
}

.product-lightbox__stage {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 20px;
	min-height: 0;
	padding: 0 30px;
}

.product-lightbox__frame {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-width: 0;
	overflow: hidden;
}

.product-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	cursor: zoom-in;
	user-select: none;
	-webkit-user-select: none;
	transition: transform 0.2s ease;
}

.product-lightbox.is-zoomed .product-lightbox__img {
	transform: scale(2.2);
	cursor: zoom-out;
}

.product-lightbox__thumbs {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 20px 30px 30px;
	overflow-x: auto;
	scrollbar-width: none;
}

.product-lightbox__thumbs::-webkit-scrollbar {
	display: none;
}

.product-lightbox__thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 1.5px solid #f0f0f2;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	cursor: pointer;
}

.product-lightbox__thumb.is-active,
.product-lightbox__thumb:hover,
.product-lightbox__thumb:focus-visible {
	border-color: #282828;
}

.product-lightbox__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.product-lightbox.is-single .product-lightbox__nav,
.product-lightbox.is-single .product-lightbox__thumbs,
.product-lightbox.is-single .product-lightbox__counter {
	visibility: hidden;
}

@media (max-width: 767px) {
	.product-lightbox__top {
		padding: 12px 16px;
	}

	.product-lightbox__stage {
		padding: 0;
	}

	.product-lightbox__nav {
		position: absolute;
		top: 50%;
		z-index: 1;
		width: 40px;
		height: 40px;
		transform: translateY(-50%);
		background: rgba(240, 240, 242, 0.9);
	}

	.product-lightbox__nav--prev {
		left: 8px;
	}

	.product-lightbox__nav--next {
		right: 8px;
	}

	.product-lightbox__frame {
		touch-action: none;
	}

	.product-lightbox__thumbs {
		justify-content: flex-start;
		padding: 12px 16px 20px;
	}

	.product-lightbox__thumb {
		flex-basis: 56px;
		width: 56px;
		height: 56px;
	}
}

html.has-lightbox .side-widgets,
html.has-lightbox [data-side-widgets],
html.has-lightbox .b24-widget-button-wrapper {
	display: none !important;
}

.product-variants__option {
	white-space: nowrap;
}

@media (max-width: 767px) {
	.product-variants__option--memory,
	.product-variants__option--connectivity {
		flex: 0 0 auto;
	}
}

/* Responsive 1.7.58 - catalog 2 cols on tablets */
@media (min-width: 560px) and (max-width: 900px) {
	.catalog-grid {
		--catalog-cols: 2;
		--catalog-gap: 16px;
	}

	.woocommerce ul.products,
	.woocommerce-page ul.products,
	.page--shop-archive ul.products,
	ul.products.columns-4,
	ul.products.catalog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 16px !important;
	}
}

/* 1.8.0 — shop breadcrumbs (markup shared with .blog-crumbs) */
.shop-crumbs .blog-crumbs__list {
	margin: 0 0 20px;
}

.shop-crumbs .blog-crumbs__item a {
	color: inherit;
	text-decoration: none;
}

.shop-crumbs .blog-crumbs__current {
	overflow: hidden;
	max-width: 520px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.shop-crumbs .blog-crumbs__list {
		row-gap: 4px;
		margin-bottom: 14px;
	}

	.shop-crumbs .blog-crumbs__item {
		font-size: 13px;
	}

	.shop-crumbs .blog-crumbs__current {
		max-width: calc(100vw - 32px);
	}

	/* Category pages: keep the current item (no product name to hide). */
	.page--shop-archive .shop-crumbs .blog-crumbs__item:last-child {
		display: inline-flex;
	}

	.page--shop-archive .shop-crumbs .blog-crumbs__item:nth-last-child(2)::after {
		content: "/";
	}
}

/* 1.9.3 — «Покупают вместе»: carousel with arrows on desktop */
.companion-products__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 40px;
}

.section--companion-products .companion-products__head .section__title--solo {
	margin: 0;
}

.companion-products__nav {
	display: flex;
	flex-shrink: 0;
	gap: 10px;
}

.companion-products__nav[hidden] {
	display: none;
}

@media (min-width: 1025px) {
	.companion-products__grid {
		display: flex;
		gap: 30px;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		padding: 2px 0;
	}

	.companion-products__grid::-webkit-scrollbar {
		display: none;
	}

	.companion-products__grid .shop-card {
		flex: 0 0 calc((100% - 90px) / 4);
		width: calc((100% - 90px) / 4);
		scroll-snap-align: start;
	}
}

@media (min-width: 1025px) and (max-width: 1200px) {
	.companion-products__grid {
		gap: 20px;
	}

	.companion-products__grid .shop-card {
		flex: 0 0 calc((100% - 40px) / 3);
		width: calc((100% - 40px) / 3);
	}
}

@media (max-width: 1024px) {
	.companion-products__nav {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.companion-products__head {
		margin-bottom: 24px;
	}
}
