/* ============================================================
   AVELOR — Single Product Page
   Loaded only on is_product().
   Slice 1 + 1.1 fixes scope.
   ============================================================ */

/* ============================================================
   Gallery — main image, thumb rail, expand button
   ============================================================ */

/* .flexy is the positioning anchor for the expand trigger (JS moves trigger into .flexy).
   .flexy-view keeps overflow:hidden for slide clipping; trigger lives OUTSIDE it. */
.product-entry-wrapper .flexy { position: relative; }
.product-entry-wrapper .flexy-view {
	border-radius: var(--radius-sm);
	overflow: hidden;
}
.product-entry-wrapper .flexy-view .ct-media-container {
	border-radius: var(--radius-sm);
}
/* Disable hover zoom + zoom cursor on main image. Don't touch .flexy-items > .flexy-item
   which needs translate3d for slide animation. */
.product-entry-wrapper .flexy-view .ct-media-container,
.product-entry-wrapper .flexy-view .ct-media-container img,
.product-entry-wrapper .flexy-view figure,
.product-entry-wrapper .flexy-view figure img {
	cursor: default !important;
	transform: none !important;
}
.product-entry-wrapper .flexy-view .ct-media-container:hover,
.product-entry-wrapper .flexy-view .ct-media-container:hover img,
.product-entry-wrapper .flexy-view figure:hover,
.product-entry-wrapper .flexy-view figure:hover img,
.product-entry-wrapper .flexy-view img:hover,
.product-entry-wrapper .flexy-view img.zoomImg {
	transform: none !important;
	scale: 1 !important;
	cursor: default !important;
}

/* Prev/Next slide arrows — match expand button style: white bg, champagne border, graphite icon */
.product-entry-wrapper [class*="flexy-arrow"] {
	background: var(--avelor-white) !important;
	color: var(--avelor-graphite) !important;
	border: 1px solid var(--avelor-champagne) !important;
	box-shadow: none !important;
	transition: border-color var(--dur-base) var(--ease-out) !important;
}
.product-entry-wrapper [class*="flexy-arrow"]:hover {
	background: var(--avelor-white) !important;
	color: var(--avelor-graphite) !important;
	border-color: var(--avelor-graphite) !important;
}
.product-entry-wrapper [class*="flexy-arrow"] svg,
.product-entry-wrapper [class*="flexy-arrow"] svg *,
.product-entry-wrapper [class*="flexy-arrow"] path,
.product-entry-wrapper [class*="flexy-arrow"] polyline,
.product-entry-wrapper [class*="flexy-arrow"] line {
	stroke-width: 1 !important;
	color: var(--avelor-graphite) !important;
}

/* Expand / zoom trigger — Blocksy's default circle, champagne→graphite border, Lucide expand arrows centered */
.product-entry-wrapper .woocommerce-product-gallery__trigger {
	color: var(--avelor-graphite) !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-decoration: none !important;
	text-indent: 0 !important;
	border: 1px solid var(--avelor-champagne) !important;
	transition: border-color var(--dur-base) var(--ease-out) !important;
	box-shadow: none !important;
}
.product-entry-wrapper .woocommerce-product-gallery__trigger:hover {
	border-color: var(--avelor-graphite) !important;
	background: var(--avelor-white) !important;
	background-color: var(--avelor-white) !important;
	color: var(--avelor-graphite) !important;
}
.product-entry-wrapper .woocommerce-product-gallery__trigger::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" y1="3" x2="14" y2="10"/><line x1="3" y1="21" x2="10" y2="14"/></svg>');
	mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" y1="3" x2="14" y2="10"/><line x1="3" y1="21" x2="10" y2="14"/></svg>');
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-position: center; mask-position: center;
	-webkit-mask-size: contain; mask-size: contain;
	pointer-events: none;
}

/* ===== Thumbnails rail — single border on <li>, nuke ALL inner styling.
   JS swaps img src to non-square 242x300 (4:5 proportional). ===== */
.product-entry-wrapper .flexy-pills ol {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	margin: 0;
	list-style: none;
}
.product-entry-wrapper .flexy-pills li {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid transparent !important;
	border-radius: var(--radius-sm) !important;
	overflow: hidden;
	cursor: pointer;
	transition: border-color var(--dur-fast) var(--ease-out);
	background: var(--avelor-white);
	box-shadow: none !important;
	outline: 0 !important;
	box-sizing: border-box !important;
}
.product-entry-wrapper .flexy-pills li:hover {
	border-color: var(--avelor-line) !important;
}
.product-entry-wrapper .flexy-pills li.active {
	border: 1px solid var(--avelor-graphite) !important;
}
/* Nuke EVERYTHING inside <li> — borders, outlines, shadows, focus rings, before/after */
.product-entry-wrapper .flexy-pills li *,
.product-entry-wrapper .flexy-pills li *::before,
.product-entry-wrapper .flexy-pills li *::after,
.product-entry-wrapper .flexy-pills li.active *,
.product-entry-wrapper .flexy-pills li :is(span, figure, picture, img, a, button) {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
	outline-offset: 0 !important;
	background: transparent !important;
}
.product-entry-wrapper .flexy-pills li:focus,
.product-entry-wrapper .flexy-pills li:focus-within,
.product-entry-wrapper .flexy-pills li *:focus,
.product-entry-wrapper .flexy-pills li *:focus-within {
	outline: 0 !important;
	box-shadow: none !important;
}
.product-entry-wrapper .flexy-pills li .ct-media-container,
.product-entry-wrapper .flexy-pills li > span {
	display: block !important;
	width: 100% !important;
	/* `height: 100%` previously collapsed to 0 here because <li> has no
	   explicit height, which broke `aspect-ratio` on the inner <img>
	   (img ended up 0-height → empty thumbnails). Let the container
	   wrap the image's derived height instead. */
	height: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden;
	aspect-ratio: 4 / 5;
}
.product-entry-wrapper .flexy-pills li img {
	width: 100% !important;
	/* Don't pin height — let aspect-ratio derive it from width.
	   `height: 100%` of an unsized parent resolves to 0. */
	height: auto !important;
	max-width: 100%;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	background: var(--avelor-white) !important;
	aspect-ratio: 4 / 5 !important;
}

/* Make the pills <ol> a scrollable rail when thumbs overflow */
.product-entry-wrapper .flexy-pills ol {
	max-height: 100%;
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.product-entry-wrapper .flexy-pills ol::-webkit-scrollbar { display: none; }

/* Custom scroll arrows (rendered by JS as .avelor-thumb-arrows) */
.product-entry-wrapper .avelor-thumb-arrows {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 10px;
	align-items: center;
}
.product-entry-wrapper .avelor-thumb-arrow {
	width: 32px; height: 32px;
	border-radius: var(--radius-pill);
	background: var(--avelor-white);
	border: 1px solid var(--avelor-line);
	color: var(--fg-primary);
	display: inline-flex;
	align-items: center; justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: border-color var(--dur-fast) var(--ease-out);
}
.product-entry-wrapper .avelor-thumb-arrow:hover { border-color: var(--avelor-graphite); }
.product-entry-wrapper .avelor-thumb-arrow svg { width: 16px; height: 16px; }

/* ============================================================
   Layout fixes (Slice 1.1)
   ============================================================ */

/* Pull product page closer to header — breadcrumbs equidistant from header and content */
[data-prefix="product"] [data-vertical-spacing*="top"] { padding-top: 12px; }
[data-prefix="product"] .entry-header { margin: 0 !important; padding: 0 !important; }
[data-prefix="product"] .hero-section { padding: 0 !important; min-height: 0 !important; margin: 0 !important; }
[data-prefix="product"] .ct-breadcrumbs { margin: 0 !important; padding: 0 !important; }
[data-prefix="product"] .product-entry-wrapper { margin-top: 12px !important; }
[data-prefix="product"] article.post-3490,
[data-prefix="product"] article[class*="post-"] {
	--theme-content-vertical-spacing: 12px !important;
}

/* Hairline divider between header and main */
.ct-header { border-bottom: 1px solid var(--avelor-line); }

/* Force wide container on product page (Blocksy switches to "narrow" when no sidebar) */
[data-prefix="product"] .ct-container-full[data-content="narrow"],
[data-prefix="product"] .ct-container-full {
	max-width: var(--container-max);
}
[data-prefix="product"] .product-entry-wrapper.is-width-constrained {
	max-width: 100%;
}

/* ============================================================
   Buybox column (Blocksy entry-summary)
   ============================================================ */
.entry-summary {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
/* Wishlist secondary CTA sits flush under primary */
.entry-summary .avelor-product__wishlist-cta { margin-top: 0; }

/* Brand eyebrow — over the title */
.avelor-product__brand {
	font-family: var(--font-display);
	font-size: var(--fs-eyebrow);
	line-height: var(--lh-eyebrow);
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
	font-weight: var(--fw-semibold);
	color: var(--fg-secondary);
	margin: 0;
}

/* Title overrides */
.entry-summary .product_title.entry-title {
	font-family: var(--font-display);
	font-size: 26px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	font-weight: var(--fw-medium);
	color: var(--fg-primary);
	margin: 0;
}

/* Scenario chips */
.avelor-product__scenarios {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}
.avelor-product__scenario {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: var(--radius-sm);
	background: var(--avelor-white);
	border: 1px solid var(--avelor-line);
	font-family: var(--font-sans);
	font-size: var(--fs-caption);
	font-weight: var(--fw-medium);
	letter-spacing: 0;
	color: var(--fg-primary);
}

/* Tagline */
.avelor-product__tagline {
	font-family: var(--font-sans);
	font-size: var(--fs-body-sm);
	line-height: var(--lh-body-sm);
	color: var(--fg-muted);
	margin: 0;
}

/* ============================================================
   Rating — graphite stars, no orange (Slice 1.1)
   Hide duplicate rating output that Blocksy renders outside our meta-row
   ============================================================ */

/* Suppress Blocksy's standalone rating; ours lives inside avelor-product__meta-row */
.entry-summary > .woocommerce-product-rating,
.entry-summary-items > .woocommerce-product-rating { display: none; }

/* Star rating: graphite color, override default WC orange (uses !important to beat WC inline) */
.entry-summary .star-rating { color: var(--avelor-graphite) !important; }
.entry-summary .star-rating::before { color: rgba(32, 35, 34, 0.18) !important; }
.entry-summary .star-rating span::before { color: var(--avelor-graphite) !important; }

/* Meta row — rating (left) + SKU (right) */
.avelor-product__meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 4px 0;
	margin: 0;
}
.avelor-product__rating-slot { display: inline-flex; align-items: center; min-height: 18px; }
.avelor-product__rating-slot .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: var(--fs-body-sm);
	color: var(--fg-muted);
}
.avelor-product__rating-slot .star-rating {
	font-size: 14px;
}
.avelor-product__rating-slot .woocommerce-review-link {
	color: var(--fg-muted);
	font-size: var(--fs-body-sm);
	text-decoration: none;
}
.avelor-product__rating-slot .woocommerce-review-link:hover { color: var(--fg-primary); }

