/* =====================================================================
   ALMINA CORE — PRODUCT.CSS  (sadece ürün detay sayfasında yüklenir)
   ===================================================================== */

/* ---------------- Sayfa ---------------- */
body.single-product #main { background: #fff; }
body.single-product #content-wrap {
	width: calc(100% - 40px);
	max-width: 1500px;
	margin: 0 auto;
	padding-top: 22px;
	padding-bottom: 35px;
}
body.single-product #primary { width: 100%; float: none; padding: 0; border: 0; }
body.single-product #content { padding: 0; }
body.single-product div.product { position: relative; margin: 0; padding: 0; }

body.single-product .woocommerce-breadcrumb {
	margin: 0 0 18px !important;
	padding: 0 !important;
	color: #8a8a8a;
	font: 11px/1.4 var(--am-font-body);
}

/* Tema ayarından kapanmamışsa gizlenenler */
body.single-product .summary .product_meta,
body.single-product span.onsale,
body.single-product .woocommerce-product-gallery .flex-direction-nav,
body.single-product .woocommerce-tabs.wc-tabs-wrapper { display: none !important; }

/* Çift fiyat güvencesi: özetteki ilk fiyattan sonrakiler görünmez */
body.single-product .summary > .price ~ .price { display: none !important; }

/* ---------------- Galeri + özet yerleşimi ---------------- */
@media (min-width: 992px) {
	body.single-product div.product::after { content: ""; display: block; clear: both; }
	body.single-product div.product .woocommerce-product-gallery {
		float: left;
		width: 49% !important;
		margin: 0 !important;
		padding-left: 92px;
		box-sizing: border-box;
	}
	body.single-product div.product .summary.entry-summary {
		float: right;
		width: 47% !important;
		margin: 0 !important;
		padding: 3px 0 0 24px;
		box-sizing: border-box;
	}
}

body.single-product .woocommerce-product-gallery { position: relative; }
body.single-product .woocommerce-product-gallery .flex-viewport,
body.single-product .woocommerce-product-gallery__wrapper:only-child {
	background: var(--am-bg-soft);
	border: 1px solid #eee7e2;
	border-radius: 9px;
	overflow: hidden;
}
body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery__image { margin: 0; }
body.single-product .woocommerce-product-gallery__image a { display: block; }
body.single-product .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--am-bg-soft);
}

/* Galeri altı not (metin: config.php > gallery_note) */
body.single-product .woocommerce-product-gallery::after {
	content: "ⓘ  " var(--am-gallery-note);
	display: block;
	margin-top: 11px;
	color: var(--am-muted);
	font: 10px/1.45 var(--am-font-body);
	text-align: center;
}

/* Küçük resimler: masaüstünde solda dikey */
@media (min-width: 992px) {
	body.single-product .woocommerce-product-gallery .flex-control-thumbs {
		position: absolute;
		top: 0;
		left: 0;
		display: flex;
		flex-direction: column;
		gap: 10px;
		width: 72px;
		margin: 0 !important;
		padding: 0 !important;
		list-style: none;
	}
	body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
		float: none !important;
		width: 72px !important;
		height: 72px;
		margin: 0 !important;
		padding: 0 !important;
	}
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--am-bg-soft);
	border: 1px solid #e4dfdb;
	border-radius: 7px;
	opacity: .75;
	cursor: pointer;
	box-sizing: border-box;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	opacity: 1;
	border: 2px solid var(--am-pink);
}

/* ---------------- Özet ---------------- */
.am-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 15px;
	padding: 8px 13px;
	background: #fff1f4;
	border: 1px solid #f2d6dd;
	border-radius: 30px;
	color: #c94f6c;
	font: 700 10px/1 var(--am-font-body);
	text-transform: uppercase;
}

body.single-product .summary .product_title {
	max-width: 680px;
	margin: 0 0 14px !important;
	padding: 0;
	border: 0;
	color: #171717;
	font: 400 36px/1.05 var(--am-font-heading) !important;
	letter-spacing: -.6px;
}

