/* IRENNE single product page. Styles WooCommerce's native markup — no
   template override, so plugin-injected elements land in expected places. */

.ir-product {
	max-width: var(--ir-shell-max);
	margin: 0 auto;
	padding: clamp(16px, 2.5vw, 32px) var(--ir-side-pad) 0;
	font-family: var(--ir-font-ui);
}
.ir-product__crumbs { margin-bottom: clamp(14px, 2vw, 24px); }

/* ---------- Two columns: gallery / summary ---------- */
.ir-product div.product {
	display: grid;
	/* minmax(0,…): a bare 1fr has min:auto, so a child that measures wide
	   (flexslider writes JS-computed widths) sizes the TRACK to content and
	   the gallery overflows the phone viewport. */
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
}
@media (min-width: 900px) {
	.ir-product div.product {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: clamp(32px, 4vw, 64px);
		align-items: start;
	}
	/* Design: tabs continue the summary column; the gallery spans both
	   rows beside them. Related and recent span the full width below. */
	.ir-product .woocommerce-product-gallery { grid-column: 1; grid-row: 1 / span 2; }
	.ir-product .summary { grid-column: 2; grid-row: 1; }
	.ir-product .woocommerce-tabs { grid-column: 2; grid-row: 2; }
	.ir-product .related.products,
	.ir-product .ir-product__recent { grid-column: 1 / -1; }
}

/* ---------- Gallery: thumbnail rail LEFT of the photo (design) ---------- */
.ir-product .woocommerce-product-gallery {
	position: relative;
	display: flex;
	flex-direction: row-reverse;   /* viewport right, thumbs left */
	gap: 10px;
	align-items: flex-start;
}
.ir-product .woocommerce-product-gallery .flex-viewport,
.ir-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
	flex: 1 1 auto;
	min-width: 0;
	/* flexslider measures widths in JS and writes them inline; on a phone
	   the measurement can exceed the column and clip the photo. The photo
	   must never outgrow its container, whatever the script computed. */
	max-width: 100%;
}
.ir-product .woocommerce-product-gallery,
.ir-product .woocommerce-product-gallery__wrapper,
.ir-product .woocommerce-product-gallery__image,
.ir-product .woocommerce-product-gallery__image a,
.ir-product .woocommerce-product-gallery__image img {
	max-width: 100% !important;
}
/* Woo's sale flash, styled as the design's black box on the photo.
   Chain matches core's `.woocommerce span.onsale` + div.product (counts as
   a class) → (0,3,1): core loads after us and its olive circle at
   -0.5em/-0.5em (anchored to div.product = over the thumb rail) was
   winning the (0,1,1) tie. */
.woocommerce .ir-product div.product span.onsale {
	position: absolute;
	top: 14px;
	left: calc(72px + 10px + 14px);  /* clear the thumb rail */
	z-index: 6;
	background: var(--ir-dark);
	color: var(--ir-on-dark);
	border-radius: 0;
	min-width: 0;
	min-height: 0;
	line-height: 1;
	padding: 8px 12px;
	font-family: var(--ir-font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin: 0;
}
.ir-product .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	background: var(--ir-bg-soft);
}
/* Core pins this at z-99 with an a-qualified selector — match it and
   keep the trigger in the gallery's own layer, under header chrome. */
.ir-product a.woocommerce-product-gallery__trigger,
.ir-product .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
}
.ir-product .flex-control-thumbs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 0 0 72px;
	max-height: 640px;
	overflow-y: auto;
	scrollbar-width: none;
}
.ir-product .flex-control-thumbs::-webkit-scrollbar { display: none; }
.ir-product .flex-control-thumbs li { width: 72px; cursor: pointer; }
/* Phone: rail back under the photo as a row. */
@media (max-width: 599.98px) {
	/* Plain column: viewport (first child) on top, thumb rail under it.
	   column-reverse flipped the stack and hoisted the thumbs ABOVE the
	   photo — the rail belongs below per design. */
	.ir-product .woocommerce-product-gallery { flex-direction: column; }
	.ir-product .flex-control-thumbs { flex-direction: row; flex-basis: auto; max-height: none; overflow-x: auto; }
	.woocommerce .ir-product div.product span.onsale { left: 14px; }
}
.ir-product .flex-control-thumbs img {
	width: 100%;
	height: auto;
	opacity: 0.6;
	transition: opacity var(--ir-dur) var(--ir-ease);
}
.ir-product .flex-control-thumbs img.flex-active,
.ir-product .flex-control-thumbs img:hover { opacity: 1; }