.avelor-product__sku {
	margin: 0;
	font-size: var(--fs-body-sm);
	color: var(--fg-muted);
	display: inline-flex;
	gap: 6px;
	align-items: baseline;
}
.avelor-product__sku-label { color: var(--fg-muted); }
.avelor-product__sku-value { color: var(--fg-primary); }

/* Price row */
.entry-summary .price {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding-top: 4px;
	margin: 0;
	font-family: var(--font-display);
	font-size: 28px;
	line-height: 1.1;
	font-weight: var(--fw-semibold);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
	color: var(--fg-primary);
}
.entry-summary .price ins {
	background: transparent;
	text-decoration: none;
	color: var(--fg-primary);
	font-weight: var(--fw-semibold);
}
.entry-summary .price del {
	color: var(--fg-muted);
	font-size: 16px;
	font-weight: var(--fw-regular);
	text-decoration: line-through;
	opacity: 1;
}
.entry-summary .price del .amount { font-weight: inherit; }

/* Default short-description block — hide; we render the excerpt in the tagline slot above */
.entry-summary .woocommerce-product-details__short-description { display: none; }

/* Blocksy product element dividers (between price/CTA/etc.) — calm layout uses gap, not lines */
.entry-summary .ct-product-divider { display: none; }

/* ============================================================
   Variations form (color + size) — Blocksy structure aware
   HTML: .ct-variation-swatches[data-swatches-type="color|button"]
         > .ct-swatch-container[.active] > .ct-swatch > .ct-swatch-content
   ============================================================ */

/* Pull variations form right under the price.
   Blocksy adds --product-element-spacing: 35px to .ct-product-add-to-cart;
   override that wrapper's top margin to bring the form up. */
.entry-summary .ct-product-add-to-cart {
	margin-top: -28px !important;
	--product-element-spacing: 0px !important;
}
.entry-summary > .price + form.cart { margin-top: 0; }

/* Hide Blocksy's auto-rendered duplicate wishlist (Additional Actions element) — we render our own under Add-to-Cart */
.entry-summary .ct-product-additional-actions { display: none !important; }

.entry-summary .variations { width: 100%; border-collapse: collapse; }
.entry-summary .variations tbody { display: flex; flex-direction: column; gap: 10px; }
.entry-summary .variations tr { display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; }
.entry-summary .variations th,
.entry-summary .variations td { display: block; padding: 0; border: 0; background: transparent; }

/* Label format: "Колір" light(300) muted + "<span>: Графіт</span>" medium(500) graphite */
.entry-summary .variations th label,
.entry-summary .variations th label * {
	font-family: var(--font-sans) !important;
	font-size: var(--fs-body-sm) !important;
	line-height: 1.4 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	margin: 0;
}
.entry-summary .variations th label {
	font-weight: 300 !important;
	color: var(--fg-muted) !important;
	display: inline-flex;
	align-items: baseline;
	gap: 0;
}
.entry-summary .variations th label > span {
	color: var(--fg-primary) !important;
	font-weight: var(--fw-medium) !important;
}

/* Hide WC default reset link */
.entry-summary .reset_variations { display: none !important; }

/* Size guide link — appears AFTER variations table, close to the size buttons */
.avelor-product__size-guide-row {
	display: block !important;
	margin: -4px 0 0 !important;
	clear: both;
}
.avelor-product__size-guide-link {
	display: inline-flex !important;
	width: fit-content;
	align-items: center;
	gap: 8px;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 300;
	color: var(--fg-primary);
	/* Trigger renders as <button> for a11y (aria-haspopup); strip browser
	   default chrome so it reads as a hairline-underlined text link. */
	background: transparent;
	background-color: transparent;
	border: 0;
	border-bottom: 1px solid var(--avelor-graphite);
	-webkit-appearance: none;
	appearance: none;
	padding: 0 0 2px 0;
	margin: 0;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	line-height: inherit;
}
.avelor-product__size-guide-link svg {
	width: 14px; height: 14px; flex-shrink: 0;
}
.avelor-product__size-guide-link:hover {
	color: var(--avelor-deep-green);
	border-bottom-color: var(--avelor-deep-green);
}

/* Swatches container — both color and button types */
.entry-summary .ct-variation-swatches { display: flex; flex-wrap: wrap; gap: 12px; }

/* === Color swatches (40px circles, single border that thickens on selected) === */
.entry-summary .ct-variation-swatches[data-swatches-type="color"] .ct-swatch-container {
	width: 40px; height: 40px;
	position: relative;
	cursor: pointer;
	transition: transform var(--dur-fast) var(--ease-out);
}
.entry-summary .ct-variation-swatches[data-swatches-type="color"] .ct-swatch-container:hover { transform: scale(1.05); }
.entry-summary .ct-variation-swatches[data-swatches-type="color"] .ct-swatch {
	width: 100% !important; height: 100% !important;
	border-radius: var(--radius-pill) !important;
	border: 1px solid rgba(32, 35, 34, 0.10) !important;
	background: transparent !important;
	overflow: hidden;
	display: block;
	box-sizing: border-box;
	transition: border-color var(--dur-fast) var(--ease-out), border-width var(--dur-fast) var(--ease-out);
}
.entry-summary .ct-variation-swatches[data-swatches-type="color"] .ct-swatch-content {
	width: 100% !important; height: 100% !important;
	border-radius: var(--radius-pill) !important;
	display: block;
}
.entry-summary .ct-variation-swatches[data-swatches-type="color"] .ct-swatch-container.active .ct-swatch {
	border: 1.5px solid var(--avelor-graphite) !important;
}

