/* Danayagirelim Pro — ortak vitrin bileşenleri */
:root {
	--dg-green: #318d1b;
	--dg-green-600: #2a7d17;
	--dg-green-700: #1f6112;
	--dg-leaf: #93c350;
	--dg-leaf-50: #eef6e4;
	--dg-leaf-100: #e1efd0;
	--dg-wheat: #fbbc34;
	--dg-wheat-50: #fff6df;
	--dg-ink: #1f2a22;
	--dg-ink-2: #4b5850;
	--dg-ink-3: #77837b;
	--dg-line: #e2e8df;
	--dg-line-2: #eef2ec;
	--dg-soft: #f4f7f1;
	--dg-red: #d64532;
	--dg-radius: 14px;
	--dg-head: "Jost", var(--wd-title-font, "Lato"), sans-serif;
	--dg-tabbar-h: 66px;
}

/* Temanın genel düğme stillerini (dolgu, arka plan, büyük harf, min. yükseklik) bileşenlerimizde sıfırlar.
   Özgüllük kasıtlı olarak düşük (0,1,1): temanın kuralını geçer, bileşen kurallarımız ise bunu geçer. */
html :where(.dgp-tabbar, .dgp-sheet, .dgp-cookie, .dgp-cookie-modal, .dgp-pdp-wrap, .dgp-buybar, .dgp-zoom, .dgp-store, .dgp-cayma, .dgp-home-sec, .dgp-seller-box) :where(button[class*="dgp-"], .dgp-gallery-thumbs button):not(.btn, .button) {
	min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
	color: inherit; font: inherit; text-transform: none; letter-spacing: normal; gap: 0;
}

html body .dgp-ic { flex: none; vertical-align: middle; }
html body .dgp-ic .f { fill: currentColor; fill-opacity: 0; stroke: none; transition: fill-opacity .2s; }
html body .dgp-muted { color: var(--dg-ink-3); }

