/* =====================================================================
   ALMINA CORE — ZÜMRÜT ÜRÜN DETAY (zumrut-product.css)
   ===================================================================== */

body.am-z.single-product #content-wrap { width: 100% !important; max-width: calc(var(--z-max) + 2 * var(--z-g)) !important; margin: 0 auto !important; padding: 18px var(--z-g) 0 !important; box-sizing: border-box; }
body.am-z.single-product #primary { width: 100% !important; float: none !important; }
body.am-z.single-product .woocommerce-breadcrumb { margin: 0 0 18px !important; color: var(--z-muted); font: 500 13px var(--z-sans); }
body.am-z.single-product .woocommerce-breadcrumb a { color: var(--z-muted) !important; text-decoration: none; }
body.am-z.single-product .woocommerce-breadcrumb a:hover { color: var(--z-green) !important; }

/* Düzen: solda galeri + bilgi, sağda özet; altta tam genişlik */
body.am-z.single-product div.product { position: relative; display: grid !important; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); column-gap: 36px; align-items: start; }
body.am-z.single-product div.product > * { grid-column: 1 / -1; }
body.am-z.single-product div.product > .woocommerce-product-gallery { grid-column: 1; grid-row: 1; width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; }
body.am-z.single-product div.product > .z-pinfo { grid-column: 1; grid-row: 2; }
body.am-z.single-product div.product > .summary { grid-column: 2; grid-row: 1 / span 2; width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; }
body.am-z.single-product div.product > .onsale { display: none !important; }
body.am-z.single-product div.product > .z-fav--gallery { position: absolute; top: 14px; left: calc(52% - 70px); grid-column: auto; }

