/* =========================================================
   WooCommerce: картки товарів у стилі book-ye.com.ua
   Кольори змінюються тут, у змінних нижче.
   ========================================================= */
.woocommerce,
.woocommerce-page {
	--card-accent: #b15bae;        /* іконка кошика, наведення на назву */
	--card-badge: #e04b4b;         /* бейдж знижки */
	--card-text: #111111;          /* назва, нова ціна */
	--card-muted: #9a9a9a;         /* автор, стара ціна */
	--card-success: #2e9e6b;       /* «В наявності» */
	--card-star: #e8828f;          /* зірка з рейтингом */
	--card-image-bg: #f6f6f6;      /* фон під зображенням */
}

/* ---------- Сітка ---------- */
.woocommerce ul.products {
	--cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	gap: 32px 24px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
}
.woocommerce ul.products.columns-1 { --cols: 1; }
.woocommerce ul.products.columns-2 { --cols: 2; }
.woocommerce ul.products.columns-3 { --cols: 3; }
.woocommerce ul.products.columns-4 { --cols: 4; }
.woocommerce ul.products.columns-5 { --cols: 5; }
.woocommerce ul.products.columns-6 { --cols: 6; }

@media (max-width: 991.98px) {
	.woocommerce ul.products.columns-4,
	.woocommerce ul.products.columns-5,
	.woocommerce ul.products.columns-6 { --cols: 3; }
}
@media (max-width: 767.98px) {
	.woocommerce ul.products[class*="columns-"] { --cols: 2; gap: 24px 14px; }
}

/* ---------- Картка ---------- */
body .woocommerce ul.products li.product,
body.woocommerce ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	position: relative;
	text-align: left;
	font-family: Roboto, Arial, sans-serif;
}
.woocommerce ul.products li.product .woocommerce-loop-product__link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	color: var(--card-text);
	text-decoration: none;
}

/* Зображення */
.woocommerce ul.products li.product .product_card_image {
	position: relative;
	background: var(--card-image-bg);
	border-radius: 6px;
	aspect-ratio: 1 / 1.1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 14px;
}
.woocommerce ul.products li.product .product_card_image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: 0;
	box-shadow: none;
	transition: transform 0.3s;
}
.woocommerce ul.products li.product:hover .product_card_image img {
	transform: scale(1.04);
}

/* Бейдж знижки */
body .woocommerce ul.products li.product .onsale,
body.woocommerce ul.products li.product .onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	right: auto;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 3px 7px;
	border-radius: 3px;
	background: var(--card-badge);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

/* Назва: максимум 2 рядки */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--card-text);
	margin: 0 0 6px;
	padding: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
	transition: color 0.2s;
}
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title {
	color: var(--card-accent);
}

