/**
 * Enta Custom Products — Tekil ürün sayfası
 */

/* ═══════════════════════════════════════════════════════════
   Agron / Pxl Theme — single-service ile aynı tam genişlik
   (tema SCSS: .single.single-service .container { max-width:100% })
   ═══════════════════════════════════════════════════════════ */

body.single.single-enta_product #pxl-main > .container,
body.single.single-enta_product #pxl-main .container {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.single-enta_product #pxl-main,
body.single-enta_product.enta-cp-single-page #pxl-main {
	padding-top: var(--enta-cp-pad-top, 120px) !important;
	padding-bottom: var(--enta-cp-pad-bottom, 332px) !important;
	overflow: visible !important;
	min-height: auto !important;
	position: relative !important;
	z-index: 1 !important;
}

@media (max-width: 1024px) {
	body.single-enta_product #pxl-main,
	body.single-enta_product.enta-cp-single-page #pxl-main {
		padding-top: max(90px, var(--enta-cp-pad-top, 120px)) !important;
		padding-bottom: max(200px, var(--enta-cp-pad-bottom, 315px)) !important;
	}
}

@media (max-width: 640px) {
	body.single-enta_product #pxl-main,
	body.single-enta_product.enta-cp-single-page #pxl-main {
		padding-bottom: max(180px, var(--enta-cp-pad-bottom, 300px)) !important;
	}
}

body.single-enta_product #pxl-main > .container,
body.single-enta_product #pxl-main .container {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.single-enta_product #pxl-main .row {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.single-enta_product #pxl-content-area,
body.single-enta_product .pxl-content-area {
	flex: 0 0 100% !important;
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Sidebar gizle */
body.single-enta_product .pxl-sidebar,
body.single-enta_product #pxl-sidebar,
body.single-enta_product #pxl-sidebar-area,
body.single-enta_product .pxl-page-sidebar,
body.single-enta_product .sidebar-left,
body.single-enta_product .sidebar-right,
body.single-enta_product .widget-area {
	display: none !important;
	width: 0 !important;
	flex: 0 0 0 !important;
}

/* Tema blog alt öğeleri — ürün sayfasında gizle */
body.single-enta_product .pxl-post-footer,
body.single-enta_product .pxl-post-author-box,
body.single-enta_product .pxl-divider,
body.single-enta_product #comments,
body.single-enta_product .post-navigation {
	display: none !important;
}

/* Footer üstüne binmeyi önle */
body.single-enta_product .enta-cp-single {
	clear: both;
	width: 100%;
	overflow: visible;
	position: relative;
	z-index: 1;
}

body.single-enta_product #pxl-footer,
body.single-enta_product footer.site-footer,
body.single-enta_product .pxl-footer {
	position: relative;
	z-index: 2;
}

/* Sidebar ve tema blog düzenini devre dışı bırak */
body.enta-cp-single-page .sidebar,
body.enta-cp-single-page #secondary,
body.enta-cp-single-page .widget-area,
body.enta-cp-single-page aside.sidebar,
body.enta-cp-single-page .post-sidebar,
body.enta-cp-single-page .blog-sidebar {
	display: none !important;
}

body.enta-cp-single-page .content-area,
body.enta-cp-single-page #primary,
body.enta-cp-single-page .site-content .container,
body.enta-cp-single-page .main-content {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
}

body.enta-cp-single-page .site-content .row,
body.enta-cp-single-page .content-wrapper {
	display: block !important;
}

/* ── Ana konteyner ─────────────────────────────────────────── */

.enta-cp-single {
	padding: 0;
	background: #fff;
	overflow: visible;
	margin-bottom: 0;
}

.enta-cp-single__gallery-wrap {
	width: var(--enta-cp-img-width, 100%);
	max-width: 100%;
}

.enta-cp-single__container {
	max-width: 1348px;
	margin: 0 auto;
	padding: 0 24px;
}

.enta-cp-single__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

.enta-cp-single__grid > * {
	min-width: 0;
}

/* ── Galeri ────────────────────────────────────────────────── */

.enta-cp-gallery {
	display: flex;
	gap: 16px;
	align-items: stretch;
}

.enta-cp-single--no-gallery .enta-cp-gallery {
	display: block;
}

.enta-cp-gallery__thumbs-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	width: 80px;
}

.enta-cp-gallery__thumbs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 420px;
	overflow: hidden;
	scroll-behavior: smooth;
}

.enta-cp-gallery__thumb {
	display: block;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: #f8fafc;
	transition: border-color 0.2s, box-shadow 0.2s;
	flex-shrink: 0;
}

.enta-cp-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.enta-cp-gallery__thumb.is-active,
.enta-cp-gallery__thumb:hover {
	border-color: #1a7f4b;
	box-shadow: 0 0 0 1px #1a7f4b;
}

.enta-cp-gallery__thumb-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	color: #64748b;
	transition: all 0.2s;
	flex-shrink: 0;
}

