/* ÇiçekEvi özel Elementor widget stilleri */

.ce-widget-empty {
	border: 2px dashed var(--ce-border, #e5e5e5);
	border-radius: 8px;
	padding: 24px;
	text-align: center;
	color: #757575;
	font-size: 14px;
}

/* ---------- Kampanya Slider ---------- */
.ce-slider {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	--ce-slider-height: 380px;
}

.ce-slider__track {
	display: flex;
	transition: transform 0.45s ease;
	height: var(--ce-slider-height);
}

.ce-slider__slide {
	flex: 0 0 100%;
	min-width: 100%;
	position: relative;
	display: block;
	line-height: 0;
}

.ce-slider__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ce-slider__caption {
	position: absolute;
	left: 6%;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.3;
	max-width: 46%;
}

.ce-slider__caption strong {
	font-size: 32px;
	font-weight: 800;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.ce-slider__subtitle {
	font-size: 16px;
	color: #fff;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.ce-slider__btn {
	font-size: 14px;
	padding: 10px 22px;
}

.ce-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #2d2d2d;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: background 0.15s;
	z-index: 2;
}

.ce-slider__arrow:hover {
	background: #fff;
	color: var(--ce-green, #12a150);
}

.ce-slider__arrow--prev { left: 14px; }
.ce-slider__arrow--next { right: 14px; }

.ce-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	display: flex;
	justify-content: center;
	gap: 7px;
	z-index: 2;
}

.ce-slider__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.55);
	transition: background 0.15s, width 0.15s;
}

.ce-slider__dot.is-active {
	background: #fff;
	width: 22px;
	border-radius: 5px;
}

/* ---------- Kategori Kısayolları (yatay kaydırmalı) ---------- */
/* Oklar kaydırma alanının DIŞINDA, kendi boşluklarında durur (flex akışında). */
.ce-catgrid {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.ce-catgrid__track {
	flex: 1;
	min-width: 0;
	display: flex;
	gap: 12px;
	justify-content: flex-start;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	padding: 6px 6px 8px;
	scrollbar-width: none;
	cursor: grab;
}

.ce-catgrid__track.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	/* Sürükleme sırasında snap devre dışı; bırakınca JS en yakın daireye oturtur. */
	scroll-snap-type: none;
	user-select: none;
}

.ce-catgrid__track::-webkit-scrollbar {
	display: none;
}

.ce-catgrid__item {
	flex: 0 0 112px;
	width: 112px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	text-align: center;
	scroll-snap-align: start;
}

.ce-catgrid__item img {
	-webkit-user-drag: none;
	user-select: none;
}

.ce-catgrid__arrow {
	flex-shrink: 0;
	/* Daire merkez hizası: track üst boşluğu (6px) + daire yarıçapı (~47px) - ok yarıçapı (17px) */
	margin-top: 36px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #8a8a8a;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
	transition: color 0.15s, box-shadow 0.15s;
}

.ce-catgrid__arrow:hover {
	color: var(--ce-green, #12a150);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

/* Daire: sabit tam yuvarlak kap (span → flex ile blocklaşır ve içerik
   ortalanır); yeşil halka görselin DIŞINDA kalır, iç boşluk yok — görsel
   halkanın hemen içinden başlar */
.ce-catgrid__circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 95px;
	height: 95px;
	aspect-ratio: 1 / 1;
	flex-shrink: 0;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--ce-green, #12a150);
	padding: 0;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
	line-height: 0;
	background: #fff;
}

/* Görsel: daireyi kenarlara kadar TAM doldurur — her en/boy oranındaki
   kaynak bozulmadan (cover) ortalanır, ortada küçük/boşluklu durmaz */
.ce-catgrid__circle img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center;
	border-radius: 50%;
}

