/**
 * Emin Kara — single product UX (scoped to body.emin-kara-product-ux).
 * Soft, premium surface language (calm neutrals + subtle depth), SF/Inter stack.
 */

:root {
	--emin-shell-max: 1400px;
	--emin-fg: #1d1d1f;
	--emin-fg-soft: #6e6e73;
	--emin-muted: #86868b;
	--emin-bg: #ffffff;
	--emin-bg-soft: #f5f5f7;
	--emin-bg-elevated: #fafafa;
	--emin-border: rgba(0, 0, 0, 0.06);
	--emin-border-strong: rgba(0, 0, 0, 0.1);
	--emin-accent: #1d1d1f;
	--emin-accent-hover: #424245;
	--emin-accent-soft: rgba(29, 29, 31, 0.06);
	--emin-focus: #0077ed;
	--emin-focus-ring: rgba(0, 119, 237, 0.18);
	--emin-price: #1d1d1f;
	--emin-price-old: #86868b;
	--emin-radius-sm: 12px;
	--emin-radius-md: 18px;
	--emin-radius-lg: 28px;
	--emin-radius-pill: 980px;
	--emin-shadow-1: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.06);
	--emin-shadow-2: 0 8px 30px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04);
	--emin-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Smooth in-page anchor / programmatic scroll on product template only. */
html:has(> body.emin-kara-product-ux.single-product) {
	scroll-behavior: smooth;
}

/* Centered product shell (width + horizontal padding). */
body.emin-kara-product-ux.single-product #primary,
body.emin-kara-product-ux.single-product main#main,
body.emin-kara-product-ux.single-product #main,
body.emin-kara-product-ux.single-product .content-area,
body.emin-kara-product-ux.single-product #content.site-content,
body.emin-kara-product-ux.single-product .site-main {
	max-width: var(--emin-shell-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(1rem, 4vw, 2.5rem);
	padding-right: clamp(1rem, 4vw, 2.5rem);
	width: 100%;
	box-sizing: border-box;
}

body.emin-kara-product-ux.single-product {
	background-color: var(--emin-bg-soft);
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"SF Pro Text",
		"SF Pro Display",
		"Inter",
		"Segoe UI",
		system-ui,
		sans-serif;
	font-feature-settings: "kern", "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────
   Product layout (robust grid)
   ───────────────────────────────────────── */

@media (min-width: 992px) {
	/* Beat Kadence/Woo float layout (div.images + div.summary at 48%) so summary stays beside gallery. */
	body.emin-kara-product-ux.single-product div.product.product-type-variable,
	body.emin-kara-product-ux.single-product div.product.product-type-simple {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: 40px;
		row-gap: 0;
		align-items: start;
	}

	body.emin-kara-product-ux.single-product div.product.product-type-variable .woocommerce-product-gallery,
	body.emin-kara-product-ux.single-product div.product.product-type-simple .woocommerce-product-gallery,
	body.emin-kara-product-ux.single-product div.product.product-type-variable #emin-color-gallery-root,
	body.emin-kara-product-ux.single-product div.product.product-type-simple #emin-color-gallery-root {
		grid-column: 1;
		grid-row: 1;
		position: relative;
		top: auto;
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
		clear: none !important;
	}

	body.emin-kara-product-ux.single-product div.product.product-type-variable .summary.entry-summary,
	body.emin-kara-product-ux.single-product div.product.product-type-simple .summary.entry-summary {
		grid-column: 2;
		grid-row: 1;
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
		clear: none !important;
		padding-top: clamp(0.35rem, 1vw, 0.75rem);
	}

	body.emin-kara-product-ux.single-product div.product.product-type-variable .woocommerce-tabs,
	body.emin-kara-product-ux.single-product div.product.product-type-variable .related.products,
	body.emin-kara-product-ux.single-product div.product.product-type-variable .upsells.products,
	body.emin-kara-product-ux.single-product div.product.product-type-simple .woocommerce-tabs,
	body.emin-kara-product-ux.single-product div.product.product-type-simple .related.products,
	body.emin-kara-product-ux.single-product div.product.product-type-simple .upsells.products {
		grid-column: 1 / -1;
	}
}

/* ─────────────────────────────────────────
   Gallery
   ───────────────────────────────────────── */

body.emin-kara-product-ux.single-product .woocommerce-product-gallery {
	background: var(--emin-bg-elevated);
	border-radius: var(--emin-radius-lg);
	padding: clamp(1.35rem, 2.8vw, 2rem) clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem);
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	opacity: 1 !important;
	/* contain breaks some Flexslider + zoom paint paths; native gallery needs normal containment. */
	contain: none;
	border: 1px solid var(--emin-border);
	box-shadow: var(--emin-shadow-1);
}