/* Рейтинг, автор, наявність */
.woocommerce ul.products li.product .product_card_meta {
	font-size: 15px;
	line-height: 1.5;
	margin-bottom: 12px;
}
.product_card_rating {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #cfcfcf;
}
.product_card_rating .product_card_star {
	font-size: 18px;
	line-height: 1;
}
.product_card_rating.has_rating .product_card_star,
.product_card_rating.has_rating .product_card_rating_value {
	color: var(--card-star);
}
.product_card_rating .product_card_reviews {
	margin-left: 6px;
	color: #2a9fb3;
}
.product_card_author {
	color: var(--card-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.product_card_stock                 { color: #555; }
.product_card_stock .fa             { margin-right: 4px; }
.product_card_stock.is_in_stock .fa { color: var(--card-success); }
.product_card_stock.is_backorder    { color: #d98b00; }
.product_card_stock.is_out_of_stock { color: var(--card-muted); }

/* Низ картки: ціна + кошик */
.woocommerce ul.products li.product .product_card_bottom {
	margin-top: auto;
	display: flex;
	flex-direction: column;
}
body .woocommerce ul.products li.product .price,
body.woocommerce ul.products li.product .price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0;
	color: var(--card-text);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}
.woocommerce ul.products li.product .price > .amount,
.woocommerce ul.products li.product .price > ins {
	margin-left: auto;
}
.woocommerce ul.products li.product .price ins {
	text-decoration: none;
	font-weight: 700;
	background: none;
}
.woocommerce ul.products li.product .price del {
	color: var(--card-muted);
	font-size: 20px;
	font-weight: 400;
	opacity: 1;
}

/* Кнопка-іконка «В кошик» */
body .woocommerce ul.products li.product a.button.product_card_cart,
body.woocommerce ul.products li.product a.button.product_card_cart {
	align-self: flex-end;
	margin: 8px 0 0;
	padding: 2px;
	background: transparent;
	border: 0;
	border-radius: 4px;
	color: var(--card-accent);
	line-height: 0;
	box-shadow: none;
	transition: transform 0.2s, opacity 0.2s;
}
body .woocommerce ul.products li.product a.button.product_card_cart:hover,
body.woocommerce ul.products li.product a.button.product_card_cart:hover {
	background: transparent;
	color: var(--card-accent);
	transform: scale(1.1);
}
.woocommerce ul.products li.product a.button.product_card_cart.loading {
	opacity: 0.4;
}
.woocommerce ul.products li.product a.button.product_card_cart.loading::after,
.woocommerce ul.products li.product a.button.product_card_cart.added::after {
	display: none;
}
/* Після додавання — зелена «галочка» замість посилання «Переглянути кошик» */
.woocommerce ul.products li.product a.button.product_card_cart.added {
	color: var(--card-success);
}
.woocommerce ul.products li.product .added_to_cart {
	display: none;
}

@media (max-width: 767.98px) {
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; }
	.woocommerce ul.products li.product .product_card_meta { font-size: 13px; }
	body .woocommerce ul.products li.product .price,
	body.woocommerce ul.products li.product .price { font-size: 20px; }
	.woocommerce ul.products li.product .price del { font-size: 15px; }
	.product_card_cart_icon { width: 32px; height: 29px; }
}

/* Прихований текст для скрінрідерів (якщо стилі WooCommerce його не задали) */
.woocommerce ul.products .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* =========================================================
   Шорткод [cart_button]
   Кнопка має власні стилі й не залежить від стилів WooCommerce.
   Свій вигляд: [cart_button ... class="btn-violet"] і в CSS
   .olga_cart_button.btn-violet { ... }
   ========================================================= */
.olga_cart_button_wrap {
	--cart-btn-bg: #b565a7;
	--cart-btn-bg-hover: #9c4f8f;
	--cart-btn-color: #ffffff;

	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 8px 12px 8px 0; /* відступ між кількома кнопками в рядку */
	vertical-align: top;
}
a.olga_cart_button,
span.olga_cart_button {
	display: inline-block;
	padding: 10px 24px;
	border: 0;
	border-radius: 3px;
	background: var(--cart-btn-bg);
	color: var(--cart-btn-color);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
}
a.olga_cart_button:hover,
a.olga_cart_button:focus {
	background: var(--cart-btn-bg-hover);
	color: var(--cart-btn-color);
	text-decoration: none;
}
a.olga_cart_button.loading {
	opacity: 0.6;
	pointer-events: none;
}
a.olga_cart_button.added::after {
	content: " ✓";
}
span.olga_cart_button.is_out_of_stock {
	opacity: 0.5;
	cursor: not-allowed;
}
.olga_cart_button_wrap .added_to_cart {
	font-size: 14px;
}
.olga_cart_button_error {
	color: #d63638;
	font-weight: 700;
}
.olga_cart_button_wrap .olga_cart_button_price {
	font-size: 22px;
	font-weight: 700;
	color: inherit;
}
.olga_cart_button_wrap .olga_cart_button_price del {
	color: #9a9a9a;
	font-size: 0.8em;
	font-weight: 400;
	margin-right: 6px;
}
.olga_cart_button_wrap .olga_cart_button_price ins {
	text-decoration: none;
	background: none;
}

/* [cart_button price_position="..."]: де ціна відносно кнопки */
.olga_cart_button_wrap .olga_cart_button_price { order: 1; }
.olga_cart_button_wrap .olga_cart_button       { order: 2; }
.olga_cart_button_wrap .added_to_cart          { order: 3; }

.olga_cart_button_wrap.price_right .olga_cart_button       { order: 1; }
.olga_cart_button_wrap.price_right .olga_cart_button_price { order: 2; }

.olga_cart_button_wrap.price_top,
.olga_cart_button_wrap.price_bottom {
	flex-direction: column;
	align-items: center; /* ціна по центру кнопки */
	text-align: center;
	gap: 6px;
}
.olga_cart_button_wrap.price_bottom .olga_cart_button       { order: 1; }
.olga_cart_button_wrap.price_bottom .olga_cart_button_price { order: 2; }

/* =========================================================
   Кошик / оформлення замовлення / кабінет
   ========================================================= */
.site_shop_page {
	--shop-accent: #b565a7;
	--shop-accent-hover: #9c4f8f;
	--shop-border: #d9d9d9;
	--shop-box-bg: #f7f5f7;
}
.site_shop_title {
	font-size: 32px;
	font-weight: 700;
	margin: 10px 0 24px;
}

/* ---------- Конфлікт Bootstrap ↔ WooCommerce ----------
   Bootstrap: .col-1/.col-2 = колонки 1/12 і 2/12, .form-row = flex-рядок.
   WooCommerce використовує ті самі класи для колонок форми і рядків полів. */
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-1,
.woocommerce-page .col2-set .col-2 {
	flex: none;
	max-width: none;
	padding: 0;
}
.woocommerce form .form-row,
.woocommerce-page form .form-row {
	display: block;
	margin: 0 0 16px;
	padding: 0;
}
.woocommerce form .form-row::after {
	content: "";
	display: table;
	clear: both;
}

/* ---------- Поля форми ---------- */
.woocommerce form .form-row label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}
.woocommerce form .form-row label.checkbox,
.woocommerce form .form-row label.woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
}
.woocommerce form .form-row .woocommerce-input-wrapper {
	display: block;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .woocommerce-form-coupon input.input-text,
.woocommerce .coupon input.input-text {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--shop-border, #d9d9d9);
	border-radius: 6px;
	background: #fff;
	font-size: 15px;
	line-height: 1.4;
	color: #222;
	box-shadow: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.woocommerce form .form-row textarea {
	min-height: 110px;
	resize: vertical;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	outline: none;
	border-color: var(--shop-accent, #b565a7);
	box-shadow: 0 0 0 3px rgba(181, 101, 167, 0.18);
}
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
	border-color: #d63638;
}

/* Вибір країни/області (select2) */
.woocommerce .select2-container .select2-selection--single {
	height: 46px;
	border: 1px solid var(--shop-border, #d9d9d9);
	border-radius: 6px;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 44px;
	padding-left: 14px;
	color: #222;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
	height: 44px;
	right: 6px;
}

/* ---------- Оформлення замовлення: 2 колонки ----------
   Ліворуч — дані покупця, праворуч — «Ваше замовлення» і оплата. */
@media (min-width: 992px) {
	.woocommerce form.checkout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 420px;
		grid-template-areas:
			"notices notices"
			"customer heading"
			"customer review";
		grid-template-rows: auto auto 1fr;
		column-gap: 48px;
		align-items: start;
	}
	.woocommerce form.checkout > * {
		grid-column: 1 / -1;
	}
	.woocommerce form.checkout > .woocommerce-NoticeGroup {
		grid-area: notices;
	}
	.woocommerce form.checkout > #customer_details {
		grid-area: customer;
	}
	.woocommerce form.checkout > #order_review_heading {
		grid-area: heading;
		margin-top: 0;
	}
	.woocommerce form.checkout > #order_review {
		grid-area: review;
		position: sticky;
		top: 20px;
	}
}
.woocommerce form.checkout #customer_details .col-1,
.woocommerce form.checkout #customer_details .col-2 {
	float: none;
	width: 100%;
}
.woocommerce form.checkout #customer_details .col-2 {
	margin-top: 10px;
}
.woocommerce form.checkout h3 {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 18px;
}