/* === Size pills (rounded rectangles 56×48 radius 12, deep-green selected fill) === */
.entry-summary .ct-variation-swatches[data-swatches-type="button"] { gap: 8px; }
.entry-summary .ct-variation-swatches[data-swatches-type="button"] .ct-swatch-container {
	width: auto; height: 48px;
	min-width: 56px;
	cursor: pointer;
	display: inline-flex;
	align-items: stretch;
	transition: transform var(--dur-fast) var(--ease-out);
}
.entry-summary .ct-variation-swatches[data-swatches-type="button"] .ct-swatch {
	width: 100% !important; height: 100% !important;
	min-width: inherit;
	padding: 0 16px !important;
	background: var(--avelor-white) !important;
	border: 1px solid var(--avelor-line) !important;
	border-radius: var(--radius-md) !important;
	display: inline-flex !important;
	align-items: center; justify-content: center;
	transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.entry-summary .ct-variation-swatches[data-swatches-type="button"] .ct-swatch-content {
	font-family: var(--font-sans);
	font-size: var(--fs-body-sm);
	font-weight: var(--fw-medium);
	color: var(--fg-primary);
	background: transparent !important;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0 !important;
}
.entry-summary .ct-variation-swatches[data-swatches-type="button"] .ct-swatch-container:hover .ct-swatch {
	border-color: var(--avelor-graphite) !important;
}
.entry-summary .ct-variation-swatches[data-swatches-type="button"] .ct-swatch-container.active .ct-swatch {
	background: var(--avelor-deep-green) !important;
	border-color: var(--avelor-deep-green) !important;
}
.entry-summary .ct-variation-swatches[data-swatches-type="button"] .ct-swatch-container.active .ct-swatch-content {
	color: var(--avelor-white) !important;
}
.entry-summary .ct-variation-swatches[data-swatches-type="button"] .ct-tooltip { display: none; }

/* ============================================================
   Stock indicator — Slice 2
   ============================================================ */
.avelor-product__stock {
	display: flex; gap: 12px; align-items: flex-start;
	padding: 4px 0;
	margin: 0;
}
.avelor-product__stock-dot {
	width: 8px; height: 8px;
	border-radius: var(--radius-pill);
	background: #2EA862;
	margin-top: 8px;
	flex-shrink: 0;
}
.avelor-product__stock.is-out .avelor-product__stock-dot {
	background: var(--status-error);
}
.avelor-product__stock-title {
	font-size: var(--fs-body-sm);
	font-weight: var(--fw-medium);
	color: var(--fg-primary);
	line-height: 1.3;
}
.avelor-product__stock-meta {
	font-size: var(--fs-caption);
	color: var(--fg-muted);
	margin-top: 2px;
	letter-spacing: 0;
}

/* ============================================================
   Quantity + Add-to-cart (CTA stack) — Slice 2
   ============================================================ */
.entry-summary .quantity { display: inline-flex; align-items: stretch; height: 52px; flex-shrink: 0; }
.entry-summary .quantity .ct-quantity-decrement,
.entry-summary .quantity .ct-quantity-increment {
	width: 40px;
	background: var(--avelor-white);
	border: 1px solid var(--avelor-line);
	color: var(--fg-primary);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	border-radius: 0;
}
.entry-summary .quantity .ct-quantity-decrement { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.entry-summary .quantity .ct-quantity-increment { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry-summary .quantity .qty {
	width: 56px;
	text-align: center;
	border: 1px solid var(--avelor-line);
	border-left: 0;
	border-right: 0;
	background: var(--avelor-white);
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	font-weight: var(--fw-medium);
	color: var(--fg-primary);
}

/* Cart form layout: stock + CTA stack vertically (no quantity in design) */
.entry-summary form.cart,
.entry-summary .woocommerce-variation-add-to-cart {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}
/* Hide quantity selector — design uses default qty=1, change on cart page */
.entry-summary form.cart .quantity,
.entry-summary .woocommerce-variation-add-to-cart .quantity { display: none !important; }

.entry-summary form.cart > .single_add_to_cart_button,
.entry-summary .woocommerce-variation-add-to-cart > .single_add_to_cart_button {
	width: 100%;
	min-width: 0;
}

/* Wishlist secondary CTA — under primary Add-to-Cart */
.avelor-product__wishlist-cta { width: 100%; }
.avelor-product__wishlist-cta .ct-wishlist-button-single,
.avelor-product__wishlist-cta button,
.avelor-product__wishlist-cta a.ct-button {
	width: 100% !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	height: 52px;
	padding: 16px 24px !important;
	background: var(--avelor-white) !important;
	color: var(--avelor-graphite) !important;
	border: 1px solid var(--avelor-champagne) !important;
	border-radius: var(--radius-lg) !important;
	font-family: var(--font-sans) !important;
	font-size: 15px !important;
	font-weight: var(--fw-medium) !important;
	line-height: 1 !important;
	letter-spacing: 0.005em !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.avelor-product__wishlist-cta .ct-wishlist-button-single:hover,
.avelor-product__wishlist-cta button:hover,
.avelor-product__wishlist-cta a.ct-button:hover {
	border-color: var(--avelor-graphite) !important;
}

/* Heart icon: JS replaces Blocksy SVG with Lucide-style stroke heart (.avelor-heart).
   Default: thin 1.5px graphite outline, no fill.
   Active (liked): deep-green outline + deep-green fill. */
.avelor-product__wishlist-cta .avelor-heart {
	width: 18px;
	height: 18px;
	stroke: var(--avelor-graphite) !important;
	fill: none !important;
	color: var(--avelor-graphite);
	transition: stroke var(--dur-base) var(--ease-out), fill var(--dur-base) var(--ease-out);
}
.avelor-product__wishlist-cta .avelor-heart path {
	stroke: currentColor !important;
	fill: none !important;
}

/* Fallback for Blocksy's original SVG (before JS replaces it, if ever) */
.avelor-product__wishlist-cta svg:not(.avelor-heart):not(.ct-button-loader) path {
	fill: var(--avelor-graphite) !important;
	stroke: none !important;
}
.avelor-product__wishlist-cta svg:not(.avelor-heart):not(.ct-button-loader) .ct-heart-fill {
	fill: transparent !important;
}

/* Liked state — border/text/heart deep-green */
.avelor-product__wishlist-cta .ct-wishlist-button-single:not([data-button-state=""]),
.avelor-product__wishlist-cta .ct-wishlist-button-single.active {
	color: var(--avelor-deep-green) !important;
	border-color: var(--avelor-deep-green) !important;
}
.avelor-product__wishlist-cta .ct-wishlist-button-single:not([data-button-state=""]) .avelor-heart,
.avelor-product__wishlist-cta .ct-wishlist-button-single.active .avelor-heart {
	stroke: var(--avelor-deep-green) !important;
	fill: var(--avelor-deep-green) !important;
	color: var(--avelor-deep-green);
}
.avelor-product__wishlist-cta .ct-wishlist-button-single:not([data-button-state=""]) .avelor-heart path,
.avelor-product__wishlist-cta .ct-wishlist-button-single.active .avelor-heart path {
	stroke: var(--avelor-deep-green) !important;
	fill: var(--avelor-deep-green) !important;
}

/* Hide the loader spinner SVG and tooltip duplicate */
.avelor-product__wishlist-cta svg.ct-button-loader { display: none !important; }
.avelor-product__wishlist-cta .ct-tooltip { display: none !important; }

/* ============================================================
   Add to cart — bag icon prefix (Lucide-style, thin 1px stroke)
   Force display + flex layout so icon and text sit centered, both same font as wishlist.
   ============================================================ */
.entry-summary .single_add_to_cart_button.button.alt {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	font-size: 15px !important;
	font-weight: var(--fw-medium) !important;
	line-height: 1 !important;
	letter-spacing: 0.005em !important;
}
/* Bag icon is injected via JS (.avelor-bag-icon SVG) for reliability across Blocksy state changes */
.entry-summary .single_add_to_cart_button.button.alt .avelor-bag-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: currentColor;
}

/* "View Cart" button shown after add-to-cart success — champagne fill, black text, hover graphite border */
.entry-summary .added_to_cart.wc-forward,
.product-entry-wrapper .added_to_cart.wc-forward {
	background: var(--avelor-champagne) !important;
	color: var(--avelor-graphite) !important;
	border: 1px solid transparent !important;
	border-radius: var(--radius-lg) !important;
	font-family: var(--font-sans) !important;
	font-size: 15px !important;
	font-weight: var(--fw-medium) !important;
	line-height: 1 !important;
	padding: 16px 24px !important;
	height: 52px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.entry-summary .added_to_cart.wc-forward:hover,
.product-entry-wrapper .added_to_cart.wc-forward:hover {
	background: var(--avelor-champagne) !important;
	border: 1px solid var(--avelor-graphite) !important;
	color: var(--avelor-graphite) !important;
}

/* Disable jQuery wc-product-gallery-zoom overlay (.zoomImg) on main image */
.product-entry-wrapper .ct-media-container .zoomImg,
.product-entry-wrapper .flexy-view .zoomImg,
.product-entry-wrapper img.zoomImg {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
}

/* Hide WC default product_meta (SKU/Categories/Brand) and any Blocksy Brand/SKU element */
.entry-summary .product_meta,
.entry-summary .ct-product-sku,
.entry-summary .ct-product-brands {
	display: none !important;
}

/* Hide WC default variation availability text — we render our own .avelor-product__stock */
.entry-summary .woocommerce-variation-availability,
.entry-summary .woocommerce-variation-availability .stock {
	display: none !important;
}

/* Hide variation-specific price duplicate below the form — we sync the main top price via JS */
.entry-summary .single_variation .price,
.entry-summary .woocommerce-variation-price,
.entry-summary .woocommerce-variation-price .price {
	display: none !important;
}
.avelor-product__wishlist-cta .ct-wishlist-button-single.active,
.avelor-product__wishlist-cta .ct-wishlist-button-single[data-state="liked"] {
	border-color: var(--avelor-deep-green) !important;
	color: var(--avelor-deep-green) !important;
}
.avelor-product__wishlist-cta svg { width: 18px; height: 18px; }

/* Add to cart — deep-green primary, large, full-flex */
.entry-summary .single_add_to_cart_button.button.alt {
	background: var(--avelor-deep-green) !important;
	color: var(--avelor-white) !important;
	border: 1px solid var(--avelor-deep-green) !important;
	border-radius: var(--radius-lg) !important;
	font-family: var(--font-sans) !important;
	font-size: 15px !important;
	font-weight: var(--fw-medium) !important;
	letter-spacing: 0.005em;
	padding: 16px 24px !important;
	height: 52px;
	min-height: 52px;
	box-shadow: none !important;
	transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.entry-summary .single_add_to_cart_button.button.alt:hover {
	background: #173027 !important;
	border-color: #173027 !important;
	color: var(--avelor-white) !important;
}

/* Keep button visually ACTIVE when no variant is selected yet —
   WC adds .disabled + .wc-variation-selection-needed before user picks
   color/size. Letting the user click invites WC's native "select options"
   prompt which is friendlier than a dead gray button. */
.entry-summary .single_add_to_cart_button.button.alt.disabled.wc-variation-selection-needed,
.entry-summary .single_add_to_cart_button.button.alt.wc-variation-selection-needed {
	background: var(--avelor-deep-green) !important;
	color: var(--avelor-white) !important;
	border-color: var(--avelor-deep-green) !important;
	opacity: 1 !important;
	cursor: pointer !important;
	pointer-events: auto !important;
}
.entry-summary .single_add_to_cart_button.button.alt.disabled.wc-variation-selection-needed:hover,
.entry-summary .single_add_to_cart_button.button.alt.wc-variation-selection-needed:hover {
	background: #173027 !important;
	border-color: #173027 !important;
}

/* Show disabled visual ONLY when variant is selected and unavailable */
.entry-summary .single_add_to_cart_button.button.alt.disabled.wc-variation-is-unavailable {
	background: var(--avelor-line) !important;
	color: var(--fg-muted) !important;
	border-color: var(--avelor-line) !important;
	cursor: not-allowed !important;
	opacity: 0.85 !important;
}

/* ============================================================
   Mobile breakpoint — Slice 2 additions
   ============================================================ */
@media (max-width: 900px) {
	.entry-summary form.cart > .single_add_to_cart_button { flex: 1 1 auto; }
}

/* ============================================================
   Mobile breakpoint
   ============================================================ */
@media (max-width: 900px) {
	.entry-summary { gap: 12px; }
	.entry-summary .product_title.entry-title { font-size: 22px; }
	.entry-summary .price { font-size: 24px; }
	.avelor-product__meta-row { flex-direction: row; gap: 12px; }
	[data-prefix="product"] [data-vertical-spacing*="top"] { padding-top: 8px; }

	/* Breadcrumbs — padding from screen edge */
	[data-prefix="product"] .ct-breadcrumbs { padding: 0 16px !important; }

	/* Hide thumb rail and prev/next arrows on mobile — gallery becomes swipe + dots */
	.product-entry-wrapper .flexy-pills,
	.product-entry-wrapper [class*="flexy-arrow"],
	.product-entry-wrapper .avelor-thumb-arrows { display: none !important; }

	/* Custom dot indicators (built by JS, sync via --current-item style mutation) */
	.product-entry-wrapper .avelor-gallery-dots {
		position: absolute;
		bottom: 14px;
		left: 50%;
		transform: translateX(-50%);
		display: flex;
		gap: 6px;
		z-index: 4;
	}
	.product-entry-wrapper .avelor-gallery-dot {
		width: 22px;
		height: 3px;
		border-radius: 999px;
		background: rgba(254, 254, 254, 0.55);
		transition: background-color var(--dur-base) var(--ease-out);
	}
	.product-entry-wrapper .avelor-gallery-dot.is-active {
		background: var(--avelor-white);
	}

	/* Sticky bottom cart bar — visible only on mobile */
	.avelor-mobile-cta {
		position: fixed;
		bottom: 0; left: 0; right: 0;
		z-index: 100;
		background: var(--avelor-white);
		border-top: 1px solid var(--avelor-line);
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		box-shadow: 0 -4px 16px rgba(32, 35, 34, 0.06);
		display: flex;
		align-items: center;
		gap: 12px;
	}
	.avelor-mobile-cta-price {
		font-family: var(--font-display);
		font-size: 18px;
		font-weight: var(--fw-semibold);
		color: var(--fg-primary);
		font-variant-numeric: tabular-nums;
		flex-shrink: 0;
		white-space: nowrap;
	}
	.avelor-mobile-cta-btn {
		flex: 1;
		background: var(--avelor-deep-green);
		color: var(--avelor-white);
		border: 0;
		border-radius: var(--radius-lg);
		padding: 14px 22px;
		height: 48px;
		font-family: var(--font-sans);
		font-size: 15px;
		font-weight: var(--fw-medium);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		cursor: pointer;
	}
	.avelor-mobile-cta-btn:active { background: #173027; }
	/* Pad the page bottom so the sticky bar doesn't cover content */
	.product-entry-wrapper { padding-bottom: 80px; }

	/* Sync mobile sticky CTA with main Add-to-Cart state.
	   Only show DISABLED when variant is selected AND out of stock
	   (`.wc-variation-is-unavailable`). Keep ACTIVE for "no selection yet"
	   so the user is invited to act — WC will show a "select options" prompt
	   on click. */
	body:has(.entry-summary .single_add_to_cart_button.wc-variation-is-unavailable) .avelor-mobile-cta-btn {
		background: var(--avelor-line) !important;
		color: var(--fg-muted) !important;
		pointer-events: none;
		cursor: not-allowed;
		opacity: 0.7;
	}
}
@media (min-width: 901px) {
	.avelor-mobile-cta { display: none !important; }
}

/* =========================================================
   Slice 3 — Features row + Trust strip + Collection promo card
   Sit inside .summary, after CTA stack (priorities 35/40/45).
   ========================================================= */

/* Features: 3-up icon grid */
.avelor-product__features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	padding: 8px 0 4px;
	margin: 16px 0 0;
}
.avelor-product__feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}
.avelor-product__feature-ic {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--fg-primary);
	flex-shrink: 0;
}
.avelor-product__feature-ic svg {
	width: 24px;
	height: 24px;
}
.avelor-product__feature-lbl {
	font-family: var(--font-sans);
	font-size: 12px;
	line-height: 1.35;
	color: var(--fg-primary);
	font-weight: var(--fw-medium);
}

/* Trust strip: shipping + returns under a hairline */
.avelor-product__trust {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 0;
	border-top: 1px solid var(--avelor-line);
	margin-top: 20px;
}
.avelor-product__trust-row {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-sans);
	font-size: 13px;
	line-height: 1.5;
	color: var(--fg-primary);
}
.avelor-product__trust-row svg {
	width: 18px;
	height: 18px;
	color: var(--fg-secondary);
	flex-shrink: 0;
}
.avelor-product__trust-row b,
.avelor-product__trust-row strong {
	font-weight: var(--fw-medium);
	color: var(--fg-primary);
}

/* Collection promo card */
.avelor-product__collection-card {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 220px;
	margin-top: 20px;
	background: #E2D5C0;
	border-radius: var(--radius-xl);
	overflow: hidden;
	align-items: stretch;
}
.avelor-product__collection-text {
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	justify-content: space-between;
}
.avelor-product__collection-title {
	font-family: var(--font-display, var(--font-sans));
	font-size: 24px;
	font-weight: var(--fw-medium);
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--avelor-graphite);
}
.avelor-product__collection-sub {
	font-family: var(--font-sans);
	font-size: 13px;
	line-height: 1.5;
	color: var(--avelor-graphite);
	margin: 0;
}
.avelor-product__collection-cta {
	align-self: flex-start;
}
.avelor-product__collection-media {
	position: relative;
	background: #E2D5C0;
	overflow: hidden;
}
.avelor-product__collection-media .avelor-product__collection-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.avelor-product__collection-media.is-placeholder {
	background: linear-gradient(160deg, #6E7A5A 0%, #4F5C44 100%);
}

.avelor-product__collection-media.is-placeholder::after {
	content: "";
	position: absolute;
	inset: 18% 12% 8%;
	background: rgba(255, 255, 255, 0.10);
	border-radius: 8px;
}

/* Mobile tightening */
@media (max-width: 900px) {
	.avelor-product__features {
		gap: 8px;
		margin-top: 12px;
	}
	.avelor-product__feature-lbl {
		font-size: 11px;
	}
	.avelor-product__trust {
		margin-top: 16px;
	}
	.avelor-product__collection-card {
		margin-top: 16px;
		min-height: 180px;
	}
	.avelor-product__collection-text {
		padding: 18px;
		gap: 8px;
	}
	.avelor-product__collection-title {
		font-size: 18px;
	}
	.avelor-product__collection-sub {
		font-size: 12px;
	}
	.avelor-product__collection-cta {
		padding: 10px 14px;
		font-size: 12px;
		white-space: nowrap;
	}
}

/* =========================================================
   Slice 4 — Single product accordion (replaces WC tabs)
   ========================================================= */

.avelor-product__accordion {
	margin-top: 36px;
	background: var(--avelor-white);
	border: 1px solid var(--avelor-line);
	border-radius: var(--radius-xl);
	overflow: hidden;
}
.avelor-product__acc-item {
	border-bottom: 1px solid var(--avelor-line);
}
.avelor-product__acc-item:last-child {
	border-bottom: 0;
}

/* Hide native marker (triangle) on summary */
.avelor-product__acc-head::-webkit-details-marker { display: none; }
.avelor-product__acc-head { list-style: none; }

.avelor-product__acc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	cursor: pointer;
	user-select: none;
	background: transparent;
	transition: background-color var(--dur-fast, 120ms) ease;
}
.avelor-product__acc-head:hover {
	background: rgba(32, 35, 34, 0.025);
}
.avelor-product__acc-head:focus-visible {
	outline: 2px solid var(--avelor-deep-green);
	outline-offset: -2px;
}
.avelor-product__acc-title {
	font-family: var(--font-sans);
	font-size: 15px;
	font-weight: var(--fw-medium);
	letter-spacing: -0.005em;
	color: var(--fg-primary);
	line-height: 1.3;
}
.avelor-product__acc-chev {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--fg-secondary);
	transition: transform var(--dur-base, 200ms) cubic-bezier(0.2, 0.7, 0.2, 1);
	flex-shrink: 0;
}
.avelor-product__acc-chev svg {
	width: 18px;
	height: 18px;
	display: block;
}
.avelor-product__acc-item[open] > .avelor-product__acc-head .avelor-product__acc-chev {
	transform: rotate(180deg);
}

