/* ==========================================================================
   XupiStyle — WooCommerce
   Картка → сітка → карусель → каталог → товар → кошик-шухляда → кошик →
   оформлення → кабінет → сповіщення
   ========================================================================== */

/* ---------- Картка товару ---------- */
.products { list-style: none; margin: 0; padding: 0; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.card__img-link { display: block; width: 100%; height: 100%; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.card__img--hover { opacity: 0; }
@media (hover: hover) {
	.card:hover .card__img--hover { opacity: 1; }
	.card:hover .card__img:not(.card__img--hover) { transform: scale(1.03); }
}
.card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 9px;
	background: var(--bg);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.card__add {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	min-height: 42px;
	padding: 10px 14px;
	border-color: var(--bg);
	background: var(--bg);
	color: var(--ink);
	font-size: 11px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s, color .2s;
}
.card__add:hover { background: var(--petrol); border-color: var(--petrol); color: var(--bg); }
.card__add.loading { opacity: .7 !important; pointer-events: none; }
.card__add.added::after { content: " ✓"; }
.card:hover .card__add, .card__add:focus-visible { opacity: 1; transform: none; }
@media (hover: none) {
	.card__add { display: none; }
}
.card .added_to_cart { display: none; }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 22px; }
.card__title { margin: 0; font-family: var(--sans); font-size: 12px; font-weight: 500; line-height: 1.45; letter-spacing: .02em; }
.card__title a:hover { color: var(--choc); }
.card__price { font-size: 12px; color: var(--ink-2); }
.card__price del { margin-right: 6px; color: var(--muted); }
.card__price ins { text-decoration: none; color: var(--danger); }

/* Ціни загалом */
.price, .amount { font-variant-numeric: lining-nums; }
.woocommerce-Price-currencySymbol { margin-right: 1px; }

/* ---------- Сітка каталогу: встик, 2 / 3 / 4 колонки ---------- */
.grid-products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2px;
	margin-bottom: 48px;
}
@media (min-width: 768px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid-products { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px) {
	.card__body { padding: 10px 10px 18px; }
	.card__title, .card__price { font-size: 11.5px; }
}

/* ---------- Карусель ---------- */
.rail { padding-block: clamp(56px, 7vw, 96px) 0; }
.rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.rail__title { margin: 0; font-size: clamp(30px, 3.2vw, 42px); }
.rail__tools { display: flex; align-items: center; gap: 4px; }
.rail__tools .link-u { margin-right: 16px; }
.rail__btn { display: none; }
@media (min-width: 900px) { .rail__btn { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); transition: border-color .2s, opacity .2s; } }
.rail__btn:hover { border-color: var(--ink); }
.rail__btn[disabled] { opacity: .3; cursor: default; border-color: var(--line); }
.rail__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 72%;
	gap: 2px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-inline: var(--gutter);
	scroll-padding-inline: var(--gutter);
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > .card { scroll-snap-align: start; }
@media (min-width: 640px) { .rail__track { grid-auto-columns: 40%; } }
@media (min-width: 1100px) { .rail__track { grid-auto-columns: calc((100% - var(--gutter) * 2 - 8px) / 4.5); } }
.rail__bar { position: relative; width: min(320px, 60%); height: 1px; margin: 24px auto 0; background: var(--line); }
.rail__bar span { position: absolute; top: -1px; left: 0; height: 3px; width: 30%; background: var(--ink); transition: transform .15s linear; }

/* ---------- Каталог ---------- */
.shop-main { padding-bottom: 32px; }
.shop-head { padding-block: 32px 20px; }
@media (min-width: 1100px) { .shop-head { padding-block: 44px 24px; } }
.shop-head__title { margin: 0 0 10px; font-size: clamp(34px, 4.4vw, 54px); font-style: italic; }
.shop-head__desc { max-width: 680px; color: var(--ink-2); font-size: 14.5px; }
.shop-head__desc p:last-child { margin-bottom: 0; }

