/* WooCommerce Single Product Page Styles */

body.single-product {
	background-color: var(--header-bg);
}

.woocommerce-single-product-wrapper {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0;
}

.woocommerce-single-product {
	width: 100%;
	padding: 2rem 0;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* Each major section is its own white card block on the warm page
   background, instead of one continuous white page. */
.related-products {
	background: var(--white);
	border: 1px solid var(--border-light);
	border-radius: 5px;
	padding: 2rem;
}

/* Gallery and product info are two separate white card boxes side by
   side, not one shared box. */
.product-gallery,
.product-summary {
	background: var(--white);
	border: 1px solid var(--border-light);
	border-radius: 5px;
	padding: 2rem;
}

/* Breadcrumb */
.product-header {
	margin-bottom: 1.5rem;
}

.woocommerce-breadcrumb {
	color: var(--text-muted);
	font-size: 0.9rem;
}

.woocommerce-breadcrumb a {
	color: var(--text-muted);
	text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
	color: var(--primary-color);
}

/* Product Layout */
.product-content-grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 1.5rem;
	align-items: start;
}

.product-gallery {
	width: 100%;
	overflow: hidden;
	position: relative;
}

/* Same diagonal "Sleva!"/"Novinka!" ribbon as the shop/category/related
   grids (see woocommerce-category.css for the shared rationale) - this is
   a different context (the single-product gallery, not a ul.products
   li.product), so that rule's selector doesn't reach it and it was
   falling back to WooCommerce's own default ".onsale" pill badge. */
/* "span.onsale" (not just ".onsale") to match WooCommerce's own
   ".woocommerce span.onsale" element-plus-class specificity - a bare
   ".product-gallery .onsale" (2 classes) loses to that (2 classes + the
   "span" element), which is why "border-radius: 100%" kept winning and
   the ribbon rendered as a rounded blob instead of a straight strip. The
   !important declarations are a second safety net against that same core
   rule on the handful of properties it also sets. */
.product-gallery span.onsale {
	position: absolute;
	top: 16px;
	left: -38px;
	right: auto;
	z-index: 2;
	width: 140px;
	margin: 0;
	padding: 0.35rem 0;
	background-color: var(--primary-color);
	color: var(--white);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-align: center;
	text-transform: uppercase;
	line-height: 1.2 !important;
	border-radius: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	transform: rotate(-45deg);
	box-shadow: 0 2px 6px rgba(var(--shadow-rgb), 0.15);
}

.product-summary {
	width: 100%;
}

.summary.entry-summary {
	display: contents;
}

/* Product Gallery - WooCommerce's own default gallery markup
   (wc_get_gallery_image_html() + flexslider, enabled via the
   wc-product-gallery-zoom/lightbox/slider theme supports).

   Flexslider's JS measures the container's width on init and bakes it
   into inline pixel widths on .flex-viewport / ul.slides / each slide -
   if that measurement happens before our layout has settled, it locks
   in a too-small width that plain CSS can't override without
   !important. */
.woocommerce-product-gallery,
.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery ul.slides,
.woocommerce-product-gallery ul.slides li {
	width: 100% !important;
	max-width: 100% !important;
}

.woocommerce-product-gallery {
	position: relative;
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
	border-radius: 5px;
	overflow: hidden;
	background: var(--light-bg);
}

.woocommerce-product-gallery__image {
	margin: 0;
}

.woocommerce-product-gallery__wrapper img,
.woocommerce-product-gallery__wrapper .category-tile-placeholder {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}

.thumb-nav-wrapper {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	/* Matches the card's own top/bottom padding (--spacing-lg) so the
	   image-to-thumbnails gap reads the same as the thumbnails-to-card-edge
	   gap below it, instead of a smaller, mismatched 1rem. */
	margin: var(--spacing-lg) 0 0;
}