body.emin-kara-product-ux.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
	width: 100%;
	margin: 0;
}

body.emin-kara-product-ux.single-product .woocommerce-product-gallery .flex-viewport,
body.emin-kara-product-ux.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
	border-radius: var(--emin-radius-md);
	overflow: hidden;
	background: var(--emin-bg);
}

/* Aspect-ratio caps layout growth; do NOT set height: auto !important here — it overrides
   WooCommerce Flexslider / single-product.js inline height on .flex-viewport and can blank the main stage. */
body.emin-kara-product-ux.single-product .woocommerce-product-gallery .flex-viewport {
	aspect-ratio: 4 / 5;
	max-height: 720px;
	position: relative;
	min-height: 0;
}

/* Do NOT force float:none on slides inside .flex-viewport — Flexslider uses float:left
   inline on each slide; overriding it collapses the horizontal track (only slide 1 visible; others = white). */
body.emin-kara-product-ux.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
	position: relative;
	aspect-ratio: 4 / 5;
	background: var(--emin-bg);
	overflow: hidden;
	width: 100%;
	display: block;
	max-height: 720px;
	opacity: 1 !important;
	visibility: visible !important;
}

/* Hard reset when Flexslider is NOT wrapping the gallery (single-image case, or after our destroy).
   Rule stops matching automatically the moment Flexslider moves the wrapper inside .flex-viewport. */
body.emin-kara-product-ux.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper,
body.emin-kara-product-ux.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
	transform: none !important;
	left: 0 !important;
	top: 0 !important;
}

body.emin-kara-product-ux.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
	float: none !important;
}

body.emin-kara-product-ux.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image > a {
	display: block;
	width: 100%;
	height: 100%;
}

body.emin-kara-product-ux.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	background: var(--emin-bg);
	transition: transform 0.55s var(--emin-ease);
}

body.emin-kara-product-ux.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image:hover img {
	transform: scale(1.02);
}

/*
 * IMPORTANT: Do not position .flex-viewport .woocommerce-product-gallery__wrapper or its slides
 * as absolute/fill — that collapses Flexslider's wide horizontal track so only slide 1 paints;
 * other thumbnails switch to a blank (white) stage.
 */
body.emin-kara-product-ux.single-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
	opacity: 1 !important;
	visibility: visible !important;
	aspect-ratio: auto;
	max-height: none;
}

body.emin-kara-product-ux.single-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image img {
	position: relative;
	inset: auto;
	width: 100%;
	height: auto;
	max-height: min(88vh, 920px);
	object-fit: contain;
}

body.emin-kara-product-ux.single-product .woocommerce-product-gallery__trigger {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid var(--emin-border);
	border-radius: 999px;
	width: 2.5rem;
	height: 2.5rem;
	display: grid;
	place-items: center;
	box-shadow: var(--emin-shadow-1);
	right: 18px !important;
	top: 18px !important;
	z-index: 5;
	transition: background 0.2s var(--emin-ease), transform 0.2s var(--emin-ease);
}

body.emin-kara-product-ux.single-product .woocommerce-product-gallery__trigger:hover {
	background: #fff;
	transform: scale(1.05);
}