.chips {
	display: flex;
	gap: 8px;
	margin-top: 22px;
	overflow-x: auto;
	scrollbar-width: none;
	margin-inline: calc(var(--gutter) * -1);
	padding-inline: var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
	flex: none;
	padding: 9px 16px;
	border: 1px solid var(--line);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 14px;
	border-top: 1px solid var(--line);
	max-width: none;
}
.woocommerce-result-count { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.woocommerce-ordering { min-width: 0; margin: 0; }
.toolbar .woocommerce-result-count { flex: none; }
.woocommerce-ordering select { max-width: 100%; text-overflow: ellipsis; }
.woocommerce-ordering select {
	min-height: 0;
	width: auto;
	padding: 6px 30px 6px 0;
	border: 0;
	background-color: transparent;
	background-position: right 4px center;
	font-size: 12px;
	letter-spacing: .04em;
	cursor: pointer;
}

.woocommerce-pagination { padding-bottom: 48px; }
.woocommerce-pagination ul.page-numbers { display: flex; justify-content: center; gap: 4px; list-style: none; }
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; font-size: 13px; }
.woocommerce-pagination .page-numbers .current { border-bottom: 1px solid var(--ink); }
.woocommerce-pagination .icon { width: 18px; height: 18px; }

.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.woocommerce-noreviews,
.wc-block-components-notice-banner {
	list-style: none;
	margin: 0 0 24px;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-left: 2px solid var(--petrol);
	background: var(--white);
	font-size: 13.5px;
	line-height: 1.6;
}
.woocommerce-error { border-left-color: var(--danger); }
.woocommerce-error li + li { margin-top: 4px; }
.woocommerce-message .button,
.woocommerce-info .button { min-height: 0; padding: 0; float: right; margin-left: 16px; border: 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; letter-spacing: .08em; font-size: 11px; }
.woocommerce-notices-wrapper:empty { display: none; }
.shop-main > .woocommerce-notices-wrapper, .pdp + .woocommerce-notices-wrapper { max-width: var(--wrap); margin: 16px auto 0; padding-inline: var(--gutter); }

/* ---------- Сторінка товару ---------- */
.single-product .shop-main { padding-bottom: 0; }
.single-product .woocommerce-notices-wrapper { max-width: var(--wrap); margin: 16px auto 0; padding-inline: var(--gutter); }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1920px; margin-inline: auto; }
/* Дві колонки вже з планшета; на великих екранах права колонка ширшає разом із фото. */
@media (min-width: 768px) {
	.pdp__grid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); }
}
@media (min-width: 1100px) {
	.pdp__grid { grid-template-columns: minmax(0, 1.25fr) minmax(400px, 1fr); }
}
@media (min-width: 1400px) {
	.pdp__grid { grid-template-columns: minmax(0, 1.4fr) minmax(460px, 1fr); }
}

/* Галерея: телефон — свайп, планшет — фото стовпчиком, десктоп — сітка 2 колонки, перше на всю ширину */
.pgallery { position: relative; }
.pgallery__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.pgallery__track::-webkit-scrollbar { display: none; }
.pgallery__item { margin: 0; scroll-snap-align: start; background: var(--bg-2); aspect-ratio: 4 / 5; overflow: hidden; }
.pgallery__item a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.pgallery__item img { width: 100%; height: 100%; object-fit: cover; }
.pgallery__dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; }
/* Кнопка 28×28 для пальця, видима риска — псевдоелемент. */
.pgallery__dots button { position: relative; width: 28px; height: 28px; }
.pgallery__dots button::before { content: ""; position: absolute; left: 5px; right: 5px; top: 13px; height: 2px; background: rgba(26, 26, 26, .25); transition: background-color .2s, left .2s, right .2s; }
.pgallery__dots button[aria-current]::before { left: 1px; right: 1px; background: var(--ink); }
/* Телефон горизонтально: фото не вище за екран (ширина = 4/5 висоти вікна). */
@media (max-width: 767px) and (orientation: landscape) {
	.pgallery__track { grid-auto-columns: calc((100svh - var(--header-h)) * .8); gap: 2px; }
}
@media (min-width: 768px) {
	.pgallery__track { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-auto-columns: auto; gap: 2px; overflow: visible; }
	.pgallery__dots { display: none; }
}
@media (min-width: 1100px) {
	.pgallery__track { grid-template-columns: 1fr 1fr; }
	.pgallery__item:first-child { grid-column: 1 / -1; }
	.pgallery__item:first-child:nth-last-child(2n + 1) ~ .pgallery__item:last-child { grid-column: auto; }
}