/* Yıldızlar */
html body .dgp-stars { position: relative; display: inline-flex; vertical-align: middle; line-height: 0; color: #d9ded6; }
html body .dgp-stars .dgp-ic { width: var(--dgp-star, 16px); height: var(--dgp-star, 16px); }
html body .dgp-stars .dgp-ic .f { fill-opacity: 1; }
html body .dgp-stars .dgp-ic path:not(.f) { stroke: none; }
html body .dgp-stars-bg, html body .dgp-stars-fg { display: inline-flex; gap: 1px; }
html body .dgp-stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #f2a516; }

/* Çizgi buton */
html body .dgp-btn-line {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 0 16px; border-radius: 12px;
	border: 1.5px solid var(--dg-line); background: #fff; color: var(--dg-ink) !important;
	font-weight: 600; font-size: 14px; text-decoration: none !important; cursor: pointer; transition: border-color .15s, background .15s;
}
html body .dgp-btn-line:hover { border-color: var(--dg-green); background: var(--dg-leaf-50); }

/* ===== Mobil alt menü ===== */
html body .dgp-tabbar, html body .dgp-sheet { font-family: var(--wd-text-font, "Lato"), system-ui, sans-serif; }
html body .dgp-tabbar { display: none; }
@media (max-width: 1024px) {
	html body .dgp-tabbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 390;
		display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .94);
		-webkit-backdrop-filter: saturate(1.8) blur(16px); backdrop-filter: saturate(1.8) blur(16px);
		border-top: 1px solid rgba(31, 42, 34, .08);
		box-shadow: 0 -8px 28px rgba(31, 42, 34, .07);
		transition: transform .28s cubic-bezier(.2, .8, .2, 1);
	}
	html body .dgp-tabbar.is-hidden-pdp { display: none; }
	html body .dgp-tab {
		position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
		padding: 2px 0 0; border: 0; background: none; color: var(--dg-ink-3) !important;
		font-weight: 600; font-size: 11px; line-height: 1.2; font-family: inherit; letter-spacing: .01em; text-decoration: none !important;
		-webkit-tap-highlight-color: transparent; cursor: pointer; min-width: 0;
	}
	html body .dgp-tab-ic {
		position: relative; display: grid; place-items: center;
		width: 56px; height: 32px; border-radius: 16px;
		transition: background .22s, transform .15s;
	}
	html body .dgp-tab-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
	html body .dgp-tab.is-active { color: var(--dg-green-700) !important; }
	html body .dgp-tab.is-active .dgp-tab-ic { background: var(--dg-leaf-100); }
	html body .dgp-tab.is-active .dgp-ic .f { fill-opacity: .32; }
	html body .dgp-tab:active .dgp-tab-ic { transform: scale(.9); }
	html body .dgp-tab:focus-visible { outline: none; }
	html body .dgp-tab:focus-visible .dgp-tab-ic, html body .dgp-tab:focus-visible .dgp-fab { box-shadow: 0 0 0 3px rgba(49, 141, 27, .45); }
	html body .dgp-tab-sell { color: var(--dg-ink-2) !important; }
	html body .dgp-fab {
		display: grid; place-items: center; width: 54px; height: 54px; margin: -24px auto 1px;
		border-radius: 19px; color: #fff;
		background: linear-gradient(160deg, #3fa324, var(--dg-green) 55%, var(--dg-green-700));
		box-shadow: 0 10px 20px -6px rgba(31, 97, 18, .55), 0 0 0 5px #fff;
		transition: transform .15s;
	}
	html body .dgp-fab .dgp-ic { stroke-width: 2.4; }
	html body .dgp-tab-sell:active .dgp-fab { transform: scale(.92); }
	html body .dgp-tab-badge {
		position: absolute; top: -3px; left: 50%; margin-left: 6px;
		min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
		background: var(--dg-red); color: #fff; font-weight: 700; font-size: 11px; line-height: 19px; font-family: inherit; text-align: center;
		box-shadow: 0 0 0 2px #fff;
	}
	html body .dgp-tab-badge.is-empty { display: none; }
	html body .dgp-tab-badge.is-bump { animation: dgpBump .45s cubic-bezier(.3, 1.6, .5, 1); }

	html body.dgp-has-tabbar { padding-bottom: calc(var(--dg-tabbar-h) + env(safe-area-inset-bottom)) !important; }
	html body.dgp-has-tabbar .wd-toolbar { display: none !important; }
	html body.dgp-has-tabbar .scrollToTop { bottom: calc(var(--dg-tabbar-h) + 18px + env(safe-area-inset-bottom)) !important; }
	html body.dgp-has-tabbar.dgp-pdp-on { padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
}
@keyframes dgpBump { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Kategori çekmecesi */
html body .dgp-sheet[hidden] { display: none !important; }
html body .dgp-sheet { position: fixed; inset: 0; z-index: 100000; }
html body .dgp-sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 30, 22, .5); opacity: 0; transition: opacity .25s; }
html body .dgp-sheet-panel {
	position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
	background: #fff; border-radius: 24px 24px 0 0; padding: 6px 16px calc(20px + env(safe-area-inset-bottom));
	transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
	color: var(--dg-ink);
}
html body .dgp-sheet.is-open .dgp-sheet-backdrop { opacity: 1; }
html body .dgp-sheet.is-open .dgp-sheet-panel { transform: translateY(0); }
html body .dgp-sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: #d6ddd3; margin: 6px auto 10px; }
html body .dgp-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
html body .dgp-sheet-head h2 { margin: 0; font: 600 20px/1.2 var(--dg-head); color: var(--dg-ink); }
html body .dgp-sheet-x { border: 0; background: var(--dg-soft); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--dg-ink); cursor: pointer; padding: 0; }
html body .dgp-sheet-search { position: relative; display: flex; align-items: center; margin-bottom: 14px; }
html body .dgp-sheet-search .dgp-ic { position: absolute; left: 14px; color: var(--dg-ink-3); }
html body .dgp-sheet-search input[type=search] {
	width: 100%; height: 48px; border-radius: 24px !important; border: 1.5px solid var(--dg-line) !important;
	padding: 0 16px 0 44px !important; font-size: 15px; background: var(--dg-soft) !important; color: var(--dg-ink); box-shadow: none !important;
}
html body .dgp-sheet-search input[type=search]:focus { border-color: var(--dg-green) !important; background: #fff !important; outline: none; }
html body .dgp-sheet-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
html body .dgp-sheet-quick a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 64px; padding: 10px 6px; border-radius: 16px;
	background: var(--dg-leaf-50); color: var(--dg-green-700) !important; font-weight: 600; font-size: 13px; line-height: 1.2; text-align: center; text-decoration: none !important;
}
html body .dgp-sheet-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
html body .dgp-sheet-cats a { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none !important; color: var(--dg-ink) !important; text-align: center; }
html body .dgp-cat-img { width: 68px; height: 68px; border-radius: 22px; background: var(--dg-soft); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--dg-line-2); color: var(--dg-green); }
html body .dgp-cat-img img { width: 100%; height: 100%; object-fit: cover; }
html body .dgp-cat-name { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
html body.dgp-sheet-open { overflow: hidden; }

/* ===== Çerez onayı (KVKK) ===== */
html body.dgp-cookie-on .wd-cookies-popup { display: none !important; }
html body .dgp-cookie[hidden], html body .dgp-cookie-modal[hidden] { display: none !important; }
html body .dgp-cookie {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 99990;
	max-width: 980px; margin: 0 auto; background: #fff; color: var(--dg-ink);
	border-radius: 18px; border: 1px solid var(--dg-line); box-shadow: 0 18px 50px rgba(20, 30, 22, .18);
	font: 14px/1.5 var(--wd-text-font, "Lato"), system-ui, sans-serif;
	animation: dgpRise .35s cubic-bezier(.2, .8, .2, 1);
}
html body .dgp-cookie-inner { display: flex; gap: 18px 24px; align-items: center; padding: 18px 20px; }
html body .dgp-cookie-text { flex: 1; min-width: 0; }
html body .dgp-cookie-text strong { display: block; font: 600 16px/1.3 var(--dg-head); margin-bottom: 4px; }
html body .dgp-cookie-text p { margin: 0; color: var(--dg-ink-2); }
html body .dgp-cookie-text a { color: var(--dg-green-700); text-decoration: underline; }
html body .dgp-cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
html body .dgp-cbtn {
	min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 14px; line-height: 1; font-family: inherit; cursor: pointer;
	border: 1.5px solid transparent; transition: background .15s, border-color .15s; white-space: nowrap;
}
html body .dgp-cbtn.is-solid { background: var(--dg-green); color: #fff; }
html body .dgp-cbtn.is-solid:hover { background: var(--dg-green-700); }
html body .dgp-cbtn.is-outline { background: #fff; color: var(--dg-ink); border-color: var(--dg-ink); }
html body .dgp-cbtn.is-outline:hover { background: var(--dg-soft); }
html body .dgp-cbtn.is-ghost { background: transparent; color: var(--dg-ink-2); text-decoration: underline; text-underline-offset: 3px; padding: 0 8px; }
html body .dgp-cookie-modal { position: fixed; inset: 0; z-index: 100001; background: rgba(20, 30, 22, .5); display: grid; place-items: center; padding: 16px; font: 14px/1.5 var(--wd-text-font, "Lato"), system-ui, sans-serif; }
html body .dgp-cookie-sheet { background: #fff; border-radius: 20px; width: min(560px, 100%); max-height: 90vh; overflow: auto; color: var(--dg-ink); }
html body .dgp-cookie-sheet header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 6px; }
html body .dgp-cookie-sheet h2 { margin: 0; font: 600 20px/1.2 var(--dg-head); }
html body .dgp-cookie-x { border: 0; background: var(--dg-soft); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--dg-ink); padding: 0; }
html body .dgp-cookie-groups { padding: 6px 20px; }
html body .dgp-cgroup { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--dg-line-2); cursor: pointer; position: relative; }
html body .dgp-cgroup:last-child { border-bottom: 0; }
html body .dgp-cgroup strong { display: block; font-size: 15px; }
html body .dgp-cgroup em { display: block; font-style: normal; color: var(--dg-ink-3); font-size: 13px; }
html body .dgp-cgroup input { position: absolute; right: 0; width: 48px; height: 28px; opacity: 0; margin: 0; cursor: pointer; }
html body .dgp-cgroup i { width: 48px; height: 28px; border-radius: 14px; background: #cfd7cc; position: relative; transition: background .18s; }
html body .dgp-cgroup i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s; }
html body .dgp-cgroup input:checked + i { background: var(--dg-green); }
html body .dgp-cgroup input:checked + i::after { transform: translateX(20px); }
html body .dgp-cgroup input:focus-visible + i { box-shadow: 0 0 0 3px rgba(49, 141, 27, .4); }
html body .dgp-cgroup.is-locked { cursor: default; opacity: .75; }
html body .dgp-cookie-sheet footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 20px; flex-wrap: wrap; }
@keyframes dgpRise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 1024px) {
	html body.dgp-has-tabbar .dgp-cookie { bottom: calc(var(--dg-tabbar-h) + 10px + env(safe-area-inset-bottom)); }
}
@media (max-width: 720px) {
	html body .dgp-cookie { left: 8px; right: 8px; bottom: 8px; border-radius: 16px; }
	html body .dgp-cookie-inner { flex-direction: column; align-items: stretch; padding: 16px; }
	html body .dgp-cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
	html body .dgp-cookie-actions .is-ghost { grid-column: 1 / -1; order: 3; min-height: 36px; }
	html body .dgp-cbtn { width: 100%; }
}