.flex-control-nav.flex-control-thumbs {
	display: flex;
	flex-wrap: nowrap;
	flex: 1 1 auto;
	min-width: 0;
	gap: 1rem;
	list-style: none;
	margin: 0 !important;
	padding: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	/* proximity, not mandatory: iOS Safari snaps a programmatic smooth
	   scroll (the arrow buttons) straight back with "mandatory". */
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.flex-control-nav.flex-control-thumbs::-webkit-scrollbar {
	display: none;
}

.flex-control-thumbs li {
	list-style: none;
	margin: 0;
	flex: 0 0 calc((100% - 3 * 1rem) / 4);
	width: auto !important;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 5px;
	scroll-snap-align: start;
}

.thumb-nav {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 50%;
	color: var(--text-dark);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

/* Mouse-only: on iOS a :hover rule can turn the first tap into a hover-only
   tap, so the arrow would need two taps to actually scroll. */
@media (hover: hover) {
	.thumb-nav:hover:not(:disabled) {
		background: var(--header-bg);
		border-color: var(--border-tan);
	}
}

.thumb-nav {
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.thumb-nav:disabled {
	opacity: 0.3;
	pointer-events: none;
}

.thumb-nav-wrapper.no-overflow .thumb-nav {
	display: none;
}

/* Inactive thumbnails are softly dimmed, the active one is full strength.
   Selector matches WooCommerce's own ".woocommerce div.product div.images
   .flex-control-thumbs li img" so our values win over its stronger .5. */
.woocommerce div.product div.images .flex-control-thumbs li img,
.flex-control-thumbs li img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 5px;
	border: 1px solid var(--border-light);
	cursor: pointer;
	transition: all 0.2s;
	display: block;
	opacity: 0.6;
}

@media (hover: hover) {
	.woocommerce div.product div.images .flex-control-thumbs li img:hover,
	.flex-control-thumbs li img:hover {
		opacity: 1;
		border-color: var(--primary-color);
	}
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.flex-control-thumbs li img.flex-active {
	opacity: 1;
	border-color: var(--primary-color);
	border-width: 2px;
}

/* Product Info */
.product-info {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.product-title {
	margin: 0;
	font-size: 2rem;
	line-height: 1.2;
	color: var(--text-dark);
}

/* Price */
.product-price {
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--text-dark);
}

.product-price .price {
	color: var(--text-dark);
}

.product-price ins {
	text-decoration: none;
}

.product-price del {
	color: var(--text-faded);
	font-size: 0.85em;
	margin-right: 0.5rem;
}

/* Description */
.product-description-short {
	color: var(--text-gray);
	line-height: 1.6;
	font-size: 0.95rem;
}

/* Add to Cart Section */
.product-add-to-cart-section {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.product-add-to-cart-section .variations_form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.product-add-to-cart-section .cart {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* Variation Swatches (size selector) */
.variation-swatches {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.variation-swatch-group {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.variation-swatch-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-dark);
}

.variation-swatch-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.variation-swatch-button {
	min-width: 52px;
	padding: 0.6rem 1rem;
	background: var(--white);
	border: 1px solid var(--border-light);
	border-radius: 5px;
	color: var(--text-dark);
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.2s;
}

.variation-swatch-button:hover {
	border-color: var(--primary-color);
}

.variation-swatch-button.active {
	background: var(--text-dark);
	border-color: var(--text-dark);
	color: var(--white);
}

/* Color swatch (attribute type "colorpicker" in WooCommerce -> Attributes,
   value set via yith-color-and-label-variations term meta) - a square color
   box with its label underneath, matching the category filter's color list. */
.variation-swatch-button--colorpicker,
.variation-swatch-button--image {
	min-width: 0;
	width: auto;
	padding: 0;
	background: transparent;
	border: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
}

.variation-swatch-button--colorpicker:hover,
.variation-swatch-button--image:hover {
	border-color: transparent;
}

.variation-swatch-color-box {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 5px;
	border: 1px solid var(--border-light);
	transition: all 0.2s;
}

.variation-swatch-button--colorpicker:hover .variation-swatch-color-box {
	border-color: var(--primary-color);
}

.variation-swatch-button--colorpicker.active .variation-swatch-color-box {
	border-color: var(--text-dark);
	box-shadow: 0 0 0 1px var(--text-dark);
}

.variation-swatch-color-name {
	font-size: 0.8rem;
	color: var(--text-gray);
	text-align: center;
}

.variation-swatch-button--colorpicker.active .variation-swatch-color-name,
.variation-swatch-button--image.active .variation-swatch-color-name {
	color: var(--text-dark);
	font-weight: 600;
}

/* Image swatch (attribute type "image") */
.variation-swatch-button--image img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	display: block;
	border-radius: 5px;
	border: 1px solid var(--border-light);
	transition: all 0.2s;
}

.variation-swatch-button--image:hover img {
	border-color: var(--primary-color);
}

.variation-swatch-button--image.active img {
	border-color: var(--text-dark);
	box-shadow: 0 0 0 1px var(--text-dark);
}

/* ============================================================
   yith-color-and-label-variations-for-woocommerce - the plugin
   builds its own swatch markup client-side (replacing the native
   <select>), so we restyle ITS classes directly instead of the
   .variation-swatch-* ones above (those only apply when the plugin
   isn't active / doesn't take over for a given attribute).
   ============================================================ */

/* The plugin's own template still renders a <table class="variations">
   with <td class="label"> (e.g. "Velikost"/"Barva") and <td class="value">
   (the select + swatches) side by side as table cells - stack them so the
   attribute name always sits on its own line above its swatch row. */
.variations,
.variations tbody,
.variations tr {
	display: block !important;
	width: 100%;
}

.variations tr + tr {
	margin-top: 1.25rem;
}

.variations td {
	display: block !important;
	padding: 0 !important;
	border: none !important;
}

.variations td.label {
	margin-bottom: 0.6rem;
}

.variations td.label label {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-dark);
}

.variations td.value select {
	display: none !important;
}

.select_box {
	display: flex !important;
	flex-wrap: wrap;
	gap: 1rem !important;
	margin: 0 !important;
	padding: 0 !important;
}

.select_box::after {
	content: none !important;
}

.select_option {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	margin: 0.4rem 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	cursor: pointer;
}

/* Square swatch instead of YITH's default circle, for both color and
   image types. */
.select_option_colorpicker .yith_wccl_value,
.select_option_image .yith_wccl_value {
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
	border-radius: 5px !important;
	border: 1px solid var(--border-light) !important;
	box-sizing: border-box;
}

.select_box:not(.on_ptab) .select_option:hover .yith_wccl_value {
	border-color: var(--primary-color) !important;
}

.select_option.selected .yith_wccl_value {
	border-color: var(--text-dark) !important;
	box-shadow: 0 0 0 1px var(--text-dark);
}

.select_option.inactive {
	opacity: 0.35;
	cursor: not-allowed;
}

/* Label-type swatch (plain text pill) */
.select_option_label .yith_wccl_value {
	border: 1px solid var(--border-light) !important;
	border-radius: 5px !important;
	padding: 0.5rem 1rem !important;
	font-size: 0.95rem;
	color: var(--text-dark);
	min-width: 0 !important;
	min-height: 0 !important;
	width: auto !important;
	height: auto !important;
}

.select_option_label:hover .yith_wccl_value {
	border-color: var(--primary-color) !important;
}

.select_option_label.selected .yith_wccl_value {
	background: var(--text-dark) !important;
	color: var(--white) !important;
	border-color: var(--text-dark) !important;
}

/* Tooltip label for color/image swatches - injected by
   assets/js/product-gallery.js since YITH doesn't show one by default
   for those two types. Absolutely positioned above the swatch, only
   shown on hover, so it never takes up layout space. */
.select_option_colorpicker,
.select_option_image {
	position: relative;
}

.linai-swatch-label {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	background: var(--text-dark);
	color: var(--white);
	padding: 0.25rem 0.6rem;
	border-radius: 5px;
	font-size: 0.75rem;
	line-height: 1.3;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease;
	z-index: 5;
}

.linai-swatch-label::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: var(--text-dark);
}

.select_option_colorpicker:hover .linai-swatch-label,
.select_option_image:hover .linai-swatch-label {
	opacity: 1;
	visibility: visible;
}

.reset_variations {
	color: var(--text-muted);
	text-decoration: underline;
	font-size: 0.85rem;
	align-self: flex-start;
}

.reset_variations:hover {
	color: var(--primary-color);
}

.woocommerce-variation-add-to-cart {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.woocommerce-variation-price {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--text-dark);
}

.woocommerce-variation-description {
	color: var(--text-gray);
	font-size: 0.9rem;
	line-height: 1.6;
}

/* Quantity */
.quantity {
	display: flex;
	align-items: center;
	width: fit-content;
	border: 1px solid var(--border-light);
	border-radius: 5px;
	overflow: hidden;
}

.quantity input.qty {
	width: 50px;
	text-align: center;
	border: none;
	padding: 0.6rem 0.5rem;
	font-size: 1rem;
	color: var(--text-dark);
	-moz-appearance: textfield;
}

.quantity input.qty::-webkit-inner-spin-button,
.quantity input.qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.quantity input.qty:focus {
	outline: none;
}

.quantity-button {
	width: 40px;
	height: 42px;
	border: none;
	background: var(--light-bg);
	color: var(--text-dark);
	cursor: pointer;
	font-size: 1.1rem;
	transition: background 0.2s;
}

.quantity-button:hover {
	background: var(--bg-cream-hover);
}

.quantity-minus {
	border-right: 1px solid var(--border-light);
}

.quantity-plus {
	border-left: 1px solid var(--border-light);
}

/* Fixed (non-editable) quantity - only 1 left in stock, so there's no
   actual choice to make (see assets/js/product-gallery.js). */
.quantity-fixed-value {
	display: block;
	min-width: 50px;
	padding: 0.6rem 0.5rem;
	text-align: center;
	font-size: 1rem;
	color: var(--text-dark);
}

/* Add to Cart Button */
.single_add_to_cart_button {
	width: 100%;
	padding: 1rem;
	background: var(--primary-muted) !important;
	color: white !important;
	border: none;
	border-radius: 5px;
	font-size: 1.05rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.single_add_to_cart_button:hover {
	background: var(--secondary-hover) !important;
	text-decoration: none;
}

.single_add_to_cart_button:disabled {
	background: var(--border-tan) !important;
	cursor: not-allowed;
}

/* Divider */
.product-info-divider {
	border: none;
	border-top: 1px solid var(--border-light);
	margin: 0;
}

/* Shipping Info */
.shipping-info {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
}

.shipping-icon {
	flex-shrink: 0;
	color: var(--primary-color);
	margin-top: 0.15rem;
}

.shipping-text {
	margin: 0;
}

.shipping-title {
	margin: 0;
	color: var(--text-dark);
	font-size: 0.95rem;
	font-weight: 600;
}

.shipping-note {
	margin: 0.2rem 0 0;
	color: var(--text-muted);
	font-size: 0.85rem;
}

/* Product Care */
.product-care h3 {
	margin: 0 0 0.75rem 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-dark);
}

.product-care-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.product-care-list li {
	position: relative;
	padding-left: 1rem;
	color: var(--text-gray);
	font-size: 0.9rem;
	line-height: 1.5;
}

.product-care-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--primary-color);
}