.enta-cp-gallery__thumb-nav:hover {
	border-color: #1a7f4b;
	color: #1a7f4b;
}

.enta-cp-gallery__thumb-nav svg {
	width: 16px;
	height: 16px;
}

.enta-cp-gallery__main {
	position: relative;
	flex: 1;
	width: 100%;
	min-height: var(--enta-cp-img-height, 520px);
	height: var(--enta-cp-img-height, 520px);
	background: #f8fafc;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e2e8f0;
	cursor: crosshair;
}

.enta-cp-single--no-gallery .enta-cp-gallery__main {
	width: 100%;
}

.enta-cp-gallery__main-img {
	width: 100%;
	height: 100%;
	object-fit: var(--enta-cp-img-fit, contain);
	object-position: center;
	display: block;
	transition: opacity 0.3s, transform 0.12s ease-out;
	will-change: transform;
}

.enta-cp-single--zoom .enta-cp-gallery__main.is-zooming .enta-cp-gallery__main-img {
	cursor: zoom-in;
}

.enta-cp-single:not(.enta-cp-single--zoom) .enta-cp-gallery__main {
	cursor: default;
}

.enta-cp-gallery__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 420px;
	color: #94a3b8;
}

.enta-cp-gallery__placeholder svg {
	width: 64px;
	height: 64px;
}