body.emin-kara-product-ux.single-product .woocommerce-product-gallery .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 0.55rem;
	margin: 1.45rem 0 0;
	padding: 0.35rem 0 0;
	list-style: none;
	width: 100% !important;
}

body.emin-kara-product-ux.single-product .woocommerce-product-gallery .flex-control-thumbs li {
	float: none !important;
	width: 100% !important;
	max-width: 100%;
	margin: 0;
	min-width: 0;
}

body.emin-kara-product-ux.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--emin-radius-sm);
	border: 2px solid transparent;
	opacity: 0.72;
	cursor: pointer;
	transition: border-color 0.2s var(--emin-ease), opacity 0.2s var(--emin-ease), transform 0.2s var(--emin-ease),
		box-shadow 0.2s var(--emin-ease);
}

body.emin-kara-product-ux.single-product .woocommerce-product-gallery .flex-control-thumbs li img:hover {
	opacity: 1;
	transform: translateY(-1px);
}

body.emin-kara-product-ux.single-product .woocommerce-product-gallery .flex-control-thumbs li.flex-active img,
body.emin-kara-product-ux.single-product .woocommerce-product-gallery .flex-control-thumbs li.flex-active-slide img {
	border-color: rgba(0, 119, 237, 0.45);
	box-shadow: 0 0 0 3px var(--emin-focus-ring);
	opacity: 1;
}

/* Gallery "ready" class is still toggled in JS for compatibility; avoid hiding the
   wrapper with opacity/transform — that fought Flexslider + our rebuilds and caused
   visible layout shake ("deprem"). */

/* ─────────────────────────────────────────
   Summary typography
   ───────────────────────────────────────── */

body.emin-kara-product-ux.single-product .summary.entry-summary {
	width: 100%;
	max-width: 100%;
}

body.emin-kara-product-ux.single-product .summary.entry-summary .product_title {
	font-family: inherit;
	font-weight: 600;
	font-size: clamp(1.65rem, 2.1vw, 2.35rem);
	letter-spacing: -0.03em;
	line-height: 1.12;
	color: var(--emin-fg);
	margin: 0 0 clamp(0.75rem, 1.8vw, 1.15rem);
}

/* ─────────────────────────────────────────
   Price
   ───────────────────────────────────────── */

body.emin-kara-product-ux.single-product .summary.entry-summary > p.price,
body.emin-kara-product-ux.single-product .summary.entry-summary .woocommerce-variation-price .price,
body.emin-kara-product-ux.single-product #emin-live-variation-price .price {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--emin-price);
	line-height: 1.15;
}

body.emin-kara-product-ux.single-product .emin-live-price-section {
	margin: 0 0 1.35rem;
	padding: 0.85rem 1rem;
	border-radius: var(--emin-radius-md);
	background: var(--emin-bg-elevated);
	border: 1px solid var(--emin-border);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

body.emin-kara-product-ux.single-product #emin-live-variation-price {
	margin: 0;
	min-height: 2.25rem;
	transition: opacity 0.2s var(--emin-ease);
}

body.emin-kara-product-ux.single-product .emin-selected-price-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

body.emin-kara-product-ux.single-product .emin-selected-price-label {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--emin-fg-soft);
}

body.emin-kara-product-ux.single-product .emin-selected-price-value .price {
	margin: 0;
}

body.emin-kara-product-ux.single-product #emin-live-variation-price.emin-live-muted .price {
	font-size: 1rem;
	font-weight: 500;
	color: var(--emin-muted);
}

body.emin-kara-product-ux.single-product .summary.entry-summary del .amount {
	color: var(--emin-price-old);
	font-weight: 500;
	font-size: 0.85em;
	margin-right: 0.4rem;
}

body.emin-kara-product-ux.single-product .summary.entry-summary ins {
	background: transparent;
	text-decoration: none;
}

/* Variable: only #emin-live-variation-price — hide Woo default summary price (range).
   Skip pseudo-simple (1 variation) products: there the live price mount is NOT rendered,
   so the core p.price is the ONLY price output and must stay visible. */