.avelor-product__acc-body {
	padding: 4px 22px 22px;
	font-family: var(--font-sans);
	font-size: 14px;
	line-height: 1.65;
	color: var(--fg-primary);
}
.avelor-product__acc-body p {
	margin: 0 0 10px;
}
.avelor-product__acc-body p:last-child {
	margin-bottom: 0;
}
.avelor-product__acc-body a {
	color: var(--avelor-deep-green);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.avelor-product__acc-body ul,
.avelor-product__acc-body ol {
	margin: 0 0 10px;
	padding-left: 20px;
}
.avelor-product__acc-body li {
	margin-bottom: 4px;
}

/* =========================================================
   PDP rich-HTML accordion — Claude-design `.av-prose` typography
   Scoped to «Опис» (--description) + «Ключові переваги» (--key-features),
   which both carry beri.ua HTML with <h2>/<h3>/<p>/<ul>/<img>. Other
   accordion items (Розмір, Склад, Доставка) keep the compact defaults
   above.
   ========================================================= */
.avelor-product__acc-item--description .avelor-product__acc-body,
.avelor-product__acc-item--key-features .avelor-product__acc-body {
	display: flex;
	flex-direction: column;
	gap: 24px;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.7;
	letter-spacing: -0.005em;
	color: var(--fg-primary);
	text-wrap: pretty;
}

/* Reset margins — gap is the only vertical rhythm */
.avelor-product__acc-item--description .avelor-product__acc-body > *,
.avelor-product__acc-item--key-features .avelor-product__acc-body > * {
	margin: 0;
}

/* Headings — Inter display, balanced */
.avelor-product__acc-item--description .avelor-product__acc-body h2,
.avelor-product__acc-item--description .avelor-product__acc-body h3,
.avelor-product__acc-item--description .avelor-product__acc-body h4,
.avelor-product__acc-item--key-features .avelor-product__acc-body h2,
.avelor-product__acc-item--key-features .avelor-product__acc-body h3,
.avelor-product__acc-item--key-features .avelor-product__acc-body h4 {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.15;
	text-wrap: balance;
}
.avelor-product__acc-item--description .avelor-product__acc-body h2,
.avelor-product__acc-item--key-features .avelor-product__acc-body h2 {
	font-size: clamp(22px, 2.2vw, 28px);
	color: var(--avelor-champagne);
	margin-top: 8px;
}
.avelor-product__acc-item--description .avelor-product__acc-body > h2:first-child,
.avelor-product__acc-item--key-features .avelor-product__acc-body > h2:first-child {
	margin-top: 0;
}
.avelor-product__acc-item--description .avelor-product__acc-body h3,
.avelor-product__acc-item--key-features .avelor-product__acc-body h3 {
	font-size: clamp(20px, 2vw, 24px);
	color: var(--avelor-graphite);
	margin-top: 16px;
}
.avelor-product__acc-item--description .avelor-product__acc-body h4,
.avelor-product__acc-item--key-features .avelor-product__acc-body h4 {
	font-size: 18px;
	color: var(--avelor-graphite);
	margin-top: 12px;
}

/* Body copy */
.avelor-product__acc-item--description .avelor-product__acc-body p,
.avelor-product__acc-item--key-features .avelor-product__acc-body p {
	font-size: 16px;
	line-height: 1.7;
	color: var(--fg-primary);
	margin: 0;
}
.avelor-product__acc-item--description .avelor-product__acc-body strong,
.avelor-product__acc-item--description .avelor-product__acc-body b,
.avelor-product__acc-item--key-features .avelor-product__acc-body strong,
.avelor-product__acc-item--key-features .avelor-product__acc-body b {
	font-weight: 600;
	color: var(--avelor-graphite);
}
.avelor-product__acc-item--description .avelor-product__acc-body em,
.avelor-product__acc-item--description .avelor-product__acc-body i,
.avelor-product__acc-item--key-features .avelor-product__acc-body em,
.avelor-product__acc-item--key-features .avelor-product__acc-body i {
	font-style: italic;
	color: var(--avelor-graphite);
}

/* Inline links — sage with hairline underline */
.avelor-product__acc-item--description .avelor-product__acc-body a,
.avelor-product__acc-item--key-features .avelor-product__acc-body a {
	color: var(--avelor-deep-green);
	text-decoration: none;
	border-bottom: 1px solid var(--avelor-line);
	transition: border-color .18s ease, color .18s ease;
}
.avelor-product__acc-item--description .avelor-product__acc-body a:hover,
.avelor-product__acc-item--key-features .avelor-product__acc-body a:hover {
	color: var(--avelor-graphite);
	border-bottom-color: var(--avelor-deep-green);
}

/* Lists — flex stack with hanging hairline bullets */
.avelor-product__acc-item--description .avelor-product__acc-body ul,
.avelor-product__acc-item--description .avelor-product__acc-body ol,
.avelor-product__acc-item--key-features .avelor-product__acc-body ul,
.avelor-product__acc-item--key-features .avelor-product__acc-body ol {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.avelor-product__acc-item--description .avelor-product__acc-body ul li,
.avelor-product__acc-item--description .avelor-product__acc-body ol li,
.avelor-product__acc-item--key-features .avelor-product__acc-body ul li,
.avelor-product__acc-item--key-features .avelor-product__acc-body ol li {
	position: relative;
	padding-left: 22px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--fg-primary);
	margin: 0;
	text-wrap: pretty;
}
.avelor-product__acc-item--description .avelor-product__acc-body ul li::before,
.avelor-product__acc-item--key-features .avelor-product__acc-body ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.78em;
	width: 8px;
	height: 1px;
	background: var(--avelor-graphite);
}
.avelor-product__acc-item--description .avelor-product__acc-body ol,
.avelor-product__acc-item--key-features .avelor-product__acc-body ol {
	counter-reset: avelor-ol;
}
.avelor-product__acc-item--description .avelor-product__acc-body ol li,
.avelor-product__acc-item--key-features .avelor-product__acc-body ol li {
	counter-increment: avelor-ol;
	padding-left: 32px;
}
.avelor-product__acc-item--description .avelor-product__acc-body ol li::before,
.avelor-product__acc-item--key-features .avelor-product__acc-body ol li::before {
	content: counter(avelor-ol, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--avelor-deep-green);
	line-height: 1.7em;
	font-variant-numeric: tabular-nums;
}