/* «Ваше замовлення» */
.woocommerce form.checkout #order_review_heading {
	padding: 22px 24px 0;
	margin-bottom: 0;
	background: var(--shop-box-bg, #f7f5f7);
	border-radius: 10px 10px 0 0;
}
.woocommerce form.checkout #order_review {
	padding: 10px 24px 24px;
	background: var(--shop-box-bg, #f7f5f7);
	border-radius: 0 0 10px 10px;
}
.woocommerce table.shop_table {
	border: 0;
	border-radius: 0;
	margin: 0 0 20px;
	font-size: 15px;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 10px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	background: transparent;
}
.woocommerce table.shop_table td:last-child,
.woocommerce table.shop_table th:last-child {
	text-align: right;
}
.woocommerce table.shop_table tr.order-total th,
.woocommerce table.shop_table tr.order-total td {
	font-size: 18px;
	font-weight: 700;
}

/* Оплата */
.woocommerce-checkout #payment {
	background: transparent;
	border-radius: 0;
}
.woocommerce-checkout #payment ul.payment_methods {
	padding: 0 0 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.woocommerce-checkout #payment ul.payment_methods li {
	margin-bottom: 8px;
	line-height: 1.5;
}
.woocommerce-checkout #payment div.payment_box {
	background: #fff;
	border-radius: 6px;
	font-size: 14px;
}
.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: #fff;
}
.woocommerce-checkout #payment div.form-row {
	padding: 16px 0 0;
}
.woocommerce-terms-and-conditions-wrapper {
	font-size: 13px;
	line-height: 1.5;
}