/* ---------- Summary ---------- */
.ir-product__sku {
	font-size: 12px;
	color: var(--ir-text-muted);
	letter-spacing: 0.04em;
	margin-bottom: 14px;
}
.ir-product__colours { display: block; margin: 4px 0 18px; }
.ir-product__colours-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--ir-tracking-caps);
	text-transform: uppercase;
	margin-bottom: 8px;
}
.ir-product__colours-row { display: inline-flex; gap: 8px; }
.ir-product__colour { display: inline-flex; padding: 2px; }
.ir-product__colour .ir-swatch__chip { width: 22px; height: 22px; }
.ir-product__colour.is-current .ir-swatch__chip { box-shadow: 0 0 0 2px var(--ir-bg), 0 0 0 3px var(--ir-text); }
.ir-product__colour:hover .ir-swatch__chip { box-shadow: 0 0 0 2px var(--ir-bg), 0 0 0 3px var(--ir-text-muted); }

.ir-product__shipping-note {
	margin: 14px 0 6px;
	font-size: 11px;
	letter-spacing: var(--ir-tracking-caps);
	text-transform: uppercase;
	color: var(--ir-text);
}
.ir-product__help { margin: 4px 0 0; font-size: 12px; }
.ir-product__help summary {
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--ir-text);
	list-style: none;
}
.ir-product__help summary::-webkit-details-marker { display: none; }
.ir-product__help[open] summary { color: var(--ir-sale); }
.ir-product__help ul { list-style: none; margin: 10px 0 0; padding: 0; }
.ir-product__help li { margin-bottom: 6px; }
.ir-product__help a { color: var(--ir-text); text-decoration: none; }
.ir-product__help a:hover { color: var(--ir-sale); }

.ir-product .product_title {
	font-family: var(--ir-font-ui);
	font-size: clamp(20px, 2.4vw, 28px);
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 10px;
	color: var(--ir-text);
}
/* Woo paints the price olive via `.woocommerce:where(body:not(...))
   div.product p.price` — the :where() carries zero weight, but the rest is
   still (0,2,2) + 2 elements, so we need one more class to outrank it. */
.woocommerce .ir-product div.product p.price,
.ir-product div.product p.price,
.ir-product .woocommerce-variation-price .price {
	font-family: var(--ir-font-ui);
	font-size: 16px;
	color: var(--ir-text);
	margin-bottom: 22px;
	display: block;
}
.ir-product .summary .price ins { text-decoration: none; color: var(--ir-sale); }
.ir-product .summary .price del { color: var(--ir-text-muted); margin-right: 8px; }

/* Woo's variations table → stacked rows. Table display constrains the
   size-button row to the cell's shrink-to-fit width (stacking the buttons
   one per line), so the table collapses to block flow. */
.ir-product table.variations,
.ir-product table.variations tbody,
.ir-product table.variations tr,
.ir-product table.variations td,
.ir-product table.variations th {
	display: block;
	border: 0;
	padding: 0;
	background: none;
	width: 100%;
}
.ir-product table.variations { margin: 0 0 6px; }
.ir-product table.variations th.label {
	margin-bottom: 2px;
	text-align: left;   /* th centers by default */
}
.ir-product table.variations label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--ir-tracking-caps);
	text-transform: uppercase;
	color: var(--ir-text);
}
/* Once the buttons exist, the native select hides but keeps working
   underneath; without JS it stays visible. */
