/**
 * api.emin-kara.com — Trendyol-style product layout (scoped).
 * Depends on body.emin-kara-api-trendyol + emin-kara-product-ux. Loads after base plugin CSS.
 */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product {
	--ty-orange: #f27a1a;
	--ty-orange-hover: #e56d10;
	--ty-green: #0bc15c;
	--ty-green-soft: #e8faf0;
	--ty-bg: #f2f2f2;
	--ty-card: #ffffff;
	--ty-line: #e8e8e8;
	--ty-text: #1a1a1a;
	--ty-muted: #666666;
	--ty-muted2: #8a8a8a;
	--ty-radius: 8px;
	--ty-radius-lg: 10px;
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product {
	background-color: var(--ty-bg) !important;
	/* Near full-viewport product shell (theme + base plugin max-width is ~1200–1400px). */
	--emin-shell-max: min(1720px, calc(100vw - clamp(1.25rem, 4vw, 3rem)));
}

@media (max-width: 991px) {
	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product {
		--emin-shell-max: none;
	}
}

/* Kadence: let the product column breathe edge-to-edge within the shell. */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .content-container.site-container,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product #wrapper .content-container {
	max-width: none !important;
	width: 100%;
	box-sizing: border-box;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product #primary,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product main#main,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product #main,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .content-area,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product #content.site-content,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .site-main {
	background: transparent;
}

/* Product card */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product div.product.product-type-variable,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product div.product.product-type-simple {
	background: var(--ty-card);
	border-radius: 12px;
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	border: 1px solid var(--ty-line);
}

@media (max-width: 991px) {
	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product div.product.product-type-variable,
	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product div.product.product-type-simple {
		padding: clamp(0.65rem, 2.5vw, 1rem) clamp(0.55rem, 2.6vw, 0.95rem);
		border-radius: 0;
		border-left: none;
		border-right: none;
	}

	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product #primary,
	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product main#main,
	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product #main,
	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .content-area,
	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product #content.site-content,
	body.emin-kara-api-trendyol.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;
	}

	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .content-container.site-container,
	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product #wrapper .content-container {
		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;
	}
}