/* ---------- Кнопки магазину в кольорах сайту ---------- */
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
	background: var(--shop-accent, #b565a7);
	color: #fff;
	border-radius: 6px;
	font-weight: 700;
}
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
	background: var(--shop-accent-hover, #9c4f8f);
	color: #fff;
}
.woocommerce-checkout #payment #place_order {
	float: none;
	width: 100%;
	padding: 16px;
	font-size: 17px;
	margin-top: 12px;
}

/* Плашка «Маєте купон?» і повідомлення */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
	border-top-color: var(--shop-accent, #b565a7);
	border-radius: 6px;
}
.woocommerce-info::before,
.woocommerce-message::before {
	color: var(--shop-accent, #b565a7);
}
.woocommerce form.checkout_coupon {
	border-radius: 6px;
	border-color: var(--shop-border, #d9d9d9);
}

@media (max-width: 991.98px) {
	.woocommerce form.checkout #order_review_heading {
		margin-top: 20px;
	}
}
@media (max-width: 575.98px) {
	.site_shop_title { font-size: 26px; }
	.woocommerce form .form-row-first,
	.woocommerce form .form-row-last {
		float: none;
		width: 100%;
	}
	.woocommerce form.checkout #order_review_heading,
	.woocommerce form.checkout #order_review {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* =========================================================
   Сторінка товару (woocommerce/content-single-product.php)
   ========================================================= */
.olga_product {
	--p-accent: #b565a7;
	--p-accent-hover: #9c4f8f;
	--p-badge: #e04b4b;
	--p-text: #111;
	--p-muted: #8a8a8a;
	--p-border: #e6e6e6;
	--p-box-bg: #fff;
	--p-success: #2e9e6b;
	--p-star: #e8828f;
	color: var(--p-text);
}
.woocommerce .woocommerce-breadcrumb {
	font-size: 14px;
	color: var(--p-muted, #8a8a8a);
	margin: 0 0 14px;
}
.woocommerce .woocommerce-breadcrumb a {
	color: inherit;
}
.woocommerce .woocommerce-breadcrumb a:hover {
	color: #b565a7;
}

/* Заголовок + код */
.olga_product_head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 14px;
}
.woocommerce div.product .olga_product_head .product_title {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.25;
	clear: none;
}
.olga_product_sku {
	flex: 0 0 auto;
	padding-top: 10px;
	font-size: 13px;
	color: var(--p-muted);
	white-space: nowrap;
}

/* Якорі + рейтинг */
.olga_product_nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--p-border);
}
.olga_product_anchors {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
}
.olga_product_anchors a {
	display: block;
	padding: 8px 0 10px;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	color: var(--p-accent);
	font-size: 15px;
	text-decoration: none;
}
.olga_product_anchors a.is_active,
.olga_product_anchors a:hover {
	color: var(--p-text);
	border-bottom-color: var(--p-text);
	text-decoration: none;
}
.olga_product_rating {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #2a9fb3;
	text-decoration: none;
	white-space: nowrap;
}
.olga_product_rating:hover {
	text-decoration: none;
}
.olga_stars {
	position: relative;
	display: inline-block;
	color: #ddd;
	font-size: 18px;
	line-height: 1;
	letter-spacing: 2px;
}
.olga_stars_fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	width: calc(var(--rating, 0) / 5 * 100%);
	color: var(--p-star, #e8828f);
}