.pdp__summary { padding: 24px var(--gutter) 48px; }
@media (min-width: 768px) {
	.pdp__summary { padding: 32px clamp(24px, 4vw, 72px) 64px; }
	.pdp__sticky { position: sticky; top: calc(var(--header-h) + 24px); max-width: 560px; }
	.admin-bar .pdp__sticky { top: calc(var(--header-h) + 56px); }
}
.pdp .crumbs { margin-bottom: 20px; }
.pdp .product_title { margin: 0 0 10px; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.pdp .summary > .pdp__sticky > .price,
.pdp .summary .price { display: block; margin: 0 0 22px; font-size: 15px; font-weight: 500; letter-spacing: .02em; color: var(--ink); }
.pdp .price del { margin-right: 8px; color: var(--muted); font-weight: 400; }
.pdp .price ins { text-decoration: none; color: var(--danger); }
.pdp .woocommerce-product-rating { display: flex; align-items: center; gap: 10px; margin: -4px 0 16px; font-size: 12px; }
.pdp .woocommerce-review-link { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.pdp .woocommerce-product-details__short-description { margin-bottom: 24px; color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.pdp .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* Рейтинг зірками */
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1em; font-size: 12px; line-height: 1; overflow: hidden; letter-spacing: .1em; }
.star-rating::before { content: "★★★★★"; position: absolute; inset: 0; color: var(--line); }
.star-rating span { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; padding-top: 1em; }
.star-rating span::before { content: "★★★★★"; position: absolute; top: 0; left: 0; color: var(--ink); }

/* Форма кошика */
.pdp form.cart { margin: 0 0 28px; }
.pdp form.cart:not(.variations_form),
.pdp .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp .single_add_to_cart_button { flex: 1 1 220px; min-height: 52px; }
.pdp .stock { margin: 0 0 14px; font-size: 12px; letter-spacing: .04em; }
.pdp .stock.out-of-stock { color: var(--danger); }
.pdp .stock.in-stock { color: var(--ok); }

/* Поле кількості з «−/+» */
.quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--line); background: var(--white); }
.quantity .qty {
	width: 44px;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	-moz-appearance: textfield;
}
.quantity .qty::-webkit-inner-spin-button, .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty__btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; color: var(--ink-2); }
.qty__btn .icon { width: 14px; height: 14px; }
.qty__btn:hover { color: var(--ink); }
.pdp .quantity { min-height: 52px; }
.quantity input[type="hidden"] + .qty__btn,
.quantity:has(input[type="hidden"]) { display: none; }

/* Варіації — тонкі лінії, як на бою */
.pdp table.variations { width: 100%; margin: 0 0 18px; border-collapse: collapse; border-top: 1px solid var(--line); }
.pdp table.variations tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pdp table.variations th, .pdp table.variations td { display: block; padding: 0; text-align: left; }
.pdp table.variations th.label { margin-bottom: 8px; }
.pdp table.variations label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pdp table.variations select { background-color: var(--white); }
.pdp .reset_variations { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--muted); text-decoration: underline; }
.pdp .woocommerce-variation { margin-bottom: 14px; }
.pdp .woocommerce-variation-price .price { margin-bottom: 8px; }

/* Поля сніпетів у формі кошика (напр. гравіювання) */
.pdp form.cart label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.pdp form.cart input[type="text"], .pdp form.cart textarea { background: var(--white); }
.pdp form.cart small, .pdp form.cart .description { display: block; margin-top: 6px; font-size: 11.5px; font-style: italic; color: var(--muted); }
.pdp form.cart > div:not(.quantity):not(.woocommerce-variation-add-to-cart), .pdp form.cart > p { flex: 1 1 100%; }

