/* ============================================================
   ADAK PRODUCTS — Frontend Stil
   Marka: krem #FFFDF7 / sarı #F5C518 / lacivert-mor #2D1B4E
   ============================================================ */

.adak-products {
	position: relative;
	width: 100%;
}

.adak-products * {
	box-sizing: border-box;
}

/* ---------- KART ---------- */
.adak-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #FFFDF7;
	border: 1px solid #F0E6CF;
	border-radius: 18px;
	overflow: hidden;
	transition: transform .35s ease, box-shadow .35s ease;
}

.adak-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(45, 27, 78, .10);
}

/* Görsel */
.adak-card-image {
	display: block;
	background: #FFFFFF;
	border-bottom: 1px solid #F4ECD8;
	overflow: hidden;
	line-height: 0;
}

.adak-card-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 16px;
	display: block;
	transition: transform .5s ease;
}

.adak-card:hover .adak-card-img {
	transform: scale(1.08);
}

/* Gövde */
.adak-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px;
}

/* Başlık */
.adak-card-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 8px;
}

.adak-card-title a {
	color: #2D1B4E;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .2s ease;
}

.adak-card-title a:hover {
	color: #7A5C00;
}

/* Açıklama */
.adak-card-desc {
	font-size: 13px;
	color: #7A6E5A;
	line-height: 1.6;
	margin: 0 0 16px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Buton (tema buton ezilmesinden korumalı) */
.adak-products a.adak-card-btn,
.adak-products .adak-card-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	width: 100% !important;
	margin-top: auto !important;
	background: #F5C518 !important;
	color: #3D2E00 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	padding: 12px 16px !important;
	border: none !important;
	border-radius: 999px !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	transition: background .25s ease, transform .15s ease !important;
}

.adak-products a.adak-card-btn:hover,
.adak-products .adak-card-btn:hover {
	background: #E0B30E !important;
	color: #3D2E00 !important;
	text-decoration: none !important;
}

.adak-products .adak-card-btn:active {
	transform: scale(.98);
}

.adak-products .adak-btn-arrow {
	font-size: 15px;
	line-height: 1;
}

/* ---------- GRID ---------- */
.adak-grid {
	display: grid;
	grid-template-columns: repeat(var(--adak-cols, 3), 1fr);
	gap: 20px;
}

@media (max-width: 1024px) {
	.adak-grid {
		grid-template-columns: repeat(var(--adak-cols-tablet, 2), 1fr);
	}
}

@media (max-width: 767px) {
	.adak-grid {
		grid-template-columns: repeat(var(--adak-cols-mobile, 1), 1fr);
		gap: 14px;
	}
}

/* ---------- CAROUSEL ---------- */
.adak-carousel-viewport {
	overflow: hidden;
	width: 100%;
}

.adak-track {
	display: flex;
	gap: 20px;
	will-change: transform;
	transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.adak-is-carousel .adak-slide {
	flex: 0 0 auto;
}

/* CSS FALLBACK GENİŞLİK:
   JS init olana kadar (özellikle Elementor editöründe) slide'lar
   içerik kadar genişleyip tek ürün tüm ekranı kaplıyordu.
   Bu fallback ile JS gelene dek kartlar makul boyutta durur.
   JS init olunca inline style ile override edilir. */
.adak-is-carousel .adak-slide {
	width: calc((100% - 20px * 2) / 3); /* desktop: 3 sütun varsayılan */
}

@media (max-width: 1024px) {
	.adak-is-carousel .adak-slide {
		width: calc((100% - 20px) / 2); /* tablet: 2 sütun */
	}
}

@media (max-width: 767px) {
	.adak-is-carousel .adak-slide {
		width: 100%; /* mobil: 1 sütun */
	}
}

/* ---------- OKLAR (tema buton ezilmesinden korumalı) ---------- */
.adak-products button.adak-arrow,
.adak-products .adak-arrow {
	position: absolute !important;
	top: 40% !important;
	transform: translateY(-50%) !important;
	z-index: 5 !important;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	max-width: 44px !important;
	max-height: 44px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 2px solid #F5C518 !important;
	background: #FFFFFF !important;
	color: #2D1B4E !important;
	border-radius: 50% !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	font-family: Arial, sans-serif !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 4px 14px rgba(45, 27, 78, .12) !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-sizing: border-box !important;
	outline: none !important;
	transition: background .2s ease, color .2s ease, transform .2s ease !important;
}

.adak-products button.adak-arrow:hover,
.adak-products .adak-arrow:hover {
	background: #F5C518 !important;
	color: #FFFFFF !important;
	transform: translateY(-50%) scale(1.05) !important;
}

.adak-products button.adak-arrow:focus,
.adak-products .adak-arrow:focus {
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(245, 197, 24, .25), 0 4px 14px rgba(45, 27, 78, .12) !important;
}

.adak-products .adak-arrow-prev { left: -10px !important; }
.adak-products .adak-arrow-next { right: -10px !important; }

/* ---------- NOKTALAR (tema buton ezilmesinden korumalı) ---------- */
.adak-products .adak-dots {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 8px !important;
	margin-top: 22px !important;
	padding: 0 !important;
	background: transparent !important;
}

.adak-products button.adak-dot,
.adak-products .adak-dot {
	width: 8px !important;
	height: 8px !important;
	min-width: 8px !important;
	min-height: 8px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	background: #D8CDB5 !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	border-radius: 50% !important;
	cursor: pointer !important;
	box-shadow: none !important;
	text-indent: -9999px !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	outline: none !important;
	transition: background .2s ease, width .2s ease !important;
	flex: 0 0 auto !important;
}

.adak-products button.adak-dot:hover,
.adak-products .adak-dot:hover {
	background: #B8A878 !important;
}

.adak-products button.adak-dot.active,
.adak-products .adak-dot.active {
	background: #F5C518 !important;
	width: 24px !important;
	border-radius: 999px !important;
}

.adak-products button.adak-dot:focus,
.adak-products .adak-dot:focus {
	outline: none !important;
}

@media (max-width: 767px) {
	.adak-products .adak-arrow { display: none !important; } /* mobilde swipe yeter */
}