/* Origin Badge */
.product-origin-badge {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.product-origin-flag {
	display: inline-flex;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid var(--border-light);
	flex-shrink: 0;
}

.product-origin-flag svg {
	width: 100%;
	height: 100%;
}

/* Bottom row: care instructions, material/craft image, material/craft text
   and "Dokonalá kombinace" each sit in their own white card box - however
   many of those actually have content for this product (1 to 4, any of
   care-instructions/material-craft being optional - see single-product.php)
   share the row evenly instead of needing a column count per combination. */
.product-bottom-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	align-items: start;
}

.product-bottom-grid.product-bottom-grid--related-only {
	grid-template-columns: 1fr;
}

/* Exactly 2 boxes (the common case: "Dokonalá kombinace" + one of
   material-craft/care-instructions) - match the gallery/summary column
   widths above instead of splitting evenly. */
.product-bottom-grid.product-bottom-grid--two-boxes {
	grid-template-columns: 1.1fr .9fr;
}

.material-craft-image {
	background: var(--white);
	border: 1px solid var(--border-light);
	border-radius: 5px;
	overflow: hidden;
}

.material-craft-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.material-craft-content {
	background: var(--white);
	border: 1px solid var(--border-light);
	border-radius: 5px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.5rem;
}

.material-craft-block h2 {
	margin: 0 0 0.75rem 0;
	font-size: 1.3rem;
	color: var(--text-dark);
}