/* Акордеони (колишні вкладки) */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}
.acc__head::-webkit-details-marker { display: none; }
.acc__icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.acc__item[open] .acc__icon { transform: rotate(45deg); }
.acc__body { padding: 0 0 22px; color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.acc__body > *:last-child { margin-bottom: 0; }
.acc__body .woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.acc__body .woocommerce-product-attributes th,
.acc__body .woocommerce-product-attributes td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
.acc__body .woocommerce-product-attributes th { width: 40%; font-weight: 500; color: var(--ink); }
.acc__body .woocommerce-product-attributes td p { margin: 0; }
.acc__body .woocommerce-product-attributes tr:last-child th,
.acc__body .woocommerce-product-attributes tr:last-child td { border-bottom: 0; }

/* Відгуки */
#reviews .woocommerce-Reviews-title { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
#reviews ol.commentlist { list-style: none; margin: 0 0 20px; }
#reviews .comment_container { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
#reviews .comment_container img.avatar { width: 36px; height: 36px; border-radius: 50%; }
#reviews .comment-text { flex: 1; }
#reviews .meta { margin-bottom: 4px; font-size: 12px; color: var(--muted); }
#reviews .comment-reply-title { display: block; margin: 16px 0 10px; font-size: 22px; }
/* Вибір оцінки: текст «N з 5 зірок» ховаємо, малюємо зірки (Woo JS ставить .selected і .active). */
.comment-form-rating label { display: block; margin-bottom: 6px; }
.comment-form-rating p.stars { margin: 0 0 16px; line-height: 1; }
.comment-form-rating p.stars > span { display: inline-flex; gap: 4px; }
.comment-form-rating p.stars a {
	position: relative;
	display: inline-block;
	width: 26px;
	height: 26px;
	overflow: hidden;
	font-size: 0;
	color: transparent;
	text-decoration: none;
}
.comment-form-rating p.stars a::before {
	content: "☆";
	position: absolute;
	inset: 0;
	font-size: 26px;
	line-height: 26px;
	text-align: center;
	color: var(--ink);
	transition: color .15s;
}
.comment-form-rating p.stars:hover a::before,
.comment-form-rating p.stars.selected a::before { content: "★"; color: var(--choc); }
.comment-form-rating p.stars a:hover ~ a::before,
.comment-form-rating p.stars.selected a.active ~ a::before { content: "☆"; color: var(--ink); }
.comment-form-rating p.stars.selected:hover a::before { content: "★"; color: var(--choc); }
.comment-form-rating p.stars.selected:hover a:hover ~ a::before { content: "☆"; color: var(--ink); }
.comment-form-rating p.stars a:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.comment-form-rating select#rating { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#review_form .comment-form p { margin-bottom: 12px; }

.pdp-rail { border-top: 1px solid var(--line); padding-bottom: 32px; }
.pdp + .rail, .pdp .rail { margin-top: 0; }

/* ---------- Кошик-шухляда ---------- */
.drawer .widget_shopping_cart_content,
.drawer__content { display: flex; flex-direction: column; min-height: 100%; }
.woocommerce-mini-cart { list-style: none; flex: 1; }
.woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 84px 1fr;
	grid-template-rows: auto 1fr;
	column-gap: 16px;
	padding: 18px 28px 18px 0;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
}
.woocommerce-mini-cart-item > a:not(.remove) { display: contents; font-weight: 500; }
.woocommerce-mini-cart-item img { grid-row: 1 / span 3; width: 84px; height: 105px; object-fit: cover; background: var(--bg-2); }
.woocommerce-mini-cart-item .quantity { display: block; border: 0; background: none; margin-top: 6px; color: var(--ink-2); font-size: 12px; }
.woocommerce-mini-cart-item dl.variation { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }
.woocommerce-mini-cart-item dl.variation dt { float: left; clear: left; margin-right: 4px; }
.woocommerce-mini-cart-item dl.variation dd { margin: 0; }
.woocommerce-mini-cart-item dl.variation p { margin: 0; }
.woocommerce-mini-cart-item .remove {
	position: absolute;
	top: 16px;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-size: 18px;
	line-height: 1;
	color: var(--muted);
}
.woocommerce-mini-cart-item .remove:hover { color: var(--danger); }
.woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 20px 0 16px;
	font-size: 13px;
	letter-spacing: .04em;
}
.woocommerce-mini-cart__total strong { font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; }
.woocommerce-mini-cart__buttons { display: grid; gap: 8px; margin: 0; }
.woocommerce-mini-cart__empty-message { margin: 48px 0 24px; font-family: var(--serif); font-size: 26px; text-align: center; }
.drawer__content > .woocommerce-mini-cart__empty-message + * { text-align: center; }
.drawer .blockUI.blockOverlay { background: rgba(246, 244, 240, .6) !important; }