/* Три колонки: галерея | інформація | покупка */
.olga_product_grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 320px;
	grid-template-areas: "gallery info buy";
	gap: 32px;
	align-items: start;
	margin-bottom: 40px;
}
.olga_product_gallery { grid-area: gallery; position: relative; }
.olga_product_info    { grid-area: info; }
.olga_product_buy     { grid-area: buy; }

@media (max-width: 1199.98px) {
	.olga_product_grid {
		grid-template-columns: minmax(0, 1fr) 320px;
		grid-template-areas:
			"gallery buy"
			"info    info";
	}
}
@media (max-width: 767.98px) {
	.olga_product_head { flex-direction: column; gap: 4px; }
	.olga_product_sku { padding-top: 0; }
	.woocommerce div.product .olga_product_head .product_title { font-size: 24px; }
	.olga_product_nav { flex-wrap: wrap; }
	.olga_product_grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"gallery"
			"buy"
			"info";
		gap: 24px;
	}
}

/* Галерея: мініатюри вертикально ліворуч */
.woocommerce div.product .olga_product_gallery div.images {
	float: none;
	width: 100%;
	margin: 0;
}
.woocommerce div.product .olga_product_gallery div.images.woocommerce-product-gallery {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}
.woocommerce div.product .olga_product_gallery .woocommerce-product-gallery > *:not(.flex-control-thumbs):not(.woocommerce-product-gallery__trigger) {
	grid-column: 2;
	grid-row: 1;
}
.woocommerce div.product .olga_product_gallery div.images .flex-control-thumbs {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
}
.woocommerce div.product .olga_product_gallery div.images .flex-control-thumbs li {
	float: none;
	width: 100% !important;
	margin: 0;
}
.woocommerce div.product .olga_product_gallery div.images .flex-control-thumbs li img {
	border: 1px solid var(--p-border);
	border-radius: 6px;
	opacity: 0.6;
}
.woocommerce div.product .olga_product_gallery div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product .olga_product_gallery div.images .flex-control-thumbs li img:hover {
	opacity: 1;
	border-color: var(--p-accent);
}
.woocommerce div.product .olga_product_gallery div.images .woocommerce-product-gallery__image img {
	border-radius: 8px;
}
/* Одне фото (без мініатюр) — на всю ширину */
.woocommerce div.product .olga_product_gallery div.images.woocommerce-product-gallery:not(:has(.flex-control-thumbs)) {
	grid-template-columns: minmax(0, 1fr);
}
.woocommerce div.product .olga_product_gallery div.images.woocommerce-product-gallery:not(:has(.flex-control-thumbs)) > * {
	grid-column: 1;
}
.woocommerce div.product .olga_product_gallery .woocommerce-product-gallery__trigger {
	top: 12px;
	right: 12px;
	z-index: 3;
}
@media (max-width: 575.98px) {
	.woocommerce div.product .olga_product_gallery div.images.woocommerce-product-gallery {
		grid-template-columns: minmax(0, 1fr);
	}
	.woocommerce div.product .olga_product_gallery .woocommerce-product-gallery > * {
		grid-column: 1 !important;
		grid-row: auto !important;
	}
	.woocommerce div.product .olga_product_gallery div.images .flex-control-thumbs {
		flex-direction: row;
		overflow-x: auto;
	}
	.woocommerce div.product .olga_product_gallery div.images .flex-control-thumbs li {
		flex: 0 0 60px;
		width: 60px !important;
	}
}

