/* Dantel — ürün sayfası ve yorumlar (sahibi: ürün). Butonlar, adet kutusu (.dn-qty), fiyat ve yıldızlar base.css'te.
   Düzen: masaüstü (>= 1024px) solda galeri + sağda 540px yapışkan bilgi sütunu; altında tek sütun.
   Önekler: dn-pdp (sayfa), dn-gallery, dn-opt (seçenekler), dn-stock, dn-trust, dn-acc (akordeon), dn-pdp-bar
   (yapışkan çubuk), dn-lightbox, dn-reviews / dn-review / dn-rate (yorumlar), dn-related (ilgili ürünler). */

/* ---------------------------------------------------------------------------
   1. Sayfa ve ızgara
   ------------------------------------------------------------------------ */
.dn-pdp__crumbs {
	padding-bottom: 0;
}

.dn-pdp__crumbs .breadcrumb {
	margin-bottom: 1.25rem;
	padding-top: 1rem;
	flex-wrap: nowrap;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
}

.dn-pdp__crumbs .breadcrumb::-webkit-scrollbar {
	display: none;
}

.dn-pdp__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

/* Mobil: galeri kenardan kenara */
.dn-pdp__gallery {
	margin-right: calc(var(--dn-gutter) * -1);
	margin-left: calc(var(--dn-gutter) * -1);
}

.dn-pdp__info {
	padding-top: 24px;
}

@media (max-width: 767.98px) {
	.dn-pdp__crumbs {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1023.98px) {
	.dn-pdp__grid {
		max-width: 760px;
		margin-right: auto;
		margin-left: auto;
	}

	.dn-pdp__gallery {
		margin-right: 0;
		margin-left: 0;
	}
}

@media (min-width: 1024px) {
	.dn-pdp__grid {
		grid-template-columns: minmax(0, 1fr) 540px;
		gap: 64px;
		align-items: start;
	}

	.dn-pdp__gallery {
		margin-right: 0;
		margin-left: 0;
	}

	.dn-pdp__info {
		padding-top: 0;
	}

	.dn-pdp__sticky {
		position: sticky;
		top: var(--dn-pdp-top, calc(var(--dn-sticky-offset) + 20px));
	}
}

/* ---------------------------------------------------------------------------
   2. Galeri
   ------------------------------------------------------------------------ */
.dn-gallery__stage {
	position: relative;
	background: var(--dn-image-bg);
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

@media (min-width: 768px) {
	.dn-gallery__stage {
		aspect-ratio: 1 / 1;
	}
}

.dn-gallery__track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.dn-gallery__track::-webkit-scrollbar {
	display: none;
}

.dn-gallery__track:focus-visible {
	outline-offset: -2px;
}

.dn-gallery__slide {
	display: block;
	flex: 0 0 100%;
	min-width: 0;
	height: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	cursor: zoom-in;
}

.dn-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	user-select: none;
}

.dn-gallery__empty {
	width: 100%;
	height: 100%;
}

.dn-gallery__badge {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 1;
	font-size: 0.8125rem;
	pointer-events: none;
}

/* Okların masaüstünde üzerine gelince, dokunmatikte her zaman görünmesi */
.dn-gallery__stage .dn-carousel__btn--overlay {
	opacity: 0;
}

.dn-gallery__stage:hover .dn-carousel__btn--overlay,
.dn-gallery__stage .dn-carousel__btn--overlay:focus-visible {
	opacity: 1;
}

.dn-gallery__stage:hover .dn-carousel__btn--overlay:disabled {
	opacity: 0.3;
}

@media (hover: none) {
	.dn-gallery__stage .dn-carousel__btn--overlay {
		display: none;
	}
}

.dn-gallery__thumbs {
	display: flex;
	gap: 12px;
	padding: 16px var(--dn-gutter) 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.dn-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

@media (min-width: 768px) {
	.dn-gallery__thumbs {
		padding-right: 0;
		padding-left: 0;
	}
}

.dn-gallery__thumb {
	position: relative;
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 0;
	background: var(--dn-image-bg);
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 0.2s ease;
}

@media (min-width: 1024px) {
	.dn-gallery__thumb {
		width: 84px;
		height: 84px;
	}
}

.dn-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.dn-gallery__thumb::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -6px;
	left: 0;
	height: 2px;
	background: transparent;
}

.dn-gallery__thumb:hover,
.dn-gallery__thumb.is-active {
	opacity: 1;
}

.dn-gallery__thumb.is-active::after {
	background: var(--dn-dark);
}

.dn-gallery__thumbs {
	padding-bottom: 8px;
}

/* ---------------------------------------------------------------------------
   3. Bilgi sütunu: başlık, fiyat, değerlendirme
   ------------------------------------------------------------------------ */
.dn-pdp__title {
	margin: 0 0 16px;
	font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
	font-weight: var(--dn-heading-weight);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.dn-pdp__pricebar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
}

.dn-pdp__price {
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.3;
}

.dn-pdp__price .dn-price__regular {
	font-size: 1.125rem;
}

.dn-pdp__rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--dn-muted);
	font-size: 0.875rem;
	text-decoration: none;
}