/* ---------- Сторінка кошика (класичний шорткод) ---------- */
.page-main--shop .page__head { padding-bottom: 24px; }
.shop-page { padding-bottom: 32px; }
.woocommerce-cart-form { margin-bottom: 40px; }
table.shop_table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.shop_table th { padding: 12px 10px; border-bottom: 1px solid var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-align: left; }
table.shop_table td { padding: 18px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.shop_table .product-thumbnail img { width: 80px; height: 100px; object-fit: cover; background: var(--bg-2); }
table.shop_table .product-name a { font-weight: 500; }
table.shop_table .product-remove a { font-size: 20px; color: var(--muted); }
table.shop_table .product-remove a:hover { color: var(--danger); }
table.shop_table td.actions { padding-top: 22px; }
.coupon { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.coupon .input-text { width: 200px; }
.coupon label { display: none; }
td.actions > .button { float: right; }
.cart-collaterals .cart_totals { max-width: 460px; margin-left: auto; }
.cart_totals h2, .woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, #order_review_heading, .woocommerce-additional-fields h3 { margin-bottom: 18px; font-size: 30px; }
.cart_totals table th { width: 40%; border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }
.cart_totals .order-total .amount { font-size: 17px; font-weight: 500; }
.wc-proceed-to-checkout { margin-top: 20px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 54px; }
#shipping_method { list-style: none; }
#shipping_method li + li { margin-top: 6px; }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { font-size: 12.5px; color: var(--muted); }
.cart-empty.woocommerce-info { border-left-color: var(--line); text-align: center; font-family: var(--serif); font-size: 26px; padding: 40px 18px; }
.return-to-shop { text-align: center; }

@media (max-width: 767px) {
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: grid; grid-template-columns: 80px 1fr; column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; }
	table.shop_table_responsive td { display: block; padding: 2px 0; border: 0; text-align: left !important; }
	.woocommerce-cart-form table.shop_table_responsive td::before { content: attr(data-title) ": "; font-size: 11px; color: var(--muted); }
	table.shop_table_responsive td.product-thumbnail { grid-row: 1 / span 5; }
	table.shop_table_responsive td.product-thumbnail::before,
	table.shop_table_responsive td.product-remove::before,
	table.shop_table_responsive td.product-name::before,
	table.shop_table_responsive td.actions::before { display: none; }
	table.shop_table_responsive td.product-remove { position: absolute; top: 12px; right: 0; }
	table.shop_table_responsive tr:has(td.actions) { display: block; }
	td.actions > .button { float: none; width: 100%; margin-top: 10px; }
	.coupon { display: flex; }
	.coupon .input-text { flex: 1; width: auto; }
	.cart_totals table tr { display: table-row; }
	.cart_totals table td, .cart_totals table th { display: table-cell; }
}

/* ---------- Оформлення замовлення (класичний шорткод) ---------- */
form.checkout { display: grid; gap: 40px; }
@media (min-width: 1000px) {
	form.checkout { grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr); grid-template-rows: auto 1fr; gap: 24px 72px; align-items: start; }
	form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
	form.checkout #order_review_heading, form.checkout #order_review { grid-column: 2; }
	form.checkout #order_review { position: sticky; top: calc(var(--header-h) + 24px); }
}
form.checkout .col2-set .col-1, form.checkout .col2-set .col-2 { width: 100%; }
form.checkout .col2-set .col-2 { margin-top: 32px; }
#ship-to-different-address { margin: 8px 0 16px; font-family: var(--sans); font-size: 13px; letter-spacing: 0; }
#ship-to-different-address label { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.woocommerce-checkout #order_review { padding: 28px; background: var(--white); border: 1px solid var(--line); }
#order_review_heading { margin: 0; }
.form-row { margin: 0 0 16px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--ink-2); letter-spacing: .02em; }
.form-row .required { color: var(--danger); text-decoration: none; }
.form-row .optional { color: var(--muted); }
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-shipping-fields__field-wrapper .form-row-wide,
.woocommerce-address-fields__field-wrapper .form-row-wide,
.woocommerce-billing-fields__field-wrapper .form-row:not(.form-row-first):not(.form-row-last),
.woocommerce-address-fields__field-wrapper .form-row:not(.form-row-first):not(.form-row-last) { grid-column: 1 / -1; }
@media (max-width: 560px) {
	.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
}
.woocommerce-invalid input.input-text, .woocommerce-invalid select { border-color: var(--danger); }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 12px 0; }
.woocommerce-checkout-review-order-table .product-total, .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
.woocommerce-checkout-review-order-table .order-total .amount { font-size: 17px; font-weight: 500; }
#payment { margin-top: 24px; }
#payment .wc_payment_methods { list-style: none; margin-bottom: 20px; }
#payment .wc_payment_method { padding: 14px 0; border-bottom: 1px solid var(--line); }
#payment .wc_payment_method > label { display: inline; font-size: 13.5px; font-weight: 500; margin-left: 6px; }
#payment .payment_box { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
#payment .payment_box p:last-child { margin: 0; }
#payment #place_order { width: 100%; min-height: 54px; margin-top: 16px; }
.woocommerce-terms-and-conditions-wrapper { font-size: 12px; color: var(--muted); }
.woocommerce-form-coupon-toggle, .woocommerce-form-login-toggle { margin-bottom: 8px; }
.checkout_coupon, .woocommerce-form-login { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 32px; padding: 20px; border: 1px solid var(--line); }
.checkout_coupon p { margin: 0; }
.select2-container .select2-selection--single { height: 48px; border: 1px solid var(--line); border-radius: 0; }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 14px; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }
.select2-dropdown { border-color: var(--line); border-radius: 0; }

