/*
 * Elitmen · ürün sayfası
 * Ortak parçalar (galeri, beden, satın alma, akordeon, alt çubuk) ve üç tasarım:
 * .pd1 klasik, .pd2 editoryal, .pd3 bento.
 */

/* ---------- Ortak ---------- */
.pd { interpolate-size: allow-keywords; }
.pd-crumbs { padding: 24px 0; font-size: 13px; color: var(--muted); }
.pd-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; }
.pd-crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.pd-crumbs li + li::before { content: "/"; color: var(--line-strong); }
.pd-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pd-crumbs [aria-current] { color: var(--ink); }

.pd-gallery__main, .pd-gallery__item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--stone); aspect-ratio: 4 / 5; }
.pd-gallery__main img, .pd-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
[data-zoom] { cursor: zoom-in; }
[data-zoom].is-zoomed img { transform: scale(1.8); }
.pd-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-gallery__thumb { width: 72px; height: 90px; padding: 0; border: 1.5px solid transparent; border-radius: 8px; overflow: hidden; background: var(--stone); cursor: pointer; }
.pd-gallery__thumb.is-active { border-color: var(--ink); }
.pd-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 4 / 5;
	border-radius: var(--radius); background: linear-gradient(160deg, var(--stone), #e8e4db); color: var(--ink);
}
.pd-placeholder span { font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -.03em; }
.pd-placeholder small { font-size: 13px; color: var(--muted); }