.ir-has-size-buttons select[name="attribute_pa_rozmir"] {
	position: absolute;
	width: 1px;
	height: 1px;
	clip: rect(0 0 0 0);
	overflow: hidden;
}
.ir-product .reset_variations {
	display: inline-block;
	margin-left: 12px;
	font-size: 11px;
	color: var(--ir-text-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ir-product .reset_variations:hover { color: var(--ir-sale); }

.ir-size-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 4px;
}
button.ir-size-buttons__btn {
	min-width: 52px;
	min-height: 40px;
	padding: 8px 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ir-bg);
	border: 1px solid var(--ir-border);
	border-radius: 0;
	font-family: var(--ir-font-ui);
	font-size: 12px;
	color: var(--ir-text);
	cursor: pointer;
	transition: border-color var(--ir-dur) var(--ir-ease), background var(--ir-dur) var(--ir-ease);
}
button.ir-size-buttons__btn:hover { border-color: var(--ir-text); }
button.ir-size-buttons__btn.is-active {
	background: var(--ir-dark);
	border-color: var(--ir-dark);
	color: var(--ir-on-dark);
}
button.ir-size-buttons__btn.is-oos {
	color: #c2c2c2;
	text-decoration: line-through;
	cursor: not-allowed;
}

.ir-product__size-chart {
	display: inline-block;
	margin: 4px 0 16px;
	font-size: 12px;
	color: var(--ir-text-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ir-product__size-chart:hover { color: var(--ir-sale); }

/* ---------- Quantity + add to cart ---------- */
.ir-product form.cart { margin-bottom: 20px; }
.ir-product .woocommerce-variation-price { margin-bottom: 12px; }
.ir-product form.cart .quantity input.qty {
	width: 84px;
	min-height: 52px;
	border: 1px solid var(--ir-border);
	border-radius: 0;
	text-align: center;
	font-family: var(--ir-font-ui);
	font-size: 16px;
	font-weight: 500;
	background: var(--ir-bg);
	/* native spinners + the browser's blue focus ring read cheap next to
	   the black CTA — brand focus instead */
	appearance: textfield;
	-moz-appearance: textfield;
	outline: none;
}
.ir-product form.cart .quantity input.qty::-webkit-inner-spin-button,
.ir-product form.cart .quantity input.qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.ir-product form.cart .quantity input.qty:focus {
	border-color: var(--ir-text);
	outline: none;
	box-shadow: none;
}
.ir-product form.cart button[type="submit"] {
	min-height: 46px;
	padding: 0 34px;
	background: var(--ir-dark);
	color: var(--ir-on-dark);
	border: 1px solid var(--ir-dark);
	border-radius: 0;
	font-family: var(--ir-font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--ir-tracking-caps);
	text-transform: uppercase;
	cursor: pointer;
	transition: background var(--ir-dur) var(--ir-ease);
}
.ir-product form.cart button[type="submit"]:hover { background: #333; }
.ir-product form.cart button[type="submit"]:disabled,
.ir-product form.cart button[type="submit"].disabled {
	opacity: 1;
	background: var(--ir-bg-soft);
	border-color: var(--ir-border);
	color: var(--ir-text-muted);
	cursor: not-allowed;
}
.ir-product form.cart .woocommerce-variation-add-to-cart,
.ir-product form.cart:not(.variations_form) {
	display: flex;
	align-items: stretch;
	gap: 10px;
}
/* Design: the button spans the summary column. */
.ir-product form.cart button[type="submit"] { flex: 1 1 auto; }

/* ---------- Meta ---------- */
.ir-product .product_meta {
	font-size: 12px;
	color: var(--ir-text-muted);
	letter-spacing: 0.03em;
}
.ir-product .product_meta > span { display: block; margin-bottom: 6px; }
.ir-product .product_meta a { color: var(--ir-text); text-decoration: none; }
.ir-product .product_meta a:hover { color: var(--ir-sale); }

/* ---------- Tabs ---------- */
.ir-product .woocommerce-tabs { margin-top: clamp(28px, 4vw, 56px); }
.ir-product .woocommerce-tabs ul.tabs {
	list-style: none;
	margin: 0 0 20px;
	padding: 0 0 0 0;
	display: flex;
	/* Labels wrap to at most 2 lines (design shows «ЗБЕРИ / ОБРАЗ»); when the
	   row is too narrow for that — EN labels are longer — the row itself
	   wraps instead of squeezing a label into 3 lines. */
	flex-wrap: wrap;
	gap: 8px 28px;
	border-bottom: 1px solid var(--ir-border);
}
.ir-product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; flex: 0 1 auto; min-width: 0; }
.ir-product .woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: 0 0 12px;
	font-family: var(--ir-font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--ir-tracking-caps);
	text-transform: uppercase;
	color: var(--ir-text-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	margin-bottom: -1px;
	transition: color var(--ir-dur) var(--ir-ease);
}
.ir-product .woocommerce-tabs ul.tabs li a:hover { color: var(--ir-text); }
.ir-product .woocommerce-tabs ul.tabs li.active a {
	color: var(--ir-text);
	border-bottom-color: var(--ir-text);
}
.ir-product .woocommerce-Tabs-panel {
	font-size: 13px;
	line-height: 1.7;
	color: var(--ir-text);
}
.ir-product .woocommerce-Tabs-panel > h2:first-child { display: none; }
.ir-product table.woocommerce-product-attributes {
	width: 100%;
	max-width: 560px;
	border-collapse: collapse;
}
.ir-product table.woocommerce-product-attributes th,
.ir-product table.woocommerce-product-attributes td {
	border: 0;
	border-bottom: 1px solid var(--ir-border);
	padding: 10px 0;
	background: none;
	font-size: 12.5px;
	text-align: left;
	font-style: normal;
}
.ir-product table.woocommerce-product-attributes th {
	color: var(--ir-text-muted);
	font-weight: 400;
	width: 45%;
}
.ir-product table.woocommerce-product-attributes p { margin: 0; }

/* ---------- Related ---------- */
.ir-product .related.products { margin-top: var(--ir-section-gap); }
.ir-product .related.products > h2 {
	font-family: var(--ir-font-ui);
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 600;
	letter-spacing: var(--ir-tracking-caps);
	text-transform: uppercase;
	margin: 0 0 20px;
	color: var(--ir-text);
}
.ir-product .related.products { position: relative; }
.ir-product .related ul.products {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 16px) / 2.2);
	gap: 28px 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.ir-product .related ul.products::-webkit-scrollbar { display: none; }
.ir-product .related li.product { scroll-snap-align: start; }
@media (min-width: 600px) {
	.ir-product .related ul.products { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
}
@media (min-width: 1200px) {
	.ir-product .related ul.products { grid-auto-columns: calc((100% - 4 * 16px) / 5); }
}
.ir-product .related li.product {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}
.ir-product .related ul.products::before,
.ir-product .related ul.products::after { display: none !important; }

/* ---------- Notices ---------- */
.ir-product .woocommerce-message,
.ir-product .woocommerce-info,
.ir-product .woocommerce-error {
	background: var(--ir-bg-soft);
	border: 0;
	border-top: 2px solid var(--ir-dark);
	color: var(--ir-text);
	font-family: var(--ir-font-ui);
	font-size: 13px;
	padding: 16px 20px;
	margin-bottom: clamp(16px, 2.5vw, 28px);
}
.ir-product .woocommerce-message::before,
.ir-product .woocommerce-info::before { color: var(--ir-text); }
.ir-product .woocommerce-message .button {
	background: var(--ir-dark);
	color: var(--ir-on-dark);
	border-radius: 0;
	font-family: var(--ir-font-ui);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--ir-tracking-caps);
	text-transform: uppercase;
	padding: 10px 18px;
}
.ir-product .woocommerce-error { border-top-color: var(--ir-sale); }

/* ---------- Збери образ: arrowed rail ---------- */
.ir-look { position: relative; min-width: 0; }
.ir-look__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 16px) / 2);
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.ir-look__track::-webkit-scrollbar { display: none; }
.ir-look__track .ir-card { scroll-snap-align: start; }
button.ir-look__arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	z-index: 2;
	background: rgba(255, 255, 255, 0.85);
	border: 0;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--ir-text);
	padding: 8px 5px;
}
button.ir-look__arrow--prev { left: 0; }
button.ir-look__arrow--next { right: 0; }
@media (max-width: 899.98px) {
	button.ir-look__arrow { display: none; }
}