/* Сторінка «Дякуємо» */
.woocommerce-order { max-width: 860px; }
.woocommerce-thankyou-order-received { font-family: var(--serif); font-size: 30px; line-height: 1.3; border: 0; padding: 0; background: none; }
.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 16px 40px; list-style: none; margin: 24px 0 40px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.woocommerce-order-overview strong { display: block; margin-top: 4px; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.woocommerce-order-details__title, .woocommerce-column__title { font-size: 28px; }
.woocommerce-customer-details address { font-style: normal; padding: 18px; border: 1px solid var(--line); line-height: 1.8; }

/* ---------- Блоки WooCommerce (якщо кошик/оформлення зібрані блоками) ---------- */
.wc-block-cart, .wc-block-checkout { font-family: var(--sans); }
.wc-block-components-button:not(.is-link) { border-radius: 0 !important; background: var(--petrol) !important; color: var(--bg) !important; text-transform: uppercase; letter-spacing: .14em; font-size: 12px !important; min-height: 52px; }
.wc-block-components-text-input input, .wc-block-components-combobox input, .wc-block-components-textarea { border-radius: 0 !important; }
.wc-block-components-title, .wc-block-cart__totals-title { font-family: var(--serif) !important; text-transform: none !important; font-weight: 400 !important; }

/* ---------- Кабінет ---------- */
.woocommerce-account .shop-page { display: grid; gap: 32px; }
@media (min-width: 900px) {
	.woocommerce-account.logged-in .shop-page { grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
}
.woocommerce-MyAccount-navigation ul { list-style: none; border-top: 1px solid var(--line); }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--line); }
.woocommerce-MyAccount-navigation a { display: block; padding: 14px 0; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.woocommerce-MyAccount-navigation .is-active a { color: var(--choc); }
.woocommerce-MyAccount-content { min-width: 0; font-size: 14px; }
.woocommerce-MyAccount-content mark { background: none; font-weight: 600; color: var(--ink); }
.woocommerce-Addresses { display: grid; gap: 24px; }
@media (min-width: 700px) { .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.woocommerce-Address-title h2 { font-size: 26px; }
.woocommerce-Address address { font-style: normal; line-height: 1.8; }

/* Вхід / реєстрація */
.u-columns.col2-set { display: grid; gap: 48px; max-width: 980px; }
@media (min-width: 800px) { .u-columns.col2-set { grid-template-columns: 1fr 1fr; gap: 72px; } }
.woocommerce-account:not(.logged-in) .shop-page > h2,
.u-columns h2 { font-size: 30px; margin-bottom: 18px; }
.woocommerce-form-login, .woocommerce-form-register { display: block; padding: 0; border: 0; }
.woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; }
.woocommerce-form-login .button, .woocommerce-form-register .button { width: 100%; }
.woocommerce-LostPassword { margin-top: 14px; font-size: 12.5px; }
.woocommerce-LostPassword a, .woocommerce-privacy-policy-text a { text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-privacy-policy-text { font-size: 12px; color: var(--muted); }
.woocommerce-password-strength { margin-top: 6px; font-size: 12px; }
.lost_reset_password { max-width: 460px; }

/* ---------- Сповіщення «додано» поверх сторінки ---------- */
.toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 300;
	padding: 12px 20px;
	background: var(--ink);
	color: var(--bg);
	font-size: 12px;
	letter-spacing: .08em;
	transform: translate(-50%, 20px);
	opacity: 0;
	transition: opacity .3s var(--ease), transform .3s var(--ease);
	pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Адаптив: великі екрани, вузькі телефони, зони натискання
   ========================================================================== */

/* Великі монітори: більше колонок, щоб картки не розросталися до 600+ px. */
@media (min-width: 1700px) {
	.grid-products { grid-template-columns: repeat(5, 1fr); }
	.rail__track { grid-auto-columns: calc((100% - var(--gutter) * 2 - 8px) / 5.5); }
}
@media (min-width: 2200px) {
	.grid-products { grid-template-columns: repeat(6, 1fr); }
	.rail__track { grid-auto-columns: calc((100% - var(--gutter) * 2 - 10px) / 6.5); }
}

/* Панель «кількість / сортування»: на вузьких — два рядки, селект на всю ширину. */
.toolbar .woocommerce-result-count { flex: 1 1 auto; min-width: 0; }
.woocommerce-ordering select { min-height: 40px; }
@media (max-width: 479px) {
	.toolbar { flex-wrap: wrap; gap: 6px; padding-block: 12px; }
	.toolbar .woocommerce-result-count,
	.toolbar .woocommerce-ordering { flex: 1 1 100%; }
	.woocommerce-ordering select { width: 100%; padding: 8px 36px 8px 12px; border: 1px solid var(--line); background-color: var(--white); background-position: right 12px center; }
}

/* Кількість: однакова висота 44 px у формі товару й у кошику. */
.quantity { min-height: 44px; }
.quantity .qty { height: auto; }
.qty__btn { width: 40px; }

/* Колонки оформлення не розпирають сторінку вмістом (select2, довгі підписи). */
form.checkout > *,
form.checkout .col2-set > *,
.woocommerce-billing-fields__field-wrapper > *,
.woocommerce-shipping-fields__field-wrapper > * { min-width: 0; }
.select2-container { max-width: 100%; }

/* Текстові посилання Woo в повідомленнях — більша зона натискання. */
.woocommerce-info a, .showcoupon, .showlogin { display: inline-block; padding-block: 6px; }

@media (max-width: 767px) {
	.woocommerce-checkout #order_review { padding: 20px 16px; }
	.cart_totals h2, .woocommerce-billing-fields h3, #order_review_heading { font-size: 26px; }
}
.card__badge { font-size: 11px; letter-spacing: .1em; }
.comment-form-rating p.stars a { width: 32px; height: 32px; }
.comment-form-rating p.stars a::before { font-size: 28px; line-height: 32px; }
.pgallery__dots button { width: 32px; height: 32px; }
.pgallery__dots button::before { top: 15px; }
.pdp .crumbs { margin-bottom: 8px; }

/* ==========================================================================
   2026: метали на картках, фільтри, липка кнопка «У кошик»
   ========================================================================== */

/* Кружечки металу */
.card__metals { display: flex; gap: 6px; margin-top: 6px; }
.card__metal { width: 12px; height: 12px; border-radius: 50%; background: var(--metal); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px var(--bg); }

/* Панель над сіткою: сортування + кнопка фільтрів */
.toolbar__actions { display: flex; align-items: center; gap: 16px; min-width: 0; }
.filters-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--ink);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}
.filters-btn:hover { background: var(--ink); color: var(--bg); }
.filters-btn .icon { width: 18px; height: 18px; }
.filters-btn__count { display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 9px; background: var(--choc); color: var(--bg); font-size: 11px; letter-spacing: 0; }
/* На телефоні сортування живе в панелі фільтрів — лишаємо тільки кнопку. */
@media (max-width: 767px) {
	.toolbar__actions .woocommerce-ordering { display: none; }
	.toolbar { flex-wrap: nowrap; }
	.toolbar .woocommerce-result-count { flex: 1 1 auto; }
	.toolbar .toolbar__actions { flex: none; }
}
@media (max-width: 479px) {
	.toolbar .woocommerce-result-count, .toolbar .woocommerce-ordering { flex: 1 1 auto; }
}