/* Galeri: küçük resimler solda dikey */
body.am-z.single-product .woocommerce-product-gallery { position: relative; display: grid !important; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; opacity: 1 !important; }
body.am-z.single-product .woocommerce-product-gallery > * { grid-column: 2; }
body.am-z.single-product .woocommerce-product-gallery .flex-viewport,
body.am-z.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { grid-column: 2; grid-row: 1; overflow: hidden; border-radius: 20px; background: var(--z-cream); }
body.am-z.single-product .woocommerce-product-gallery .flex-control-thumbs { grid-column: 1; grid-row: 1; display: flex !important; flex-direction: column; gap: 10px; width: auto !important; max-height: 100%; margin: 0 !important; padding: 0 !important; overflow-y: auto; scrollbar-width: none; list-style: none !important; }
body.am-z.single-product .woocommerce-product-gallery .flex-control-thumbs li { width: 100% !important; float: none !important; margin: 0 !important; list-style: none; }
body.am-z.single-product .woocommerce-product-gallery .flex-control-thumbs img { width: 100% !important; aspect-ratio: 1 / 1; object-fit: cover; border: 2px solid transparent !important; border-radius: 12px; background: var(--z-cream); opacity: .75; cursor: pointer; }
body.am-z.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.am-z.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover { border-color: var(--z-green) !important; opacity: 1; }
body.am-z.single-product .woocommerce-product-gallery__image img { width: 100% !important; aspect-ratio: 1 / 1; object-fit: cover; }
body.am-z.single-product .woocommerce-product-gallery__trigger { top: auto !important; bottom: 16px !important; right: 16px !important; width: 40px; height: 40px; border-radius: 50% !important; background: #fff !important; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }
body.am-z.single-product .woocommerce-product-gallery .z-fav--gallery { position: absolute; top: 14px; right: 14px; left: auto; z-index: 5; width: 44px; height: 44px; }
body.am-z.single-product .woocommerce-product-gallery::after { content: none !important; }
body.am-z.single-product .flex-direction-nav a { display: inline-flex !important; align-items: center; justify-content: center; width: 40px !important; height: 40px !important; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }

/* Özet */
body.am-z.single-product .summary .product_title { margin: 0 !important; color: var(--z-ink) !important; font: 400 clamp(30px, 3vw, 40px)/1.12 var(--z-serif) !important; letter-spacing: -.3px; }
.z-psub { margin: 6px 0 14px !important; }
.z-psub a { color: var(--z-muted) !important; font: 400 19px var(--z-serif); text-decoration: none !important; }
body.am-z.single-product .summary > .price { display: flex !important; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px !important; }
body.am-z.single-product .summary .price,
body.am-z.single-product .summary .price ins,
body.am-z.single-product .summary .price .woocommerce-Price-amount { color: var(--z-red) !important; font: 700 30px/1.15 var(--z-price) !important; text-decoration: none; }
body.am-z.single-product .summary .price del,
body.am-z.single-product .summary .price del .woocommerce-Price-amount { color: var(--z-muted) !important; font: 400 17px var(--z-price) !important; text-decoration: line-through; }
body.am-z.single-product .summary .price ins { order: -1; }
body.am-z.single-product .summary .woocommerce-product-details__short-description { margin: 0 0 18px; }
body.am-z.single-product .summary .woocommerce-product-details__short-description p { margin: 0 0 8px !important; color: var(--z-text); font: 500 14.5px/1.65 var(--z-sans); }

/* Sipariş kartı */
.z-order { display: flex; flex-direction: column; gap: 18px; margin: 0 0 22px; }
.z-order__region { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px; background: var(--z-soft); }
.z-order__h { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--z-ink); }
.z-order__h .am-icon { color: var(--z-green); }
.z-order__h b { font: 700 15.5px var(--z-sans); }
.z-order__h small { color: var(--z-muted); font-weight: 500; }
.z-order__f > .z-order__h { margin-bottom: 10px; }
.z-order__f > .z-order__h .am-icon { color: var(--z-pink); }
.z-order__two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.z-order__ok { display: flex; align-items: center; gap: 8px; margin: 0 !important; color: var(--z-green); font: 600 13.5px var(--z-sans); }
.z-order__ok[hidden] { display: none; }
.z-order__ok.is-no { color: var(--z-red); }
.z-order__ok.is-no .am-icon { display: none; }
.z-order__trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0 0 !important; padding: 12px 0 0 !important; border-top: 1px solid rgba(61, 106, 48, .14); list-style: none !important; }
.z-order__trust li { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--z-ink); font: 600 12px/1.25 var(--z-sans); }
.z-order__trust .am-icon { color: var(--z-green); }
.z-ta { position: relative; }
.z-ta textarea { height: 96px; padding-bottom: 26px !important; }
.z-ta small { position: absolute; right: 14px; bottom: 10px; color: var(--z-muted); font: 500 12px var(--z-sans); }
.z-sel--day select { height: 54px; }
.z-order__f [data-z-date] { margin-top: 10px !important; }
.z-order__btns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.z-order__btns .z-btn--green { box-shadow: 0 12px 26px rgba(61, 106, 48, .3); }
.z-order__btns .z-btn--cream { height: 58px; }
.z-order__cart { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: -6px 0 0; padding: 4px 0; border: 0; background: none; color: var(--z-green); font: 700 14px var(--z-sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.z-order__cart small { color: var(--z-muted); font-weight: 500; text-decoration: none; }
.z-order__note { display: block; margin: -4px 0 0 !important; color: var(--z-muted); font: 500 12.5px/1.5 var(--z-sans); }
.z-order__note .am-icon { margin: 0 6px -3px 0; }
.z-order__note a { white-space: nowrap; }
.z-order__note a { color: var(--z-ink) !important; font-weight: 700; }

/* Sağ alt banner */
.z-pbanner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; height: 160px; overflow: hidden; border-radius: 18px; background: linear-gradient(110deg, #fbf3ea, #f5e4d6); text-decoration: none !important; }
.z-pbanner > span { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 22px; }
.z-pbanner b { color: var(--z-ink); font: 400 24px/1.15 var(--z-serif); }
.z-pbanner img { width: 100% !important; height: 160px !important; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }

/* Galeri altı: bilgi kutuları + akordeon */
.z-pinfo { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.z-pboxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.z-pboxes li { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px; border-radius: 14px; background: var(--z-cream); }
.z-pboxes .am-icon { color: var(--z-green); }
.z-pboxes span { display: flex; flex-direction: column; gap: 3px; }
.z-pboxes b { color: var(--z-ink); font: 700 13.5px var(--z-sans); }
.z-pboxes small { color: var(--z-text); font: 500 12px/1.4 var(--z-sans); }
.z-acc { border: 1px solid var(--z-line); border-radius: 16px; overflow: hidden; }
.z-acc details { border-top: 1px solid var(--z-line); }
.z-acc details:first-child { border-top: 0; }
.z-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; color: var(--z-ink); font: 700 15px var(--z-sans); cursor: pointer; list-style: none; }
.z-acc summary::-webkit-details-marker { display: none; }
.z-acc summary .am-icon { transition: transform .2s ease; }
.z-acc details[open] summary .am-icon { transform: rotate(180deg); }
.z-acc details > div { padding: 0 18px 16px; color: var(--z-text); font: 500 14px/1.7 var(--z-sans); }
.z-acc details > div p { margin: 0 0 8px !important; }

/* Benzer ürünler */
body.am-z.single-product .related.products { margin-top: 48px !important; }
body.am-z.single-product .related.products > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px !important; color: var(--z-ink) !important; font: 400 30px/1.15 var(--z-serif) !important; text-align: left !important; }
body.am-z.single-product .related.products > h2::before { content: ""; width: 26px; height: 26px; background: var(--z-green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5-13 14-14 0 9-5 14-13 14zM5 19l7-7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5-13 14-14 0 9-5 14-13 14zM5 19l7-7'/%3E%3C/svg%3E") center / contain no-repeat; }
:is(html, #am) body.am-z.single-product .related.products ul.products { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 16px !important; }
.z-ptrust-wrap { margin-top: 48px; }
.z-ptrust-wrap .z-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 !important; padding: 22px 10px !important; border-radius: 20px; background: var(--z-soft); list-style: none !important; }
.z-ptrust-wrap .z-trust li { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; padding: 4px 16px; border-left: 1px solid rgba(61, 106, 48, .15); }
.z-ptrust-wrap .z-trust li:first-child { border-left: 0; }
.z-ptrust-wrap .z-trust .am-icon { color: var(--z-green); }
.z-ptrust-wrap .z-trust span { display: flex; flex-direction: column; gap: 3px; }
.z-ptrust-wrap .z-trust b { color: var(--z-ink); font: 800 14.5px var(--z-sans); }
.z-ptrust-wrap .z-trust small { color: var(--z-text); font: 500 12.5px var(--z-sans); }

/* Klasik ürün sayfası parçaları Zümrüt'te görünmesin */
body.am-z.single-product :is(.am-badge, .am-benefits, .am-wa-order, .am-steps) { display: none !important; }

/* Mobil sabit sipariş çubuğu */
.z-sticky { display: none; }

@media (max-width: 1100px) {
	:is(html, #am) body.am-z.single-product .related.products ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
	.z-order__trust { grid-template-columns: 1fr 1fr; gap: 10px; }
}

@media (max-width: 900px) {
	body.am-z.single-product #content-wrap { padding-top: 8px !important; }
	body.am-z.single-product .woocommerce-breadcrumb { font-size: 12px; margin-bottom: 10px !important; }
	body.am-z.single-product div.product { grid-template-columns: 1fr; }
	body.am-z.single-product div.product > :is(.woocommerce-product-gallery, .summary, .z-pinfo) { grid-column: 1; grid-row: auto; }
	body.am-z.single-product div.product > .z-pinfo { order: 3; }
	body.am-z.single-product div.product > .summary { order: 2; margin-top: 18px !important; }
	body.am-z.single-product div.product > .woocommerce-product-gallery { order: 1; }
	body.am-z.single-product div.product > :not(.woocommerce-product-gallery):not(.summary):not(.z-pinfo) { order: 4; }
	body.am-z.single-product .woocommerce-product-gallery { grid-template-columns: 1fr; gap: 10px; }
	body.am-z.single-product .woocommerce-product-gallery .flex-viewport,
	body.am-z.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { grid-column: 1; margin: 0 calc(-1 * var(--z-g)); border-radius: 0; }
	body.am-z.single-product .woocommerce-product-gallery .flex-control-thumbs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; }
	body.am-z.single-product .woocommerce-product-gallery .flex-control-thumbs li { flex: 0 0 64px; }
	body.am-z.single-product .summary .product_title { font-size: 28px !important; }
	.z-psub a { font-size: 16px; }
	body.am-z.single-product .summary .price, body.am-z.single-product .summary .price ins, body.am-z.single-product .summary .price .woocommerce-Price-amount { font-size: 26px !important; }
	.z-order__region { padding: 14px; }
	.z-order__two { grid-template-columns: 1fr; }
	.z-order__btns { grid-template-columns: minmax(0, 1fr) 58px; }
	.z-order__btns .z-btn--lg { font-size: 15px; padding: 0 14px; }
	.z-order__btns .z-btn--cream { padding: 0; }
	.z-order__btns .z-btn--cream [data-z-fav-label] { display: none; }
	.z-order__cart small { display: none; }
	.z-pbanner b { font-size: 20px; }
	.z-pboxes { grid-template-columns: 1fr; }
	body.am-z.single-product .related.products > h2 { font-size: 24px !important; }
	.z-ptrust-wrap { margin-top: 32px; }
	.z-ptrust-wrap .z-trust { grid-template-columns: 1fr 1fr; gap: 16px 8px; padding: 18px 12px !important; }
	.z-ptrust-wrap .z-trust li { justify-content: flex-start; gap: 10px; padding: 0 6px; border: 0; }
	.z-ptrust-wrap .z-trust b { font-size: 13px; }
	.z-ptrust-wrap .z-trust small { font-size: 11.5px; }

	body.am-z.single-product { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	body.am-z.single-product .am-wa-float { display: none !important; }
	.z-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 998; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--z-line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
	.z-sticky__p { color: var(--z-red); font: 700 19px/1.1 var(--z-price); white-space: nowrap; }
	.z-sticky__p small { display: block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; color: var(--z-green); font: 600 11px var(--z-sans); }
	.z-sticky .z-btn { flex: 1; height: 50px; padding: 0 12px; font-size: 14px; }
}