body.single-product .summary > .price {
	display: block;
	margin: 0 0 15px !important;
	color: var(--am-pink) !important;
	font: 700 27px/1.3 var(--am-font-body) !important;
}
body.single-product .summary .price .woocommerce-Price-amount { color: var(--am-pink); font-weight: 700; }
body.single-product .summary .price del,
body.single-product .summary .price del .woocommerce-Price-amount {
	margin-right: 10px;
	color: #999 !important;
	opacity: 1;
	font-size: 17px;
	font-weight: 400;
}
body.single-product .summary .price ins { background: none; text-decoration: none; }

body.single-product .summary .woocommerce-product-details__short-description,
body.single-product .summary .woocommerce-product-details__short-description p {
	max-width: 650px;
	margin: 0 0 18px;
	color: var(--am-muted);
	font: 400 11px/1.45 var(--am-font-body) !important;
}
body.single-product .summary .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* 4 avantaj */
.am-benefits {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0 0 17px;
	padding: 14px 8px;
	background: linear-gradient(90deg, #fff9fa 0%, #fff6f8 100%);
	border: 1px solid #f2e2e6;
	border-radius: 10px;
	box-sizing: border-box;
}
.am-benefit { display: flex; align-items: center; min-width: 0; padding: 0 12px; }
.am-benefit + .am-benefit { border-left: 1px solid #ecdde1; }
.am-benefit__icon { flex: 0 0 31px; display: flex; justify-content: center; margin-right: 8px; color: #d14e70; }
.am-benefit__text { display: flex; flex-direction: column; min-width: 0; }
.am-benefit__text strong { color: #272727; font: 700 10px/1.25 var(--am-font-body); }
.am-benefit__text small { margin-top: 2px; color: var(--am-muted); font: 9px/1.25 var(--am-font-body); }

/* WhatsApp sipariş */
.am-order-wa { margin: 0 0 8px; }
.am-order-wa__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	background: var(--am-wa);
	color: #fff !important;
	border-radius: 8px;
	font: 700 15px/1 var(--am-font-body);
	text-decoration: none !important;
	box-shadow: 0 5px 15px rgba(20, 189, 93, .13);
	transition: background .2s ease;
}
.am-order-wa__btn:hover { background: var(--am-wa-dark); }
.am-order-wa__note { margin: 7px 0 0 !important; color: var(--am-muted); font: 11px/1.45 var(--am-font-body); text-align: center; }

/* Online modda WhatsApp ikinci planda */
.am-order-wa.is-secondary { margin-top: 12px; }
.am-order-wa.is-secondary .am-order-wa__btn {
	min-height: 46px;
	background: #fff;
	color: var(--am-wa-dark) !important;
	border: 1.5px solid var(--am-wa);
	box-shadow: none;
}

/* Sepete ekle (online mod) */
body.single-product .summary form.cart { display: flex; gap: 10px; margin: 0 0 6px; }
body.single-product .summary .single_add_to_cart_button {
	flex: 1;
	min-height: 52px;
	background: var(--am-pink) !important;
	border-radius: 8px !important;
	font: 700 15px/1 var(--am-font-body) !important;
	text-transform: none !important;
}
body.single-product .summary .single_add_to_cart_button:hover { background: var(--am-pink-dark) !important; }

/* Nasıl sipariş veririm */
.am-steps {
	margin: 18px 0 0;
	padding: 14px 15px;
	background: #fff8f9;
	border: 1px solid #f1e0e4;
	border-radius: 11px;
}
.am-steps__title { margin-bottom: 12px; color: var(--am-pink); font: 700 13px var(--am-font-body); }
.am-steps__list {
	display: grid;
	grid-template-columns: 1fr 1fr 1.25fr;
	gap: 22px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.am-step { position: relative; display: flex; gap: 8px; margin: 0 !important; }
.am-step + .am-step::before {
	content: "→";
	position: absolute;
	left: -18px;
	top: 4px;
	color: #e6a9b7;
	font-size: 15px;
}
.am-step__no {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #f0cbd4;
	border-radius: 50%;
	color: #d24e6e;
	font: 700 10px var(--am-font-body);
}
.am-step__text strong { display: block; margin-bottom: 3px; color: #222; font: 700 10px/1.3 var(--am-font-body); }
.am-step__text small { display: block; color: #666; font: 9px/1.4 var(--am-font-body); }

/* ---------------- Sekmeler ---------------- */
.am-tabs { clear: both; margin: 32px 0 26px; }
.am-tabs__nav { display: flex; gap: 10px; border-bottom: 1px solid #e7e7e7; overflow-x: auto; }
.am-tabs__nav button {
	position: relative;
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 12px 24px !important;
	background: transparent !important;
	border: 0 !important;
	color: #555 !important;
	font: 500 12px/1 var(--am-font-body) !important;
	white-space: nowrap;
	cursor: pointer;
}
.am-tabs__nav button.is-active { color: var(--am-pink) !important; font-weight: 700 !important; }
.am-tabs__nav button.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--am-pink);
}
.am-tabs__panel { padding: 15px 20px 0; color: #666; font: 12px/1.6 var(--am-font-body); }
.am-tabs__panel p { margin: 0 0 10px; }

/* İlgili ürünler başlığı */
body.single-product .related.products { clear: both; margin: 25px 0 10px; }
body.single-product .related.products > h2 {
	margin: 0 0 15px !important;
	color: #222;
	font: 400 24px/1.2 var(--am-font-heading) !important;
}

/* ---------------- Tablet ---------------- */
@media (min-width: 768px) and (max-width: 1200px) {
	body.single-product #content-wrap { width: calc(100% - 30px); padding-top: 20px; }
	body.single-product div.product .woocommerce-product-gallery { width: 48% !important; padding-left: 76px; }
	body.single-product div.product .summary.entry-summary { width: 49% !important; padding-left: 18px; }
	body.single-product .summary .product_title { font-size: 29px !important; }
	.am-benefit { padding: 0 6px; }
	.am-benefit__icon { flex-basis: 25px; margin-right: 5px; }
	.am-benefit__icon .am-icon { width: 18px; height: 18px; }
}

/* ---------------- Mobil ---------------- */
@media (max-width: 767px) {
	body.single-product #content-wrap { width: calc(100% - 24px); padding-top: 12px; padding-bottom: 25px; }
	body.single-product .woocommerce-breadcrumb { display: none; }

	body.single-product div.product .woocommerce-product-gallery,
	body.single-product div.product .summary.entry-summary {
		float: none;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	body.single-product .woocommerce-product-gallery { margin-bottom: 20px !important; }

	body.single-product .woocommerce-product-gallery .flex-control-thumbs {
		display: flex;
		gap: 7px;
		margin: 8px 0 0 !important;
		padding: 0 !important;
		overflow-x: auto;
		list-style: none;
	}
	body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
		float: none !important;
		flex: 0 0 60px;
		width: 60px !important;
		height: 60px;
		margin: 0 !important;
	}
	body.single-product .woocommerce-product-gallery::after { margin-top: 8px; font-size: 8.5px; }

	.am-badge { margin-bottom: 11px; padding: 7px 10px; font-size: 9px; }
	body.single-product .summary .product_title { margin-bottom: 11px !important; font-size: 27px !important; line-height: 1.08 !important; letter-spacing: -.3px; }
	body.single-product .summary > .price { margin-bottom: 12px !important; font-size: 24px !important; }

	.am-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; padding: 5px; }
	.am-benefit { min-height: 57px; padding: 8px; border: 0 !important; }
	.am-benefit:nth-child(even) { border-left: 1px solid #ecdde1 !important; }
	.am-benefit:nth-child(n+3) { border-top: 1px solid #ecdde1 !important; }
	.am-benefit__icon { flex-basis: 28px; margin-right: 7px; }
	.am-benefit__icon .am-icon { width: 20px; height: 20px; }
	.am-benefit__text small { font-size: 8.5px; }

	.am-order-wa__btn { min-height: 51px; font-size: 14px; }

	.am-steps { margin-top: 14px; padding: 13px; }
	.am-steps__title { margin-bottom: 4px; font-size: 12px; }
	.am-steps__list { display: block; }
	.am-step { padding: 9px 0; }
	.am-step + .am-step { border-top: 1px solid #f0e1e4; }
	.am-step + .am-step::before { display: none; }
	.am-step__text small { font-size: 9.5px; }

	.am-tabs { margin-top: 25px; }
	.am-tabs__nav { gap: 0; }
	.am-tabs__nav button { padding: 11px 14px !important; font-size: 11px !important; }
	.am-tabs__panel { padding: 13px 5px 0; font-size: 11.5px; }
}

/* ---------------- Paylaşım alanı ---------------- */
/* Ocean Product Sharing eklentisinin eski alanı (eklenti kapatılınca zaten gelmez) */
body.single-product .oew-product-share,
body.single-product .ocean-product-share,
body.single-product .owp-product-share { display: none !important; }

.am-share {
	position: relative;
	clear: both;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	margin: 8px 0 30px;
	padding: 18px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	font-family: var(--am-font-body);
}
.am-share__label { color: #333; font: 600 13px/1.2 var(--am-font-body); }
.am-share__list { display: flex; flex-wrap: wrap; gap: 8px; }
.am-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	margin: 0 !important;
	padding: 0 14px 0 6px !important;
	background: #fff !important;
	color: #333 !important;
	border: 1px solid #e6e1e2 !important;
	border-radius: 30px !important;
	font: 500 12px/1 var(--am-font-body) !important;
	text-decoration: none !important;
	text-transform: none !important;
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.am-share__icon {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #fff;
}
.am-share__btn--whatsapp .am-share__icon { background: #25d366; }
.am-share__btn--facebook .am-share__icon { background: #1877f2; }
.am-share__btn--x .am-share__icon { background: #111; }
.am-share__btn--pinterest .am-share__icon { background: #e60023; }
.am-share__btn--mail .am-share__icon { background: #777; }
.am-share__btn--instagram .am-share__icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.am-share__btn:hover { border-color: var(--am-pink) !important; color: var(--am-pink) !important; background: #fffafb !important; }

.am-share__toast {
	position: absolute;
	left: 0;
	bottom: -30px;
	padding: 6px 12px;
	background: #2b2b2b;
	color: #fff;
	border-radius: 6px;
	font-size: 12px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
}
.am-share__toast.is-visible { opacity: 1; }

@media (max-width: 767px) {
	.am-share { gap: 10px; }
	.am-share__label { width: 100%; }
	.am-share__btn { padding: 0 6px !important; }
	.am-share__text { display: none; }
	.am-share__icon { width: 30px; height: 30px; }
}

/* ---------------- İlgili ürünler: 6'lı sıra, site geneli kart standardı ---------------- */
body.single-product .related.products ul.products,
body.single-product .upsells.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px;
	margin: 0 !important;
	padding: 0 !important;
}
body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after,
body.single-product .upsells.products ul.products::before,
body.single-product .upsells.products ul.products::after { content: none !important; display: none !important; }
body.single-product .related.products ul.products li.product,
body.single-product .upsells.products ul.products li.product {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	clear: none !important;
}

@media (max-width: 1200px) {
	body.single-product .related.products ul.products,
	body.single-product .upsells.products ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 767px) {
	body.single-product .related.products ul.products,
	body.single-product .upsells.products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* ---------------- ÜRÜN VİDEOSU (inc/product-video.php) ---------------- */
body.single-product .am-pvideo { position: relative; background: var(--am-bg-soft); }
body.single-product .am-pvideo__v {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;           /* galerideki fotoğraflarla aynı oran */
	object-fit: contain;            /* dikey video da kırpılmadan sığar */
	background: var(--am-bg-soft);
}
body.single-product .am-pvideo__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 9px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	border-radius: 6px;
	font: 700 10px/1 var(--am-font-body);
	letter-spacing: .08em;
	text-transform: uppercase;
	pointer-events: none;
}
/* Küçük resimde "oynat" işareti */
body.single-product .flex-control-thumbs li.am-thumb-video { position: relative; }
body.single-product .flex-control-thumbs li.am-thumb-video::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 18px no-repeat;
	pointer-events: none;
}