.dn-pdp__rating:hover {
	color: var(--dn-text);
	text-decoration: underline;
}

.dn-pdp__rating .dn-star {
	width: 15px;
	height: 15px;
}

.dn-pdp__fine {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 16px;
	margin-top: 6px;
	color: var(--dn-muted);
	font-size: 0.8125rem;
}

/* Adet indirimleri */
.dn-pdp__bulk {
	margin-top: 20px;
	padding: 14px 16px;
	background: var(--dn-image-bg);
	font-size: 0.8125rem;
}

.dn-pdp__bulk-title {
	margin: 0 0 8px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.dn-pdp__bulk-list {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dn-pdp__bulk-list li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.dn-pdp__bulk-list strong {
	font-weight: 500;
}

.dn-pdp__rule {
	margin: 24px 0;
	border: 0;
	border-top: 1px solid #dedede;
	opacity: 1;
}

/* ---------------------------------------------------------------------------
   4. Seçenekler
   ------------------------------------------------------------------------ */
.dn-opt {
	margin-bottom: 24px;
}

.dn-opt__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.dn-opt__label {
	margin: 0;
	font-size: 1rem;
	font-weight: 300;
}

.dn-opt__name {
	font-weight: 600;
}

.dn-opt__head.has-value .dn-opt__name::after {
	content: ":";
}

.dn-opt__value {
	font-weight: 300;
}

/* Zorunlu işareti, başlık satırının başında küçük */
div.required .dn-opt__label::before {
	content: "* ";
	color: var(--dn-accent);
	font-weight: 600;
}

.dn-pdp__sizeguide {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--dn-accent);
	font-size: 1rem;
	text-decoration: underline;
	text-decoration-color: currentColor;
}

.dn-pdp__sizeguide:hover {
	color: var(--dn-accent);
	opacity: 0.8;
}

.dn-opt__values {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.dn-opt__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Kare buton: ölçü / metin değeri */
.dn-opt__btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 70px;
	min-height: 52px;
	padding: 6px 16px;
	border: 1px solid var(--dn-border-strong);
	background: #fff;
	color: var(--dn-text);
	font-size: 0.9375rem;
	font-weight: 300;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease;
}

.dn-opt__btn small {
	color: var(--dn-muted);
	font-size: 0.6875rem;
}

.dn-opt__btn:hover {
	border-color: var(--dn-dark);
}

.dn-opt__input:checked + .dn-opt__btn {
	border-color: var(--dn-dark);
	box-shadow: inset 0 0 0 1px var(--dn-dark);
	font-weight: 400;
}

.dn-opt__input:focus-visible + .dn-opt__btn {
	outline: 2px solid var(--dn-text);
	outline-offset: 2px;
}

/* Stokta yok: gri zemin, seçilemez */
.dn-opt__input:disabled + .dn-opt__btn {
	border-color: #e6e6e6;
	background: #f1f1f1;
	color: #b3b3b3;
	cursor: not-allowed;
}

/* Yuvarlak örnek: seçenek değerinin görseli varsa (renk) */
.dn-opt__btn--swatch {
	position: relative;
	width: 44px;
	min-width: 0;
	height: 44px;
	min-height: 0;
	padding: 0;
	border-radius: 50%;
	overflow: hidden;
}

.dn-opt__swatch {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dn-opt__input:checked + .dn-opt__btn--swatch {
	box-shadow:
		0 0 0 2px #fff,
		0 0 0 4px var(--dn-dark);
	overflow: visible;
}

.dn-opt__input:checked + .dn-opt__btn--swatch .dn-opt__swatch {
	border-radius: 50%;
}

.dn-opt__values.is-invalid .dn-opt__btn {
	border-color: var(--dn-danger);
}

.dn-opt .invalid-feedback {
	margin-top: 8px;
}

/* Onay kutusu, metin, tarih, dosya */
.dn-opt__list .form-check {
	margin-bottom: 6px;
}

.dn-opt__list.is-invalid .form-check-input {
	border-color: var(--dn-danger);
}

.dn-opt__thumb {
	width: 28px;
	height: 28px;
	margin-right: 6px;
	object-fit: cover;
	vertical-align: middle;
}

.dn-opt .form-control,
.dn-opt .form-select {
	width: 100%;
}

/* Stok satırı */
.dn-stock {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 28px;
	font-size: 1rem;
	font-weight: 300;
}

.dn-stock__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--dn-image-bg);
}