/* Inline images — full-width, soft-rounded */
.avelor-product__acc-item--description .avelor-product__acc-body img,
.avelor-product__acc-item--key-features .avelor-product__acc-body img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	background: var(--avelor-milk);
	margin: 4px 0;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

/* Blockquote — sage-bar accent */
.avelor-product__acc-item--description .avelor-product__acc-body blockquote,
.avelor-product__acc-item--key-features .avelor-product__acc-body blockquote {
	padding: 14px 0 14px 24px;
	border-left: 2px solid var(--avelor-deep-green);
	color: var(--fg-secondary);
	font-family: var(--font-display);
	font-size: 18px;
	line-height: 1.5;
	letter-spacing: -0.01em;
	font-style: italic;
	margin: 0;
}

/* Mobile — slightly tighter scale */
@media (max-width: 900px) {
	.avelor-product__acc-item--description .avelor-product__acc-body,
	.avelor-product__acc-item--key-features .avelor-product__acc-body {
		gap: 20px;
		font-size: 15px;
	}
	.avelor-product__acc-item--description .avelor-product__acc-body p,
	.avelor-product__acc-item--description .avelor-product__acc-body ul li,
	.avelor-product__acc-item--key-features .avelor-product__acc-body p,
	.avelor-product__acc-item--key-features .avelor-product__acc-body ul li {
		font-size: 15px;
	}
	.avelor-product__acc-item--description .avelor-product__acc-body h2,
	.avelor-product__acc-item--key-features .avelor-product__acc-body h2 {
		font-size: 20px;
	}
	.avelor-product__acc-item--description .avelor-product__acc-body h3,
	.avelor-product__acc-item--key-features .avelor-product__acc-body h3 {
		font-size: 18px;
	}
	.avelor-product__acc-item--description .avelor-product__acc-body img,
	.avelor-product__acc-item--key-features .avelor-product__acc-body img {
		aspect-ratio: 3 / 4;
	}
}

/* Product attributes table fallback in "Склад і догляд" */
.avelor-product__acc-body .woocommerce-product-attributes {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.avelor-product__acc-body .woocommerce-product-attributes th,
.avelor-product__acc-body .woocommerce-product-attributes td {
	padding: 8px 0;
	border-bottom: 1px solid var(--avelor-line);
	text-align: left;
	vertical-align: top;
}
.avelor-product__acc-body .woocommerce-product-attributes th {
	color: var(--fg-muted);
	font-weight: var(--fw-medium);
	width: 38%;
	padding-right: 12px;
}
.avelor-product__acc-body .woocommerce-product-attributes tr:last-child th,
.avelor-product__acc-body .woocommerce-product-attributes tr:last-child td {
	border-bottom: 0;
}

/* Reviews tab inside accordion — tighten Blocksy/WC defaults */
.avelor-product__acc-body #reviews,
.avelor-product__acc-body .woocommerce-Reviews,
.avelor-product__acc-body #comments {
	margin: 0;
}
.avelor-product__acc-body .commentlist,
.avelor-product__acc-body .comment-list {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}
.avelor-product__acc-body .comment-form,
.avelor-product__acc-body #review_form_wrapper {
	margin-top: 12px;
}

/* Hide default WC tabs container if it slips through (defensive) */
.woocommerce-tabs.wc-tabs-wrapper { display: none; }