/* Бейдж знижки */
.woocommerce .olga_product .olga_product_gallery span.onsale {
	position: absolute;
	top: 12px;
	left: 96px;
	right: auto;
	z-index: 4;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 3px 8px;
	border-radius: 3px;
	background: var(--p-badge);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}
@media (max-width: 575.98px) {
	.woocommerce .olga_product .olga_product_gallery span.onsale { left: 12px; }
}

/* Інформація: характеристики + короткий опис */
.olga_product_attrs {
	width: 100%;
	margin: 0 0 6px;
	border-collapse: collapse;
	font-size: 15px;
}
.olga_product_attrs th,
.olga_product_attrs td {
	padding: 6px 0;
	vertical-align: top;
	border: 0;
}
.olga_product_attrs th {
	width: 45%;
	padding-right: 12px;
	color: var(--p-muted);
	font-weight: 400;
}
.olga_product_attrs td {
	color: #2a9fb3;
}
.olga_product_attrs_more {
	display: inline-block;
	margin-bottom: 14px;
	color: #2a9fb3;
	font-size: 14px;
}
.olga_product_excerpt {
	font-size: 15px;
	line-height: 1.6;
}
.olga_product_excerpt p:last-child {
	margin-bottom: 0;
}
.olga_product_cats {
	margin-top: 14px;
	font-size: 14px;
	color: var(--p-muted);
}

/* Блок покупки */
.woocommerce div.product .olga_product_buy.summary {
	float: none;
	width: auto;
	margin: 0;
	padding: 20px;
	border: 1px solid var(--p-border);
	border-radius: 10px;
	background: var(--p-box-bg);
	position: sticky;
	top: 20px;
}
.olga_product_buy_top {
	display: flex;
	justify-content: flex-end;
	font-size: 14px;
	margin-bottom: 10px;
}
.olga_stock { color: #555; }
.olga_stock .fa { margin-right: 4px; }
.olga_stock.is_in_stock .fa { color: var(--p-success); }
.olga_stock.is_backorder { color: #d98b00; }
.olga_stock.is_out_of_stock { color: var(--p-muted); }

/* Стандартний рядок наявності WooCommerce у блоці покупки — дублює наш */
.olga_product_buy > p.stock {
	display: none;
}

.woocommerce div.product .olga_product_buy_price p.price {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0 0 16px;
	color: var(--p-text);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
}
.woocommerce div.product .olga_product_buy_price p.price > .amount,
.woocommerce div.product .olga_product_buy_price p.price > ins {
	margin-left: auto;
}
.woocommerce div.product .olga_product_buy_price p.price ins {
	text-decoration: none;
	font-weight: 700;
	background: none;
}
.woocommerce div.product .olga_product_buy_price p.price del {
	color: var(--p-muted);
	font-size: 20px;
	font-weight: 400;
	opacity: 1;
}

/* Кількість + «В кошик» */
.woocommerce div.product .olga_product_buy form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 16px;
}
.woocommerce div.product .olga_product_buy form.cart::before,
.woocommerce div.product .olga_product_buy form.cart::after {
	display: none;
}
.woocommerce div.product .olga_product_buy form.cart div.quantity {
	float: none;
	margin: 0;
}
.woocommerce div.product .olga_product_buy form.cart .qty {
	width: 64px;
	height: 48px;
	border: 1px solid var(--p-border);
	border-radius: 6px;
	text-align: center;
	font-size: 16px;
}
.woocommerce div.product .olga_product_buy form.cart .button.single_add_to_cart_button {
	flex: 1 1 auto;
	float: none;
	height: 48px;
	padding: 0 20px;
	border-radius: 6px;
	background: var(--p-accent);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}
.woocommerce div.product .olga_product_buy form.cart .button.single_add_to_cart_button:hover {
	background: var(--p-accent-hover);
}
/* Варіативні товари: таблиця вибору на всю ширину */
.woocommerce div.product .olga_product_buy form.variations_form {
	display: block;
}
.woocommerce div.product .olga_product_buy form.variations_form .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 10px;
}
.woocommerce div.product .olga_product_buy table.variations {
	margin-bottom: 12px;
}
.woocommerce div.product .olga_product_buy table.variations select {
	width: 100%;
	min-height: 42px;
	padding: 6px 10px;
	border: 1px solid var(--p-border);
	border-radius: 6px;
}