.ce-catgrid__item:hover .ce-catgrid__circle {
	border-color: var(--ce-green-dark, #0d7d3e);
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(18, 161, 80, 0.2);
}

.ce-catgrid__label {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ce-text, #2d2d2d);
	line-height: 1.3;
}

.ce-catgrid__item:hover .ce-catgrid__label {
	color: var(--ce-green, #12a150);
}

/* ---------- Ürün Rafı ---------- */
.ce-shelf__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.ce-shelf__title {
	font-size: 22px;
	font-weight: 800;
	margin: 0;
	color: var(--ce-text, #2d2d2d);
}

.ce-shelf__viewall {
	font-size: 14px;
	font-weight: 700;
	color: var(--ce-green, #12a150);
	white-space: nowrap;
}

/* Carousel raf okları: başlık satırında "Tümünü Gör"ün solunda; kategori
   kısayolu oklarıyla aynı dil (beyaz daire, hafif gölge, hover'da yeşil).
   Uçlarda ilgili ok pasifleşir; yalnız MASAÜSTÜNDE görünür. */
.ce-shelf__actions {
	display: flex;
	align-items: center;
	align-self: center;
	gap: 8px;
	flex-shrink: 0;
}

.ce-shelf__actions .ce-shelf__viewall {
	margin-left: 6px;
}

.ce-shelf__arrow {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #8a8a8a;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: color 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.ce-shelf__arrow svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
}

.ce-shelf__arrow:hover:not(:disabled) {
	color: var(--ce-green, #12a150);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.ce-shelf__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Tablet dar görünüm + mobil: oklar tamamen gizli (dokunmayla kaydırma). */
@media (max-width: 1024px) {
	.ce-shelf__arrow {
		display: none;
	}
}

.ce-shelf__wrap {
	position: relative;
}

.ce-shelf__track {
	/* Masaüstünde bir görünümde 5 kart (1500px konteynırda kart ~283px) */
	--ce-cards: 5;
	--ce-card-gap: 16px;
	display: flex;
	gap: var(--ce-card-gap);
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	padding: 4px 2px 10px;
	scrollbar-width: none;
	cursor: grab;
}

/* Grid düzeni ("Düzen: Grid"): satır başına 5 ürün alt alta —
   tablet 3, mobil 2 sütun. Kartlar carousel'dekiyle birebir aynı;
   yalnız flex-basis genişlik formülü sıfırlanır. */
.ce-shelf__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px 16px;
	align-items: start;
	padding: 4px 2px 10px;
}

.ce-shelf__grid .ce-card {
	flex: initial;
	width: 100%;
	min-width: 0;
}

@media (max-width: 1024px) {
	.ce-shelf__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.ce-shelf__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 10px;
	}
}

.ce-shelf__track.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	/* Sürükleme sırasında snap devre dışı; bırakınca JS en yakın karta oturtur. */
	scroll-snap-type: none;
	user-select: none;
}

.ce-shelf__track::-webkit-scrollbar {
	display: none;
}

.ce-shelf__track img {
	-webkit-user-drag: none;
	user-select: none;
}

/* Ürün kartı: tamamı tıklanabilir, buton yok (çiçeksepeti düzeni) */
.ce-card {
	flex: 0 0 calc((100% - (var(--ce-cards) - 1) * var(--ce-card-gap)) / var(--ce-cards));
	min-width: 0;
	display: flex;
	flex-direction: column;
	/* Tüm öğeler arasında TEK ve EŞİT boşluk — sadece gap, ekstra margin yok */
	gap: 8px;
	color: var(--ce-text, #2d2d2d);
	scroll-snap-align: start;
}

.ce-card:hover {
	color: var(--ce-text, #2d2d2d);
}

.ce-card__img {
	position: relative;
	display: block;
	border-radius: 10px;
	overflow: hidden;
	line-height: 0;
	background: var(--ce-bg-soft, #f7f7f7);
}

.ce-card__img img {
	width: 100%;
	aspect-ratio: 280 / 308;
	object-fit: cover;
	display: block;
	margin: 0;
	transition: transform 0.25s;
}

.ce-card:hover .ce-card__img img {
	transform: scale(1.04);
}

/* Favori kalbi: görselin sağ üstünde, yuvarlak beyaz zemin */
.ce-card__fav {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	transition: transform 0.15s;
}

.ce-card__fav:hover {
	transform: scale(1.08);
}

.ce-card__fav svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: #9a9a9a;
	stroke-width: 1.8;
	transition: fill 0.15s, stroke 0.15s;
}

.ce-card__fav.is-active svg {
	fill: var(--ce-danger, #e0234e);
	stroke: var(--ce-danger, #e0234e);
}

/* Teslimat etiketi: kamyon + yeşil yazı — HER ZAMAN tek satır, kırpılmaz */
.ce-card__ship {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #3ca735;
	line-height: 1.2;
	white-space: nowrap;
	overflow: visible;
}

.ce-card__ship svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: #3ca735;
	stroke-width: 1.7;
	flex-shrink: 0;
}

/* Ürün adı: b2 (14px), 2 satırlık SABİT alan (min-height ~40px) — 1 satırlık
   adlarda da yıldız/fiyat aynı hizada kalır. Sola hizalı. */
.ce-card__title {
	font-size: 14px;
	font-weight: 500;
	color: var(--ce-text, #2d2d2d);
	line-height: 1.4;
	min-height: 40px;
	text-align: left;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ce-card__rating {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: var(--ce-muted, #757575);
	min-height: 17px;
}

.ce-card__rating .star-rating {
	font-size: 12px;
	margin: 0;
}

.ce-card__rating em {
	font-style: normal;
}

/* Fiyat: iri, sola hizalı (aralık yalnızca kart gap'inden gelir) */
.ce-card__price {
	font-size: 18px;
	font-weight: 800;
	color: var(--ce-text, #2d2d2d);
	line-height: 1.2;
	text-align: left;
}

.ce-card__price.is-sale {
	color: #e64e41;
}

/* Eski fiyat + indirim rozeti (sola hizalı, fiyatın altında) */
.ce-card__oldrow {
	display: flex;
	align-items: center;
	gap: 7px;
	line-height: 1.2;
}

.ce-card__oldrow del {
	font-size: 14px;
	font-weight: 500;
	color: var(--ce-muted, #757575);
}

/* Rozet: dolu kırmızı zemin + beyaz yazı (çiçeksepeti) */
.ce-card__disc {
	background: #e64e41;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	border-radius: 4px;
	padding: 2px 7px;
	line-height: 1.4;
}

/* ---------- Kampanya Banner Grid (çiçeksepeti ölçüleri) ---------- */
.ce-bannergrid {
	display: grid;
	gap: 20px;
}

.ce-bannergrid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ce-bannergrid--cols-3 { grid-template-columns: repeat(3, 1fr); }

.ce-bannergrid__item {
	position: relative;
	display: block;
	border-radius: 12px;
	overflow: hidden;
	line-height: 0;
}

.ce-bannergrid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s;
}

/* Sabit oranlar: 2'li 730x304, 3'lü 480x199 (~2.4:1) — küçülürken oran korunur. */
.ce-bannergrid--cols-2 .ce-bannergrid__item {
	aspect-ratio: 730 / 304;
}

.ce-bannergrid--cols-3 .ce-bannergrid__item {
	aspect-ratio: 480 / 199;
}

.ce-bannergrid__item:hover img {
	transform: scale(1.03);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.ce-shelf__track {
		--ce-cards: 4;
	}
}

/* Mobil: teslimat etiketi 10px tam görünür + ad alanı ~36px sabit */
@media (max-width: 768px) {
	.ce-card__ship {
		font-size: 9px;
		gap: 3px;
		min-width: 0;
	}

	.ce-card__ship svg {
		width: 11px;
		height: 11px;
	}

	.ce-card__title {
		font-size: 13px;
		line-height: 1.38;
		min-height: 36px;
	}
}

@media (max-width: 900px) {
	.ce-shelf__track {
		--ce-cards: 3;
	}

	.ce-slider {
		--ce-slider-height: 260px !important;
	}

	.ce-slider__caption strong {
		font-size: 22px;
	}

	.ce-catgrid__arrow {
		display: none;
	}

}

@media (max-width: 600px) {
	.ce-slider {
		--ce-slider-height: 190px !important;
	}

	.ce-slider__caption {
		max-width: 70%;
	}

	.ce-slider__caption strong {
		font-size: 18px;
	}

	.ce-slider__subtitle {
		font-size: 13px;
	}

	.ce-catgrid__item {
		flex-basis: 84px;
		width: 84px;
	}

	.ce-catgrid__circle {
		width: 68px;
		height: 68px;
	}

	.ce-catgrid__label {
		font-size: 12px;
	}

	.ce-bannergrid--cols-2,
	.ce-bannergrid--cols-3 {
		grid-template-columns: 1fr;
	}

	.ce-shelf__track {
		--ce-cards: 2.2;
	}

	.ce-shelf__title {
		font-size: 18px;
	}
}