/* Mobile */
@media (max-width: 900px) {
	.avelor-product__accordion {
		margin-top: 28px;
		border-radius: var(--radius-lg);
	}
	.avelor-product__acc-head {
		padding: 16px 18px;
	}
	.avelor-product__acc-title {
		font-size: 14px;
	}
	.avelor-product__acc-body {
		padding: 2px 18px 18px;
		font-size: 13.5px;
	}
}

/* =========================================================
   Slice 4 — Accordion in left column (under gallery)
   Convert .product-entry-wrapper to CSS grid: summary spans
   both rows in col 2; gallery row 1 col 1; accordion row 2 col 1.
   ========================================================= */

@media (min-width: 901px) {
	.single-product .product .product-entry-wrapper {
		display: grid;
		grid-template-columns: 58fr 42fr;
		grid-template-rows: auto auto;
		column-gap: 40px;
		row-gap: 28px;
		align-items: start;
	}
	.single-product .product .product-entry-wrapper > .woocommerce-product-gallery {
		grid-column: 1;
		grid-row: 1;
		width: auto;
		max-width: none;
	}
	.single-product .product .product-entry-wrapper > .summary {
		grid-column: 2;
		grid-row: 1 / span 2;
		width: auto;
		max-width: none;
	}
	.single-product .product .product-entry-wrapper > .avelor-product__accordion {
		grid-column: 1;
		grid-row: 2;
		margin-top: 0;
	}
}

/* Mobile: stack with explicit order — gallery, summary, accordion. */
@media (max-width: 900px) {
	.single-product .product .product-entry-wrapper {
		display: flex;
		flex-direction: column;
	}
	.single-product .product .product-entry-wrapper > .woocommerce-product-gallery { order: 1; }
	.single-product .product .product-entry-wrapper > .summary { order: 2; }
	.single-product .product .product-entry-wrapper > .avelor-product__accordion { order: 3; }
}

/* =========================================================
   Slice 5 — Complete the Look (full-width section below the wrapper)
   ========================================================= */

.avelor-product__look-section {
	margin-top: 56px;
}
.avelor-product__look-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
}
.avelor-product__look-title {
	font-family: var(--font-display, var(--font-sans));
	font-size: 22px;
	font-weight: var(--fw-medium);
	letter-spacing: -0.01em;
	color: var(--fg-primary);
	margin: 0;
}
.avelor-product__look-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.avelor-product__look-card {
	position: relative;
	background: var(--avelor-white);
	border: 1px solid var(--avelor-line);
	border-radius: var(--radius-lg);
	padding: 12px;
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 14px;
	align-items: stretch;
	transition: border-color var(--dur-fast, 120ms) ease, transform var(--dur-fast, 120ms) ease;
}
.avelor-product__look-card:hover {
	border-color: rgba(32, 35, 34, 0.28);
}
.avelor-product__look-card:hover .avelor-product__look-name {
	color: var(--avelor-deep-green);
}
.avelor-product__look-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	text-indent: -9999px;
	overflow: hidden;
}
.avelor-product__look-media {
	width: 96px;
	height: 110px;
	border-radius: var(--radius-sm);
	background: var(--avelor-line);
	overflow: hidden;
	flex-shrink: 0;
	position: relative;
}
.avelor-product__look-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.avelor-product__look-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-right: 38px;
	padding-top: 2px;
	min-width: 0;
}
.avelor-product__look-name {
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: var(--fw-medium);
	line-height: 1.35;
	color: var(--fg-primary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color var(--dur-fast, 120ms) ease;
}
.avelor-product__look-price {
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: var(--fw-medium);
	color: var(--fg-primary);
	margin-top: 4px;
	font-variant-numeric: tabular-nums;
}
.avelor-product__look-price .woocommerce-Price-amount,
.avelor-product__look-price ins,
.avelor-product__look-price del {
	background: transparent;
}
.avelor-product__look-price del {
	color: var(--fg-muted);
	font-weight: 400;
	margin-left: 6px;
	font-size: 12px;
}
.avelor-product__look-price ins {
	text-decoration: none;
}
.avelor-product__look-swatches {
	display: flex;
	gap: 6px;
	margin-top: auto;
	flex-wrap: wrap;
}
.avelor-product__look-sw {
	width: 12px;
	height: 12px;
	border-radius: 999px;
	border: 1px solid rgba(32, 35, 34, 0.12);
	display: inline-block;
}
.avelor-product__look-add {
	position: absolute;
	bottom: 12px;
	right: 12px;
	width: 30px;
	height: 30px;
	background: var(--avelor-deep-green);
	color: var(--avelor-white);
	border: 0;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	cursor: pointer;
	transition: background-color var(--dur-fast, 120ms) ease;
	text-decoration: none;
}
.avelor-product__look-add:hover {
	background: #173027;
	color: var(--avelor-white);
}
.avelor-product__look-add svg {
	width: 14px;
	height: 14px;
	display: block;
}

/* Mobile: 2-up grid, tighter card */
@media (max-width: 900px) {
	.avelor-product__look-section {
		margin-top: 40px;
	}
	.avelor-product__look-title {
		font-size: 18px;
	}
	.avelor-product__look-row {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.avelor-product__look-card {
		padding: 10px;
		grid-template-columns: 80px 1fr;
		gap: 10px;
	}
	.avelor-product__look-media {
		width: 80px;
		height: 96px;
	}
	.avelor-product__look-body {
		padding-right: 30px;
		padding-top: 0;
	}
	.avelor-product__look-name {
		font-size: 12px;
	}
	.avelor-product__look-price {
		font-size: 12px;
	}
	.avelor-product__look-add {
		width: 26px;
		height: 26px;
		bottom: 10px;
		right: 10px;
	}
}

/* =========================================================
   Slice 5 — wishlist heart on Complete-the-Look cards
   Targets `.ct-wishlist-button-archive` — the class Blocksy outputs
   when the wishlist button is rendered in archive (loop) context.
   We override Blocksy's `.ct-button` defaults (deep-green bg etc.).
   ========================================================= */

.avelor-product__look-heart {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3; /* above .avelor-product__look-link (z=1) and .avelor-product__look-add (z=2) */
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.avelor-product__look-heart .ct-wishlist-button-archive {
	width: 28px;
	height: 28px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	color: var(--fg-secondary);
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: none;
	transition:
		color var(--dur-fast, 120ms) ease,
		background-color var(--dur-fast, 120ms) ease,
		transform var(--dur-fast, 120ms) ease;
}
.avelor-product__look-heart .ct-wishlist-button-archive:hover {
	color: var(--avelor-graphite);
	background: rgba(32, 35, 34, 0.06);
}
.avelor-product__look-heart .ct-wishlist-button-archive[data-button-state="active"],
.avelor-product__look-heart .ct-wishlist-button-archive.active {
	color: var(--avelor-deep-green);
	background: transparent;
}
.avelor-product__look-heart .ct-wishlist-button-archive .ct-icon-container {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.avelor-product__look-heart .ct-wishlist-button-archive svg {
	width: 18px;
	height: 18px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1;
}
.avelor-product__look-heart .ct-wishlist-button-archive[data-button-state="active"] svg .ct-heart-fill,
.avelor-product__look-heart .ct-wishlist-button-archive.active svg .ct-heart-fill {
	fill: currentColor;
	stroke: currentColor;
}

/* Tighten body padding so heart doesn't overlap name on hover */
.avelor-product__look-card .avelor-product__look-body {
	padding-right: 38px;
}

/* Mobile: smaller heart */
@media (max-width: 900px) {
	.avelor-product__look-heart {
		top: 8px;
		right: 8px;
	}
	.avelor-product__look-heart .ct-wishlist-button-archive {
		width: 24px;
		height: 24px;
	}
	.avelor-product__look-heart .ct-wishlist-button-archive svg {
		width: 16px;
		height: 16px;
	}
}

/* Slice 5 heart fix — hide inner fill-path by default (only outline shows). */
.avelor-product__look-heart .ct-wishlist-button-archive svg .ct-heart-fill {
	fill: none;
	stroke: none;
}
.avelor-product__look-heart .ct-wishlist-button-archive svg path:not(.ct-heart-fill) {
	fill: none;
	stroke: currentColor;
	stroke-width: 1;
}
.avelor-product__look-heart .ct-wishlist-button-archive[data-button-state="active"] svg .ct-heart-fill,
.avelor-product__look-heart .ct-wishlist-button-archive.active svg .ct-heart-fill {
	fill: currentColor;
	stroke: none;
}

.avelor-product__look-heart .ct-button-loader { display: none; }

.avelor-product__look-heart .ct-wishlist-button-archive svg.ct-button-loader { display: none !important; }

/* Slice 5 — heart final polish: nuke double-stroke artifact via !important */
.avelor-product__look-heart .ct-wishlist-button-archive svg .ct-heart-fill {
	fill: none !important;
	stroke: none !important;
}

/* Slice 5 — heart active state must also use !important to override base hide rule */
.avelor-product__look-heart .ct-wishlist-button-archive[data-button-state="active"] svg .ct-heart-fill,
.avelor-product__look-heart .ct-wishlist-button-archive.active svg .ct-heart-fill {
	fill: currentColor !important;
	stroke: none !important;
}
.avelor-product__look-heart .ct-wishlist-button-archive[data-button-state="active"],
.avelor-product__look-heart .ct-wishlist-button-archive.active {
	color: var(--avelor-deep-green);
}

/* Slice 5 — hide outer outline path when wishlist is active so only filled
   inner heart shows (otherwise concentric outer stroke looks like double-line). */
.avelor-product__look-heart .ct-wishlist-button-archive[data-button-state="active"] svg path:not(.ct-heart-fill),
.avelor-product__look-heart .ct-wishlist-button-archive.active svg path:not(.ct-heart-fill) {
	display: none !important;
}

/* Slice 5 — single-stroke Lucide heart override is the only path now; ensure it picks up state cleanly */
.avelor-product__look-heart .ct-wishlist-button-archive svg path {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
}
.avelor-product__look-heart .ct-wishlist-button-archive[data-button-state="active"] svg path.ct-heart-fill,
.avelor-product__look-heart .ct-wishlist-button-archive.active svg path.ct-heart-fill {
	fill: currentColor !important;
	stroke: currentColor !important;
}

/* Slice 5 — single-path heart override (winning rules at end of file) */
.avelor-product__look-heart .ct-wishlist-button-archive svg path.ct-heart-fill {
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.5 !important;
}
.avelor-product__look-heart .ct-wishlist-button-archive[data-button-state="active"] svg path.ct-heart-fill,
.avelor-product__look-heart .ct-wishlist-button-archive.active svg path.ct-heart-fill {
	fill: currentColor !important;
	stroke: currentColor !important;
}

/* Slice 5 — heart visibility: graphite for inactive (was sage = too subtle), deep-green for active */
.avelor-product__look-heart .ct-wishlist-button-archive {
	color: var(--avelor-graphite);
}
.avelor-product__look-heart .ct-wishlist-button-archive[data-button-state="active"],
.avelor-product__look-heart .ct-wishlist-button-archive.active {
	color: var(--avelor-deep-green);
}

/* Slice 5 — Blocksy sets opacity:0 on heart path in default state; force visible */
.avelor-product__look-heart .ct-wishlist-button-archive svg path.ct-heart-fill {
	opacity: 1 !important;
}

/* =========================================================
   Slice 6 — Similar products (full-width section, 7-up grid)
   ========================================================= */

.avelor-product__sim-section {
	margin-top: 56px;
}
.avelor-product__sim-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
}
.avelor-product__sim-title {
	font-family: var(--font-display, var(--font-sans));
	font-size: 22px;
	font-weight: var(--fw-medium);
	letter-spacing: -0.01em;
	color: var(--fg-primary);
	margin: 0;
}
.avelor-product__sim-row {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 14px;
}
.avelor-product__sim-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: transparent;
}
.avelor-product__sim-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	text-indent: -9999px;
	overflow: hidden;
}
.avelor-product__sim-media {
	position: relative;
	aspect-ratio: 4 / 5;
	background: var(--avelor-line);
	border-radius: var(--radius-sm);
	overflow: hidden;
}
.avelor-product__sim-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--dur-base, 200ms) ease;
}
.avelor-product__sim-card:hover .avelor-product__sim-media img {
	transform: scale(1.03);
}
.avelor-product__sim-heart {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.avelor-product__sim-heart .ct-wishlist-button-archive {
	width: 28px;
	height: 28px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
	background: rgba(255, 255, 255, 0.9);
	border: 0;
	color: var(--avelor-graphite);
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(32, 35, 34, 0.08);
	transition:
		color var(--dur-fast, 120ms) ease,
		background-color var(--dur-fast, 120ms) ease;
}
.avelor-product__sim-heart .ct-wishlist-button-archive:hover {
	background: var(--avelor-white);
	color: var(--avelor-graphite);
}
.avelor-product__sim-heart .ct-wishlist-button-archive[data-button-state="active"],
.avelor-product__sim-heart .ct-wishlist-button-archive.active {
	color: var(--avelor-deep-green);
	background: var(--avelor-white);
}
.avelor-product__sim-heart .ct-wishlist-button-archive svg {
	width: 16px;
	height: 16px;
	display: block;
}
.avelor-product__sim-heart .ct-wishlist-button-archive svg path.ct-heart-fill {
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.5 !important;
	opacity: 1 !important;
}
.avelor-product__sim-heart .ct-wishlist-button-archive[data-button-state="active"] svg path.ct-heart-fill,
.avelor-product__sim-heart .ct-wishlist-button-archive.active svg path.ct-heart-fill {
	fill: currentColor !important;
	stroke: currentColor !important;
}
.avelor-product__sim-heart .ct-button-loader { display: none !important; }

.avelor-product__sim-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-top: 10px;
}
.avelor-product__sim-name {
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: var(--fw-medium);
	color: var(--fg-primary);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color var(--dur-fast, 120ms) ease;
}
.avelor-product__sim-card:hover .avelor-product__sim-name {
	color: var(--avelor-deep-green);
}
.avelor-product__sim-price {
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: var(--fw-medium);
	color: var(--fg-primary);
	font-variant-numeric: tabular-nums;
}
.avelor-product__sim-price del {
	color: var(--fg-muted);
	font-weight: 400;
	margin-left: 6px;
	font-size: 12px;
}
.avelor-product__sim-price ins {
	text-decoration: none;
}
.avelor-product__sim-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	color: var(--fg-muted);
	font-size: 11px;
}
.avelor-product__sim-stars {
	display: inline-flex;
	gap: 2px;
	color: var(--avelor-graphite);
}
.avelor-product__sim-star {
	display: block;
}
.avelor-product__sim-star.is-filled {
	color: var(--avelor-graphite);
}
.avelor-product__sim-count {
	font-size: 11px;
}