/* ===== Firma künyesi bandı ===== */
html body .dgp-kunye-bar { background: var(--dg-soft); border-top: 1px solid var(--dg-line); color: var(--dg-ink-2); font: 12.5px/1.5 var(--wd-text-font, "Lato"), sans-serif; }
html body .dgp-kunye-in { max-width: var(--wd-container-w, 1222px); margin: 0 auto; padding: 10px 15px; display: flex; flex-wrap: wrap; gap: 2px 18px; align-items: center; }
html body .dgp-kunye-in a { color: var(--dg-green-700); text-decoration: underline; }

/* ===== Kısa kod tablosu ve yasal bileşenler ===== */
html body .dgp-kunye-table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
html body .dgp-kunye-table th, html body .dgp-kunye-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--dg-line-2); vertical-align: top; }
html body .dgp-kunye-table th { width: 34%; color: var(--dg-ink-2); font-weight: 600; }
html body .dgp-alert { padding: 14px 16px; border-radius: 12px; margin: 0 0 18px; font-weight: 600; }
html body .dgp-alert.is-success { background: var(--dg-leaf-50); color: var(--dg-green-700); }
html body .dgp-alert.is-error { background: #fde8e5; color: #a3261a; }
html body .dgp-cayma { display: flex; flex-direction: column; gap: 14px; max-width: 680px; padding: 22px; border: 1px solid var(--dg-line); border-radius: 18px; background: #fff; }
html body .dgp-cayma-lead { margin: 0; color: var(--dg-ink-2); }
html body .dgp-cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
html body .dgp-cfield { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
html body .dgp-cfield > span { font-weight: 600; color: var(--dg-ink); }
html body .dgp-cfield input, html body .dgp-cfield select, html body .dgp-cfield textarea { border-radius: 12px !important; }
html body .dgp-cayma .dgp-cbtn { align-self: flex-start; }
html body .dgp-cayma-foot { margin: 0; font-size: 13px; color: var(--dg-ink-3); }
@media (max-width: 600px) { html body .dgp-cgrid { grid-template-columns: minmax(0, 1fr); } html body .dgp-cayma { padding: 16px; } html body .dgp-cayma .dgp-cbtn { align-self: stretch; } }

/* Ödeme sayfası satıcı kutusu */
html body .dgp-sellerbox { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--dg-line); border-radius: 14px; background: var(--dg-soft); font-size: 13.5px; color: var(--dg-ink-2); }
html body .dgp-sellerbox h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; color: var(--dg-ink); }
html body .dgp-sellerbox ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
html body .dgp-sellerbox li strong { display: block; color: var(--dg-ink); }
html body .dgp-sellerbox li span { display: block; }
html body .dgp-sellerbox p { margin: 0; font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
	html body .dgp-sheet-panel, html body .dgp-sheet-backdrop, html body .dgp-tabbar, html body .dgp-cookie { transition: none !important; animation: none !important; }
	html body .dgp-tab-badge.is-bump { animation: none; }
}