.dn-stock.is-out {
	color: var(--dn-danger);
}

/* Adet */
.dn-pdp__qty .dn-qty {
	height: 48px;
}

.dn-pdp__qty .dn-qty__btn {
	width: 48px;
}

.dn-pdp__qty .dn-qty input {
	width: 56px;
	font-size: 1rem;
	line-height: 46px;
}

.dn-pdp__note {
	margin: 8px 0 0;
	color: var(--dn-muted);
	font-size: 0.8125rem;
}

/* Sepete ekle / hemen al */
.dn-pdp__actions {
	display: grid;
	gap: 12px;
	margin-top: 32px;
}

.dn-pdp__actions .btn {
	position: relative;
}

.btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.dn-pdp__secondary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 20px;
}

.dn-textbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--dn-muted);
	font-size: 0.8125rem;
	cursor: pointer;
}

.dn-textbtn:hover {
	color: var(--dn-text);
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   5. Güven öğeleri
   ------------------------------------------------------------------------ */
.dn-trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 36px 0 28px;
	padding: 0;
	list-style: none;
}

.dn-trust__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	text-align: center;
}

.dn-trust__item .dn-icon {
	margin-bottom: 8px;
}

.dn-trust__item strong {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
}

.dn-trust__item span {
	color: var(--dn-muted-light);
	font-size: 0.8125rem;
	line-height: 1.4;
}

/* ---------------------------------------------------------------------------
   6. Akordeonlar
   ------------------------------------------------------------------------ */
.dn-acc-group {
	border-top: 1px solid #dedede;
}

.dn-acc {
	border-bottom: 1px solid #dedede;
}

.dn-acc > summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 0;
	list-style: none;
	cursor: pointer;
}

.dn-acc > summary::-webkit-details-marker {
	display: none;
}

.dn-acc__title {
	flex: 1 1 auto;
	font-size: 1.0625rem;
	font-weight: 600;
}

.dn-acc__minus,
.dn-acc[open] .dn-acc__plus {
	display: none;
}

.dn-acc[open] .dn-acc__minus {
	display: inline-block;
}

.dn-acc__body {
	padding: 0 0 28px;
	font-size: 0.9375rem;
	font-weight: 300;
	overflow-wrap: anywhere;
}

.dn-acc__body img {
	max-width: 100%;
	height: auto;
}

.dn-acc__body table {
	max-width: 100%;
}

.dn-pdp__tags {
	margin: 16px 0 0;
	color: var(--dn-muted);
	font-size: 0.8125rem;
}

.dn-pdp__tags a {
	text-decoration: underline;
	text-decoration-color: currentColor;
}

/* Özellikler */
.dn-specs {
	margin: 0 0 20px;
}

.dn-specs__group {
	margin-bottom: 4px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.dn-specs__row {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--dn-border);
}

.dn-specs__row dt {
	color: var(--dn-muted);
	font-weight: 300;
}

.dn-specs__row dd {
	margin: 0;
}

/* Marka, model, kodlar */
.dn-pdp__meta {
	display: grid;
	gap: 4px;
	margin: 24px 0 0;
	padding: 0;
	color: var(--dn-text);
	font-size: 0.8125rem;
	list-style: none;
}

.dn-pdp__meta span {
	color: var(--dn-muted);
}

.dn-pdp__meta a {
	text-decoration: underline;
	text-decoration-color: currentColor;
}

/* ---------------------------------------------------------------------------
   7. Yorumlar
   ------------------------------------------------------------------------ */
.dn-review-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dn-review {
	padding: 0 0 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--dn-border);
}

.dn-review__head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 6px;
}

.dn-review__author {
	font-weight: 600;
}

.dn-review__date {
	color: var(--dn-muted-light);
	font-size: 0.8125rem;
}

.dn-review__text {
	margin: 8px 0 0;
}

.dn-review-empty {
	margin: 0 0 8px;
}

.dn-review-pagination {
	margin-bottom: 8px;
}

.dn-reviews__title {
	margin: 24px 0 16px;
	font-size: 1.25rem;
	font-weight: 500;
}

.dn-reviews__list + .dn-reviews__title {
	padding-top: 8px;
}

.dn-reviews__login {
	margin: 0;
	color: var(--dn-muted);
}

/* Yıldızla puan verme: radyolar görünmez, etiketler yıldız; seçilen ve öncekiler dolu */
.dn-rate {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--dn-muted);
	font-size: 0.8125rem;
}

.dn-rate__stars {
	display: inline-flex;
	flex-direction: row-reverse;
}

.dn-rate__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.dn-rate__star {
	padding: 2px;
	color: var(--dn-text);
	cursor: pointer;
}

.dn-rate__star .dn-star {
	display: block;
	width: 26px;
	height: 26px;
}

