/**
 * FurniStyle UI v3 — WooCommerce layer.
 * Product card, catalog (archive / filters / drawer), single product, cart, checkout, mini cart, notices.
 * Tokens and base components: design-system.css. Breakpoints: 1199 / 999 / 767 / 374.
 * Woo templates stay native (classic cart/checkout shortcodes) — only presentation lives here.
 */

/* =========================================================
   W1. Woo defaults reset + notices + buttons
   ========================================================= */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce .col2-set::before,
.woocommerce .col2-set::after { display: none !important; content: none !important; }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .wc-forward,
.woocommerce .checkout-button,
.woocommerce #place_order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--fs-radius-sm);
	background: var(--fs-color-accent);
	color: #fff;
	font-family: var(--fs-font-family);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--fs-transition), box-shadow var(--fs-transition), opacity var(--fs-transition);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce #place_order:hover { background: var(--fs-color-accent-hover); color: #fff; }
.woocommerce button.button:disabled,
.woocommerce button.button.disabled,
.woocommerce a.button.disabled { background: #EDEDEB !important; color: #999996 !important; cursor: not-allowed; opacity: 1; }
.woocommerce a.button.loading,
.woocommerce button.button.loading { opacity: .7; pointer-events: none; }
.woocommerce a.button.loading::after,
.woocommerce button.button.loading::after { position: static; margin-left: 6px; }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0 0 20px !important;
	padding: 14px 18px !important;
	border: 0 !important;
	border-radius: var(--fs-radius-sm);
	background: var(--fs-color-surface-soft);
	color: var(--fs-color-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	list-style: none;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { display: none !important; }
.woocommerce-message { background: var(--fs-color-success-soft); color: #2F5A3A; }
.woocommerce-error { display: grid; gap: 4px; background: var(--fs-color-error-soft); color: #8A2E2E; }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button,
.woocommerce-info .button { order: 2; min-height: 0 !important; margin-left: auto; padding: 0 !important; background: none !important; color: inherit !important; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.fs-addnote__text { flex: 1; min-width: 0; }
.woocommerce-info.fs-empty { display: grid; background: #fff; color: var(--fs-color-text); }

/* Rating stars (reviews) */
.woocommerce .star-rating { color: var(--fs-color-text); }
.woocommerce p.stars a { color: var(--fs-color-text); }

/* Generic onsale from other plugins/templates */
.woocommerce span.onsale:not(.fs-onsale) {
	min-width: 0; min-height: 0; margin: 0; padding: 6px 10px; border-radius: var(--fs-radius-pill);
	background: var(--fs-color-sale); color: #fff; font-size: 12px; font-weight: 600; line-height: 1;
}

/* Quantity input (Woo default, without Blocksy steppers) */
.woocommerce .quantity .qty {
	width: 72px;
	min-height: 48px;
	padding: 0 8px;
	text-align: center;
	font-weight: 600;
	-moz-appearance: textfield;
}
.woocommerce .quantity .qty::-webkit-inner-spin-button,
.woocommerce .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* JS stepper (assets/js/woocommerce.js adds .fs-qty to .quantity without Blocksy controls) */
.quantity.fs-qty {
	display: inline-grid !important;
	grid-template-columns: 40px minmax(0, 1fr) 40px;
	align-items: center;
	width: 120px;
	height: 48px;
	padding: 0 4px;
	border: 1px solid var(--fs-color-border);
	border-radius: 10px;
	background: #fff;
}
.quantity.fs-qty .qty { width: 100% !important; min-width: 0; min-height: 0 !important; height: 40px; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.fs-qty__btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--fs-color-text); cursor: pointer; }
.fs-qty__btn:hover { background: var(--fs-color-surface-soft); }
.fs-qty__btn[disabled] { opacity: .3; cursor: default; background: none; }
.quantity.fs-qty--sm { width: 112px; height: 44px; grid-template-columns: 36px minmax(0, 1fr) 36px; }
.quantity.fs-qty--sm .fs-qty__btn { width: 36px; height: 36px; }
/* 4.1.0-rc7: the parent theme's own − / + (Blocksy .ct-increase / .ct-decrease) in the cart — one control per input,
   same 112 × 44 frame as .fs-qty--sm. FurniStyle never adds its buttons next to them (assets/js/woocommerce.js → initQty). */
.woocommerce-cart-form .quantity[data-type] { --quantity-width: 112px; --quantity-height: 44px; position: relative; display: inline-block; width: 112px; height: 44px; margin: 0; }
.woocommerce-cart-form .quantity[data-type] input.qty { box-sizing: border-box; width: 100%; height: 44px; min-height: 44px; padding: 0 36px; border: 1px solid var(--fs-color-border); border-radius: 10px; background: #fff; text-align: center; }
.woocommerce-cart-form .quantity[data-type] .ct-increase,
.woocommerce-cart-form .quantity[data-type] .ct-decrease { position: absolute; top: 4px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; }
.woocommerce-cart-form .quantity[data-type] .ct-decrease { left: 4px; right: auto; }
.woocommerce-cart-form .quantity[data-type] .ct-increase { right: 4px; left: auto; }

/* =========================================================
   W2. Product grid + product card (one component for every loop)
   ========================================================= */
.woocommerce ul.products,
.fs-product-section ul.products,
ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
ul.products.columns-3,
.fs-cols-3 ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
ul.products.columns-2,
.fs-cols-2 ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
ul.products.columns-5,
.fs-cols-5 ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fs-archive ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }

ul.products li.product.fs-card,
.woocommerce ul.products li.product.fs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	float: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 12px 12px 14px;
	border: 1px solid transparent;
	border-radius: var(--fs-radius-md);
	background: #fff;
	text-align: left;
	transition: border-color var(--fs-transition), box-shadow var(--fs-transition);
}
ul.products li.product.fs-card:hover { border-color: var(--fs-color-border); box-shadow: var(--fs-shadow-card); }
ul.products li.product.fs-card::before,
ul.products li.product.fs-card::after { display: none; }

.fs-card__link { display: block; width: 100%; color: inherit; text-decoration: none; }
.fs-card .fs-catalog-media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 18px;
	overflow: hidden;
	border-radius: 14px;
	background: var(--fs-color-media);
}
.fs-card .fs-catalog-media img {
	position: static !important;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	object-fit: contain !important;
	transition: transform 300ms ease;
}
.fs-card:hover .fs-catalog-media img { transform: scale(1.025); }
.fs-card.outofstock .fs-catalog-media img { opacity: .5; }

.fs-card__badges { position: absolute; top: 24px; left: 24px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.fs-card__badges .onsale { position: static !important; margin: 0 !important; }
.fs-card__swatches { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 4px; padding: 4px; border-radius: var(--fs-radius-pill); background: rgba(255, 255, 255, .9); }
.fs-card__swatches i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }

.fs-card__body { display: flex; flex: 1; flex-direction: column; padding: 0 4px; }
.fs-card .fs-card__title,
.woocommerce ul.products li.product .fs-card__title {
	display: -webkit-box;
	min-height: 2.5em;
	margin: 14px 0 8px !important;
	padding: 0 !important;
	overflow: hidden;
	font-size: 17px !important;
	line-height: 1.25 !important;
	font-weight: 600 !important;
	letter-spacing: -.02em;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.fs-card__title a { color: var(--fs-color-text); text-decoration: none; }
.fs-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* Whole card is clickable via the title link (image link is aria-hidden duplicate). */
.fs-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.fs-card__actions { position: relative; z-index: 2; }
.fs-card__swatches { z-index: 2; }

.fs-catalog-specs { display: grid; gap: 3px; margin: 0 0 14px; font-size: 13px; line-height: 1.42; color: var(--fs-color-text-secondary); }
.fs-catalog-spec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px; min-width: 0; }
.fs-catalog-spec__label { font-weight: 600; color: var(--fs-color-text); }
.fs-catalog-spec__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fs-price,
.woocommerce ul.products li.product .price.fs-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin: auto 0 14px !important;
	color: var(--fs-color-text) !important;
	font-size: 19px !important;
	font-weight: 600;
	line-height: 1.2;
}
.fs-price ins, .price ins { text-decoration: none; background: none; }
.fs-price.is-sale ins { color: var(--fs-color-sale); }
.fs-price ins { order: 1; }
.fs-price del { order: 2; color: var(--fs-color-text-muted); font-size: .78em; font-weight: 600; opacity: 1; }
.fs-price .fs-price__from { order: 0; }
.fs-price__from { color: var(--fs-color-text-secondary); font-size: .78em; font-weight: 600; }
.fs-price .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.fs-card__actions { margin-top: 0; }
.fs-card__actions .button,
.woocommerce ul.products li.product .button.fs-card__cta,
.fs-card__cta {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 46px;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 0;
	border-radius: 10px !important;
	background: var(--fs-color-accent);
	color: #fff;
	font-size: 14px !important;
	font-weight: 600;
	white-space: nowrap;
}
.fs-card__actions .button:hover { background: var(--fs-color-accent-hover); }
.fs-card__actions .fs-card__cta--outline,
.woocommerce ul.products li.product .button.fs-card__cta--outline { background: #fff; color: var(--fs-color-text); box-shadow: inset 0 0 0 1px var(--fs-color-border-strong); }
.fs-card__actions .fs-card__cta--outline:hover { background: #fff; color: var(--fs-color-text); box-shadow: inset 0 0 0 1px var(--fs-color-text); }
.fs-card__actions .button.added,
.fs-card__cta--added { background: var(--fs-color-success) !important; color: #fff !important; box-shadow: none !important; }
.fs-card__actions .button.added::after { display: none !important; }
.fs-card__actions .added_to_cart { display: none !important; }

/* Product sections (block furnistyle/product-section) */
.fs-product-section .woocommerce { margin: 0; }
.fs-product-section > .woocommerce > .woocommerce-pagination { display: none; }

/* =========================================================
   W3. Catalog archive
   ========================================================= */
.fs-archive-page { padding: 8px 0 var(--fs-section-gap); }
.fs-archive-head { display: grid; gap: 8px; margin-bottom: 20px; }
.fs-archive-head h1,
.fs-archive-head .page-title { margin: 0; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.035em; }
.fs-archive-head__desc { max-width: 680px; color: var(--fs-color-text-secondary); }
.fs-archive-head__desc p { margin: 0; }

.fs-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.fs-subcats .fs-chip__count { font-weight: 600; color: var(--fs-color-text-muted); }

.fs-archive { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.fs-archive__main { min-width: 0; }

.fs-sidebar {
	position: sticky;
	top: calc(var(--fs-header-h) + 20px);
	display: grid;
	gap: 4px;
	max-height: calc(100vh - var(--fs-header-h) - 40px);
	overflow: auto;
	padding: 8px 20px 20px;
	border-radius: var(--fs-radius-md);
	background: #fff;
	scrollbar-width: thin;
}
.admin-bar .fs-sidebar { top: calc(var(--fs-header-h) + 52px); }
.fs-sidebar__head { display: none; }
.fs-fgroup { border-bottom: 1px solid var(--fs-color-border); }
.fs-fgroup:last-of-type { border-bottom: 0; }
.fs-fgroup__head {
	display: flex; align-items: center; justify-content: space-between; width: 100%; height: 52px; padding: 0;
	border: 0; background: none; color: var(--fs-color-text); font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
}
.fs-fgroup__head em { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: var(--fs-color-accent); color: #fff; font-size: 11px; font-style: normal; }
.fs-fgroup__head svg { color: var(--fs-color-text-secondary); transition: transform var(--fs-transition); }
.fs-fgroup.is-closed .fs-fgroup__head svg { transform: rotate(-90deg); }
.fs-fgroup__body { padding: 0 0 18px; }
.fs-fgroup.is-closed .fs-fgroup__body { display: none; }
.fs-fgroup .fs-check { min-height: 36px; }

.fs-fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fs-fchip {
	position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 38px; padding: 0 12px;
	border: 1px solid var(--fs-color-border); border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
	transition: border-color var(--fs-transition), box-shadow var(--fs-transition), background var(--fs-transition);
}
.fs-fchip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fs-fchip:hover { border-color: var(--fs-color-border-strong); }
.fs-fchip.is-selected,
.fs-fchip:has(input:checked) { border-color: var(--fs-color-text); background: #F7F7F6; box-shadow: inset 0 0 0 1px var(--fs-color-text); }
.fs-fchip:has(input:focus-visible) { outline: 2px solid var(--fs-color-text); outline-offset: 2px; }
.fs-fchip.is-disabled { opacity: .38; cursor: default; }

.fs-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fs-range label { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 1px solid var(--fs-color-border); border-radius: 10px; background: #fff; color: var(--fs-color-text-secondary); font-size: 13px; }
.fs-range label:focus-within { border-color: var(--fs-color-text-secondary); box-shadow: 0 0 0 3px rgba(20, 20, 20, .06); }
.fs-range input { width: 100%; min-width: 0; min-height: 0; padding: 0; border: 0; outline: none; background: none; box-shadow: none !important; color: var(--fs-color-text); font-size: 14px; font-weight: 600; -moz-appearance: textfield; }
.fs-range input::-webkit-inner-spin-button, .fs-range input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fs-sidebar__actions { display: grid; gap: 8px; padding-top: 12px; }
/* With JS the desktop sidebar applies filters instantly → apply button only in the drawer. */
.fs-js .fs-filters__apply { display: none; }

.fs-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-height: 48px; margin-bottom: 16px; flex: 1 1 100%; width: 100%; min-width: 0; box-sizing: border-box; } /* rc8: Blocksy's .woo-listing-top is a flex row — the toolbar is its full-width item, not content-sized */
.fs-toolbar .woocommerce-result-count { flex: 1; margin: 0 !important; color: var(--fs-color-text-secondary); font-size: 14px; float: none !important; text-transform: none; letter-spacing: 0; } /* rc8: Blocksy upper-cases it */
.fs-toolbar .woocommerce-ordering { position: relative; margin: 0 !important; float: none !important; }
.fs-toolbar .woocommerce-ordering::after { content: ""; position: absolute; top: 50%; right: 14px; width: 16px; height: 16px; margin-top: -8px; background: var(--fs-color-text-secondary); -webkit-mask: var(--fs-i-chev) center / contain no-repeat; mask: var(--fs-i-chev) center / contain no-repeat; pointer-events: none; }
.fs-toolbar select.orderby {
	min-height: 0; height: 44px; width: auto; padding: 0 40px 0 16px; border-radius: var(--fs-radius-pill);
	background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; appearance: none; -webkit-appearance: none;
}
.fs-toolbar__filters { display: none !important; }

.fs-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fs-afchip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 12px; border-radius: var(--fs-radius-pill); background: var(--fs-color-surface-soft); color: var(--fs-color-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.fs-afchip:hover { background: #EDEDEB; }
.fs-afchip svg { color: var(--fs-color-text-secondary); }
.fs-afchip--reset { padding: 0 8px; background: none; text-decoration: underline; text-underline-offset: 3px; }

/* Pagination */
.woocommerce nav.woocommerce-pagination { margin-top: 40px; text-align: center; }
.woocommerce nav.woocommerce-pagination ul.page-numbers { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; border: 0; }
.woocommerce nav.woocommerce-pagination ul li { list-style: none; float: none; margin: 0; border: 0; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 12px;
	border: 1px solid var(--fs-color-border); border-radius: 12px; background: #fff; color: var(--fs-color-text); font-weight: 600; line-height: 1; text-decoration: none;
}
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover { border-color: var(--fs-color-border-strong); background: #fff; }
.woocommerce nav.woocommerce-pagination ul li span.current { border-color: var(--fs-color-accent); background: var(--fs-color-accent); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li .dots { border-color: transparent; background: none; }

/* SEO text */
.fs-seo { margin-top: 56px; padding: 36px 40px; border-radius: var(--fs-radius-lg); background: #fff; }
.fs-seo h2 { margin: 0 0 14px; font-size: 24px; }
.fs-seo__body { position: relative; max-height: 120px; overflow: hidden; }
.fs-seo__body.is-open { max-height: none; }
.fs-seo__body:not(.is-open)::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 60px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.fs-seo [data-fs-seo-toggle] { margin-top: 14px; }
.fs-seo.is-short .fs-seo__body { max-height: none; }
.fs-seo.is-short .fs-seo__body::after,
.fs-seo.is-short [data-fs-seo-toggle] { display: none; }

/* =========================================================
   W4. Single product
   Blocksy renders gallery + summary either inside .product-entry-wrapper
   or directly in div.product — both layouts are covered.
   ========================================================= */
.single-product {
	--fs-gallery-thumb: 68px;
	/* 4.8.4-rc3: the stage is 4:3 by its width (no fixed height); on desktop it is also capped by the viewport
	   (--fs-gallery-max-h, W4 media query) so the whole gallery fits under the sticky header. */
	--fs-gallery-ratio: 4 / 3;
	--fs-gallery-max-h: none;
}
.single-product div.product { position: relative; max-width: 1280px; margin-inline: auto; }
.single-product .fs-crumbs,
.single-product .woocommerce-breadcrumb { margin: 20px 0 24px; }

@media (min-width: 1000px) {
	.single-product div.product > .product-entry-wrapper,
	.single-product div.product:not(:has(> .product-entry-wrapper)) {
		display: grid !important;
		grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr);
		column-gap: 56px;
		row-gap: 0;
		align-items: start;
	}
	.single-product div.product .woocommerce-product-gallery {
		grid-column: 1; grid-row: 1; float: none !important; width: 100% !important; max-width: none !important; margin: 0 !important;
	}
	.single-product div.product .summary {
		grid-column: 2; grid-row: 1; float: none !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 6px 0 0 !important;
	}
	.single-product div.product:not(:has(> .product-entry-wrapper)) > :not(.woocommerce-product-gallery):not(.summary) { grid-column: 1 / -1; width: 100%; }
	.single-product div.product::after { display: none !important; }
	/* Summary follows the gallery while scrolling long pages — 4.1.0-rc7: only when the whole summary fits into the
	   viewport (assets/js/woocommerce.js → initSmartSticky measures it and sets .fs-summary-sticky); a taller summary
	   stays in the normal flow, otherwise its lower part (add to cart, accordion) could not be reached until the
	   end of the gallery column. */
	.single-product div.product .summary { position: static !important; }
	.single-product div.product .summary.fs-summary-sticky { position: sticky !important; top: calc(var(--fs-header-h) + 20px); }
	/* 4.8.4-rc3: sticky gallery. The whole photo block (stage + thumbs) follows the page while the summary column
	   is longer; it is bounded by the gallery's grid area, so it leaves together with the product row right before
	   the tabs («Характеристики / Описание / Отзывы»). initSmartSticky() (assets/js/woocommerce.js) sets the class
	   only when the gallery fits under the header and is shorter than the summary; the summary is then not sticky. */
	.single-product { --fs-gallery-max-h: max(320px, calc(100vh - var(--fs4-sticky-top, 0px) - var(--fs-header-h) - 48px)); }
	.single-product .fs-product-gallery__stage { width: 100%; } /* capped by the window → wider than 4:3, never narrower than the column */
	.single-product div.product > .product-entry-wrapper > .woocommerce-product-gallery.fs-gallery-sticky { position: sticky; top: calc(var(--fs4-sticky-top, 0px) + var(--fs-header-h) + 20px); align-self: start; }
	/* Vertical thumbs are exactly as tall as the stage and scroll inside it (contain: size → they never make the
	   row taller; stretch → they take the stage height whatever ratio / cap the stage has). */
	.single-product .fs-product-gallery__thumbs { align-self: stretch; max-height: none; contain: size; }
}

/* ---------- Gallery ---------- */
.single-product .woocommerce-product-gallery { position: relative; opacity: 1 !important; }
.fs-product-gallery {
	position: relative;
	display: grid;
	grid-template-columns: var(--fs-gallery-thumb) minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	width: 100%;
}
.fs-product-gallery--empty .fs-product-gallery__stage > img { display: block; width: 100%; height: 100%; object-fit: contain; } /* 4.8.4-rc3 */
.fs-product-gallery--empty,
.fs-product-gallery:not(:has(.fs-product-gallery__thumbs)) { grid-template-columns: minmax(0, 1fr); }
.fs-product-gallery__thumbs { display: flex; flex-direction: column; gap: 8px; overflow: auto; scrollbar-width: none; }
.fs-product-gallery__thumbs::-webkit-scrollbar { display: none; }
.fs-product-gallery__thumb {
	display: flex; flex: none; align-items: center; justify-content: center; width: var(--fs-gallery-thumb); height: var(--fs-gallery-thumb); padding: 5px;
	border: 1px solid transparent; border-radius: 10px; background: #fff; opacity: .7; cursor: pointer; transition: opacity 160ms ease, border-color 160ms ease;
}
.fs-product-gallery__thumb:hover,
.fs-product-gallery__thumb.is-active { opacity: 1; border-color: #AFAFAC; }
.fs-product-gallery__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.fs-product-gallery__stage {
	position: relative;
	aspect-ratio: var(--fs-gallery-ratio); /* 4.8.4-rc3: was height: var(--fs-gallery-height) */
	max-height: var(--fs-gallery-max-h);
	overflow: hidden;
	border: 1px solid #EEEEEC;
	border-radius: 16px;
	background: #fff;
}
.fs-product-gallery__track { position: absolute; inset: 0; display: flex; transition: transform 320ms ease; will-change: transform; } /* 4.8.4-rc3: fills the 4:3 stage in every engine (was height: 100%) */
.fs-product-gallery__slide { display: flex; flex: 0 0 100%; align-items: center; justify-content: center; height: 100%; padding: 14px; } /* 4.8.4-rc3: 28 → 14 px */
.fs-product-gallery__link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: zoom-in; }
.fs-product-gallery__main,
.fs-product-gallery__slide img {
	width: 100% !important; height: 100% !important; max-width: 100%; margin: 0 !important;
	object-fit: contain !important; object-position: center !important;
}
.fs-product-gallery__nav {
	position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; padding: 0;
	border: 1px solid var(--fs-color-border); border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--fs-color-text); cursor: pointer;
	opacity: 0; transition: opacity var(--fs-transition);
}
.fs-product-gallery__stage:hover .fs-product-gallery__nav,
.fs-product-gallery__nav:focus-visible { opacity: 1; }
.fs-product-gallery__nav[disabled] { opacity: 0 !important; pointer-events: none; }
.fs-product-gallery__nav--prev { left: 14px; }
.fs-product-gallery__nav--next { right: 14px; }
.fs-product-gallery__dots { position: absolute; right: 0; bottom: 14px; left: 0; z-index: 3; display: none; justify-content: center; gap: 6px; pointer-events: none; }
.fs-product-gallery__dots i { width: 6px; height: 6px; border-radius: 3px; background: #D4D4D1; transition: width var(--fs-transition); }
.fs-product-gallery__dots i.is-active { width: 18px; background: var(--fs-color-text); }
.fs-product-gallery__badges { position: absolute; top: 14px; left: 14px; z-index: 4; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.fs-product-gallery__badges .onsale { position: static !important; margin: 0 !important; }
.fs-product-gallery__zoom {
	position: absolute; top: 14px; right: 14px; z-index: 4; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%; background: var(--fs-color-surface-soft); color: var(--fs-color-text); cursor: zoom-in;
}
.single-product .woocommerce-product-gallery > .onsale { display: none; }

/* Lightbox */
.fs-lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(255, 255, 255, .98); }
.fs-lightbox::backdrop { background: rgba(20, 20, 20, .5); }
.fs-lightbox[open] { display: grid; place-items: center; }
.fs-lightbox img { max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); object-fit: contain; }
.fs-lightbox__close { position: absolute; top: 16px; right: 16px; }
/* 4.8.0-rc1: arrows (same look as the gallery arrows), swipe, loading state */
.fs-lightbox { height: 100dvh; max-height: 100dvh; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.fs-lightbox img { max-height: calc(100dvh - 48px); transition: transform var(--fs-transition), opacity var(--fs-transition); user-select: none; -webkit-user-drag: none; }
.fs-lightbox.is-loading img { opacity: .35; }
.fs-lightbox.is-dragging img { transition: none; }
.fs-lightbox__close { z-index: 2; }
.fs-lightbox__nav {
	position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; padding: 0;
	border: 1px solid var(--fs-color-border); border-radius: 50%; background: #fff; color: var(--fs-color-text); cursor: pointer;
	transition: background var(--fs-transition), opacity var(--fs-transition);
}
.fs-lightbox__nav:hover { background: var(--fs-color-surface-soft); }
.fs-lightbox__nav[hidden] { display: none; }
.fs-lightbox__nav[disabled] { opacity: 0; pointer-events: none; }
.fs-lightbox__nav--prev { left: 24px; }
.fs-lightbox__nav--next { right: 24px; }
@media (min-width: 768px) {
	.fs-lightbox:has(.fs-lightbox__nav:not([hidden])) img { max-width: calc(100vw - 192px); }
}
@media (max-width: 767px) {
	.fs-lightbox:has(.fs-lightbox__nav:not([hidden])) img { max-height: calc(100dvh - 160px); }
	.fs-lightbox__nav { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; margin-top: 0; }
	.fs-lightbox__nav--prev { left: 16px; }
	.fs-lightbox__nav--next { right: 16px; }
}

/* ---------- Summary ---------- */
.single-product div.product .product_title {
	max-width: 460px;
	margin: 0 0 10px !important;
	font-size: 32px !important;
	line-height: 1.08 !important;
	font-weight: 600 !important;
	letter-spacing: -.035em !important;
}
.single-product .fs-product__meta,
.single-product div.product .summary .product_meta.fs-product__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 18px !important; padding: 0 !important; border: 0 !important;
	color: var(--fs-color-text-secondary) !important; font-size: 13px !important; line-height: 1.4 !important;
}
.fs-product__meta .sku_wrapper { display: inline; }
.fs-product__meta .sku { color: var(--fs-color-text); font-weight: 600; }
.fs-stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.fs-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.fs-stock--in { color: var(--fs-color-success); }
.fs-stock--out { color: var(--fs-color-sale); }
.fs-stock--wait { color: var(--fs-color-text-secondary); }

.single-product div.product .summary > .price,
.single-product div.product .summary .price:not(.fs-price) {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
	margin: 0 0 20px !important; padding: 0 0 20px !important; border-bottom: 1px solid var(--fs-color-border) !important;
	color: var(--fs-color-text) !important; font-size: 28px !important; font-weight: 600; line-height: 1.1 !important; letter-spacing: -.025em;
}
.single-product div.product .summary .price ins { order: 1; color: var(--fs-color-sale); text-decoration: none; }
.single-product div.product .summary .price del { order: 2; color: var(--fs-color-text-muted); font-size: 18px; font-weight: 600; opacity: 1; }
.single-product div.product .summary .price .fs-price__from { order: 0; font-size: 18px; }
.single-product .woocommerce-variation-price .price { margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; font-size: 24px !important; }
.single-product .woocommerce-variation-availability .stock { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--fs-color-success); }
.single-product .woocommerce-variation-availability .stock.out-of-stock { color: var(--fs-color-sale); }
.single-product .summary > .stock { display: none; } /* duplicated by .fs-stock */

/* Blocksy dividers: FurniStyle manages spacing itself */
.single-product .entry-summary .ct-product-divider,
.single-product .summary .ct-product-divider { display: none !important; }
.single-product div.product form.cart { margin: 0 0 4px !important; padding: 0 !important; border: 0 !important; }

/* Variations: Woo <select> stays the source of truth, chips mirror it */
.single-product table.variations { width: 100%; margin: 0 0 18px !important; border: 0 !important; border-collapse: collapse; background: none; }
.single-product table.variations tbody,
.single-product table.variations tr,
.single-product table.variations th,
.single-product table.variations td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: left; line-height: 1.3; }
.single-product table.variations tr + tr { margin-top: 18px; }
.single-product table.variations th.label { margin-bottom: 8px; }
.single-product table.variations th.label label { margin: 0; font-size: 13px; font-weight: 600; color: var(--fs-color-text); }
.single-product table.variations .fs-var-current { margin-left: 6px; color: var(--fs-color-text-secondary); font-size: 13px; font-weight: 600; }
.single-product table.variations td.value select { max-width: 100%; min-height: 48px; }
select[data-fs-hidden] {
	position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; overflow: hidden !important;
	clip: rect(0 0 0 0) !important; white-space: nowrap !important; opacity: 0 !important; pointer-events: none !important;
}
html:not(.fs-js) select[data-fs-hidden] { position: static !important; width: 100% !important; height: auto !important; min-height: 48px !important; padding: 12px 16px !important; clip: auto !important; opacity: 1 !important; pointer-events: auto !important; }
html:not(.fs-js) .fs-variation-options { display: none; }
html:not(.fs-js) .fs-color-select { display: none; } /* 4.8.4-rc2: colour select — without JS the native select is used */

.fs-variation-options { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; max-width: 100%; flex: 1 1 100%; }
.fs-variation-option {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; max-width: 100%; min-height: 44px; padding: 8px 14px;
	white-space: normal; overflow-wrap: anywhere; text-align: left;
	border: 1px solid var(--fs-color-border); border-radius: 10px; background: #fff; color: var(--fs-color-text);
	font-family: var(--fs-font-family); font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer;
	transition: border-color var(--fs-transition), background var(--fs-transition), box-shadow var(--fs-transition);
}
.fs-variation-option:hover { border-color: #BDBDBA; background: #FAFAFA; }
.fs-variation-option.is-selected,
.fs-variation-option[aria-pressed="true"] { border-color: var(--fs-color-text); background: #F7F7F6; box-shadow: inset 0 0 0 1px var(--fs-color-text); }
.fs-variation-option[hidden] { display: none !important; } /* 4.1.0-rc7: impossible values are hidden (cascade) */
/* 4.8.4-rc2: chip with a colour — round 18 px swatch before the name (was a 30 px tile); swatch look: v4.css 15.4 */
.fs-variation-option--swatch { padding: 8px 14px 8px 12px; }
.single-product .reset_variations { display: inline-block; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--fs-color-text-secondary); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.single-product .single_variation_wrap { margin-top: 0 !important; }
.single-product .woocommerce-variation-description { margin-bottom: 8px; color: var(--fs-color-text-secondary); font-size: 14px; }

/* Quantity + add to cart */
.single-product .ct-cart-actions,
.single-product .ct-cart-actions-builder,
.single-product form.cart:not(.variations_form):not(:has(.ct-cart-actions)),
.single-product .woocommerce-variation-add-to-cart:not(:has(.ct-cart-actions)) {
	display: grid !important;
	grid-template-columns: 120px minmax(0, 1fr) !important;
	align-items: stretch !important;
	gap: 10px !important;
	width: 100% !important;
	margin: 4px 0 0 !important;
}
.single-product form.cart:not(.variations_form):not(:has(.ct-cart-actions)) > :not(.quantity):not(.single_add_to_cart_button),
.single-product .woocommerce-variation-add-to-cart > :not(.quantity):not(.single_add_to_cart_button):not(.ct-cart-actions) { grid-column: 1 / -1; }
/* rc8: with Blocksy the quantity + button sit in .ct-cart-actions (the grid above) — the variation hint printed after the
   button is its third child and was squeezed into the 112 px quantity column. */
.single-product .ct-cart-actions > :not(.quantity):not(.single_add_to_cart_button) { grid-column: 1 / -1; }
.single-product .woocommerce-variation-add-to-cart { display: block; width: 100%; }
.single-product .quantity[data-type="type-2"],
.single-product .ct-cart-actions .quantity {
	--quantity-width: 120px;
	--quantity-height: 52px;
	position: relative; display: inline-block !important; width: 120px !important; height: 52px !important; margin: 0 !important; border: 0 !important;
}
.single-product .quantity[data-type="type-2"] input.qty {
	width: 100% !important; height: 52px !important; min-height: 52px !important; padding: 0 38px !important;
	border: 1px solid var(--fs-color-border) !important; border-radius: 10px !important; background: #fff !important; box-shadow: none !important; text-align: center; font-weight: 600;
}
.single-product .quantity[data-type="type-2"] .ct-increase,
.single-product .quantity[data-type="type-2"] .ct-decrease {
	top: 8px !important; display: flex !important; width: 36px !important; height: 36px !important; border-radius: 8px !important; background: transparent !important; color: var(--fs-color-text) !important;
}
.single-product .quantity[data-type="type-2"] .ct-decrease { left: 4px !important; }
.single-product .quantity[data-type="type-2"] .ct-increase { right: 4px !important; }
.single-product .quantity[data-type="type-2"] .ct-increase:hover,
.single-product .quantity[data-type="type-2"] .ct-decrease:hover { background: var(--fs-color-surface-soft) !important; }
.single-product .single_add_to_cart_button {
	display: flex !important; align-items: center; justify-content: center; width: 100% !important; min-width: 0 !important;
	height: 52px !important; min-height: 52px !important; margin: 0 !important; padding: 0 22px !important; border-radius: 10px !important;
	font-size: 15px !important; line-height: 1 !important; white-space: nowrap !important;
}
.single-product .single_add_to_cart_button.disabled { background: var(--fs-color-accent) !important; color: #fff !important; opacity: .45; }
.fs-varnote { margin: 10px 0 0; color: var(--fs-color-text-secondary); font-size: 13px; }
.fs-varnote[hidden] { display: none; }
.single-product .woocommerce-message { margin-top: 12px !important; }

/* Delivery / Payment / Organisation accordion */
.fs-product-info-stack { margin-top: 22px; border-top: 1px solid var(--fs-color-border); }
.fs-product-info { border-bottom: 1px solid var(--fs-color-border); }
.fs-product-info summary {
	display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 2px; list-style: none; cursor: pointer;
	color: var(--fs-color-text); font-size: 14px; font-weight: 600;
}
.fs-product-info summary::-webkit-details-marker { display: none; }
.fs-product-info summary span { flex: 1; min-width: 0; overflow-wrap: break-word; }
.fs-product-info summary svg { flex: none; color: var(--fs-color-text-secondary); }
.fs-product-info summary::after { content: "+"; width: 20px; color: var(--fs-color-text-secondary); font-size: 20px; font-weight: 400; text-align: center; }
.fs-product-info[open] summary::after { content: "−"; }
.fs-product-info__content { padding: 0 24px 16px 32px; color: var(--fs-color-text-secondary); font-size: 14px; line-height: 1.6; overflow-wrap: break-word; }
.fs-product-info__content p { margin: 0 0 6px; }
.fs-product-info__content a { color: var(--fs-color-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.fs-product_meta { margin-top: 16px; color: var(--fs-color-text-muted); font-size: 12px; line-height: 1.7; overflow-wrap: break-word; }
.fs-product_meta > span { display: block; }
.fs-product_meta a { color: inherit; }

/* ---------- Description / tabs / related ---------- */
.fs-product-description-section { grid-column: 1 / -1; max-width: 1180px; margin: 56px auto 0; }
.fs-product-description-section__title,
.single-product .related.products > h2,
.single-product .upsells.products > h2 { letter-spacing: -.025em; }
.fs-product-description-section__title { margin: 0 0 16px; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center; text-transform: uppercase; letter-spacing: .03em; }
.fs-product-description-section__body { padding: 32px 36px; border-radius: 18px; background: var(--fs-color-surface-soft); font-size: 15px; line-height: 1.7; }
.fs-product-description-section__body.has-aside { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; }
.fs-product-description-section__aside { padding-left: 36px; border-left: 1px solid #E2E2E0; color: var(--fs-color-text-secondary); }
.fs-product-description-section__body .fs-prose > :first-child { margin-top: 0; }
.fs-product-description-section__body .fs-prose > :last-child { margin-bottom: 0; }

.single-product div.product .woocommerce-tabs {
	clear: both; grid-column: 1 / -1; float: none !important; width: 100% !important; max-width: 1180px !important; margin: 28px auto 0 !important;
	padding: 22px 30px 28px !important; border: 0 !important; border-radius: 18px; background: var(--fs-color-surface-soft);
}
.single-product div.product .woocommerce-tabs ul.tabs {
	display: flex !important; justify-content: center !important; gap: 30px !important; margin: 0 0 18px !important; padding: 0 !important; border: 0 !important; overflow-x: auto; scrollbar-width: none;
}
.single-product div.product .woocommerce-tabs ul.tabs::before,
.single-product div.product .woocommerce-tabs ul.tabs li::before,
.single-product div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.single-product div.product .woocommerce-tabs ul.tabs li { list-style: none; float: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.single-product div.product .woocommerce-tabs ul.tabs li a {
	position: relative; display: block; padding: 8px 0 10px !important; color: var(--fs-color-text-secondary) !important;
	font-size: 13px !important; font-weight: 600 !important; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; text-decoration: none;
}
.single-product div.product .woocommerce-tabs ul.tabs li a:hover,
.single-product div.product .woocommerce-tabs ul.tabs li.active a { color: var(--fs-color-text) !important; }
.single-product div.product .woocommerce-tabs ul.tabs li.active a::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--fs-color-text); }
/* 4.1.0-rc7: one horizontal tablist at every width (it scrolls inside itself when it does not fit). Below 690 px
   Blocksy turns ul.tabs into a column (flex-direction: column, stretched full-width centred items, rule
   «.woocommerce div.product div.woocommerce-tabs ul.tabs» — more specific than the rules above), so on phones the
   tab navigation turned into a stack of centred headings. The direction is set here with a higher specificity. */
body.single-product div.product div.woocommerce-tabs ul.tabs.wc-tabs { flex-direction: row; flex-wrap: nowrap; align-items: stretch; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
body.single-product div.product div.woocommerce-tabs ul.tabs.wc-tabs li { display: block; flex: 0 0 auto; border-top: 0; }
body.single-product div.product div.woocommerce-tabs ul.tabs.wc-tabs li a { display: block; width: auto; text-align: left; }
.single-product .woocommerce-Tabs-panel { max-width: 100% !important; margin: 0 auto !important; padding: 0 !important; }
.single-product .woocommerce-Tabs-panel > h2:first-child { display: none; }

.woocommerce table.woocommerce-product-attributes { width: 100%; margin: 0; border: 0; border-collapse: collapse; background: transparent; table-layout: fixed; }
.woocommerce-product-attributes tr { border-bottom: 1px solid #E2E2E0; }
.woocommerce-product-attributes tr:last-child { border-bottom: 0; }
.woocommerce-product-attributes th,
.woocommerce-product-attributes td { padding: 12px 4px !important; border: 0 !important; background: transparent !important; font-size: 14px; text-align: left; vertical-align: top; overflow-wrap: break-word; }
.woocommerce-product-attributes th { width: 42%; color: var(--fs-color-text-secondary); font-weight: 600; }
.woocommerce-product-attributes td p { margin: 0; }

.single-product .woocommerce-tabs #reviews { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 38px; }
.single-product #reviews .woocommerce-Reviews-title { margin: 0 0 16px; font-size: 20px; }
.single-product #reviews ol.commentlist { margin: 0; padding: 0; list-style: none; }
.single-product #reviews ol.commentlist li { margin: 0; padding: 18px 0; border-bottom: 1px solid #E2E2E0; }
.single-product #reviews ol.commentlist li img.avatar { display: none; }
.single-product #reviews ol.commentlist li .comment-text { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.single-product #reviews .meta { color: var(--fs-color-text-secondary); font-size: 13px; }
.single-product #reviews .meta strong { color: var(--fs-color-text); font-weight: 600; }
.single-product #review_form_wrapper { padding: 24px; border-radius: var(--fs-radius-md); background: #fff; }
.single-product #review_form .comment-reply-title { display: block; margin-bottom: 12px; font-size: 18px; font-weight: 600; }
.single-product #review_form .comment-form { display: grid; gap: 12px; }
.single-product #review_form .comment-form p { margin: 0; }
.single-product #review_form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.single-product #review_form textarea { min-height: 140px; }
.single-product #review_form .form-submit input { width: 100%; }

.single-product .related.products,
.single-product .upsells.products,
.woocommerce .cross-sells { grid-column: 1 / -1; clear: both; max-width: 1180px; margin: 56px auto 0 !important; }
.single-product .related.products > h2,
.single-product .upsells.products > h2,
.woocommerce .cross-sells > h2 { margin: 0 0 22px !important; font-size: 24px !important; line-height: 1.15; }

/* Sticky mobile buy bar (shown < 768 by JS when the add-to-cart form is off-screen) */
.fs-sticky-buy { display: none !important; }

/* =========================================================
   W5. Cart (classic [woocommerce_cart])
   ========================================================= */
.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form),
.woocommerce-cart .ct-woocommerce-cart-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 32px;
	align-items: start;
}
.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > :not(.woocommerce-cart-form):not(.cart-collaterals) { grid-column: 1 / -1; }
.woocommerce-cart .woocommerce-cart-form { grid-column: 1; min-width: 0; margin: 0; }
.woocommerce-cart .cart-collaterals { grid-column: 2; width: 100% !important; float: none !important; margin: 0 !important; }

.woocommerce table.shop_table.cart { display: block; width: 100%; margin: 0; padding: 8px 24px; border: 0; border-radius: var(--fs-radius-md); background: #fff; border-collapse: separate; }
.woocommerce table.shop_table.cart thead,
.woocommerce table.shop_table.cart tbody { display: block; }
.woocommerce table.shop_table.cart tr { display: grid; grid-template-columns: 104px minmax(0, 1fr) 130px 130px 120px 44px; grid-template-areas: "img name price qty sub rm"; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--fs-color-border); }
.woocommerce table.shop_table.cart thead tr { padding: 14px 0; }
.woocommerce table.shop_table.cart tbody tr:last-child { border-bottom: 0; }
.woocommerce table.shop_table.cart th,
.woocommerce table.shop_table.cart td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: left; }
.woocommerce table.shop_table.cart thead th { color: var(--fs-color-text-secondary); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.woocommerce table.shop_table.cart thead th.product-thumbnail { display: none; }
.woocommerce table.shop_table.cart thead th.product-name { grid-column: img / name; }
.woocommerce table.shop_table.cart .product-remove { grid-area: rm; text-align: right; }
.woocommerce table.shop_table.cart .product-thumbnail { grid-area: img; width: auto; min-width: 0; } /* rc7: Blocksy gives the cell 100 / 120 px — the grid column decides */
.woocommerce table.shop_table.cart .product-name { grid-area: name; min-width: 0; overflow-wrap: break-word; }
.woocommerce table.shop_table.cart .product-price { grid-area: price; font-weight: 600; }
.woocommerce table.shop_table.cart .product-quantity { grid-area: qty; }
.woocommerce table.shop_table.cart .product-subtotal { grid-area: sub; }
.woocommerce table.shop_table.cart td.product-subtotal { font-size: 17px; font-weight: 600; text-align: right; }
.woocommerce table.shop_table.cart td::before { display: none !important; }
.woocommerce table.shop_table.cart .product-thumbnail img { width: 104px !important; height: 104px; max-width: none; padding: 8px; border-radius: 12px; background: var(--fs-color-media); object-fit: contain; }
.woocommerce table.shop_table.cart .product-name > a { color: var(--fs-color-text); font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; text-decoration: none; }
.woocommerce table.shop_table.cart .product-name > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.woocommerce table.shop_table.cart .product-price del { display: block; color: var(--fs-color-text-muted); font-size: 13px; font-weight: 600; }
.woocommerce table.shop_table.cart .product-price ins { text-decoration: none; }
.fs-cart-item__sku { display: block; margin-top: 2px; color: var(--fs-color-text-muted); font-size: 12px; font-weight: 600; }
/* 4.1.0-rc8: on desktop Blocksy 2.1 prints the unit price under the item (p.price.ct-hidden-sm.ct-hidden-md) — it took
   the link colour (blue). Kept as the price per item, in the secondary text style. */
.woocommerce-cart-form td.product-name p.price { margin: 6px 0 0; color: var(--fs-color-text-secondary); font-size: 13px; font-weight: 400; line-height: 1.4; }
.woocommerce-cart-form td.product-name p.price :is(.amount, bdi, .woocommerce-Price-currencySymbol) { color: inherit; font-size: inherit; font-weight: inherit; }
.woocommerce dl.variation { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; margin: 4px 0 0; color: var(--fs-color-text-secondary); font-size: 13px; line-height: 1.5; }
.woocommerce dl.variation dt { margin: 0; font-weight: 600; float: none; }
.woocommerce dl.variation dd { margin: 0; padding: 0; float: none; }
.woocommerce dl.variation dd p { margin: 0; }
.woocommerce a.remove {
	display: inline-grid !important; place-items: center; width: 40px !important; height: 40px !important; border-radius: 50% !important;
	color: var(--fs-color-text-secondary) !important; background: none; font-size: 22px; font-weight: 400; line-height: 1; text-decoration: none;
}
.woocommerce a.remove:hover { background: var(--fs-color-error-soft) !important; color: var(--fs-color-error) !important; }
.woocommerce table.shop_table.cart tr:has(> td.actions) { display: block; padding: 18px 0 8px; border-top: 1px solid var(--fs-color-border); }
.woocommerce table.shop_table.cart td.actions { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.woocommerce table.shop_table.cart td.actions .coupon { display: flex; flex: 1 1 320px; gap: 8px; float: none !important; max-width: 440px; }
.woocommerce table.shop_table.cart td.actions .coupon label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.woocommerce table.shop_table.cart td.actions .coupon .input-text { flex: 1; min-width: 0; width: auto !important; min-height: 46px; margin: 0 !important; padding: 10px 14px !important; }
.woocommerce table.shop_table.cart td.actions .button { min-height: 46px; }
.woocommerce table.shop_table.cart td.actions .coupon .button,
.woocommerce table.shop_table.cart td.actions > .button { background: #fff; color: var(--fs-color-text); box-shadow: inset 0 0 0 1px var(--fs-color-border-strong); }
.woocommerce table.shop_table.cart td.actions > .button { float: none !important; margin-left: auto; }
.woocommerce table.shop_table.cart td.actions > .button:hover,
.woocommerce table.shop_table.cart td.actions .coupon .button:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--fs-color-text); }
/* With JS the cart updates itself after a quantity change */
.fs-js .woocommerce table.shop_table.cart td.actions > button[name="update_cart"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fs-cart-continue { margin-top: 18px; }

.woocommerce .cart_totals,
.woocommerce-cart .cart-collaterals .cart_totals {
	position: sticky; top: calc(var(--fs-header-h) + 20px); float: none !important; width: 100% !important;
	display: grid; gap: 14px; padding: 28px; border-radius: var(--fs-radius-md); background: #fff;
}
.woocommerce .cart_totals > h2 { margin: 0; font-size: 22px; }
.woocommerce .cart_totals table.shop_table,
.woocommerce-checkout-review-order-table { width: 100%; margin: 0 !important; border: 0 !important; border-collapse: collapse; background: none; }
.woocommerce .cart_totals table.shop_table th,
.woocommerce .cart_totals table.shop_table td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td { padding: 8px 0 !important; border: 0 !important; background: none !important; font-size: 15px; vertical-align: top; }
.woocommerce .cart_totals table.shop_table th,
.woocommerce-checkout-review-order-table tfoot th { color: var(--fs-color-text-secondary); font-weight: 600; text-align: left; }
.woocommerce .cart_totals table.shop_table td,
.woocommerce-checkout-review-order-table tfoot td { font-weight: 600; text-align: right; }
.woocommerce .cart_totals table.shop_table td::before { display: none; }
/* 4.1.0-rc7: label | sum on one line at every width. Below 690 / 768 px Blocksy and WooCommerce hide the <th> of
   responsive tables and print data-title in td::before — which this design hides, so «Сумма товаров» was lost. */
.woocommerce .cart_totals table.shop_table,
.woocommerce .cart_totals table.shop_table tbody { display: block; width: 100%; }
.woocommerce .cart_totals table.shop_table tbody tr { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.woocommerce .cart_totals table.shop_table tbody th { display: block; flex: 0 1 auto; min-width: 0; }
.woocommerce .cart_totals table.shop_table tbody td { display: block; flex: 1 1 auto; min-width: 0; text-align: right; overflow-wrap: break-word; }
.woocommerce .cart_totals table.shop_table tbody tr.woocommerce-shipping-totals { flex-wrap: wrap; }
.woocommerce .cart_totals table.shop_table tbody tr.woocommerce-shipping-totals td { flex-basis: 100%; }
.woocommerce .cart_totals tr.cart-discount td,
.woocommerce-checkout-review-order-table tr.cart-discount td { color: var(--fs-color-sale); }
.woocommerce .cart_totals tr.order-total th,
.woocommerce .cart_totals tr.order-total td,
.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout-review-order-table tr.order-total td { white-space: nowrap; padding-top: 16px !important; color: var(--fs-color-text); font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout-review-order-table tr.order-total td { border-top: 1px solid var(--fs-color-border) !important; }
.woocommerce .cart_totals tr.order-total { margin-top: 8px; border-top: 1px solid var(--fs-color-border); }
.woocommerce .cart_totals tr.order-total th,
.woocommerce-checkout-review-order-table tr.order-total th { font-size: 16px; }
.woocommerce .order-total small.includes_tax { display: block; color: var(--fs-color-text-secondary); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.woocommerce .wc-proceed-to-checkout { display: grid; gap: 12px; padding: 0 !important; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { width: 100%; min-height: 56px; margin: 0 !important; font-size: 16px; }
.fs-totals__note { margin: 0; color: var(--fs-color-text-secondary); font-size: 13px; line-height: 1.5; }

/* Shipping methods (cart + checkout) */
.woocommerce ul#shipping_method { margin: 0; padding: 0; list-style: none; text-align: left; }
.woocommerce ul#shipping_method li { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 0; text-indent: 0; font-weight: 600; }
.woocommerce ul#shipping_method li input { margin: 0; accent-color: var(--fs-color-accent); }
.woocommerce .woocommerce-shipping-destination,
.woocommerce .shipping-calculator-button { color: var(--fs-color-text-secondary); font-size: 13px; font-weight: 600; }
.woocommerce .shipping-calculator-form { margin-top: 10px; }
.woocommerce .woocommerce-shipping-totals td { text-align: left !important; }

/* Empty cart */
.woocommerce-cart .cart-empty.woocommerce-info { justify-content: center; padding: 32px !important; background: #fff; font-size: 18px; font-weight: 600; }
.woocommerce-cart .return-to-shop { margin: 0; text-align: center; }

/* =========================================================
   W6. Checkout (classic [woocommerce_checkout]) — all gateways untouched
   ========================================================= */
.woocommerce-checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	grid-auto-flow: row dense;
	column-gap: 32px;
	align-items: start;
}
.woocommerce-checkout form.checkout > * { grid-column: 1 / -1; }
.woocommerce-checkout form.checkout > #customer_details,
.woocommerce-checkout form.checkout > .ct-customer-details { grid-column: 1; grid-row: span 20; min-width: 0; }
.woocommerce-checkout form.checkout > #order_review_heading,
.woocommerce-checkout form.checkout > #order_review,
.woocommerce-checkout form.checkout > .ct-order-review { grid-column: 2; min-width: 0; }
.woocommerce-checkout form.checkout > .ct-order-review { position: sticky; top: calc(var(--fs-header-h) + 20px); }
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login-toggle { margin-bottom: 12px; }
.woocommerce-checkout form.checkout_coupon { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 18px; border: 0; border-radius: var(--fs-radius-md); background: #fff; }
.woocommerce-checkout form.checkout_coupon p { flex: 1 1 200px; margin: 0; float: none; width: auto; }
.woocommerce-checkout form.checkout_coupon p:first-child { flex-basis: 100%; }

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2,
.ct-customer-details .col-1,
.ct-customer-details .col-2 { float: none !important; width: 100% !important; max-width: none; }
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 { padding: 28px 32px; border-radius: var(--fs-radius-md); background: #fff; }
.woocommerce-checkout .col2-set .col-2 { margin-top: 16px; }
.woocommerce-checkout .col2-set .col-2:not(:has(.form-row:not(.fs-hidden))) { display: none; }
.woocommerce-billing-fields > h3:not(.fs-cosection__h),
.woocommerce-additional-fields > h3:not(.fs-cosection__h),
.woocommerce-shipping-fields > h3:not(#ship-to-different-address) { display: none; }

.fs-cosection__h { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 20px; letter-spacing: -.02em; }
.fs-cosection__h i { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fs-color-accent); color: #fff; font-size: 14px; font-style: normal; font-weight: 600; letter-spacing: 0; }
.fs-co-address { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--fs-color-border); }
.fs-co-address[hidden] { display: none; }

.fs-segment { display: inline-grid; grid-auto-flow: column; gap: 4px; margin: 0 0 18px; padding: 4px; border-radius: var(--fs-radius-pill); background: var(--fs-color-surface-soft); }
.fs-segment label { position: relative; margin: 0; cursor: pointer; }
.fs-segment input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fs-segment span { display: flex; align-items: center; height: 40px; padding: 0 18px; border-radius: var(--fs-radius-pill); color: var(--fs-color-text-secondary); font-size: 14px; font-weight: 600; transition: background var(--fs-transition), color var(--fs-transition); }
.fs-segment input:checked + span { background: #fff; color: var(--fs-color-text); box-shadow: 0 1px 4px rgba(20, 20, 20, .08); }
.fs-segment input:focus-visible + span { outline: 2px solid var(--fs-color-text); outline-offset: 2px; }

/* Field grid */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper,
.fs-co-address__fields,
.woocommerce-address-fields__field-wrapper,
.woocommerce-EditAccountForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.woocommerce form .form-row { display: grid; gap: 6px; grid-column: 1 / -1; float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
/* 4.8.4-rc8: two fields of one line (e.g. «Регион» | «Населённый пункт») start at the same height whatever the height of
   the neighbour. A row is a grid of four auto tracks — Blocksy's clearfix ::before (0 px), label, input, ::after (0 px).
   Stretched to a taller neighbour in the field grid (align-self: stretch), it shared the extra height between those
   tracks: the label moved down by x, the input by 2x. Rows keep their own height, tracks stay at the top. */
.woocommerce form .form-row { align-self: start; align-content: start; }
.woocommerce form .form-row-first { grid-column: 1; }
.woocommerce form .form-row-last { grid-column: 2; }
.woocommerce form .form-row.fs-hidden,
.fs-js .woocommerce form .form-row.fs-company-field:not(.fs-show) { display: none; }
/* 4.7: rows the delivery scenario does not use (FurniStyle Core 3.5). !important: WooCommerce's address-i18n.js
   shows locale rows with an inline display style after a country change. */
.woocommerce form .form-row.fs-dp-hidden { display: none !important; }
form[data-fs-dp-profile="transport"] #billing_city_field,
form[data-fs-dp-profile="transport"] #shipping_city_field { grid-column: 1 / -1; } /* the street next to it is hidden */
.fs-co-delivery { margin-top: 16px; padding: 16px 18px; border-radius: var(--fs-radius-md); background: var(--fs-color-surface-soft); }
.fs-co-delivery[hidden], .fs-co-delivery [hidden] { display: none; }
.fs-co-delivery p { margin: 0; font-size: 14px; line-height: 1.5; }
.fs-co-delivery p + p { margin-top: 6px; }
.fs-co-delivery .fs-co-delivery__title { color: var(--fs-color-text); font-size: 15px; font-weight: 600; }
.fs-co-delivery__address span, .fs-co-delivery__note { color: var(--fs-color-text-secondary); }
.fs-co-delivery__address strong { color: var(--fs-color-text); font-weight: 600; }
form[data-fs-dp-profile="pickup"] .fs-co-delivery { margin-top: 0; }
/* 4.8.4-rc7: WooCommerce's address-i18n.js shows every locale row with an inline display (jQuery show()) on page load —
   it brought back the single-country row. !important keeps hidden rows hidden; the derived address line is never typed. */
.woocommerce form .form-row.fs-hidden,
.woocommerce form .form-row.fs-address-derived { display: none !important; }
/* 4.8.4-rc7: structured address — placed by id (address-i18n.js rewrites the row classes):
   Регион | Населённый пункт / Улица / Дом | Корпус / Квартира | Индекс; rows the scenario hides leave no gap. */
form.fs-address-structured #billing_state_field,
form.fs-address-structured #billing_city_field,
form.fs-address-structured #billing_fs_house_field,
form.fs-address-structured #billing_fs_block_field,
form.fs-address-structured #billing_address_2_field,
form.fs-address-structured #billing_postcode_field,
form.fs-address-structured #shipping_state_field,
form.fs-address-structured #shipping_city_field,
form.fs-address-structured #shipping_fs_house_field,
form.fs-address-structured #shipping_fs_block_field,
form.fs-address-structured #shipping_address_2_field,
form.fs-address-structured #shipping_postcode_field { grid-column: auto; }
form.fs-address-structured #billing_fs_street_field,
form.fs-address-structured #shipping_fs_street_field { grid-column: 1 / -1; }
.woocommerce form .form-row label { margin: 0; color: var(--fs-color-text); font-size: 13px; font-weight: 600; line-height: 1.4; }
.woocommerce form .form-row .required { color: var(--fs-color-sale); text-decoration: none; border: 0; }
.woocommerce form .form-row .optional { color: var(--fs-color-text-muted); font-weight: 600; }
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea { width: 100%; margin: 0; }
.woocommerce form .form-row .woocommerce-input-wrapper { display: block; }
.woocommerce form .form-row.woocommerce-invalid .input-text,
.woocommerce form .form-row.woocommerce-invalid select { border-color: var(--fs-color-error) !important; box-shadow: 0 0 0 3px rgba(182, 63, 63, .08); }
.woocommerce form .form-row.woocommerce-invalid label { color: var(--fs-color-text); }
.woocommerce form .form-row.woocommerce-validated .input-text { border-color: var(--fs-color-border); }
.woocommerce form .form-row .description { color: var(--fs-color-text-secondary); font-size: 12px; }
.woocommerce form .form-row .select2-container .select2-selection--single { height: 52px; border: 1px solid var(--fs-color-border); border-radius: var(--fs-radius-sm); }
.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__rendered { padding: 0 16px; line-height: 50px; }
.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__arrow { height: 50px; right: 8px; }
.woocommerce form .form-row textarea { min-height: 110px; }
#ship-to-different-address { margin: 0 0 12px; font-size: 15px; }
#ship-to-different-address label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.woocommerce form .form-row input[type="checkbox"],
.woocommerce form .form-row input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--fs-color-accent); }

/* Order review */
#order_review_heading {
	margin: 0 !important; padding: 28px 28px 8px; border-radius: var(--fs-radius-md) var(--fs-radius-md) 0 0; background: #fff; font-size: 22px;
}
.woocommerce-checkout #order_review,
.woocommerce-checkout .ct-order-review { padding: 8px 28px 28px; border-radius: 0 0 var(--fs-radius-md) var(--fs-radius-md); background: #fff; }
.woocommerce-checkout .ct-order-review { border-radius: var(--fs-radius-md); }
/* 4.1.0-rc7: Blocksy's .ct-order-review wraps the heading and #order_review — one card, not padding inside padding. */
.woocommerce-checkout .ct-order-review > #order_review,
.woocommerce-checkout .ct-order-review > #order_review_heading { padding-inline: 0; border-radius: 0; background: none; }
.woocommerce-checkout .ct-order-review > #order_review { padding-bottom: 0; }
/* 4.1.0-rc7: «Ваш заказ» is laid out row by row (grid / flex) instead of by the table algorithm. With table layout the
   nowrap total column took the width it wanted and the product cell (itself a grid) was squeezed: on phones the
   title broke after every word and the price ran over the variation attributes. Same markup, also after
   updated_checkout (WooCommerce replaces the table — the rules apply to whatever it prints). */
.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table,
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tbody,
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot { display: block; width: 100%; }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tbody tr.cart_item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: start; border-bottom: 1px solid var(--fs-color-border); }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tbody tr.cart_item:last-child { border-bottom: 0; }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tbody td { display: block; min-width: 0; border-bottom: 0 !important; }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 12px 0 !important; font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name > :not(.fs-review-thumb) { grid-column: 2; min-width: 0; }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name .product-quantity { display: none; }
/* Attributes as text lines «Цвет фасада: Северное дерево» — a two-column dl left ~70 px for the value and broke
   words in the middle («Северн|ое»). */
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name dl.variation { display: block; margin: 4px 0 0; font-size: 12px; font-weight: 600; line-height: 1.45; }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name dl.variation dt,
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name dl.variation dd,
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name dl.variation dd p { display: inline; margin: 0; padding: 0; float: none; }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name dl.variation dd::after { content: ""; display: block; }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-total { padding: 12px 0 !important; font-size: 14px; font-weight: 600; text-align: right; white-space: nowrap; }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; border-bottom: 0; }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot td { display: block; min-width: 0; border-bottom: 0 !important; }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot td { flex: 1 1 auto; text-align: right; }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr.order-total { margin-top: 4px; border-top: 1px solid var(--fs-color-border); }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr.order-total td { border-top: 0 !important; }
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td { flex-basis: 100%; text-align: left; }
.fs-review-thumb { position: relative; grid-row: 1 / span 3; width: 56px; height: 56px; padding: 5px; border-radius: 10px; background: var(--fs-color-media); }
.fs-review-thumb img { width: 100% !important; height: 100%; object-fit: contain; }
.fs-review-thumb em { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--fs-color-accent); color: #fff; font-size: 11px; font-style: normal; font-weight: 600; }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th { display: none; }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td { padding: 12px 0 !important; }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td::before { content: attr(data-title); display: block; margin-bottom: 8px; color: var(--fs-color-text-secondary); font-size: 13px; font-weight: 600; }

/* Payment methods — any gateway */
.woocommerce-checkout #payment { margin-top: 16px; border-radius: 0; background: none !important; }
/* rc8: Blocksy ≤ 690 px pulls the payment block out to its own card padding (margin-inline: -26px; place-order
   padding: 0 25px) — inside the FurniStyle card (16–28 px padding) that put the methods, the privacy text and
   «Подтвердить заказ» past the card / screen edges. */
.woocommerce-checkout #payment.woocommerce-checkout-payment { margin-inline: 0; }
.woocommerce-checkout #payment .place-order { padding-inline: 0; }
.woocommerce-checkout #payment ul.payment_methods { display: grid; gap: 10px; margin: 0; padding: 0 !important; border: 0 !important; list-style: none; }
.woocommerce-checkout #payment ul.payment_methods li {
	position: relative; margin: 0; padding: 14px 16px !important; border: 1px solid var(--fs-color-border); border-radius: var(--fs-radius-sm);
	background: #fff; line-height: 1.4; transition: border-color var(--fs-transition), box-shadow var(--fs-transition);
}
.woocommerce-checkout #payment ul.payment_methods li:has(> input:checked) { border-color: var(--fs-color-text); box-shadow: inset 0 0 0 1px var(--fs-color-text); }
.woocommerce-checkout #payment ul.payment_methods li > input { width: 18px; height: 18px; min-height: 0; margin: 0 10px 0 0; vertical-align: -3px; accent-color: var(--fs-color-accent); }
.woocommerce-checkout #payment ul.payment_methods li > label { display: inline; font-size: 15px; font-weight: 600; cursor: pointer; }
.woocommerce-checkout #payment ul.payment_methods li img { display: inline-block; max-height: 24px; margin: 0 0 0 8px; vertical-align: middle; }
.woocommerce-checkout #payment div.payment_box { margin: 10px 0 0 !important; padding: 12px 14px !important; border-radius: 10px; background: var(--fs-color-surface-soft) !important; color: var(--fs-color-text-secondary) !important; font-size: 13px; line-height: 1.5; }
.woocommerce-checkout #payment div.payment_box::before { display: none !important; }
.woocommerce-checkout #payment div.payment_box p { margin: 0; }
.woocommerce-checkout #payment div.form-row.place-order { display: grid; gap: 12px; margin: 16px 0 0 !important; padding: 0 !important; }
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { color: var(--fs-color-text-secondary); font-size: 12px; line-height: 1.5; }
.woocommerce-checkout .woocommerce-privacy-policy-text p { margin: 0; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row { display: block; }
.woocommerce-checkout .woocommerce-form__label-for-checkbox { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 600 !important; cursor: pointer; }
.woocommerce-checkout #place_order { float: none; width: 100%; min-height: 56px; font-size: 16px; }
.woocommerce-checkout .blockUI.blockOverlay { border-radius: var(--fs-radius-md); background: rgba(255, 255, 255, .6) !important; }

/* Thank you / order details */
.woocommerce-order { display: grid; gap: 20px; max-width: 760px; margin: 24px auto 0; }
.woocommerce-order .woocommerce-thankyou-order-received { margin: 0 !important; padding: 32px 36px !important; border-radius: var(--fs-radius-lg); background: var(--fs-color-success-soft); color: #2F5A3A; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.woocommerce ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; overflow: hidden; border-radius: var(--fs-radius-md); background: var(--fs-color-border); list-style: none; }
.woocommerce ul.woocommerce-order-overview li { display: grid; gap: 4px; margin: 0; padding: 16px; border: 0 !important; background: #fff; color: var(--fs-color-text-secondary); font-size: 12px; text-transform: none; float: none; }
.woocommerce ul.woocommerce-order-overview li strong { color: var(--fs-color-text); font-size: 15px; }
.woocommerce-order-details,
.woocommerce-customer-details,
.woocommerce-order > p:not(.woocommerce-thankyou-order-received),
.woocommerce-order .wc-bacs-bank-details { margin: 0 !important; padding: 28px; border-radius: var(--fs-radius-md); background: #fff; }
.woocommerce-order-details__title,
.woocommerce-column__title,
.wc-bacs-bank-details-heading { margin: 0 0 14px; font-size: 20px; }
.woocommerce table.order_details { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.woocommerce table.order_details th,
.woocommerce table.order_details td { padding: 10px 0; border: 0; border-bottom: 1px solid var(--fs-color-border); font-size: 14px; text-align: left; }
.woocommerce table.order_details td:last-child,
.woocommerce table.order_details tfoot td { text-align: right; }
.woocommerce .woocommerce-customer-details address { padding: 0; border: 0; font-style: normal; line-height: 1.6; }
.woocommerce .woocommerce-customer-details .col2-set .col-1,
.woocommerce .woocommerce-customer-details .col2-set .col-2 { padding: 0; }

/* =========================================================
   W7. Mini cart (drawer #fs-minicart, refreshed by Woo fragments)
   ========================================================= */
.fs-drawer__count { color: var(--fs-color-text-secondary); font-size: 14px; font-weight: 600; }
#fs-minicart .fs-drawer__body { display: flex; flex-direction: column; padding-bottom: 0; }
#fs-minicart .widget_shopping_cart_content { display: flex; flex: 1; flex-direction: column; }
.woocommerce-mini-cart { flex: 1; margin: 0; padding: 0; list-style: none; }
.woocommerce-mini-cart-item.mini_cart_item {
	position: relative; display: block; min-height: 104px; margin: 0; padding: 14px 40px 14px 90px; border-bottom: 1px solid var(--fs-color-border); list-style: none;
}
.woocommerce-mini-cart-item > a:not(.remove) { display: block; color: var(--fs-color-text); font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.woocommerce-mini-cart-item > a:not(.remove):hover { text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-mini-cart-item img { position: absolute; top: 14px; left: 0; width: 76px !important; height: 76px; margin: 0 !important; padding: 6px; border-radius: 10px; background: var(--fs-color-media); object-fit: contain; float: none !important; }
.woocommerce-mini-cart-item a.remove { position: absolute; top: 10px; right: -4px; width: 36px !important; height: 36px !important; }
.woocommerce-mini-cart-item dl.variation { margin: 2px 0 6px; font-size: 12px; }
.woocommerce-mini-cart-item .quantity { display: block; color: var(--fs-color-text-secondary); font-size: 13px; font-weight: 600; }
.woocommerce-mini-cart-item .quantity .amount { color: var(--fs-color-text); font-size: 14px; font-weight: 600; }
.woocommerce-mini-cart__total {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 0; padding: 16px 0 8px; border-top: 0;
	font-size: 16px; font-weight: 600;
}
.woocommerce-mini-cart__total .amount { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
/* 4.1.0-rc7: no negative side margins — the drawer body has 20 px padding on desktop but 16 px on phones, so
   «margin: 0 -20px» pushed the buttons 4 px out of the screen and cut «Просмотр корзины». */
.woocommerce-mini-cart__buttons {
	position: sticky; bottom: 0; box-sizing: border-box; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 0; padding: 12px 0 20px;
	border-top: 1px solid var(--fs-color-border); background: #fff;
}
.woocommerce-mini-cart__buttons .button { min-width: 0; white-space: normal; line-height: 1.2; }
@media (max-width: 480px) { .woocommerce-mini-cart__buttons { grid-template-columns: minmax(0, 1fr); } }
.woocommerce-mini-cart__buttons::before,
.woocommerce-mini-cart__buttons::after { display: none !important; }
.woocommerce-mini-cart__buttons .button { width: 100%; margin: 0 !important; }
.woocommerce-mini-cart__buttons .button:not(.checkout) { background: #fff !important; color: var(--fs-color-text) !important; box-shadow: inset 0 0 0 1px var(--fs-color-border-strong); }
.woocommerce-mini-cart__buttons .button:not(.checkout):hover { box-shadow: inset 0 0 0 1px var(--fs-color-text); }
.woocommerce-mini-cart__empty-message { margin: auto 0; padding: 48px 0; color: var(--fs-color-text-secondary); text-align: center; }

/* =========================================================
   W8. My account (light touch)
   ========================================================= */
/* 4.1.0-rc7: columns are assigned explicitly. Blocksy prints its own navigation wrapper (.ct-acount-nav: greeting +
   nav) instead of nav.woocommerce-MyAccount-navigation as the grid item; the old catch-all «everything that is not
   nav / content spans both columns» put that wrapper on a full row and the content into the 260 px nav column —
   the content (and the two address cards in it) collapsed to ~60 px columns. Variant with a .ct-woo-account
   wrapper around both is covered too. */
.woocommerce-account .woocommerce,
.woocommerce-account .woocommerce > .ct-woo-account { display: grid; grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); gap: 32px; align-items: start; }
.woocommerce-account .woocommerce > *,
.woocommerce-account .woocommerce > .ct-woo-account > * { grid-column: 1 / -1; min-width: 0; }
.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce > .ct-acount-nav,
.woocommerce-account .ct-woo-account > .woocommerce-MyAccount-navigation,
.woocommerce-account .ct-woo-account > .ct-acount-nav { grid-column: 1; width: auto; min-width: 0; max-width: none; margin: 0; }
.woocommerce-account .woocommerce > .woocommerce-MyAccount-content,
.woocommerce-account .ct-woo-account > .woocommerce-MyAccount-content { grid-column: 2; }
.woocommerce-account .woocommerce > .ct-woo-account { grid-column: 1 / -1; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 520px; margin-inline: auto; }
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content { float: none !important; width: 100% !important; }
.woocommerce-MyAccount-navigation ul { display: grid; gap: 2px; margin: 0; padding: 8px; border-radius: var(--fs-radius-md); background: #fff; list-style: none; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--fs-color-text); font-weight: 600; text-decoration: none; }
.woocommerce-MyAccount-navigation a:hover { background: var(--fs-color-background); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--fs-color-accent); color: #fff; }
.woocommerce-MyAccount-content,
.woocommerce-form-login,
.woocommerce-form-register { padding: 28px; border: 0 !important; border-radius: var(--fs-radius-md) !important; background: #fff; }
.woocommerce-form-login,
.woocommerce-form-register { display: grid; gap: 14px; }

/* =========================================================
   W9. Responsive
   ========================================================= */
@media (max-width: 1199px) {
	ul.products { gap: 14px; }
	.fs-archive { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; }
	.single-product { --fs-gallery-thumb: 62px; }
	.single-product div.product > .product-entry-wrapper,
	.single-product div.product:not(:has(> .product-entry-wrapper)) { grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr) !important; column-gap: 40px !important; }
	.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form),
	.woocommerce-cart .ct-woocommerce-cart-form { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
	.woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 24px; }
	.woocommerce table.shop_table.cart tr { grid-template-columns: 80px minmax(0, 1fr) 110px 120px 100px 40px; gap: 12px; }
	.woocommerce table.shop_table.cart .product-thumbnail img { width: 80px !important; height: 80px; }
}

@media (max-width: 999px) {
	ul.products,
	ul.products.columns-4,
	ul.products.columns-5,
	.fs-archive ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	ul.products.columns-3,
	.fs-cols-3 ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.fs-archive ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	/* Filters → off-canvas drawer */
	.fs-archive { grid-template-columns: 1fr; }
	.fs-sidebar {
		position: fixed; top: 0; bottom: 0; left: 0; z-index: 1001; display: flex; flex-direction: column; gap: 0;
		width: min(420px, 100%); max-height: none; padding: 0; border-radius: 0; box-shadow: var(--fs-shadow-pop);
		transform: translateX(-100%); visibility: hidden; transition: transform 240ms ease, visibility 0s linear 240ms;
	}
	.admin-bar .fs-sidebar { top: 0; }
	body.fs-filters-open .fs-sidebar { transform: none; visibility: visible; transition: transform 240ms ease; }
	.fs-sidebar__head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--fs-color-border); }
	.fs-sidebar .fs-filters { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: auto; padding: 0 20px; }
	.fs-sidebar .fs-fgroup { padding: 0 4px; }
	.fs-sidebar .fs-fgroup__head { height: 58px; font-size: 16px; }
	.fs-sidebar__actions { position: sticky; bottom: 0; margin: auto -20px 0; padding: 16px 20px 20px; border-top: 1px solid var(--fs-color-border); background: #fff; }
	.fs-js .fs-filters__apply { display: inline-flex; }
	.fs-filters-backdrop { position: fixed; inset: 0; z-index: 1000; }
	.fs-filters-backdrop[hidden] { display: none; }
	.fs-toolbar__filters { display: inline-flex !important; min-height: 44px; border-radius: var(--fs-radius-pill); }
	.fs-toolbar .woocommerce-result-count { order: 3; flex-basis: 100%; }

	/* Single product */
	.single-product { --fs-gallery-thumb: 64px; --fs-gallery-max-h: min(75vw, 560px); } /* 4.8.4-rc3: one column — the photo never pushes price / cart far down */
	.single-product div.product > .product-entry-wrapper,
	.single-product div.product:not(:has(> .product-entry-wrapper)) { display: block !important; }
	.single-product div.product .woocommerce-product-gallery,
	.single-product div.product .summary { float: none !important; width: 100% !important; max-width: 100% !important; }
	.single-product div.product .summary { position: static !important; margin-top: 28px !important; }
	/* 4.1.0-rc7: every box of the product column is limited by the column, not by its content (photo's natural
	   width, a row of chips, nowrap buttons) — whatever wrapper the parent theme puts around it. */
	.single-product div.product,
	.single-product div.product > .product-entry-wrapper,
	.single-product div.product .woocommerce-product-gallery,
	.single-product div.product .summary,
	.single-product div.product .summary > *,
	.single-product div.product .entry-summary-items > *,
	.single-product div.product .woocommerce-tabs,
	.single-product .woocommerce-Tabs-panel { min-width: 0; max-width: 100%; box-sizing: border-box; }
	.fs-product-gallery { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 100%; }
	.fs-product-gallery__stage { order: 1; width: 100%; }
	.fs-product-gallery__thumbs { order: 2; flex-direction: row; width: 100%; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
	.fs-product-gallery__nav { opacity: 1; }
	.single-product div.product .product_title { max-width: none; }
	.fs-product-description-section__body.has-aside { grid-template-columns: 1fr; gap: 20px; }
	.fs-product-description-section__aside { padding: 20px 0 0; border-top: 1px solid #E2E2E0; border-left: 0; }
	.single-product .woocommerce-tabs #reviews { grid-template-columns: 1fr; gap: 24px; }

	/* Cart / checkout stack */
	.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form),
	.woocommerce-cart .ct-woocommerce-cart-form { grid-template-columns: 1fr; }
	.woocommerce-cart .cart-collaterals { grid-column: 1; }
	.woocommerce .cart_totals { position: static; }
	.woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
	.woocommerce-checkout form.checkout > #customer_details,
	.woocommerce-checkout form.checkout > .ct-customer-details { grid-row: auto; }
	.woocommerce-checkout form.checkout > #order_review_heading,
	.woocommerce-checkout form.checkout > #order_review,
	.woocommerce-checkout form.checkout > .ct-order-review { grid-column: 1; position: static; }
	#order_review_heading { margin-top: 16px !important; }
	/* Tablet / phone: navigation on top, content below */
	.woocommerce-account .woocommerce,
	.woocommerce-account .woocommerce > .ct-woo-account { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.woocommerce-account .woocommerce > .woocommerce-MyAccount-content,
	.woocommerce-account .ct-woo-account > .woocommerce-MyAccount-content { grid-column: 1; }
	.woocommerce ul.woocommerce-order-overview { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
	ul.products,
	ul.products[class*="columns-"],
	.fs-archive ul.products,
	.fs-product-section ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
	ul.products li.product.fs-card { padding: 6px 6px 10px; border-radius: 14px; }
	.fs-card .fs-catalog-media { padding: 10px; border-radius: 10px; }
	.fs-card__badges { top: 14px; left: 14px; gap: 4px; }
	.fs-card__badges .fs-onsale,
	.fs-card__badges .fs-tag { padding: 4px 8px; font-size: 11px; }
	.fs-card__swatches { left: 8px; bottom: 8px; }
	.fs-card__swatches i { width: 11px; height: 11px; }
	.fs-card__body { padding: 0 2px; }
	.fs-card .fs-card__title,
	.woocommerce ul.products li.product .fs-card__title { margin: 10px 0 6px !important; font-size: 14px !important; }
	.fs-catalog-specs { margin-bottom: 10px; font-size: 12px; }
	.fs-catalog-spec:nth-child(n+2) { display: none; }
	.fs-price,
	.woocommerce ul.products li.product .price.fs-price { margin-bottom: 10px !important; font-size: 16px !important; }
	.fs-card__actions .button,
	.fs-card__cta { min-height: 44px; padding: 0 8px !important; border-radius: 9px !important; font-size: 13px !important; }

	.fs-archive-head { margin-bottom: 14px; }
	.fs-archive-head__desc { font-size: 14px; }
	.fs-subcats { flex-wrap: nowrap; margin: 0 calc(var(--fs-gutter) * -1) 16px; padding: 0 var(--fs-gutter) 2px; overflow-x: auto; scrollbar-width: none; }
	.fs-subcats::-webkit-scrollbar { display: none; }
	.fs-toolbar { gap: 8px; }
	.fs-toolbar__filters,
	.fs-toolbar .woocommerce-ordering { flex: 1 1 calc(50% - 6px); min-width: 0; max-width: none; } /* rc8: two equal halves (basis incl. padding) — «По умолчанию» was cut */
	.fs-toolbar .woocommerce-ordering select.orderby { min-width: 0; text-overflow: ellipsis; }
	.fs-toolbar__filters { justify-content: center; border-radius: 12px; }
	/* rc8: Blocksy ≤ 690 px turns the sort select into a 34 px icon button (color: transparent + .ct-sort-icon) —
	   in the FurniStyle toolbar it is a full select with its text. */
	.fs-toolbar select.orderby { width: 100%; border-radius: 12px; color: var(--fs-color-text); -webkit-text-fill-color: currentColor; }
	.fs-toolbar .woocommerce-ordering .ct-sort-icon { display: none; }
	.fs-sidebar { width: 100%; }
	.fs-seo { margin-top: 40px; padding: 24px 20px; }
	.woocommerce nav.woocommerce-pagination ul li .page-numbers { min-width: 42px; height: 42px; }

	/* Single product: swipe gallery + dots */
	.fs-product-gallery__thumbs,
	.fs-product-gallery__nav { display: none !important; }
	.fs-product-gallery__dots { display: flex; bottom: 4px; } /* 4.8.4-rc3: inside the 14 px slide padding — a 4:3 photo now reaches it */
	.fs-product-gallery__stage { border-radius: 14px; }
	.fs-product-gallery__track { overflow-x: auto; overflow-y: hidden; transform: none !important; transition: none; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
	.fs-product-gallery__track::-webkit-scrollbar { display: none; }
	.fs-product-gallery__slide { padding: 14px; scroll-snap-align: center; scroll-snap-stop: always; }
	.fs-product-gallery__zoom { width: 36px; height: 36px; }
	.single-product div.product .product_title { font-size: 26px !important; }
	.single-product div.product .summary > .price,
	.single-product div.product .summary .price:not(.fs-price) { font-size: 24px !important; }
	.single-product .ct-cart-actions,
	.single-product .ct-cart-actions-builder,
	.single-product form.cart:not(.variations_form):not(:has(.ct-cart-actions)),
	.single-product .woocommerce-variation-add-to-cart:not(:has(.ct-cart-actions)) { grid-template-columns: 112px minmax(0, 1fr) !important; }
	.single-product .quantity[data-type="type-2"],
	.single-product .ct-cart-actions .quantity { width: 112px !important; }
	.single-product .single_add_to_cart_button { padding: 0 12px !important; white-space: normal !important; line-height: 1.15 !important; text-align: center; } /* rc7: 320–375 px */
	.fs-product-info__content { padding-left: 2px; }
	.fs-product-description-section { margin-top: 36px; }
	.fs-product-description-section__body { padding: 22px 18px; border-radius: 14px; font-size: 14px; }
	.single-product div.product .woocommerce-tabs { padding: 16px 16px 22px !important; border-radius: 16px; }
	.single-product div.product .woocommerce-tabs ul.tabs { justify-content: flex-start !important; gap: 22px !important; }
	.woocommerce-product-attributes th { width: 50%; }
	.single-product .related.products > h2,
	.single-product .upsells.products > h2,
	.woocommerce .cross-sells > h2 { font-size: 20px !important; }
	.single-product .related.products,
	.single-product .upsells.products { margin-top: 40px !important; }

	.fs-sticky-buy:not([hidden]) {
		position: fixed; right: 0; bottom: 0; left: 0; z-index: 90; display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
		padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--fs-color-border); background: #fff; box-shadow: 0 -8px 24px rgba(20, 20, 20, .06);
	}
	.fs-sticky-buy__info { min-width: 0; }
	.fs-sticky-buy__p { font-size: 18px; font-weight: 600; line-height: 1.1; }
	.fs-sticky-buy__p del { display: block; color: var(--fs-color-text-muted); font-size: 12px; font-weight: 600; }
	.fs-sticky-buy__p ins { color: var(--fs-color-sale); text-decoration: none; }
	.fs-sticky-buy__v { overflow: hidden; color: var(--fs-color-text-secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
	.fs-sticky-buy .fs-btn { min-height: 50px; padding: 0 22px; border-radius: 12px; }
	body.fs-has-sticky-buy { padding-bottom: 80px; }

	/* Cart rows → cards */
	.woocommerce table.shop_table.cart { padding: 4px 14px; }
	.woocommerce table.shop_table.cart thead { display: none; }
	/* 4.1.0-rc7: 4 columns — photo | name (2 cols) | ×; second row: quantity | line total (2 cols). The total
	   used to sit in the 36 px column of the × button and stuck out of the screen. */
	.woocommerce table.shop_table.cart tr.cart_item {
		grid-template-columns: 72px minmax(0, 1fr) auto 36px;
		grid-template-areas: "img name name rm" "img qty sub sub";
		gap: 12px 12px; align-items: start; padding: 16px 0;
	}
	.woocommerce table.shop_table.cart .product-thumbnail img { width: 72px !important; height: 72px; }
	.woocommerce table.shop_table.cart .product-price { display: none !important; }
	.woocommerce table.shop_table.cart .product-quantity { align-self: center; }
	.woocommerce table.shop_table.cart .product-subtotal { align-self: center; min-width: 0; }
	.woocommerce table.shop_table.cart .product-remove { margin: -6px -6px 0 0; }
	.woocommerce table.shop_table.cart .product-name > a { font-size: 15px; }
	.woocommerce table.shop_table.cart .product-name dl.variation { display: block; }
	.woocommerce table.shop_table.cart .product-name dl.variation dt,
	.woocommerce table.shop_table.cart .product-name dl.variation dd,
	.woocommerce table.shop_table.cart .product-name dl.variation dd p { display: inline; margin: 0; }
	.woocommerce table.shop_table.cart .product-name dl.variation dd::after { content: ""; display: block; }
	.woocommerce table.shop_table.cart .product-thumbnail { display: block !important; }
	.woocommerce table.shop_table.cart td.actions { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
	.woocommerce table.shop_table.cart td.product-subtotal { white-space: nowrap; font-size: 16px; }
	/* rc8: Blocksy ≤ 690 px sets .coupon { flex-direction: column } — then flex-basis 160px of the field was its HEIGHT
	   (the «huge coupon box»). Row + wrap, fixed control height. */
	.woocommerce table.shop_table.cart td.actions .coupon { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; align-items: stretch; width: 100%; max-width: none; }
	.woocommerce table.shop_table.cart td.actions .coupon .input-text { flex: 1 1 170px; width: auto !important; height: 48px; min-height: 48px; }
	.woocommerce table.shop_table.cart td.actions .coupon .button { flex: 1 1 auto; height: 48px; min-height: 48px; }
	.woocommerce .cart_totals { padding: 22px 18px; }

	.woocommerce-checkout .col2-set .col-1,
	.woocommerce-checkout .col2-set .col-2 { padding: 22px 18px; }
	#order_review_heading { padding: 22px 18px 6px; }
	.woocommerce-checkout #order_review,
	.woocommerce-checkout .ct-order-review { padding: 6px 18px 22px; }
	.fs-segment { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
	.fs-segment span { justify-content: center; padding: 0 10px; }
	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper,
	.woocommerce-additional-fields__field-wrapper,
	.fs-co-address__fields,
	.woocommerce-address-fields__field-wrapper,
	.woocommerce-EditAccountForm { grid-template-columns: 1fr; }
	.woocommerce form .form-row-first,
	.woocommerce form .form-row-last { grid-column: 1 / -1; }
	.woocommerce-order .woocommerce-thankyou-order-received { padding: 24px 20px !important; font-size: 19px; }
	.woocommerce-order-details,
	.woocommerce-customer-details,
	.woocommerce-MyAccount-content,
	.woocommerce-form-login,
	.woocommerce-form-register { padding: 22px 18px; }
}

@media (max-width: 374px) {
	.fs-card__actions .button,
	.fs-card__cta { font-size: 12px !important; }
	.woocommerce ul.woocommerce-order-overview { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.fs-lightbox img,
	.fs-product-gallery__track,
	.fs-sidebar,
	.fs-card .fs-catalog-media img { transition: none !important; }
}

/* Variation price is shown in the main price line (woocommerce.js swaps it) */
.fs-price-swapped .woocommerce-variation-price { display: none; }

/* 3.0.1 — standard shipping address block inside section «2 Доставка» */
.fs-co-address .woocommerce-shipping-fields { margin-top: 20px; }
.fs-co-address .woocommerce-shipping-fields:empty { display: none; }