/* Title */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .summary.entry-summary .product_title {
	font-size: clamp(1.15rem, 2.2vw, 1.45rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.35;
	color: var(--ty-text);
	margin: 0 0 0.65rem;
}

/* Live price — no chrome: clean green number, no background / border / shadow. */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-live-price-section {
	margin: 0 0 1.1rem;
	padding: 0;
	border-radius: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product #emin-live-variation-price .price,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product #emin-live-variation-price .woocommerce-Price-amount {
	color: var(--ty-green);
	font-weight: 700;
	font-size: clamp(1.45rem, 3vw, 1.85rem);
	letter-spacing: -0.02em;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-selected-price-label {
	color: var(--ty-muted);
	font-size: 0.8rem;
	font-weight: 600;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product #emin-live-variation-price del,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product #emin-live-variation-price del .amount {
	color: var(--ty-muted2) !important;
	font-size: 0.95rem !important;
	font-weight: 500 !important;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product #emin-live-variation-price ins {
	text-decoration: none;
	background: transparent;
}

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

/* CTA — full width orange */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product form.cart .woocommerce-variation-add-to-cart,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product form.cart .variations_button {
	width: 100%;
	flex-direction: column;
	align-items: stretch;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product form.cart button.single_add_to_cart_button {
	width: 100% !important;
	max-width: 100% !important;
	background: var(--ty-orange) !important;
	color: #fff !important;
	border: none !important;
	border-radius: var(--ty-radius) !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	padding: 0.95rem 1.25rem !important;
	min-height: 52px !important;
	box-shadow: 0 2px 8px rgba(242, 122, 26, 0.35) !important;
	text-transform: none !important;
	letter-spacing: 0.01em !important;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product form.cart button.single_add_to_cart_button:hover {
	background: var(--ty-orange-hover) !important;
	box-shadow: 0 4px 14px rgba(242, 122, 26, 0.45) !important;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product form.cart .quantity {
	border-color: var(--ty-line);
	border-radius: var(--ty-radius);
	width: fit-content;
	max-width: 100%;
}

/* Swatches — orange active ring */
body.emin-kara-api-trendyol.emin-kara-product-ux .emin-variation-swatches .emin-swatch-btn.emin-swatch-active,
body.emin-kara-api-trendyol.emin-kara-product-ux .emin-variation-swatches.emin-swatch-row-color .emin-swatch-btn.emin-swatch-active {
	border-color: var(--ty-orange) !important;
	box-shadow: 0 0 0 2px rgba(242, 122, 26, 0.28) !important;
}

body.emin-kara-api-trendyol.emin-kara-product-ux .emin-variation-swatches .emin-swatch-btn:hover {
	border-color: rgba(242, 122, 26, 0.55);
}

/* Selects */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product table.variations select:not(.emin-swatch-select) {
	border-radius: var(--ty-radius);
	border: 1px solid var(--ty-line);
	background: #fafafa;
	padding: 0.8rem 2.5rem 0.8rem 0.95rem;
	font-size: 0.95rem;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product table.variations select:not(.emin-swatch-select):focus {
	border-color: var(--ty-orange);
	box-shadow: 0 0 0 3px rgba(242, 122, 26, 0.2);
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product table.variations th.label label {
	color: var(--ty-muted);
	font-weight: 600;
}

/* api.emin-kara.com runs under .emin-kara-cg-layer on every product page: native gallery is hidden by
   color-gallery-layer.css, so plugin gallery styling owns the look. */
body.emin-kara-api-trendyol.emin-kara-cg-layer.single-product .emin-color-gallery-root {
	background: transparent !important;
	border: 1px solid var(--ty-line);
	border-radius: var(--ty-radius-lg);
	box-shadow: none;
}

body.emin-kara-api-trendyol.emin-kara-cg-layer.single-product .emin-cg-main {
	border-radius: var(--ty-radius);
	overflow: hidden;
	background: transparent !important;
	box-shadow: none;
}

body.emin-kara-api-trendyol.emin-kara-cg-layer.single-product .emin-cg-thumb--active {
	border-color: var(--ty-orange) !important;
	box-shadow: 0 0 0 2px rgba(242, 122, 26, 0.28) !important;
}

body.emin-kara-api-trendyol.emin-kara-cg-layer.single-product .emin-cg-main:hover .emin-cg-main-img {
	transform: none !important;
}

/* Simple / pseudo-simple: core WC price chip — strip background box as well. */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .summary.entry-summary > p.price {
	margin: 0 0 1.1rem;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .summary.entry-summary > p.price .woocommerce-Price-amount,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .summary.entry-summary > p.price ins .woocommerce-Price-amount {
	color: var(--ty-green);
	font-weight: 700;
	font-size: clamp(1.45rem, 3vw, 1.85rem);
	letter-spacing: -0.02em;
}

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

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .summary.entry-summary > p.price del,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .summary.entry-summary > p.price del .woocommerce-Price-amount {
	color: var(--ty-muted2) !important;
	font-size: 0.95rem !important;
	font-weight: 500 !important;
}

/* Hide payment methods + default product meta (SKU / Categories) on api host. */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .single-product-payments,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .product_meta {
	display: none !important;
}

/* Bigger color swatches, single row with horizontal scroll when overflowing. */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-variation-swatches.emin-swatch-row-color {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 0.6rem;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding: 0.35rem 0.1rem 0.6rem;
	margin: 0 0 0.5rem;
	align-items: stretch;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-variation-swatches.emin-swatch-row-color .emin-swatch-item,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-variation-swatches.emin-swatch-row-color .emin-swatch-btn {
	flex: 0 0 auto;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-variation-swatches.emin-swatch-row-color .emin-swatch-btn {
	width: 86px !important;
	height: 86px !important;
	min-width: 86px !important;
	border-radius: 50% !important;
	overflow: hidden;
	border-width: 2px !important;
	background: #fff !important;
	padding: 4px !important;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-variation-swatches.emin-swatch-row-color .emin-swatch-btn.emin-swatch-active {
	border-width: 3px !important;
	padding: 3px !important;
}

@media (max-width: 640px) {
	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-variation-swatches.emin-swatch-row-color {
		gap: 0.4rem;
	}

	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-variation-swatches.emin-swatch-row-color .emin-swatch-btn {
		width: 56px !important;
		height: 56px !important;
		min-width: 56px !important;
		padding: 3px !important;
		border-width: 1.5px !important;
	}

	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-variation-swatches.emin-swatch-row-color .emin-swatch-btn.emin-swatch-active {
		border-width: 2.5px !important;
		padding: 2px !important;
	}

	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-variation-swatches.emin-swatch-row-color .emin-swatch-caption {
		font-size: 0.7rem;
		margin-bottom: 0.15rem;
	}
}

@media (max-width: 380px) {
	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-variation-swatches.emin-swatch-row-color .emin-swatch-btn {
		width: 48px !important;
		height: 48px !important;
		min-width: 48px !important;
		padding: 2px !important;
	}
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-variation-swatches.emin-swatch-row-color .emin-swatch-btn img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center center;
	border-radius: 50%;
	background: #fff;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-variation-swatches.emin-swatch-row-color .emin-swatch-caption {
	text-align: center;
	font-size: 0.76rem;
	color: var(--ty-muted);
	margin-bottom: 0.25rem;
}

/* Custom dropdown for non-color variation attributes (Size etc). */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-native {
	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;
	pointer-events: none !important;
	opacity: 0 !important;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-wrap {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 360px;
	z-index: 1;
}

/* While the panel is open, lift the wrap + its ancestors above the add-to-cart /
   quantity siblings so the options never get covered by the orange button. Dual
   selector handles browsers without :has() via the JS-applied --open class. */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-wrap.emin-cdd-wrap--open,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-wrap:has(.emin-cdd-panel--open) {
	z-index: 9000;
	position: relative;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product form.variations_form table.variations:has(.emin-cdd-wrap--open),
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product form.variations_form table.variations:has(.emin-cdd-panel--open),
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product form.variations_form table.variations tr:has(.emin-cdd-wrap--open),
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product form.variations_form table.variations td:has(.emin-cdd-wrap--open) {
	position: relative;
	z-index: 9500;
}

/* Option rows opaque white so the button never "bleeds through". */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-option {
	background: #ffffff;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	padding: 0.75rem 0.95rem;
	border: 1px solid var(--ty-line);
	background: #ffffff;
	border-radius: var(--ty-radius);
	font-size: 0.95rem;
	color: var(--ty-text);
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	text-align: left;
	min-height: 44px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-btn:hover {
	border-color: rgba(242, 122, 26, 0.45);
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-btn[aria-expanded="true"],
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-btn:focus {
	outline: none;
	border-color: var(--ty-orange);
	box-shadow: 0 0 0 3px rgba(242, 122, 26, 0.18);
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-btn--empty .emin-cdd-label {
	color: var(--ty-muted);
	font-weight: 400;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-label {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-arrow {
	color: var(--ty-muted);
	font-size: 0.85rem;
	line-height: 1;
	transition: transform 0.2s ease;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-btn[aria-expanded="true"] .emin-cdd-arrow {
	transform: rotate(180deg);
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	list-style: none;
	margin: 0;
	padding: 0.3rem 0;
	background: #ffffff !important;
	border: 1px solid var(--ty-line);
	border-radius: var(--ty-radius);
	box-shadow:
		0 12px 32px rgba(15, 23, 42, 0.16),
		0 4px 10px rgba(15, 23, 42, 0.06);
	z-index: 9999;
	max-height: calc(6 * 42px + 0.6rem);
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px) scale(0.98);
	transform-origin: top center;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
	scrollbar-width: thin;
	isolation: isolate;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-panel.emin-cdd-panel--up {
	top: auto;
	bottom: calc(100% + 6px);
	transform-origin: bottom center;
	transform: translateY(6px) scale(0.98);
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-panel.emin-cdd-panel--open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	pointer-events: auto;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-panel::-webkit-scrollbar {
	width: 8px;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-panel::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 4px;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-option {
	padding: 0.6rem 0.95rem;
	font-size: 0.92rem;
	line-height: 1.25;
	color: var(--ty-text);
	cursor: pointer;
	min-height: 42px;
	display: flex;
	align-items: center;
	border-left: 3px solid transparent;
	transition: background-color 0.12s ease, border-color 0.12s ease;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-option:hover:not(.emin-cdd-option--disabled),
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-option:focus-visible:not(.emin-cdd-option--disabled) {
	background: rgba(242, 122, 26, 0.08);
	border-left-color: rgba(242, 122, 26, 0.4);
	outline: none;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-option--active {
	background: rgba(242, 122, 26, 0.12);
	border-left-color: var(--ty-orange);
	font-weight: 600;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-option--disabled {
	color: #b5b5b5;
	cursor: not-allowed;
	text-decoration: line-through;
	text-decoration-color: rgba(220, 38, 38, 0.35);
}

@media (max-width: 640px) {
	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-wrap {
		max-width: 100%;
	}
	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-cdd-option {
		min-height: 46px;
	}
}

/* ============================================================================
   Description block — rendered below the gallery + summary grid, full width,
   separated by a horizontal divider.
   ============================================================================ */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-summary-description {
	grid-column: 1 / -1;
	width: 100%;
	margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
	padding: clamp(1.25rem, 2.5vw, 2rem) 0 0;
	border-top: 1px solid var(--ty-line);
	color: var(--ty-text);
	max-height: none !important;
	overflow: visible !important;
	display: block;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-summary-description h3 {
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	font-weight: 700;
	margin: 0 0 1rem;
	color: var(--ty-text);
	letter-spacing: -0.01em;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-summary-description__hero-wrap {
	margin: 0 auto 1.25rem;
	border-radius: var(--ty-radius-lg);
	overflow: hidden;
	background: #fafafa;
	border: 1px solid var(--ty-line);
	max-width: 520px;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-summary-description__hero {
	display: block;
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: contain;
	background: #fafafa;
	margin: 0 auto;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-summary-description__body {
	color: var(--ty-text);
	font-size: 0.98rem;
	line-height: 1.7;
	word-break: break-word;
	overflow-wrap: anywhere;
	max-width: 820px;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-summary-description__body p {
	margin: 0 0 0.75rem;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-summary-description__body p:last-child {
	margin-bottom: 0;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-summary-description__body ul,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-summary-description__body ol {
	margin: 0 0 0.8rem 1.35rem;
	padding: 0;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-summary-description__body li {
	margin: 0.15rem 0;
}

/* Kill tabs + upsells (related products are kept and styled below). */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .woocommerce-tabs,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .upsells.products,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .wc-tabs-wrapper {
	display: none !important;
}

/* ============================================================================
   Related / shop / taxonomy product grid — unified card design for the whole site.
   Applied on api host either via .emin-kara-api-trendyol (set on WC pages) or
   through the single-product context (.related.products below summary).
   ============================================================================ */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .related.products {
	grid-column: 1 / -1;
	width: 100%;
	margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
	padding: clamp(1.25rem, 2.5vw, 2rem) 0 0;
	border-top: 1px solid var(--ty-line);
	float: none !important;
	clear: both !important;
}

body.emin-kara-api-trendyol .related.products > h2,
body.emin-kara-api-trendyol .related.products > h3,
body.emin-kara-api-trendyol .woocommerce-products-header__title,
body.emin-kara-api-trendyol .page-title {
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	font-weight: 700;
	margin: 0 0 1rem;
	color: var(--ty-text);
	letter-spacing: -0.01em;
}

/* Product loop grid (shop + archive + related + upsell). */
body.emin-kara-api-trendyol ul.products,
body.emin-kara-api-trendyol .products.columns-2,
body.emin-kara-api-trendyol .products.columns-3,
body.emin-kara-api-trendyol .products.columns-4,
body.emin-kara-api-trendyol .products.columns-5,
body.emin-kara-api-trendyol .products.columns-6 {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.75rem, 1.6vw, 1.25rem);
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}

@media (max-width: 1200px) {
	body.emin-kara-api-trendyol ul.products,
	body.emin-kara-api-trendyol .products.columns-2,
	body.emin-kara-api-trendyol .products.columns-3,
	body.emin-kara-api-trendyol .products.columns-4,
	body.emin-kara-api-trendyol .products.columns-5,
	body.emin-kara-api-trendyol .products.columns-6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body.emin-kara-api-trendyol ul.products,
	body.emin-kara-api-trendyol .products.columns-2,
	body.emin-kara-api-trendyol .products.columns-3,
	body.emin-kara-api-trendyol .products.columns-4,
	body.emin-kara-api-trendyol .products.columns-5,
	body.emin-kara-api-trendyol .products.columns-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.65rem;
	}
}

/* Individual card — clean, uncropped image, prominent price, cart button. */
body.emin-kara-api-trendyol ul.products li.product,
body.emin-kara-api-trendyol .products li.product {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	background: var(--ty-card);
	border: 1px solid var(--ty-line);
	border-radius: var(--ty-radius);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	overflow: hidden;
	position: relative;
}

body.emin-kara-api-trendyol ul.products li.product:hover,
body.emin-kara-api-trendyol .products li.product:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
	border-color: rgba(242, 122, 26, 0.4);
}

body.emin-kara-api-trendyol ul.products li.product > a.woocommerce-loop-product__link,
body.emin-kara-api-trendyol .products li.product > a.woocommerce-loop-product__link {
	display: block;
	color: inherit;
	text-decoration: none;
	padding: 0;
}

/* Uncropped image — contain, not cover — on a light bg so portrait/landscape both fit. */
body.emin-kara-api-trendyol ul.products li.product img,
body.emin-kara-api-trendyol .products li.product img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: contain !important;
	object-position: center center;
	background: #fafafa;
	padding: 0.65rem;
	box-sizing: border-box;
	margin: 0 !important;
	border-radius: 0 !important;
	transition: transform 0.25s ease;
}

body.emin-kara-api-trendyol ul.products li.product:hover img,
body.emin-kara-api-trendyol .products li.product:hover img {
	transform: scale(1.03);
}

body.emin-kara-api-trendyol ul.products li.product .woocommerce-loop-product__title,
body.emin-kara-api-trendyol .products li.product .woocommerce-loop-product__title,
body.emin-kara-api-trendyol ul.products li.product h2.woocommerce-loop-product__title,
body.emin-kara-api-trendyol ul.products li.product h3.woocommerce-loop-product__title {
	font-size: 0.88rem !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	margin: 0.55rem 0.85rem 0.35rem !important;
	color: var(--ty-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.5em;
	padding: 0 !important;
}

body.emin-kara-api-trendyol ul.products li.product .price,
body.emin-kara-api-trendyol .products li.product .price {
	color: var(--ty-green) !important;
	font-weight: 700;
	font-size: 1.05rem;
	margin: 0 0.85rem 0.65rem !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: baseline;
}

body.emin-kara-api-trendyol ul.products li.product .price del,
body.emin-kara-api-trendyol .products li.product .price del {
	color: var(--ty-muted2) !important;
	font-weight: 500 !important;
	font-size: 0.85rem !important;
	opacity: 1;
	order: 1;
}

body.emin-kara-api-trendyol ul.products li.product .price ins,
body.emin-kara-api-trendyol .products li.product .price ins {
	background: transparent !important;
	text-decoration: none !important;
	color: var(--ty-green) !important;
	order: 2;
}

body.emin-kara-api-trendyol ul.products li.product .price .woocommerce-Price-amount {
	color: inherit;
}

/* "Sale" badge (top-left corner). */
body.emin-kara-api-trendyol ul.products li.product .onsale,
body.emin-kara-api-trendyol .products li.product .onsale {
	position: absolute;
	top: 0.7rem;
	left: 0.7rem;
	z-index: 2;
	background: #dc2626 !important;
	color: #fff !important;
	padding: 0.15rem 0.55rem !important;
	border-radius: 999px !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: 0.02em !important;
	min-height: auto !important;
	min-width: auto !important;
	margin: 0 !important;
	text-transform: uppercase;
}

/* Add-to-cart button — orange, full width, at card bottom. */
body.emin-kara-api-trendyol ul.products li.product .button,
body.emin-kara-api-trendyol ul.products li.product a.add_to_cart_button,
body.emin-kara-api-trendyol ul.products li.product a.product_type_simple,
body.emin-kara-api-trendyol ul.products li.product a.product_type_variable,
body.emin-kara-api-trendyol ul.products li.product a.product_type_grouped,
body.emin-kara-api-trendyol ul.products li.product a.product_type_external,
body.emin-kara-api-trendyol .products li.product .button,
body.emin-kara-api-trendyol .products li.product a.add_to_cart_button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: calc(100% - 1.7rem) !important;
	max-width: none !important;
	margin: auto 0.85rem 0.85rem !important;
	padding: 0.7rem 0.9rem !important;
	border: none !important;
	background: var(--ty-orange) !important;
	color: #fff !important;
	font-weight: 600 !important;
	font-size: 0.88rem !important;
	border-radius: var(--ty-radius) !important;
	text-transform: none !important;
	letter-spacing: 0.01em !important;
	text-decoration: none !important;
	box-shadow: 0 2px 6px rgba(242, 122, 26, 0.28) !important;
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
	min-height: 40px;
	box-sizing: border-box;
}

body.emin-kara-api-trendyol ul.products li.product .button:hover,
body.emin-kara-api-trendyol ul.products li.product a.add_to_cart_button:hover,
body.emin-kara-api-trendyol .products li.product .button:hover {
	background: var(--ty-orange-hover) !important;
	box-shadow: 0 4px 12px rgba(242, 122, 26, 0.42) !important;
}

body.emin-kara-api-trendyol ul.products li.product .button:active,
body.emin-kara-api-trendyol ul.products li.product a.add_to_cart_button:active {
	transform: translateY(1px);
}

body.emin-kara-api-trendyol ul.products li.product .added_to_cart {
	display: none !important;
}

/* Loading state spinner inline after button text. */
body.emin-kara-api-trendyol ul.products li.product .button.loading,
body.emin-kara-api-trendyol ul.products li.product a.add_to_cart_button.loading {
	opacity: 0.85;
}

/* Star rating (if theme outputs it). */
body.emin-kara-api-trendyol ul.products li.product .star-rating,
body.emin-kara-api-trendyol .products li.product .star-rating {
	margin: 0 0.85rem 0.45rem !important;
	font-size: 0.85rem;
	color: #f59e0b;
}

/* Kill theme (Kadence) extra chrome that competes with our card design. */
body.emin-kara-api-trendyol ul.products li.product .button-wrap,
body.emin-kara-api-trendyol ul.products li.product .product-details,
body.emin-kara-api-trendyol ul.products li.product .product-loop-title {
	margin: 0 !important;
	padding: 0 !important;
}

/* Hide "Εκκαθάριση" reset link next to the size dropdown. */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product form.variations_form .reset_variations,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product form.variations_form .reset_variations_alert {
	display: none !important;
}

/* Style the native <select> sized attribute so that the brief initial paint
   (before JS swaps it to the custom dropdown) still looks acceptable. */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product form.variations_form select:not(.emin-swatch-select):not(.emin-cdd-native) {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: #ffffff;
	border: 1px solid var(--ty-line);
	border-radius: var(--ty-radius);
	padding: 0.75rem 2.4rem 0.75rem 0.95rem;
	font-size: 0.95rem;
	color: var(--ty-text);
	min-height: 44px;
	min-width: 220px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23666' d='M1.5 1.5l4.5 4.5 4.5-4.5'/></svg>");
	background-repeat: no-repeat;
	background-position: right 0.95rem center;
}

/* Reserve the gallery column height so the layout doesn't collapse before the
   JS-rendered images arrive. */
body.emin-kara-api-trendyol.emin-kara-cg-layer.single-product #emin-color-gallery-root:empty {
	min-height: clamp(320px, 60vw, 620px);
	background: #fafafa;
	border-radius: var(--ty-radius-lg);
}

/* Tabs — spec grid feel */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .woocommerce-tabs {
	border-top: 1px solid var(--ty-line);
	margin-top: 2rem;
	padding-top: 1.5rem;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .woocommerce-tabs ul.tabs li a {
	border-radius: 999px;
	font-size: 0.88rem;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .woocommerce-tabs ul.tabs li.active a,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .woocommerce-tabs ul.tabs li a[aria-selected="true"] {
	background: var(--ty-green-soft);
	border-color: rgba(11, 193, 92, 0.35);
	color: var(--ty-text);
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product table.shop_attributes {
	border: none;
	width: 100%;
	display: block;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product table.shop_attributes tbody {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.65rem;
}

@media (max-width: 900px) {
	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product table.shop_attributes tbody {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	body.emin-kara-api-trendyol.emin-kara-product-ux.single-product table.shop_attributes tbody {
		grid-template-columns: 1fr;
	}
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product table.shop_attributes tr {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	background: #f5f5f5;
	border-radius: var(--ty-radius-sm);
	padding: 0.5rem 0.75rem;
	gap: 0.25rem;
	border: none !important;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product table.shop_attributes th,
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product table.shop_attributes td {
	border: none !important;
	background: transparent;
	padding: 0 !important;
	font-size: 0.82rem;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product table.shop_attributes th {
	color: var(--ty-muted);
	font-weight: 500;
	text-align: left;
}

body.emin-kara-api-trendyol.emin-kara-product-ux.single-product table.shop_attributes td {
	font-weight: 700;
	color: var(--ty-text);
	text-align: left;
}

/* Hint text */
body.emin-kara-api-trendyol.emin-kara-product-ux.single-product .emin-color-gallery-hint {
	background: #f5f5f5;
	border: 1px solid var(--ty-line);
	color: var(--ty-muted);
	font-size: 0.8rem;
}
