/* =========================================================================
   Popüler Denemeler – Sepet Çekmecesi + Mobil Akordeon Menü
   Marka renklerinizi buradan tek noktadan değiştirebilirsiniz.
   ========================================================================= */
:root {
	--pd-dark: #1a1a1a;          /* koyu buton / metin  */
	--pd-accent: #16a34a;        /* ücretsiz kargo çubuğu (yeşil) */
	--pd-primary: #1a1a1a;       /* "Ödemeye geç" butonu */
	--pd-border: #ececec;
	--pd-muted: #777;
	--pd-drawer-width: 400px;
	--pd-radius: 10px;
}

/* ---------- Overlay ---------- */
.pd-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	opacity: 0;
	transition: opacity .25s ease;
	z-index: 9998;
}
.pd-drawer-overlay.is-visible { opacity: 1; }

/* ---------- Çekmece ---------- */
.pd-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100dvh;
	width: min(var(--pd-drawer-width), 100vw);
	background: #fff;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	transform: translateX(105%);
	transition: transform .3s cubic-bezier(.22, .61, .36, 1);
	box-shadow: -8px 0 30px rgba(0, 0, 0, .12);
}
.pd-drawer.is-open { transform: translateX(0); }
body.pd-drawer-lock { overflow: hidden; }

.pd-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--pd-border);
	flex: 0 0 auto;
}
.pd-drawer-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--pd-dark);
}
.pd-drawer-count { font-weight: 500; color: var(--pd-muted); }
.pd-drawer-close {
	background: none;
	border: 0;
	padding: 6px;
	cursor: pointer;
	color: var(--pd-dark);
	line-height: 0;
}

/* ---------- İç alan ---------- */
.pd-drawer-inner {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

/* ---------- Ücretsiz kargo çubuğu ---------- */
.pd-shipbar {
	padding: 14px 20px;
	border-bottom: 1px solid var(--pd-border);
	background: #fafafa;
	flex: 0 0 auto;
}
.pd-shipbar-text {
	margin: 0 0 8px;
	font-size: 13.5px;
	color: var(--pd-dark);
	text-align: center;
}
.pd-shipbar-track {
	height: 7px;
	border-radius: 99px;
	background: #e4e4e4;
	overflow: hidden;
}
.pd-shipbar-fill {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: var(--pd-accent);
	transition: width .4s ease;
}
.pd-shipbar.is-complete .pd-shipbar-text { color: var(--pd-accent); }

/* ---------- Boş sepet ---------- */
.pd-drawer-empty {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 30px 20px;
	color: var(--pd-muted);
	text-align: center;
}
.pd-drawer-empty p { margin: 0; font-size: 15px; }

/* ---------- Ürün listesi ---------- */
.pd-drawer-items {
	list-style: none;
	margin: 0;
	padding: 0 20px;
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 0;
	-webkit-overflow-scrolling: touch;
}
.pd-drawer-item {
	display: flex;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--pd-border);
	transition: opacity .2s ease;
}
.pd-drawer-item.is-loading { opacity: .45; pointer-events: none; }
.pd-item-thumb { flex: 0 0 72px; }
.pd-item-thumb img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--pd-border);
	display: block;
}
.pd-item-info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.pd-item-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--pd-dark);
	text-decoration: none;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pd-item-price { font-size: 14px; font-weight: 700; color: var(--pd-dark); }
.pd-item-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 2px;
}
.pd-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d9d9d9;
	border-radius: 99px;
	overflow: hidden;
}
.pd-qty button {
	width: 30px;
	height: 30px;
	background: none;
	border: 0;
	font-size: 16px;
	cursor: pointer;
	color: var(--pd-dark);
	line-height: 1;
}
.pd-qty-num {
	min-width: 26px;
	text-align: center;
	font-size: 13.5px;
	font-weight: 600;
}
.pd-item-remove {
	background: none;
	border: 0;
	padding: 6px;
	cursor: pointer;
	color: #b0b0b0;
	line-height: 0;
	transition: color .15s ease;
}
.pd-item-remove:hover { color: #e11d48; }

/* ---------- Alt bölüm ---------- */
.pd-drawer-footer {
	flex: 0 0 auto;
	padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--pd-border);
	background: #fff;
}
.pd-drawer-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 15px;
	color: var(--pd-dark);
	margin-bottom: 4px;
}
.pd-drawer-subtotal strong { font-size: 17px; }
.pd-drawer-note {
	margin: 0 0 12px;
	font-size: 12.5px;
	color: var(--pd-muted);
}
.pd-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 13px 16px;
	border-radius: var(--pd-radius);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: opacity .15s ease;
	box-sizing: border-box;
}
.pd-btn:hover { opacity: .88; }
.pd-btn-primary { background: var(--pd-primary); color: #fff; }
.pd-btn-dark { background: var(--pd-dark); color: #fff; max-width: 220px; }
.pd-drawer-cartlink {
	display: block;
	text-align: center;
	margin-top: 10px;
	font-size: 13.5px;
	color: var(--pd-muted);
	text-decoration: underline;
}

/* Not: Mobil menü akordeonu için ek CSS yok — temanız zaten
   checkbox + label (menu-plus / menu-minus) ile bu işi yapıyor. */