body.emin-kara-product-ux.single-product:not(.emin-kara-pseudo-simple) div.product.product-type-variable .summary.entry-summary > p.price {
	display: none !important;
}

/* Theme / block duplicate price blocks (variable summary). */
body.emin-kara-product-ux.single-product:not(.emin-kara-pseudo-simple) div.product.product-type-variable .summary.entry-summary .wc-block-components-product-price {
	display: none !important;
}

body.emin-kara-product-ux.single-product
	form.variations_form
	.single_variation_wrap
	.woocommerce-variation-price {
	display: none !important;
}

/* ─────────────────────────────────────────
   Variation form (table + labels + selects)
   ───────────────────────────────────────── */

body.emin-kara-product-ux.single-product form.variations_form {
	margin: 0 0 1.25rem;
}

body.emin-kara-product-ux.single-product table.variations {
	display: block;
	width: 100%;
	margin: 0 0 1rem;
	border: none;
	border-collapse: collapse;
}

body.emin-kara-product-ux.single-product table.variations tbody {
	display: block;
	width: 100%;
}

body.emin-kara-product-ux.single-product table.variations tr {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.35rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--emin-border);
}

body.emin-kara-product-ux.single-product table.variations tr:last-child {
	border-bottom: none;
}

body.emin-kara-product-ux.single-product table.variations tr.emin-variation-hide-row {
	display: none;
}

body.emin-kara-product-ux.single-product table.variations th.label,
body.emin-kara-product-ux.single-product table.variations td.value {
	display: block;
	padding: 0;
	background: transparent;
	border: none;
}

body.emin-kara-product-ux.single-product table.variations th.label label {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--emin-fg-soft);
	margin: 0;
}

body.emin-kara-product-ux.single-product table.variations td.value a.reset_variations {
	display: inline-block;
	margin-top: 0.25rem;
	font-size: 0.82rem;
	color: var(--emin-muted);
	text-decoration: none;
	border-bottom: 1px dashed currentColor;
}

body.emin-kara-product-ux.single-product table.variations td.value a.reset_variations:hover {
	color: var(--emin-fg);
}

/* Non-swatch dropdowns (size, etc.) */
body.emin-kara-product-ux.single-product table.variations select:not(.emin-swatch-select) {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	padding: 0.75rem 2.5rem 0.75rem 0.9rem;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--emin-fg);
	background-color: var(--emin-bg-elevated);
	border: 1px solid var(--emin-border-strong);
	border-radius: var(--emin-radius-md);
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--emin-fg-soft) 50%),
		linear-gradient(135deg, var(--emin-fg-soft) 50%, transparent 50%);
	background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.85rem) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	cursor: pointer;
	transition: border-color 0.15s var(--emin-ease), box-shadow 0.15s var(--emin-ease);
}

body.emin-kara-product-ux.single-product table.variations select:not(.emin-swatch-select):hover {
	border-color: var(--emin-fg-soft);
}

body.emin-kara-product-ux.single-product table.variations select:not(.emin-swatch-select):focus {
	outline: none;
	border-color: rgba(0, 119, 237, 0.45);
	box-shadow: 0 0 0 4px var(--emin-focus-ring);
}

/* ─────────────────────────────────────────
   Color swatches
   ───────────────────────────────────────── */

.emin-variation-swatches-wrap {
	position: relative;
	margin: 0;
}

.emin-variation-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	margin: 0;
}

.emin-variation-swatches .emin-swatch-btn {
	border: 1.5px solid var(--emin-border);
	background: var(--emin-bg);
	color: var(--emin-fg);
	border-radius: 999px;
	min-height: 2.5rem;
	min-width: 2.5rem;
	padding: 0.35rem 0.95rem;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	transition:
		border-color 0.18s var(--emin-ease),
		transform 0.18s var(--emin-ease),
		box-shadow 0.18s var(--emin-ease);
}

.emin-variation-swatches .emin-swatch-btn:hover {
	border-color: var(--emin-fg-soft);
	transform: translateY(-1px);
	box-shadow: var(--emin-shadow-1);
}

