/* ---------- Ürün sayfası puan rozeti ---------- */
.erdal-ersag-points-inline {
	margin-top: .5rem;
}

.erdal-ersag-points-inline__badge {
	display: inline-block;
	padding: .25rem .6rem;
	font-size: .85rem;
	font-weight: 600;
	color: #14532d;
	background: #dcfce7;
	border: 1px solid #86efac;
	border-radius: 999px;
}

/* ---------- Sepet: toplam puan ---------- */
.erdal-ersag-cart-points {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	max-width: 960px;
	margin: 1rem auto .5rem;
	padding: .7rem 1rem;
	font-size: .95rem;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 12px;
}

.erdal-ersag-cart-points[hidden] {
	display: none;
}

.erdal-ersag-cart-points__label {
	color: #166534;
	font-weight: 600;
}

.erdal-ersag-cart-points__value {
	color: #14532d;
	font-size: 1.1rem;
	font-variant-numeric: tabular-nums;
}

/* ---------- Sepet: hediye paneli ---------- */
.ee-gifts {
	--ee-accent: #b45309;
	--ee-accent-strong: #92400e;
	--ee-accent-soft: #fff7ed;
	--ee-border: #fed7aa;
	--ee-ok: #15803d;

	max-width: 960px;
	margin: .75rem auto 1.25rem;
	padding: 1.1rem 1.1rem 1rem;
	background: linear-gradient(180deg, #fffaf3 0%, #ffffff 70%);
	border: 1px solid var(--ee-border);
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(180, 83, 9, .07);
}

.ee-gifts[hidden] {
	display: none;
}

.ee-gifts__head {
	display: flex;
	align-items: center;
	gap: .85rem;
}

.ee-gifts__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	color: #fff;
	background: linear-gradient(135deg, #f59e0b, #d97706);
	border-radius: 12px;
}

.ee-gifts__titles {
	flex: 1 1 auto;
	min-width: 0;
}

.ee-gifts__title {
	margin: 0;
	color: #1f2937;
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.3;
}

.ee-gifts__subtitle {
	margin: .15rem 0 0;
	color: #6b7280;
	font-size: .85rem;
}

.ee-gifts__counter {
	flex: 0 0 auto;
	padding: .35rem .75rem;
	color: var(--ee-accent-strong);
	font-size: .85rem;
	font-weight: 700;
	background: var(--ee-accent-soft);
	border: 1px solid var(--ee-border);
	border-radius: 999px;
	white-space: nowrap;
}

.ee-gifts__chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: .85rem;
}

.ee-chip {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .3rem .65rem;
	color: #374151;
	font-size: .8rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
}

.ee-chip svg {
	width: 15px;
	height: 15px;
	color: var(--ee-accent);
}

.ee-chip--time {
	color: #7c2d12;
	background: #fff7ed;
	border-color: var(--ee-border);
}

.ee-gifts__next {
	margin-top: .85rem;
	padding: .6rem .8rem;
	background: #fffbeb;
	border: 1px dashed #fcd34d;
	border-radius: 10px;
}

.ee-gifts__next-text {
	display: block;
	color: #78350f;
	font-size: .85rem;
	font-weight: 600;
}

.ee-gifts__bar {
	height: 6px;
	margin-top: .45rem;
	overflow: hidden;
	background: #fde68a;
	border-radius: 999px;
}

.ee-gifts__bar-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #f59e0b, #d97706);
	border-radius: 999px;
	transition: width .35s ease;
}

.ee-gifts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: .75rem;
	margin-top: 1rem;
}

.ee-gift {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 14px;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.ee-gift:hover {
	border-color: #fdba74;
	box-shadow: 0 6px 16px rgba(17, 24, 39, .08);
	transform: translateY(-1px);
}

.ee-gift__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.ee-gift__input:focus-visible + .ee-gift__media {
	outline: 2px solid #f59e0b;
	outline-offset: -2px;
}

.ee-gift__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: .75rem;
	background: #f9fafb;
}

.ee-gift__media img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.ee-gift__check {
	position: absolute;
	top: .5rem;
	right: .5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: transparent;
	background: #fff;
	border: 1.5px solid #d1d5db;
	border-radius: 999px;
	transition: all .15s ease;
}

.ee-gift__check svg {
	width: 15px;
	height: 15px;
}

.ee-gift__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: .4rem;
	padding: .6rem .7rem .7rem;
}