/* Mobile: 2-up grid, smaller font */
@media (max-width: 900px) {
	.avelor-product__sim-section {
		margin-top: 40px;
	}
	.avelor-product__sim-title {
		font-size: 18px;
	}
	.avelor-product__sim-row {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.avelor-product__sim-name {
		font-size: 12.5px;
	}
	.avelor-product__sim-price {
		font-size: 12.5px;
	}
}

/* Slice 5/6 — mobile horizontal inset so sections don't bleed to viewport edges */
@media (max-width: 900px) {
	.avelor-product__look-section,
	.avelor-product__sim-section {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* Slice 5/6 — mobile: convert grids to horizontal scroll-snap carousels */
@media (max-width: 900px) {
	.avelor-product__look-row,
	.avelor-product__sim-row {
		display: flex !important;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: visible;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		/* extend past section padding to bleed edges, then re-pad inside */
		margin-left: -16px;
		margin-right: -16px;
		padding: 4px 16px;
		scroll-padding-left: 16px;
	}
	.avelor-product__look-row::-webkit-scrollbar,
	.avelor-product__sim-row::-webkit-scrollbar {
		display: none;
	}

	/* CTL — horizontal cards, 78% viewport so next card peeks */
	.avelor-product__look-row {
		gap: 10px;
	}
	.avelor-product__look-card {
		flex: 0 0 78%;
		min-width: 0;
		scroll-snap-align: start;
	}

	/* Similar — vertical cards, ~42% so two visible + peek */
	.avelor-product__sim-row {
		gap: 12px;
	}
	.avelor-product__sim-card {
		flex: 0 0 42%;
		min-width: 0;
		scroll-snap-align: start;
	}
}

/* Slice 5/6 — pull sections closer to the accordion on mobile */
@media (max-width: 900px) {
	.avelor-product__look-section {
		margin-top: 16px;
	}
	.avelor-product__sim-section {
		margin-top: 28px;
	}
}

/* Slice 5/6 — pull even tighter to accordion on mobile */
@media (max-width: 900px) {
	.avelor-product__look-section {
		margin-top: 0 !important;
	}
	.avelor-product__sim-section {
		margin-top: 20px !important;
	}
	.avelor-product__look-head,
	.avelor-product__sim-head {
		margin-bottom: 12px;
	}
}

/* Slice 5/6 — even tighter mobile spacing */
@media (max-width: 900px) {
	.avelor-product__look-section {
		margin-top: -8px !important;
	}
	.avelor-product__look-head,
	.avelor-product__sim-head {
		margin-bottom: 8px;
	}
	.avelor-product__look-title,
	.avelor-product__sim-title {
		font-size: 17px;
	}
	.avelor-product__sim-section {
		margin-top: 12px !important;
	}
}

/* ============================================================
   Size-guide modal — opens from «Таблиця розмірів» link.
   Markup is built in JS (avelor-product.js). The chart HTML comes
   from a hidden <template id="avelor-size-chart"> rendered by
   avelor-core/includes/size-chart.php — sourced from beri.ua via
   the import pipeline (`_av_beri_size_table` meta).
   ============================================================ */
.avelor-size-guide-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(32, 35, 34, 0.36);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	transition: opacity 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.avelor-size-guide-backdrop[hidden] { display: none; }
.avelor-size-guide-backdrop.is-open { opacity: 1; }

.avelor-size-guide-dialog {
	width: min(720px, 100%);
	max-height: calc(100vh - 48px);
	display: flex;
	flex-direction: column;
	background: var(--avelor-white, #FFFFFF);
	border-radius: 14px;
	border: 1px solid var(--avelor-line, #D8D2CA);
	box-shadow: 0 30px 80px rgba(32, 35, 34, 0.18);
	overflow: hidden;
	transform: translateY(8px);
	transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
	outline: none;
}
.avelor-size-guide-backdrop.is-open .avelor-size-guide-dialog {
	transform: translateY(0);
}

.avelor-size-guide-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px 14px;
	border-bottom: 1px solid var(--avelor-line, #D8D2CA);
	flex: 0 0 auto;
}
.avelor-size-guide-title {
	margin: 0;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--avelor-graphite, #202322);
}
.avelor-size-guide-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: transparent;
	border: 0;
	color: var(--fg-muted, #6F6F6A);
	cursor: pointer;
	transition: background-color 150ms cubic-bezier(0.2, 0.7, 0.2, 1),
	            color 150ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.avelor-size-guide-close:hover {
	background: rgba(32, 35, 34, 0.06);
	color: var(--avelor-graphite, #202322);
}
.avelor-size-guide-close svg { width: 18px; height: 18px; }

.avelor-size-guide-body {
	padding: 18px 24px 24px;
	overflow-y: auto;
	flex: 1 1 auto;
	-webkit-overflow-scrolling: touch;
}

/* Reset the inline border / cellpadding / cellspacing that beri.ua
   ships in its raw table HTML, and re-style as a clean AVELOR table. */
.avelor-size-guide-body table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 4px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--avelor-graphite, #202322);
	font-variant-numeric: tabular-nums;
}
.avelor-size-guide-body table,
.avelor-size-guide-body table th,
.avelor-size-guide-body table td {
	border: 0; /* nuke beri.ua's border="1" */
}
.avelor-size-guide-body table th,
.avelor-size-guide-body table td {
	padding: 10px 12px;
	text-align: left !important; /* override inline style="text-align:left;" — keeps the parity */
	border-bottom: 1px solid var(--avelor-line, #D8D2CA);
	vertical-align: top;
}
.avelor-size-guide-body table thead th,
.avelor-size-guide-body table tr:first-child th {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--fg-muted, #6F6F6A);
	background: var(--avelor-milk, #FBF8F5);
	border-bottom: 1px solid var(--avelor-line, #D8D2CA);
}
.avelor-size-guide-body table tbody tr:hover {
	background: rgba(31, 61, 53, 0.03);
}
.avelor-size-guide-body table tr:last-child td,
.avelor-size-guide-body table tr:last-child th {
	border-bottom: 0;
}

.avelor-size-guide-body p {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--fg-secondary, #5A695F);
}
.avelor-size-guide-body p:last-child { margin-bottom: 0; }
.avelor-size-guide-body p strong { color: var(--avelor-graphite, #202322); font-weight: 500; }

.avelor-size-guide__intro {
	margin-top: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--fg-muted, #6F6F6A);
}

/* Lock body scroll while modal is open */
body.avelor-size-guide-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.avelor-size-guide-backdrop { padding: 0; align-items: flex-end; }
	.avelor-size-guide-dialog {
		width: 100%;
		max-height: 88vh;
		border-radius: 14px 14px 0 0;
		transform: translateY(24px);
	}
	.avelor-size-guide-backdrop.is-open .avelor-size-guide-dialog {
		transform: translateY(0);
	}
	.avelor-size-guide-head { padding: 16px 18px 12px; }
	.avelor-size-guide-title { font-size: 17px; }
	.avelor-size-guide-body { padding: 14px 18px 22px; }
	.avelor-size-guide-body table { font-size: 13px; }
	.avelor-size-guide-body table th,
	.avelor-size-guide-body table td { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.avelor-size-guide-backdrop,
	.avelor-size-guide-dialog {
		transition: none !important;
	}
}

/* ============================================================
   Reviews accordion tab — av-rev--basic variant.
   Markup rendered by avelor_core_render_reviews_tab() in
   avelor-core/includes/accordion.php. Mirrors Claude Design's
   storefront Reviews.jsx «basic» variant: empty state + lead +
   minimal form, no distribution bars / filters / fit / photos.
   ============================================================ */
.av-rev {
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.av-rev--basic {
	gap: 32px;
}

/* Empty state */
.av-rev-empty {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--avelor-line, #D8D2CA);
}
.av-rev-empty-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--fg-secondary, #5A695F);
}
.av-rev-empty-eyebrow .bar {
	width: 32px;
	height: 1px;
	background: currentColor;
	display: inline-block;
}
.av-rev-empty-text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--fg-secondary, #5A695F);
	margin: 0;
}

/* List of existing reviews (shown above the lead when reviews exist) */
.av-rev-basic-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}
.av-rev-basic-item {
	padding: 22px 0;
	border-bottom: 1px solid var(--avelor-line, #D8D2CA);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.av-rev-basic-item:first-child {
	padding-top: 4px;
}
.av-rev-basic-item:last-child {
	border-bottom: 0;
}
.av-rev-basic-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.av-rev-basic-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--avelor-graphite, #202322);
}
.av-rev-basic-meta {
	font-size: 12px;
	color: var(--fg-muted, #6F6F6A);
	display: inline-flex;
	gap: 6px;
	align-items: baseline;
}
.av-rev-basic-meta .dot { opacity: 0.5; }
.av-rev-basic-stars {
	color: var(--avelor-line, #D8D2CA);
	letter-spacing: 1px;
	font-size: 13px;
	line-height: 1;
}
.av-rev-basic-stars .is-on {
	color: #C9941F;
}
.av-rev-basic-date {
	font-variant-numeric: tabular-nums;
}
.av-rev-basic-text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--fg-primary, #202322);
}
.av-rev-basic-text p { margin: 0 0 8px; }
.av-rev-basic-text p:last-child { margin-bottom: 0; }

/* Lead — «be the first / add yours» */
.av-rev-lead {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.av-rev-lead-title {
	font-family: var(--font-display, var(--font-body));
	font-size: 26px;
	line-height: 1.2;
	letter-spacing: -0.015em;
	font-weight: 500;
	color: var(--avelor-graphite, #202322);
	margin: 0;
	max-width: 36ch;
	text-wrap: pretty;
}
.av-rev-lead-sub {
	font-size: 13px;
	line-height: 1.6;
	color: var(--fg-muted, #6F6F6A);
	margin: 0;
}
.av-rev-lead-sub .req { color: var(--status-error, #B23A3A); }

/* Form — no card chrome in the basic variant */
.av-rev-form--basic {
	margin-top: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.av-rev-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.av-rev-grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.av-rev-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--fg-primary, #202322);
}
.av-rev-label .req {
	color: var(--status-error, #B23A3A);
	margin-left: 2px;
}

.av-rev-input,
.av-rev-textarea {
	font: inherit;
	font-size: 14px;
	background: var(--avelor-white, #FFFFFF);
	border: 1px solid var(--avelor-line, #D8D2CA);
	border-radius: 10px;
	padding: 12px 14px;
	color: var(--fg-primary, #202322);
	width: 100%;
	transition: border-color 150ms cubic-bezier(0.2, 0.7, 0.2, 1),
	            box-shadow 150ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.av-rev-input::placeholder,
.av-rev-textarea::placeholder { color: var(--fg-muted, #6F6F6A); }
.av-rev-input:focus,
.av-rev-textarea:focus {
	outline: none;
	border-color: var(--avelor-deep-green, #1F3D35);
	box-shadow: 0 0 0 3px rgba(31, 61, 53, 0.10);
}
.av-rev-textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.55;
}

/* Star picker */
.av-rev-picker {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}
.av-rev-picker-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}
.av-rev-pickstar {
	background: transparent;
	border: 0;
	padding: 4px;
	color: var(--avelor-line, #D8D2CA);
	cursor: pointer;
	transition: color 150ms cubic-bezier(0.2, 0.7, 0.2, 1),
	            transform 100ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.av-rev-pickstar:hover { transform: scale(1.1); }
.av-rev-pickstar.is-on { color: #C9941F; }
.av-rev-pickstar.is-on svg { fill: currentColor; }
.av-rev-pickstar.is-on svg polygon { fill: currentColor; }
.av-rev-pickstar svg { width: 28px; height: 28px; }
.av-rev-pick-meta {
	font-size: 13px;
	color: var(--fg-muted, #6F6F6A);
}

/* Consent + actions */
.av-rev-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: var(--fg-primary, #202322);
	cursor: pointer;
	line-height: 1.5;
}
.av-rev-consent input {
	accent-color: var(--avelor-deep-green, #1F3D35);
	margin-top: 3px;
}

.av-rev-form-actions--basic {
	display: flex;
	justify-content: flex-start;
	padding-top: 4px;
}
.av-rev-form-actions--basic .av-btn {
	min-width: 160px;
}
/* Style the submit button identically to add-to-cart even though the
   parent .av-btn vocabulary isn't always loaded inside the accordion. */
.av-rev-form-actions--basic button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px;
	background: var(--avelor-deep-green, #1F3D35);
	color: var(--avelor-milk, #FBF8F5);
	border: 1px solid var(--avelor-deep-green, #1F3D35);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.01em;
	border-radius: 14px;
	cursor: pointer;
	transition: background-color 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
	            transform 100ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.av-rev-form-actions--basic button[type="submit"]:hover {
	background: var(--avelor-green-hover, #294B41);
	color: var(--avelor-milk, #FBF8F5);
}
.av-rev-form-actions--basic button[type="submit"]:active {
	transform: scale(0.985);
}

@media (max-width: 900px) {
	.av-rev-grid2 { grid-template-columns: 1fr; }
	.av-rev-lead-title { font-size: 22px; }
	.av-rev-form-actions--basic button[type="submit"] { width: 100%; }
}