/* Beden seçimi */
.pd-sizes { margin: 0; padding: 0; border: 0; min-width: 0; }
.pd-sizes.is-shaking { animation: pd-shake .4s var(--ease); }
@keyframes pd-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.pd-sizes__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.pd-sizes__label { float: left; padding: 0; font-size: 14px; font-weight: 600; }
.pd-sizes__label span { font-weight: 400; color: var(--muted); }
.pd-sizes__guide { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.pd-sizes__guide:hover { color: var(--gold-text); }
.pd-sizes__list { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.pd-size { position: relative; cursor: pointer; }
.pd-size input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pd-size span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 48px; padding: 0 16px;
	border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500;
	transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.pd-size:hover span { border-color: var(--ink); }
.pd-size input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pd-size input:focus-visible + span { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.pd-size.is-out { cursor: not-allowed; }
.pd-size.is-out span { color: #b0b0b0; text-decoration: line-through; background: transparent; }
.pd-sizes__error { margin-top: 10px; font-size: 14px; color: #8a2a2a; }

/* Satın alma */
.pd-buy { display: flex; flex-direction: column; gap: 24px; }
.pd-buy__actions { display: flex; flex-direction: column; gap: 10px; }
.eb--block { justify-content: space-between; width: 100%; height: 56px; }
.pd-buy__submit.is-loading { opacity: .7; pointer-events: none; }
.pd-buy__submit.is-added { background: var(--gold-text); }
.pd-buy__submit:disabled:not(.is-loading) { background: #8a8a8a; cursor: not-allowed; }
.pd-buy__ask { justify-content: center; gap: 10px; height: 52px; }

.pd-trust { display: flex; flex-direction: column; gap: 16px; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; }
.pd-trust li { display: flex; align-items: flex-start; gap: 14px; font-size: 14px; color: var(--muted); }
.pd-trust .icon { flex: none; color: var(--gold-text); }
.pd-trust strong { display: block; font-weight: 600; color: var(--ink); }

/* Akordeon */
.pd-acc { margin-top: 28px; border-top: 1px solid var(--line-strong); }
.pd-acc__item { border-bottom: 1px solid var(--line-strong); }
.pd-acc__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; }
.pd-acc__item summary::-webkit-details-marker { display: none; }
.pd-acc__mark { position: relative; flex: none; width: 16px; height: 16px; }
.pd-acc__mark::before, .pd-acc__mark::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .3s var(--ease); }
.pd-acc__mark::after { transform: rotate(90deg); }
.pd-acc__item[open] .pd-acc__mark::after { transform: rotate(0); }
.pd-acc__item::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.pd-acc__item[open]::details-content { block-size: auto; }
.pd-acc__body { padding-bottom: 22px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.pd-acc__body p + p, .pd2__panel p + p, .pd3__detail-body p + p { margin-top: 12px; }
.pd-facts { display: grid; gap: 8px; margin: 16px 0 0; }
.pd-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.pd-facts dt { color: var(--ink); font-weight: 500; }
.pd-facts dd { margin: 0; }

/* Telefonda alttan satın alma çubuğu */
.pd-bar { display: none; }

/* ---------- Seçenek 1 · Klasik ---------- */
.pd1__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; padding-bottom: 32px; }
.pd-gallery--stack { display: grid; gap: 12px; }
.pd-gallery--stack.is-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-gallery--stack.is-multi .pd-gallery__item:first-child { grid-column: 1 / -1; }
.pd1__panel { position: sticky; top: 24px; }
.admin-bar .pd1__panel { top: 56px; }
.pd1__brand { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.pd1__brand:hover { text-decoration: underline; text-underline-offset: 4px; }
.pd1__title { font-size: 36px; line-height: 1.1; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
.pd1__price { margin: 14px 0 0; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pd1__lead { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.pd1 .pd-buy { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- Seçenek 2 · Editoryal ---------- */
.pd2__hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100svh - var(--eh-h)); }
.pd2__media { position: relative; background: var(--stone); }
.pd2__media .pd-gallery { position: sticky; top: var(--eh-h); height: calc(100svh - var(--eh-h)); display: flex; flex-direction: column; }
.pd2__media .pd-gallery__main, .pd2__media > .pd-placeholder { flex: 1; aspect-ratio: auto; border-radius: 0; }
.pd2__media > .pd-placeholder { position: sticky; top: var(--eh-h); height: calc(100svh - var(--eh-h)); }
.pd2__media .pd-gallery__thumbs { position: absolute; left: 24px; bottom: 24px; margin: 0; }
.pd2__text { display: flex; flex-direction: column; padding: 8px clamp(32px, 6vw, 112px) 72px; background: var(--stone); }
.pd2__text .pd-crumbs { padding: 24px 0 40px; }
.pd2__kicker { display: flex; gap: 10px; align-items: center; }
.pd2__kicker a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pd2__title { margin-top: 18px; font-size: clamp(44px, 4.6vw, 72px); line-height: 1; font-weight: 500; letter-spacing: -.045em; text-wrap: balance; }
.pd2__price { margin-top: 20px; font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pd2__lead { max-width: 480px; margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.pd2 .pd-buy { max-width: 520px; margin-top: 40px; }
/* Bedenler metin gibi: altı çizili büyük harfler */
.pd-sizes--text .pd-sizes__list { gap: 4px 24px; }
.pd-sizes--text .pd-size span { min-width: 0; height: 44px; padding: 0 2px; border: 0; border-bottom: 1.5px solid transparent; border-radius: 0; background: transparent; font-size: 22px; letter-spacing: -.01em; }
.pd-sizes--text .pd-size:hover span { border-bottom-color: var(--line-strong); }
.pd-sizes--text .pd-size input:checked + span { background: transparent; color: var(--ink); border-bottom-color: var(--ink); }
.pd2 .pd-buy__ask { border-color: var(--line-strong); }
.pd2__tabs { max-width: 520px; margin-top: 48px; }
.pd2__tablist { display: flex; gap: 28px; border-bottom: 1px solid var(--line-strong); }
.pd2__tab { margin-bottom: -1px; padding: 12px 0; border: 0; border-bottom: 1.5px solid transparent; background: none; font-size: 15px; color: var(--muted); cursor: pointer; }
.pd2__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.pd2__panel { padding: 20px 0 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
.pd2__note { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 40px; font-size: 14px; color: var(--muted); }
.pd2__note .icon { color: var(--gold-text); }

.pd2__related { padding: 112px 0; }
.pd2__related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.pd2__related-title { font-size: clamp(36px, 3.4vw, 52px); font-weight: 500; letter-spacing: -.04em; }
.pd2__arrows { display: flex; gap: 8px; }
.pd2__arrow { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pd2__arrow:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.pd2__arrow:disabled { opacity: .35; cursor: default; }
.pd2__rail {
	display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 22vw, 320px); gap: 24px; margin: 0; padding: 0 var(--gutter);
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; list-style: none;
}
.pd2__rail::-webkit-scrollbar { display: none; }
.pd2__slide { scroll-snap-align: start; }
@media (min-width: 1440px) { .pd2__rail { padding-left: calc((100vw - var(--wrap)) / 2); scroll-padding-left: calc((100vw - var(--wrap)) / 2); } }

/* ---------- Seçenek 3 · Bento ---------- */
.pd3 { padding-bottom: 72px; }
.pd3__bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 12px; }
.pd3__media { grid-column: 1 / 8; grid-row: 1 / 3; position: relative; padding: 12px; }
.pd3__media .pd-gallery__main, .pd3__media > .pd-placeholder { border-radius: 14px; aspect-ratio: 5 / 6; }
.pd3__badge { top: 26px; left: 26px; background: #fff; color: var(--ink); }
.pd3__buy { grid-column: 8 / 13; display: flex; flex-direction: column; padding: 32px; }
.pd3__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd3__tag { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--stone); font-size: 13px; }
.pd3__tag--brand { background: var(--ink); color: #fff; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.pd3__tag:hover { outline: 1px solid var(--ink); }
.pd3__title { margin-top: 18px; font-size: 32px; line-height: 1.1; font-weight: 500; letter-spacing: -.03em; }
.pd3__price { margin-top: 10px; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pd3 .pd-buy { margin-top: 28px; }
.pd-sizes--grid .pd-sizes__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.pd-sizes--grid .pd-size span { width: 100%; border-radius: 12px; }
.pd3 .eb--block { border-radius: 16px; }
.pd3 .pd-buy__ask { border-radius: 16px; border-color: var(--line-strong); }
.pd3__delivery { grid-column: 8 / 11; display: flex; flex-direction: column; padding: 24px; }
.pd3__delivery .icon { color: var(--gold-light); }
.pd3__delivery-label { margin-top: auto; padding-top: 24px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.pd3__delivery-date { margin-top: 4px; font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.pd3__delivery-note { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.pd3__mini { display: flex; flex-direction: column; padding: 20px; }
.pd3__mini .icon { color: var(--gold-text); }
.pd3__mini-title { margin-top: auto; padding-top: 18px; font-size: 16px; font-weight: 600; }
.pd3__mini-text { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.pd3__mini { grid-column: 11 / 13; }
.pd3__mini--link { grid-column: 8 / 13; flex-direction: row; align-items: center; gap: 16px; transition: background-color .2s var(--ease); }
.pd3__mini--link .pd3__mini-title { margin: 0; padding: 0; }
.pd3__mini--link .pd3__mini-text { margin: 0 0 0 auto; }
.pd3__mini--link:hover { background: var(--gold-light); }
.pd3__bento > .pd3__mini:not(.pd3__mini--link) { grid-row: 2; }
.pd3__delivery { grid-row: 2; }
.pd3__mini--link { grid-row: 3; }
.pd3__media { grid-row: 1 / 4; }

.pd3__details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.pd3__detail { padding: 28px; scroll-margin-top: 110px; }
.pd3__detail-title { margin-bottom: 14px; font-size: 18px; font-weight: 600; }
.pd3__detail-body { font-size: 15px; line-height: 1.65; color: var(--muted); }
.pd3__detail:target { outline: 2px solid var(--gold); }

.pd3__related { margin-top: 56px; }
.pd3__rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
/* Kartın kendi çerçevesi var; bento sarmalayıcısı yalnız ızgara hücresi. Sayfa zemini taş olduğundan kart beyaz. */
.pd3__rel { display: flex; flex-direction: column; border-radius: 0; background: transparent; overflow: visible; }
.pd3__rel .pcard { background: #fff; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) {
	.pd1__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
	.pd1__title { font-size: 30px; }

	.pd2__hero { grid-template-columns: 1fr; min-height: 0; }
	.pd2__media .pd-gallery, .pd2__media > .pd-placeholder { position: relative; top: 0; height: clamp(420px, 62svh, 760px); }
	.pd2__text { padding: 8px var(--gutter) 64px; }
	.pd2__text .pd-crumbs { order: -1; padding-bottom: 24px; }
	.pd2__related { padding: 80px 0; }

	.pd3__bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.pd3__media { grid-column: 1 / 4; grid-row: 1 / 3; }
	.pd3__buy { grid-column: 4 / 7; grid-row: 1 / 3; padding: 24px; }
	.pd3__delivery { grid-column: 1 / 3; grid-row: 3; }
	.pd3__bento > .pd3__mini:not(.pd3__mini--link) { grid-column: 3 / 5; grid-row: 3; }
	.pd3__mini--link { grid-column: 5 / 7; grid-row: 3; flex-direction: column; align-items: flex-start; }
	.pd3__mini--link .pd3__mini-title { margin-top: auto; padding-top: 18px; }
	.pd3__mini--link .pd3__mini-text { margin: 4px 0 0; }
	.pd3__details { grid-template-columns: 1fr; }
	.pd3__rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	.pd-crumbs { padding: 16px 0; font-size: 12px; }
	.pd-crumbs li:not(:first-child):not(:last-child) { display: none; }
	.pd-crumbs li:last-child::before { content: "/"; }

	.pd1__grid { grid-template-columns: 1fr; gap: 24px; }
	.pd1 .pd-gallery--stack.is-multi { grid-auto-flow: column; grid-auto-columns: 88%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); }
	.pd1 .pd-gallery--stack .pd-gallery__item { scroll-snap-align: start; grid-column: auto !important; }
	.pd1__panel { position: static; }
	.pd1__title { font-size: 28px; }

	.pd2__media .pd-gallery, .pd2__media > .pd-placeholder { height: 58svh; }
	.pd2__title { font-size: 40px; }
	.pd2__lead { font-size: 16px; }
	.pd2 .pd-buy { margin-top: 28px; }
	.pd-sizes--text .pd-size span { font-size: 20px; }
	.pd2__related-title { font-size: 32px; }
	.pd2__arrows { display: none; }
	.pd2__rail { grid-auto-columns: 70%; gap: 16px; }

	.pd3__bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pd3__media, .pd3__buy { grid-column: 1 / -1; grid-row: auto; }
	.pd3__media { padding: 8px; }
	.pd3__badge { top: 20px; left: 20px; }
	.pd3__buy { padding: 22px 18px; }
	.pd3__title { font-size: 26px; }
	.pd3__delivery { grid-column: 1 / -1; grid-row: auto; }
	.pd3__bento > .pd3__mini:not(.pd3__mini--link), .pd3__mini--link { grid-column: auto; grid-row: auto; }
	.pd3__detail { padding: 22px 18px; }
	.pd3__related { margin-top: 40px; }

	/* Alttan satın alma çubuğu */
	.pd-bar {
		position: fixed; left: 12px; right: calc(var(--wa-edge) + var(--wa-size) + 10px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55;
		display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px;
		background: #fff; box-shadow: 0 12px 36px rgba(18, 18, 18, .18); animation: pd-bar-in .3s var(--ease);
	}
	.pd-bar[hidden] { display: none; }
	.pd-bar--bento { bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom)); border-radius: 18px; }
	.pd-bar__info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
	.pd-bar__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
	.pd-bar__price { font-size: 16px; font-weight: 600; }
	.pd-bar__btn { flex: none; height: 48px; padding-left: 18px; gap: 10px; font-size: 12px; }
	.pd-bar__btn .eb__chip { width: 32px; height: 32px; }
	.has-buy-bar .toast { right: 12px; bottom: calc(96px + var(--tabbar-h)); }
	@keyframes pd-bar-in { from { opacity: 0; transform: translateY(16px); } }
}

@media (prefers-reduced-motion: reduce) {
	.pd-sizes.is-shaking, .pd-bar { animation: none; }
	[data-zoom].is-zoomed img { transform: none; }
}