.ee-gift__name {
	display: -webkit-box;
	overflow: hidden;
	color: #1f2937;
	font-size: .84rem;
	font-weight: 600;
	line-height: 1.3;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ee-gift__badge {
	align-self: flex-start;
	margin-top: auto;
	padding: .12rem .55rem;
	color: var(--ee-ok);
	font-size: .72rem;
	font-weight: 700;
	background: #dcfce7;
	border-radius: 999px;
}

.ee-gift.is-selected {
	border-color: #f59e0b;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}

.ee-gift.is-selected .ee-gift__check {
	color: #fff;
	background: #f59e0b;
	border-color: #f59e0b;
}

.ee-gift.is-disabled {
	cursor: not-allowed;
	opacity: .55;
}

.ee-gift.is-disabled:hover {
	border-color: #e5e7eb;
	box-shadow: none;
	transform: none;
}

.ee-gift.is-oos .ee-gift__badge {
	color: #991b1b;
	background: #fee2e2;
}

.ee-gifts__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	margin-top: .85rem;
	padding-top: .7rem;
	border-top: 1px solid #f3f4f6;
	font-size: .82rem;
}

.ee-gifts__hint {
	color: #6b7280;
}

.ee-gifts__status {
	color: #6b7280;
	font-weight: 600;
}

.ee-gifts__status.is-ok {
	color: var(--ee-ok);
}

.ee-gifts--teaser {
	background: #fffbeb;
}

.ee-gifts--expired {
	background: #f9fafb;
	border-color: #e5e7eb;
	box-shadow: none;
}

.ee-gifts--expired .ee-gifts__icon {
	background: #9ca3af;
}

@media (max-width: 575px) {
	.ee-gifts {
		padding: .9rem .8rem .8rem;
		border-radius: 14px;
	}

	.ee-gifts__head {
		flex-wrap: wrap;
	}

	.ee-gifts__counter {
		order: 3;
	}

	.ee-gifts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .6rem;
	}
}

/* ---------- Ürün detayı: hediye ürünler ---------- */
.ee-pd-gifts {
	margin: 1.5rem 0;
	padding-top: 1.25rem;
	border-top: 1px solid #e5e7eb;
}

.ee-pd-gifts__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: .75rem;
}

.ee-pd-gifts__title {
	margin: 0;
	color: #1f2937;
	font-size: 1.05rem;
	font-weight: 700;
}

.ee-pd-gifts__all {
	color: #b45309;
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
}

.ee-pd-gifts__sub {
	margin: .25rem 0 .9rem;
	color: #6b7280;
	font-size: .85rem;
}

.ee-pd-gifts__row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: .75rem;
}

.ee-pd-gift {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	padding: .5rem;
	color: inherit;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.ee-pd-gift:hover {
	border-color: #fdba74;
	box-shadow: 0 4px 12px rgba(17, 24, 39, .07);
}

.ee-pd-gift__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background: #f9fafb;
	border-radius: 8px;
	overflow: hidden;
}

.ee-pd-gift__media img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.ee-pd-gift__name {
	display: -webkit-box;
	overflow: hidden;
	color: #374151;
	font-size: .8rem;
	line-height: 1.3;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ee-pd-gift__tag {
	align-self: flex-start;
	padding: .1rem .5rem;
	color: #15803d;
	font-size: .7rem;
	font-weight: 700;
	background: #dcfce7;
	border-radius: 999px;
}

.ee-pd-gift.is-oos {
	opacity: .6;
}

.ee-pd-gift.is-oos .ee-pd-gift__tag {
	color: #991b1b;
	background: #fee2e2;
}

/* ---------- Hediye kuralları ve kalan süre (hediye sayfası + ürün detayı) ---------- */
.ee-gift-info {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: .75rem 1.25rem;
	margin: 0 0 1rem;
	padding: .8rem 1rem;
	background: #fffaf3;
	border: 1px solid #fed7aa;
	border-radius: 12px;
}

.ee-gift-info__label {
	display: block;
	margin-bottom: .3rem;
	color: #92400e;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.ee-gift-info__list {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ee-gift-info__rule {
	padding: .25rem .65rem;
	color: #374151;
	font-size: .82rem;
	background: #fff;
	border: 1px solid #fde68a;
	border-radius: 999px;
}

.ee-gift-info__rule strong {
	color: #1f2937;
}

.ee-gift-info__time {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	align-self: center;
	color: #7c2d12;
	font-size: .82rem;
}

.ee-gift-info__time svg {
	flex: 0 0 auto;
	color: #b45309;
}

.ee-gift-info__time .ee-countdown {
	font-weight: 700;
}

.ee-gift-info__time.is-expired {
	color: #6b7280;
}

.ee-gift-info--product {
	margin: .35rem 0 .9rem;
	padding: .6rem .75rem;
}

.ee-gift-info--product .ee-gift-info__label {
	font-size: .72rem;
}

.ee-gift-info--product .ee-gift-info__rule {
	font-size: .78rem;
}

/* ---------- Site geneli: hediye şeridi ---------- */
.ee-nudge {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1040;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .9rem;
	padding: .7rem 3rem .7rem 1rem;
	color: #1f2937;
	font-size: .88rem;
	background: #fff7ed;
	border-top: 2px solid #f59e0b;
	box-shadow: 0 -6px 20px rgba(17, 24, 39, .12);
}

.ee-nudge__title {
	color: #b45309;
	font-weight: 800;
	white-space: nowrap;
}

.ee-nudge__text {
	flex: 1 1 auto;
	min-width: 0;
}

.ee-nudge__cta {
	padding: .35rem .8rem;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	background: #d97706;
	border-radius: 999px;
}

.ee-nudge__cta:hover {
	color: #fff;
	background: #b45309;
}

.ee-nudge__close {
	position: absolute;
	top: .35rem;
	right: .6rem;
	width: 28px;
	height: 28px;
	color: #6b7280;
	font-size: 1.25rem;
	line-height: 1;
	background: transparent;
	border: 0;
	cursor: pointer;
}

@media (max-width: 575px) {
	.ee-nudge {
		font-size: .82rem;
		padding: .6rem 2.5rem .6rem .8rem;
	}

	.ee-nudge__title {
		white-space: normal;
	}
}