/* Шухляда фільтрів */
.filters { display: flex; flex-direction: column; }
.filters .drawer__body { padding-top: 8px; }
.filters__group { margin: 0; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); }
.filters__legend { margin: 0 0 14px; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.filters__radio { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 14px; cursor: pointer; }
.filters__radio input { width: 18px; height: 18px; margin: 0; }
.filters__price { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.filters__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.filters__presets .chip { min-height: 40px; }
.filters__cats { list-style: none; }
.filters__cats a { display: flex; justify-content: space-between; min-height: 40px; align-items: center; font-size: 14px; }
.filters__cats a span { color: var(--muted); font-size: 12px; }
.filters__cats a[aria-current] { color: var(--choc); font-weight: 500; }
.filters__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }

/* Липка кнопка «У кошик» (до 1100 px; на десктопі права колонка й так липка) */
.sticky-atc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
	background: rgba(246, 244, 240, .94);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transform: translateY(110%);
	visibility: hidden;
	transition: transform .35s var(--ease), visibility 0s linear .35s;
}
.sticky-atc.is-on { transform: none; visibility: visible; transition-delay: 0s; }
.sticky-atc__media img { width: 48px; height: 60px; object-fit: cover; background: var(--bg-2); }
.sticky-atc__name { margin: 0; overflow: hidden; font-size: 12.5px; font-weight: 500; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.sticky-atc__price { margin: 2px 0 0; font-size: 12px; color: var(--ink-2); }
.sticky-atc__price del { color: var(--muted); margin-right: 4px; }
.sticky-atc__btn { min-height: 44px; padding: 10px 20px; }
@media (min-width: 1100px) {
	.sticky-atc { display: none; }
}
@media (max-width: 1099px) {
	.single-product .footer { padding-bottom: 76px; }
}

/* legend у fieldset браузер малює з власним відступом — вирівнюємо як звичайний заголовок. */
.filters__group > legend.filters__legend { float: left; width: 100%; }
.filters__group > legend.filters__legend + * { clear: both; }