/* Rozetler — sağ üst daire */
.enta-cp-gallery__badge {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	font-size: 0.7rem;
	font-weight: 700;
	text-align: center;
	line-height: 1.2;
	padding: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.enta-cp-gallery__badge--1 {
	top: 16px;
	right: 16px;
}

.enta-cp-gallery__badge--2 {
	top: 16px;
	right: 88px;
}

/* Büyüteç / Zoom */
.enta-cp-gallery__zoom-hint {
	position: absolute;
	bottom: 14px;
	left: 14px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 50%;
	color: #334155;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	pointer-events: none;
	opacity: 0.85;
	transition: opacity 0.2s;
}

.enta-cp-gallery__zoom-hint svg {
	width: 18px;
	height: 18px;
}

.enta-cp-gallery__main:hover .enta-cp-gallery__zoom-hint {
	opacity: 0;
}

@media (max-width: 1024px) {
	.enta-cp-single--zoom .enta-cp-gallery__main {
		cursor: default;
	}
}

/* ── Sağ bilgi paneli ──────────────────────────────────────── */

.enta-cp-single__info--sticky {
	position: sticky;
	top: 100px;
	align-self: start;
}

.enta-cp-product-info {
	display: flex;
	flex-direction: column;
	gap: var(--enta-cp-content-gap, 20px);
}

/* Tema stillerini sıfırla */
.enta-cp-product-info,
.enta-cp-product-info * {
	box-sizing: border-box;
}

.enta-cp-product-info__title {
	margin: 0 0 4px;
	font-size: var(--enta-cp-title-size, clamp(1.5rem, 3vw, 2rem));
	font-weight: var(--enta-cp-title-weight, 700);
	line-height: 1.3;
	color: #0f172a;
	font-family: var(--enta-cp-title-font, inherit);
}

.enta-cp-product-info__description {
	font-size: var(--enta-cp-content-size, 0.95rem);
	line-height: var(--enta-cp-content-lh, 1.75);
	color: #64748b;
	margin: 0;
	font-family: var(--enta-cp-content-font, inherit);
}

.enta-cp-product-info__description > *:first-child {
	margin-top: 0;
}

.enta-cp-product-info__description h2,
.enta-cp-product-info__description h3,
.enta-cp-product-info__description h4 {
	margin: 1em 0 0.5em;
	font-size: 1.05rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.35;
}

.enta-cp-product-info__description p {
	margin: 0 0 0.85em;
}

.enta-cp-product-info__description p:last-child {
	margin-bottom: 0;
}

.enta-cp-product-info__description ul,
.enta-cp-product-info__description ol {
	margin: 0.5em 0 1em;
	padding-left: 1.5em;
	list-style-position: outside;
}

.enta-cp-product-info__description ul {
	list-style-type: disc;
}

.enta-cp-product-info__description ol {
	list-style-type: decimal;
}

.enta-cp-product-info__description li {
	display: list-item !important;
	list-style-position: outside !important;
	margin-bottom: 0.35em;
	width: auto;
	max-width: 100%;
}

.enta-cp-product-info__description li:last-child {
	margin-bottom: 0;
}

.enta-cp-product-info__description strong {
	color: #334155;
	font-weight: 600;
}

.enta-cp-product-info__breadcrumb {
	font-size: var(--enta-cp-breadcrumb-size, 15px);
	color: #94a3b8;
	line-height: 1.5;
	font-family: var(--enta-cp-breadcrumb-font, inherit);
}

.enta-cp-product-info__breadcrumb-list {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0;
}

.enta-cp-product-info__breadcrumb-item {
	display: inline-flex !important;
	align-items: center;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.enta-cp-product-info__breadcrumb-item + .enta-cp-product-info__breadcrumb-item::before {
	content: '/';
	margin: 0 10px;
	color: #cbd5e1;
	font-weight: 400;
}

.enta-cp-product-info__breadcrumb a {
	display: inline !important;
	color: #64748b;
	text-decoration: none;
	transition: color 0.2s;
	white-space: nowrap;
}

.enta-cp-product-info__breadcrumb a:hover {
	color: #1a7f4b;
}

/* Eski sep sınıfı — geriye dönük */
.enta-cp-product-info__sep {
	display: none;
}

.enta-cp-product-info__subtitle {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 500;
	color: #1a7f4b;
	line-height: 1.5;
}

/* WhatsApp butonu */
.enta-cp-product-info__whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 28px;
	margin-top: 0;
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
	color: #fff;
	background: #25d366;
	border-radius: 6px;
	transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.enta-cp-product-info__whatsapp:hover {
	background: #20bd5a;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.enta-cp-product-info__whatsapp svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

/* Meta alanı */
.enta-cp-product-info__meta {
	margin-top: 4px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.enta-cp-product-info__meta-row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	font-size: 0.9rem;
}

.enta-cp-product-info__meta-label {
	flex: 0 0 auto;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.4;
	white-space: nowrap;
}

.enta-cp-product-info__meta-value {
	flex: 1 1 auto;
	color: #64748b;
	line-height: 1.5;
	min-width: 0;
}

.enta-cp-product-info__meta-value a {
	color: #1a7f4b;
	text-decoration: none;
}

.enta-cp-product-info__meta-value a:hover {
	text-decoration: underline;
}

/* Paylaşım — etiket ve ikonlar yan yana */
.enta-cp-product-info__meta-row--share {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	flex-wrap: wrap;
	gap: 8px 14px;
}

.enta-cp-product-info__meta-row--share .enta-cp-product-info__meta-label {
	margin: 0;
}

.enta-cp-product-info__meta-row--share .enta-cp-product-info__share-icons {
	display: inline-flex !important;
	align-items: center;
	flex-wrap: wrap;
	flex: 0 1 auto;
	gap: var(--enta-share-gap, 8px) !important;
	width: auto;
	max-width: 100%;
	justify-content: flex-start !important;
}

.enta-cp-product-info__share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto;
	min-width: 0;
	padding: 0;
	margin: 0;
	color: #3d3d3d;
	text-decoration: none;
	transition: color 0.2s, transform 0.2s;
	line-height: 1;
}

.enta-cp-product-info__share-link svg {
	width: var(--enta-share-w, 18px);
	height: var(--enta-share-h, 18px);
	display: block;
}

.enta-cp-product-info__share-link:hover {
	color: #1a7f4b;
	transform: translateY(-1px);
}

/* Tema pxl-social stillerini geçersiz kıl */
.enta-cp-product-info__share-icons .pxl-social-list,
.enta-cp-product-info__share-icons a,
.enta-cp-product-info__share-link {
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: 0 0 auto !important;
	justify-content: flex-start !important;
	margin: 0 !important;
}

/* ── İlgili ürünler ───────────────────────────────────────── */

.enta-cp-related {
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid #e2e8f0;
}

.enta-cp-related__title {
	margin: 0 0 28px;
	font-size: 1.5rem;
	font-weight: 700;
	color: #0f172a;
}

.enta-cp-related__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.enta-cp-related__link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s;
}

.enta-cp-related__link:hover {
	transform: translateY(-4px);
}

.enta-cp-related__image {
	aspect-ratio: 1;
	background: #f8fafc;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	margin-bottom: 12px;
}

.enta-cp-related__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.enta-cp-related__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.enta-cp-related__name {
	margin: 0 0 4px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.35;
}

.enta-cp-related__subtitle {
	margin: 0;
	font-size: 0.8rem;
	color: #64748b;
	line-height: 1.4;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.enta-cp-single__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.enta-cp-single__info--sticky {
		position: static;
	}

	.enta-cp-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.enta-cp-gallery {
		flex-direction: column-reverse;
	}

	.enta-cp-gallery__thumbs-wrap {
		flex-direction: row;
		width: 100%;
	}

	.enta-cp-gallery__thumbs {
		flex-direction: row;
		max-height: none;
		overflow-x: auto;
		max-width: calc(100% - 80px);
	}

	.enta-cp-gallery__thumb-nav--up,
	.enta-cp-gallery__thumb-nav--down {
		transform: rotate(-90deg);
	}

	.enta-cp-gallery__main {
		min-height: 300px;
	}

	.enta-cp-gallery__badge--2 {
		right: 16px;
		top: 88px;
	}

	.enta-cp-related__grid {
		grid-template-columns: 1fr;
	}
}