.emin-variation-swatches .emin-swatch-btn.emin-swatch-active {
	border-color: rgba(0, 119, 237, 0.45);
	box-shadow: 0 0 0 3px var(--emin-focus-ring);
}

.emin-variation-swatches .emin-swatch-btn.emin-swatch-disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
	position: relative;
}

.emin-variation-swatches .emin-swatch-btn.emin-swatch-disabled::after {
	content: '';
	position: absolute;
	left: 10%;
	right: 10%;
	top: 50%;
	border-top: 1.5px solid currentColor;
	transform: rotate(-20deg);
}

/* Out of stock swatch: red diagonal line across the button + dim image. */
.emin-variation-swatches .emin-swatch-btn.emin-swatch-out-of-stock {
	position: relative;
	cursor: not-allowed;
	pointer-events: none;
}

.emin-variation-swatches .emin-swatch-btn.emin-swatch-out-of-stock img {
	opacity: 0.55;
	filter: grayscale(0.6);
}

.emin-variation-swatches .emin-swatch-btn.emin-swatch-out-of-stock::before,
.emin-variation-swatches .emin-swatch-btn.emin-swatch-out-of-stock::after {
	content: '';
	position: absolute;
	left: 8%;
	right: 8%;
	top: 50%;
	border-top: 2px solid #dc2626;
	border-radius: 2px;
	pointer-events: none;
	z-index: 3;
}

.emin-variation-swatches .emin-swatch-btn.emin-swatch-out-of-stock::before {
	transform: rotate(-18deg);
}

.emin-variation-swatches .emin-swatch-btn.emin-swatch-out-of-stock::after {
	transform: rotate(18deg);
}

.emin-variation-swatches.emin-swatch-row-color .emin-swatch-item:has(.emin-swatch-out-of-stock) .emin-swatch-caption {
	color: #9ca3af;
	text-decoration: line-through;
	text-decoration-color: rgba(220, 38, 38, 0.7);
}

/* Color row → chips with Greek label above each circle; extra horizontal breathing room. */
.emin-variation-swatches.emin-swatch-row-color {
	flex-wrap: nowrap;
	gap: 1.05rem;
	align-items: flex-end;
	justify-content: flex-start;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0.35rem 0 0.5rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scroll-snap-type: x proximity;
}

.emin-variation-swatches.emin-swatch-row-color .emin-swatch-item--color {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 0.4rem;
	flex: 0 0 auto;
	scroll-snap-align: start;
	max-width: 5.5rem;
}

.emin-variation-swatches.emin-swatch-row-color .emin-swatch-caption--above {
	display: block;
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
	color: var(--emin-fg-soft);
	letter-spacing: 0.02em;
	word-break: break-word;
}

.emin-variation-swatches.emin-swatch-row-color::-webkit-scrollbar {
	height: 5px;
}

.emin-variation-swatches.emin-swatch-row-color::-webkit-scrollbar-thumb {
	background: var(--emin-border-strong);
	border-radius: 999px;
}

.emin-variation-swatches.emin-swatch-row-color .emin-swatch-btn {
	width: 2.85rem;
	height: 2.85rem;
	min-width: 2.85rem;
	max-width: 2.85rem;
	min-height: 2.85rem;
	padding: 0;
	border-radius: 50%;
	overflow: hidden;
	background: var(--emin-bg);
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	position: relative;
	flex: 0 0 auto;
}

.emin-variation-swatches.emin-swatch-row-color .emin-swatch-btn.emin-swatch-btn--image {
	padding: 2px;
}

.emin-variation-swatches.emin-swatch-row-color .emin-swatch-btn.emin-swatch-btn--image img {
	display: block;
	width: calc(2.85rem - 6px);
	height: calc(2.85rem - 6px);
	object-fit: cover;
	object-position: left top;
	border-radius: 50%;
}

.emin-variation-swatches.emin-swatch-row-color .emin-swatch-btn.emin-swatch-btn--noimg {
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 45%, #f8fafc 100%);
	border-color: var(--emin-border-strong);
}