/* Доставка / оплата / знижка */
.olga_product_buy_info {
	margin: 0 -20px -20px;
	padding: 14px 20px;
	border-top: 1px solid var(--p-border);
	background: #fafafa;
	border-radius: 0 0 10px 10px;
	font-size: 14px;
}
.olga_product_buy_info ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.olga_product_buy_info li {
	display: grid;
	grid-template-columns: 22px 80px 1fr;
	align-items: baseline;
	gap: 6px;
	padding: 4px 0;
}
.olga_product_buy_info li .fa {
	color: var(--p-muted);
}
.olga_product_buy_info li b {
	font-weight: 400;
	text-align: right;
}
.olga_product_sale_note {
	margin-top: 8px;
	text-align: center;
	color: var(--p-badge);
	font-weight: 700;
}
.olga_product_buy_info ul + .olga_product_sale_note {
	padding-top: 8px;
	border-top: 1px dashed var(--p-border);
}

/* Секції під товаром: Опис / Характеристики / Відгуки */
.olga_product_section {
	padding: 30px 0;
	border-top: 1px solid var(--p-border);
	scroll-margin-top: 20px;
	font-size: 15px;
	line-height: 1.65;
}
#overview {
	scroll-margin-top: 20px;
}
.olga_product_section_title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 16px;
}
.olga_product_section--additional_information table.shop_attributes {
	max-width: 640px;
	border: 0;
}
.olga_product_section--additional_information table.shop_attributes th,
.olga_product_section--additional_information table.shop_attributes td {
	padding: 8px 0;
	border: 0;
	border-bottom: 1px solid var(--p-border);
	background: none;
	font-style: normal;
	text-align: left;
}
.olga_product_section--additional_information table.shop_attributes th {
	width: 40%;
	color: var(--p-muted);
	font-weight: 400;
}
.olga_product_section--additional_information table.shop_attributes td p {
	margin: 0;
	padding: 0;
}
.olga_product_section .woocommerce-Reviews-title {
	display: none;
}
.woocommerce .olga_product_section #reviews #comments ol.commentlist li .comment-text {
	border-radius: 8px;
	border-color: var(--p-border);
}
.woocommerce .olga_product_section #review_form #respond textarea,
.woocommerce .olga_product_section #review_form #respond input[type="text"],
.woocommerce .olga_product_section #review_form #respond input[type="email"] {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--p-border);
	border-radius: 6px;
}
.woocommerce .olga_product_section #review_form #respond .form-submit input {
	background: var(--p-accent);
	color: #fff;
	border-radius: 6px;
}
.woocommerce .olga_product .star-rating span::before,
.woocommerce .olga_product p.stars a {
	color: var(--p-star);
}

/* Разом з цим купують / Схожі товари */
.olga_product section.related,
.olga_product section.upsells {
	clear: both;
	padding-top: 30px;
	border-top: 1px solid var(--p-border);
}
.olga_product section.related > h2,
.olga_product section.upsells > h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 20px;
}
.woocommerce .olga_product .olga_product_gallery:not(:has(.flex-control-thumbs)) span.onsale {
	left: 12px;
}