.dn-rate__input:checked ~ .dn-rate__star .dn-star,
.dn-rate__star:hover .dn-star,
.dn-rate__star:hover ~ .dn-rate__star .dn-star {
	fill: currentColor;
}

.dn-rate__input:focus-visible + .dn-rate__star {
	outline: 2px solid var(--dn-text);
	outline-offset: 0;
}

.dn-rate.is-invalid .dn-star {
	stroke: var(--dn-danger);
	stroke-width: 1.5;
}

/* ---------------------------------------------------------------------------
   8. Yapışkan alt çubuk (mobil / tablet)
   ------------------------------------------------------------------------ */
.dn-pdp-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 900;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px var(--dn-gutter) calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--dn-border);
	background: #fff;
	box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.05);
	transform: translateY(100%);
	visibility: hidden;
	transition:
		transform var(--dn-duration) var(--dn-ease),
		visibility 0s linear var(--dn-duration);
}

.dn-pdp-bar.is-visible {
	transform: none;
	visibility: visible;
	transition-delay: 0s;
}

.dn-pdp-bar__text {
	display: grid;
	min-width: 0;
	gap: 2px;
}

.dn-pdp-bar__name {
	overflow: hidden;
	font-size: 1rem;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dn-pdp-bar__sel {
	overflow: hidden;
	color: var(--dn-muted);
	font-size: 0.8125rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dn-pdp-bar__sel a {
	color: var(--dn-accent);
	text-decoration: underline;
	text-decoration-color: currentColor;
}

.dn-pdp-bar .btn {
	flex: 0 0 auto;
	min-height: 48px;
	padding-right: 24px;
	padding-left: 24px;
	font-size: 0.8125rem;
	white-space: nowrap;
}

body.dn-pdp-bar-on {
	padding-bottom: 76px;
}

@media (min-width: 1024px) {
	.dn-pdp-bar {
		display: none;
	}

	body.dn-pdp-bar-on {
		padding-bottom: 0;
	}
}

/* ---------------------------------------------------------------------------
   9. Büyütme (lightbox)
   ------------------------------------------------------------------------ */
.dn-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1070;
	display: grid;
	place-items: center;
	background: #fff;
}

.dn-lightbox[hidden] {
	display: none;
}

.dn-lightbox__stage {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 64px 72px;
}

.dn-lightbox__img {
	max-width: 100%;
	max-height: calc(100vh - 128px);
	object-fit: contain;
	mix-blend-mode: multiply;
	user-select: none;
	transition: opacity 0.2s ease;
}

.dn-lightbox.is-loading .dn-lightbox__img {
	opacity: 0.3;
}

.dn-lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--dn-text);
	cursor: pointer;
}

.dn-lightbox__close {
	top: 12px;
	right: 12px;
}

.dn-lightbox__prev,
.dn-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
}

.dn-lightbox__prev {
	left: 12px;
}

.dn-lightbox__next {
	right: 12px;
}

.dn-lightbox__count {
	position: absolute;
	bottom: 20px;
	left: 0;
	width: 100%;
	color: var(--dn-muted);
	font-size: 0.8125rem;
	text-align: center;
}

@media (max-width: 767.98px) {
	.dn-lightbox__stage {
		padding: 56px 0;
	}

	.dn-lightbox__img {
		max-height: calc(100vh - 112px);
	}

	.dn-lightbox__prev,
	.dn-lightbox__next {
		display: none;
	}
}

/* ---------------------------------------------------------------------------
   10. İlgili ürünler
   ------------------------------------------------------------------------ */
.dn-related {
	overflow: hidden;
	padding: var(--dn-section-space) 0;
}

.dn-related .dn-carousel {
	--dn-per-view: 2.2;
	--dn-carousel-gap: 12px;
}

@media (min-width: 768px) {
	.dn-related .dn-carousel {
		--dn-per-view: 3.2;
		--dn-carousel-gap: 20px;
	}
}

@media (min-width: 1024px) {
	.dn-related .dn-carousel {
		--dn-per-view: 4;
		--dn-carousel-gap: 30px;
	}
}

.dn-related__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.dn-related__title {
	margin: 0;
	font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem);
	font-weight: var(--dn-heading-weight);
	line-height: 1.2;
}

.dn-related__nav {
	display: flex;
	gap: 4px;
}

.dn-related__nav .dn-icon {
	width: 24px;
	height: 24px;
}

.dn-related__track {
	padding-right: var(--dn-gutter);
	padding-left: var(--dn-gutter);
	scroll-padding-inline: var(--dn-gutter);
}

.dn-related__track:focus {
	outline: 0;
}

.dn-related .dn-carousel:not(.is-scrollable) .dn-related__nav {
	visibility: hidden;
}