.emin-variation-swatches.emin-swatch-row-color .emin-swatch-btn.emin-swatch-btn--text {
	width: auto;
	height: auto;
	min-width: 3rem;
	min-height: 2.5rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-size: 0.75rem;
	line-height: 1.2;
	white-space: nowrap;
}

.emin-variation-swatches.emin-swatch-row-color .emin-swatch-btn.emin-swatch-active {
	border-color: rgba(0, 119, 237, 0.45);
	box-shadow: 0 0 0 3px var(--emin-focus-ring);
	transform: none;
}

/* Visually hide the native select powering the swatches (accessible for a11y). */
.emin-variation-swatches select.emin-swatch-select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ─────────────────────────────────────────
   Quantity + Add to cart
   ───────────────────────────────────────── */

body.emin-kara-product-ux.single-product form.cart {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

body.emin-kara-product-ux.single-product form.cart .woocommerce-variation-add-to-cart,
body.emin-kara-product-ux.single-product form.cart .variations_button {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 0.85rem;
}

body.emin-kara-product-ux.single-product form.cart .woocommerce-variation-add-to-cart .quantity,
body.emin-kara-product-ux.single-product form.cart .variations_button .quantity {
	margin-right: 0;
}

body.emin-kara-product-ux.single-product form.cart .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--emin-border-strong);
	border-radius: var(--emin-radius-md);
	overflow: hidden;
	margin-right: 0;
	background: var(--emin-bg-elevated);
}

body.emin-kara-product-ux.single-product form.cart .quantity input.qty {
	width: 3rem;
	height: 2.85rem;
	padding: 0;
	border: none;
	background: transparent;
	text-align: center;
	font-weight: 600;
	color: var(--emin-fg);
	appearance: textfield;
}

body.emin-kara-product-ux.single-product form.cart .quantity input.qty::-webkit-outer-spin-button,
body.emin-kara-product-ux.single-product form.cart .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

body.emin-kara-product-ux.single-product form.cart button.single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1.25;
	background: var(--emin-accent);
	color: #fff;
	border: none;
	border-radius: var(--emin-radius-pill);
	padding: 0.95rem 1.75rem;
	font-size: 0.94rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-transform: none;
	cursor: pointer;
	transition: transform 0.2s var(--emin-ease), box-shadow 0.25s var(--emin-ease), background 0.2s var(--emin-ease);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	min-height: 2.85rem;
	vertical-align: middle;
	white-space: normal;
	text-align: center;
}

body.emin-kara-product-ux.single-product form.cart button.single_add_to_cart_button:hover {
	transform: translateY(-1px);
	background: var(--emin-accent-hover);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

body.emin-kara-product-ux.single-product form.cart button.single_add_to_cart_button:active {
	transform: translateY(0);
}

body.emin-kara-product-ux.single-product form.cart button.single_add_to_cart_button.disabled,
body.emin-kara-product-ux.single-product form.cart button.single_add_to_cart_button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* ─────────────────────────────────────────
   Meta block (SKU / Categories)
   ───────────────────────────────────────── */

body.emin-kara-product-ux.single-product .product_meta {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--emin-border);
	font-size: 0.8rem;
	color: var(--emin-muted);
	line-height: 1.7;
}

body.emin-kara-product-ux.single-product .product_meta > .sku_wrapper,
body.emin-kara-product-ux.single-product .product_meta > .posted_in,
body.emin-kara-product-ux.single-product .product_meta > .tagged_as {
	display: block;
}

body.emin-kara-product-ux.single-product .product_meta .sku,
body.emin-kara-product-ux.single-product .product_meta a {
	color: var(--emin-fg-soft);
	font-weight: 500;
	text-decoration: none;
}

body.emin-kara-product-ux.single-product .product_meta a:hover {
	color: var(--emin-focus);
	text-decoration: underline;
}