/* ---------- Недавно переглянуті ---------- */
.ir-product__recent { margin-top: var(--ir-section-gap); }
.ir-product__recent > h2 {
	font-family: var(--ir-font-ui);
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 600;
	letter-spacing: var(--ir-tracking-caps);
	text-transform: uppercase;
	margin: 0 0 20px;
	color: var(--ir-text);
}
.ir-product__recent-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * var(--ir-gutter)) / 2.35);
	gap: var(--ir-gutter);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.ir-product__recent-track::-webkit-scrollbar { display: none; }
.ir-product__recent-track .ir-card { scroll-snap-align: start; }
@media (min-width: 600px) {
	.ir-product__recent-track { grid-auto-columns: calc((100% - 3 * var(--ir-gutter)) / 4); }
}
@media (min-width: 1200px) {
	.ir-product__recent-track { grid-auto-columns: calc((100% - 4 * var(--ir-gutter)) / 5); }
}
.ir-product__recent { position: relative; }
.ir-product__recent .ir-rail__arrow { top: 55%; }

/* ---------- Added-to-cart modal ---------- */
.ir-atc { position: fixed; inset: 0; z-index: 340; }
.ir-atc[hidden] { display: none; }
.ir-atc__scrim { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.7); }
.ir-atc__sheet {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(440px, calc(100vw - 32px));
	max-height: 90vh;
	max-height: min(90vh, calc(100dvh - 24px)); /* iOS: vh ignores the collapsed URL bar */
	overflow-y: auto;
	background: var(--ir-bg);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
	padding: 44px 32px 28px;
	text-align: center;
	font-family: var(--ir-font-ui);
}
button.ir-atc__close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: var(--ir-font-ui);
	font-size: 11px;
	letter-spacing: var(--ir-tracking-caps);
	text-transform: uppercase;
	color: var(--ir-text);
}
.ir-atc__title {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: var(--ir-tracking-caps);
	text-transform: uppercase;
	margin-bottom: 20px;
}
.ir-atc__media img {
	width: 160px;
	height: auto;
	margin: 0 auto 14px;
	display: block;
	background: var(--ir-bg-soft);
}
.ir-atc__name { font-size: 13px; letter-spacing: 0.03em; margin-bottom: 4px; }
.ir-atc__price { font-size: 13px; color: var(--ir-text); margin-bottom: 20px; }
.ir-atc__price del { color: var(--ir-text-muted); margin-right: 6px; }
.ir-atc__price ins { text-decoration: none; color: var(--ir-sale); }
button.ir-atc__continue {
	margin-top: 14px;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: var(--ir-font-ui);
	font-size: 12px;
	color: var(--ir-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}
button.ir-atc__continue:hover { color: var(--ir-sale); }

/* ---------- Fluid phone type (reference-site parity) ----------
   The reference scales its mobile type with vw; fixed px read small on
   wider phones. Same ladder as the catalog pass:
     meta  clamp(11px, 2.9vw, 15px)
     body  clamp(13px, 3.2vw, 16px)
     ctrl  clamp(14px, 3.4vw, 17px)
   Appended last so equal-specificity re-declarations win. */
@media (max-width: 599.98px) {
	.ir-product__sku { font-size: clamp(12px, 3vw, 15px); }
	.ir-size-buttons button { font-size: clamp(13px, 3.2vw, 16px); }
	.ir-product__size-chart,
	.ir-product__shipping,
	.ir-product__help,
	.ir-product__help a { font-size: clamp(12px, 3vw, 15px); }
	.ir-product button.single_add_to_cart_button,
	.woocommerce div.product button.single_add_to_cart_button { font-size: clamp(13px, 3.2vw, 16px); }
	.ir-product .woocommerce-tabs ul.tabs li a { font-size: clamp(13px, 3.2vw, 16px); }
	.woocommerce-Tabs-panel { font-size: clamp(13px, 3.2vw, 16px); }
	.ir-atc__title { font-size: clamp(15px, 3.8vw, 19px); }
	.ir-atc__name,
	.ir-atc__price { font-size: clamp(13px, 3.2vw, 16px); }
	.ir-atc__continue { font-size: clamp(13px, 3vw, 16px); }
}

/* Rail arrows are pointer affordances — they must NEVER render on touch
   widths, whatever later stylesheet or injected markup re-displays them
   (this file loads after sections.css, and !important ends the war). */
@media (max-width: 899.98px) {
	.ir-rail__arrow,
	.ir-look__arrow,
	.related.products [data-ir-carousel] {
		display: none !important;
	}
}

/* ---------- Design-fidelity pass (client's frame, 08.08) ---------- */

/* The photo must fill its column — demo placeholders render at natural
   width and float small in the 7fr track. Thumbs (.flex-control-thumbs)
   are outside __image and keep their own size. */
.ir-product .woocommerce-product-gallery__image img,
.ir-product .flex-viewport .woocommerce-product-gallery__image img {
	width: 100%;
}

/* ДОДАТИ В КОШИК: black at every stage, filling the row beside the qty
   (per design). Woo's disabled state (size not chosen yet) reads as a
   dimmed version of the same black button, not a gray ghost. */
.ir-product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 12px;
	align-items: stretch;
}
.ir-product form.cart button[type="submit"] {
	flex: 1 1 auto;
}
.ir-product form.cart button[type="submit"]:hover,
.ir-product form.cart button[type="submit"]:focus {
	background: var(--ir-dark);
	color: var(--ir-on-dark);
	opacity: 0.9;
}
.ir-product form.cart button[type="submit"].disabled,
.ir-product form.cart button[type="submit"]:disabled {
	background: var(--ir-dark);
	color: var(--ir-on-dark);
	opacity: 0.45;
	cursor: not-allowed;
}