.material-craft-block h3 {
	margin: 0 0 0.75rem 0;
	font-size: 1.1rem;
	color: var(--text-dark);
}

.material-craft-block p {
	margin: 0;
	color: var(--text-gray);
	line-height: 1.6;
	font-size: 0.95rem;
}

/* Care Instructions ("Péče o výrobek") - admin-picked symbols, see
   woocommerce/single-product/care-instructions.php. */
.care-instructions {
	background: var(--white);
	border: 1px solid var(--border-light);
	border-radius: 5px;
	padding: 2rem;
}

.care-instructions h2 {
	margin: 0 0 1.25rem;
	font-size: 1.3rem;
	color: var(--text-dark);
}

.care-instructions-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.1rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.care-instructions-item {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.care-instructions-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

/* Most symbols are a single icon, but a couple (e.g. "wash in machine" +
   its garment icon) carry an optional second image (secondary_icon ACF
   field on the care_icon post) shown right next to the first. */
.care-instructions-icon img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	display: block;
}

.care-instructions-label {
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--text-gray);
}

@media (max-width: 480px) {
	.care-instructions-list {
		grid-template-columns: 1fr;
	}
}

/* Related Products / "Dokonalá kombinace" */
.related-products h2 {
	margin-bottom: 1.5rem;
	font-size: 1.3rem;
	color: var(--text-dark);
}