/* Collapse duplicated meta blocks (some themes render twice). */
body.emin-kara-product-ux.single-product .summary.entry-summary .product_meta ~ .product_meta,
body.emin-kara-product-ux.single-product .summary.entry-summary > .sku_wrapper + .sku_wrapper,
body.emin-kara-product-ux.single-product .summary.entry-summary > .posted_in + .posted_in {
	display: none;
}

/* ─────────────────────────────────────────
   Hint + misc
   ───────────────────────────────────────── */

body.emin-kara-product-ux.single-product .emin-color-gallery-hint {
	margin: 0.75rem 0 0;
	padding: 0.65rem 0.9rem;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--emin-fg-soft);
	background: var(--emin-bg-elevated);
	border: 1px solid var(--emin-border);
	border-radius: var(--emin-radius-sm);
}

/* ─────────────────────────────────────────
   Tabs (description / reviews) — cleaner chrome
   ───────────────────────────────────────── */

body.emin-kara-product-ux.single-product .woocommerce-tabs {
	margin-top: clamp(2rem, 4vw, 3rem);
	padding-top: clamp(1.25rem, 2.5vw, 2rem);
	border-top: 1px solid var(--emin-border);
}

body.emin-kara-product-ux.single-product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	padding: 0;
	margin: 0 0 1.25rem;
	border: none;
	background: transparent;
}

body.emin-kara-product-ux.single-product .woocommerce-tabs ul.tabs::before,
body.emin-kara-product-ux.single-product .woocommerce-tabs ul.tabs::after {
	display: none;
}

body.emin-kara-product-ux.single-product .woocommerce-tabs ul.tabs li {
	list-style: none;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
}

body.emin-kara-product-ux.single-product .woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--emin-fg-soft);
	background: transparent;
	border: 1px solid transparent;
	text-decoration: none;
	transition: all 0.15s var(--emin-ease);
}

body.emin-kara-product-ux.single-product .woocommerce-tabs ul.tabs li.active a,
body.emin-kara-product-ux.single-product .woocommerce-tabs ul.tabs li a[aria-selected="true"] {
	color: var(--emin-fg);
	background: var(--emin-bg-soft);
	border-color: var(--emin-border);
}

body.emin-kara-product-ux.single-product .woocommerce-tabs .panel {
	padding: 0;
	color: var(--emin-fg);
	line-height: 1.7;
	font-size: 0.97rem;
}

body.emin-kara-product-ux.single-product .woocommerce-tabs .panel h2 {
	font-size: 1.3rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0 0 0.85rem;
	color: var(--emin-fg);
}

/* ─────────────────────────────────────────
   Mobile polish
   ───────────────────────────────────────── */

@media (max-width: 991px) {
	body.emin-kara-product-ux.single-product div.product {
		display: block;
	}
	body.emin-kara-product-ux.single-product .woocommerce-product-gallery {
		margin-bottom: 1.25rem;
	}

	/* Wide product column on phones with modest side gutters (not edge-to-edge). */
	body.emin-kara-product-ux.single-product #primary,
	body.emin-kara-product-ux.single-product main#main,
	body.emin-kara-product-ux.single-product #main,
	body.emin-kara-product-ux.single-product .content-area,
	body.emin-kara-product-ux.single-product #content.site-content,
	body.emin-kara-product-ux.single-product .site-main {
		max-width: none !important;
		width: 100% !important;
		padding-left: max(0px, calc(clamp(0.55rem, 2.6vw, 0.95rem) - 5px)) !important;
		padding-right: max(0px, calc(clamp(0.55rem, 2.6vw, 0.95rem) - 5px)) !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	body.emin-kara-product-ux.single-product .content-container.site-container,
	body.emin-kara-product-ux.single-product #wrapper .content-container {
		max-width: none !important;
		width: 100% !important;
		padding-left: max(0px, calc(clamp(0.55rem, 2.6vw, 0.95rem) - 5px)) !important;
		padding-right: max(0px, calc(clamp(0.55rem, 2.6vw, 0.95rem) - 5px)) !important;
	}
}