/* Size pills at the design's compact desktop scale (touch keeps 40px). */
@media (min-width: 900px) {
	button.ir-size-buttons__btn {
		min-height: 34px;
		min-width: 66px;
		padding: 6px 10px;
		font-size: 11px;
	}
}

/* Woo core floats gallery/summary at 48% (loads after this file) — in
   our grid they must fill their tracks. Body carries .woocommerce, so
   (0,2,3) beats core's (0,1,3). */
.woocommerce .ir-product div.product div.images,
.woocommerce .ir-product div.product div.summary {
	width: 100%;
	float: none;
	margin-bottom: 0;
}

/* Woo core paints tabs as gray boxes with pseudo-element borders and
   loads after this file at (0,3,3) — re-assert the design's plain
   underline tabs at (0,4,2). */
.woocommerce .ir-product div.product .woocommerce-tabs ul.tabs {
	background: none;
	border-bottom: 1px solid var(--ir-border);
	padding: 0;
	margin: 0 0 20px;
	overflow: visible;
}
.woocommerce .ir-product div.product .woocommerce-tabs ul.tabs::before,
.woocommerce .ir-product div.product .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce .ir-product div.product .woocommerce-tabs ul.tabs li {
	background: none;
	border: 0;
	border-radius: 0;
	margin: 0;
	padding: 0;
}
.woocommerce .ir-product div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce .ir-product div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce .ir-product div.product .woocommerce-tabs ul.tabs li a {
	padding: 0 0 12px;
	font-weight: 600;
	color: var(--ir-text-muted);
	border-bottom: 1px solid transparent;
	margin-bottom: -1px;
}
.woocommerce .ir-product div.product .woocommerce-tabs ul.tabs li.active {
	background: none;
	border: 0;
}
.woocommerce .ir-product div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--ir-text);
	border-bottom-color: var(--ir-text);
}

/* Tab panels keep a floor so switching to a short/placeholder tab never
   jumps the layout; placeholder reads quiet. */
.ir-product .woocommerce-Tabs-panel { min-height: 140px; }
.ir-tab-placeholder { color: var(--ir-text-muted); font-size: 13px; }