/* The related-products grid intentionally reuses the exact same card look
   as the shop/category grid - "products" on the <ul> (see
   related-products.php) pulls in all of ".woocommerce ul.products
   li.product ..." from woocommerce-category.css (card border,
   image/placeholder, title, description, price, onsale ribbon, hidden
   button), so none of that needs its own copy here - except the
   description, which this section hides (unlike the shop/category grid).
   Needs to match/exceed that selector's specificity (3 classes + 2
   elements) to actually win. */
.woocommerce ul.products.related-products-grid li.product .product-short-description {
	display: none;
}

/* The column COUNT mirrors the homepage product blocks
   (template-parts/homepage/products.php, latest-products.php): a fixed
   --product-columns custom property set inline per instance (4, here -
   see related-products.php) rather than the shop grid's own auto-fill,
   so it looks identical to "Top products" on the homepage. Needs to beat
   ".woocommerce ul.products" (2 classes + 1 element) on specificity. */
.woocommerce ul.products.related-products-grid {
	grid-template-columns: repeat(var(--product-columns, 4), 1fr) !important;
}

/* Stock Status */
.stock {
	margin: 0;
	padding: 0.5rem;
	border-radius: 5px;
	font-size: 0.9rem;
	font-weight: 600;
}

.stock.in-stock {
	color: var(--success-dark);
	background: var(--success-bg-light);
}

.stock.out-of-stock {
	color: var(--error-terracotta);
	background: var(--error-bg-soft);
}

/* Responsive */
@media (max-width: 1024px) {
	.product-content-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.flex-control-thumbs li {
		flex-basis: calc((100% - 4 * 1rem) / 5);
	}

	.product-bottom-grid {
		grid-template-columns: 1fr 1fr;
	}

	.related-products {
		grid-column: 1 / -1;
	}

	/* Caps the fixed --product-columns count at this breakpoint, same as
	   the homepage product blocks (woocommerce-category.css). */
	.woocommerce ul.products.related-products-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.material-craft-image {
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 768px) {
	.product-bottom-grid,
	.product-bottom-grid.product-bottom-grid--two-boxes {
		grid-template-columns: 1fr;
	}

	/* On a single-column mobile layout, "Péče o výrobek" reads better
	   above "Dokonalá kombinace" - flip the visual order without touching
	   the markup (desktop's own left/right order is unaffected). */
	.care-instructions {
		order: 1;
	}

	.related-products,
	.material-craft-image,
	.material-craft-content {
		order: 2;
	}
}

@media (max-width: 768px) {
	.woocommerce-single-product {
		padding: 1rem 0;
	}

	.product-title {
		font-size: 1.5rem;
	}

	.flex-control-thumbs li {
		flex-basis: calc((100% - 3 * 1rem) / 4);
	}
}

@media (max-width: 480px) {
	.product-title {
		font-size: 1.25rem;
	}

	.product-price {
		font-size: 1.15rem;
	}

	.flex-control-thumbs li {
		flex-basis: calc((100% - 2 * 1rem) / 3);
	}

	.single_add_to_cart_button {
		padding: 0.85rem;
		font-size: 1rem;
	}
}
