/* =====================================================================
   ALMINA CORE — KLASİK YENİ ÜST KISIM (klasik-new.css)
   Header + mega menü: zumrut.css (aynı yapı), burada Klasik renkleri.
   Slider: .ks-*   Kategori yuvarlakları: .z-cats (zumrut-home.css) + pembe zemin
   Renkler: Almina Tasarım → Klasik (klasik > primary, topbar_bg)
   ===================================================================== */

/* ---------- Palet ---------- */
body.am-k:not(.k-zp),
body.home .ks-wrap,
body.home .z-cats { --z-soft: #fbedf1; --z-line: #f0e4e6; --z-pink: #e0245e; }
body.am-k .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }
html.z-lock body.am-k :is(.am-call-float, .am-wa-float) { display: none !important; }

/* Eski Klasik header parçaları (yeni header açıkken) */
body.am-k .am-header, body.am-k .am-mobile-menu, body.am-k .am-sticky-spacer { display: none !important; }

/* Ürün sayfası: Favorilere ekle · Sepete ekle */
.k-pacts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 16px; }
.k-pact { display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; border: 0; background: none !important; color: #4b4547 !important; font: 600 14px var(--am-font-body); cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; }
.k-pact .am-icon { color: var(--z-green, #cf5274); }
.k-pact[aria-pressed="true"] .am-icon path { fill: var(--z-pink, #e0245e); }
.k-pact:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Elementor kutusu boşlukları ---------- */
.elementor-widget-shortcode:has(.ks-wrap, .z-cats) > .elementor-widget-container,
.elementor-widget-shortcode:has(.ks-wrap, .z-cats) .elementor-shortcode { margin: 0; padding: 0; }
body.home .e-con:has(.ks-wrap),
body.home .elementor-section:has(.ks-wrap),
body.home .elementor-widget:has(.ks-wrap) { margin-top: 0 !important; padding-top: 0 !important; --margin-top: 0px; --padding-top: 0px; min-height: 0 !important; --min-height: 0px; }

/* =====================================================================
   SLIDER
   ===================================================================== */
.ks-wrap { position: relative; width: 100%; margin: 0 0 8px; line-height: normal; }
.ks-slider { position: relative; overflow: hidden; background: #f6ece2; }
.ks-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.ks-track::-webkit-scrollbar { display: none; }
.ks-slide { position: relative; flex: 0 0 100%; height: 440px; scroll-snap-align: start; overflow: hidden; background: linear-gradient(100deg, #fbf3ee 0%, #f6ebe2 55%, #f1e1d6 100%); }
.ks-bg { position: absolute; inset: 0; }
.ks-bg img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: right center; }
.ks-prod { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; }
.ks-prod img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
.ks-in { position: relative; z-index: 2; display: flex; align-items: center; height: 100%; max-width: 1360px; margin: 0 auto; padding: 0 80px; box-sizing: border-box; }
.ks-txt { max-width: 470px; }
.ks-eb { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--z-green-d, #b8435f); font: 600 12px/1 var(--am-font-body); letter-spacing: .28em; text-transform: uppercase; }
.ks-eb::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.ks-t { margin: 0 0 16px !important; padding: 0 !important; color: #3a2a2c !important; font: 400 58px/1.02 var(--am-font-heading) !important; letter-spacing: -.5px; }
.ks-t i, .ks-t em { color: var(--z-green, #cf5274); }
.ks-txt p { margin: 0 0 28px !important; max-width: 400px; color: #5d5153; font: 400 16px/1.6 var(--am-font-body); }
.ks-cta { display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 28px; border-radius: 999px; background: var(--z-green, #cf5274); color: #fff !important; font: 700 14px var(--am-font-body); letter-spacing: .04em; text-decoration: none !important; box-shadow: 0 10px 24px rgba(184, 67, 95, .28); transition: background .15s ease, transform .15s ease; }
.ks-cta:hover { background: var(--z-green-d, #b8435f); transform: translateY(-1px); }

.ks-badge { position: absolute; z-index: 3; left: calc(50% - 205px); top: 50%; width: 170px; height: 170px; transform: translateY(-50%); pointer-events: none; }
.ks-badge > svg { width: 100%; height: 100%; animation: ks-rot 22s linear infinite; }
.ks-badge text { font: 600 15.5px var(--am-font-body); letter-spacing: .14em; fill: #a9805f; }
.ks-badge > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--z-green, #cf5274); }
@keyframes ks-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ks-badge > svg { animation: none; } }

.ks-arr { position: absolute; top: 50%; z-index: 4; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-top: -23px; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: rgba(255, 255, 255, .92) !important; color: #3a2a2c !important; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); cursor: pointer; }
.ks-arr.is-l { left: 46px; } /* soldaki "Bizi Arayın" kulakçığına çarpmasın */
.ks-arr.is-r { right: 22px; }
.ks-prog { position: absolute; left: 50%; bottom: 22px; z-index: 4; display: flex; align-items: center; gap: 12px; color: #3a2a2c; font: 600 12px var(--am-font-body); transform: translateX(-50%); }
.ks-prog b.m { color: #9b8e8f; }
.ks-bars { display: flex; gap: 6px; }
.ks-bars button { position: relative; display: block; width: 34px; height: 14px; padding: 0 !important; border: 0 !important; background: none !important; cursor: pointer; }
.ks-bars button::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: rgba(58, 42, 44, .2); }
.ks-bars button.is-on::before { background: var(--z-green, #cf5274); }

/* Slider + 2 promo */
.ksb { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); gap: 16px; width: calc(100% - 48px); max-width: 1320px; margin: 18px auto 0; }
.ksb .ks-slider { border-radius: 20px; }
.ksb .ks-slide { border-radius: 20px; }
.ksb .ks-slide.has-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #f6ece2 0%, rgba(246, 236, 226, .95) 32%, rgba(246, 236, 226, .5) 50%, rgba(246, 236, 226, 0) 66%); }
.ksb .ks-in { padding: 0 56px; }
.ksb .ks-t { font-size: 50px !important; }
.ksb .ks-prod { width: 52%; }
.ksb .ks-arr { top: auto; bottom: 20px; margin: 0; width: 40px; height: 40px; }
.ksb .ks-arr.is-l { left: auto; right: 70px; }
.ksb .ks-arr.is-r { right: 20px; }
.ksb .ks-prog { left: 56px; transform: none; }
.ksb-side { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; min-height: 0; }
.ksb-pr { position: relative; display: block; overflow: hidden; border-radius: 20px; background: #f6ece2; text-decoration: none !important; }
.ksb-pr img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; transition: transform .45s ease; }
.ksb-pr:hover img { transform: scale(1.04); }
.ksb-pr.has-text::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(250, 243, 240, .96) 0%, rgba(250, 243, 240, .75) 40%, rgba(250, 243, 240, 0) 66%); }
.ksb-pr__t { position: absolute; left: 22px; bottom: 22px; z-index: 2; display: flex; flex-direction: column; gap: 6px; max-width: 60%; }
.ksb-pr__t small { color: var(--z-green-d, #b8435f); font: 600 11px var(--am-font-body); letter-spacing: .22em; text-transform: uppercase; }
.ksb-pr__t b { color: #3a2a2c; font: 400 26px/1.1 var(--am-font-heading); }
.ksb-pr__t em { align-self: flex-start; margin-top: 6px; padding-bottom: 2px; border-bottom: 1.5px solid var(--z-green, #cf5274); color: #3a2a2c; font: 700 12.5px var(--am-font-body); font-style: normal; }

/* ---------- Kategori yuvarlakları (pembe) ---------- */
body.home .z-cats { margin: 6px 0 28px; }
body.home:not(.am-z) .z-cat__c { background: linear-gradient(145deg, #fff8f9 0%, #fbe6ec 100%); border-color: #f3d9e0; }
body.home:not(.am-z) .z-cat__c.is-icon { background: #fbedf1; color: var(--z-green, #cf5274); }
body.home:not(.am-z) .z-cat:first-child { color: var(--z-green, #cf5274) !important; }
body.home:not(.am-z) .z-cats__arr { color: var(--z-green, #cf5274); }
@media (hover: hover) and (pointer: fine) {
	body.home:not(.am-z) .z-cat:hover .z-cat__c { border-color: #e8bbc5; box-shadow: 0 8px 24px rgba(121, 68, 79, .12); }
	body.home:not(.am-z) .z-cat:hover .z-cat__l { color: var(--z-green, #cf5274); }
}

/* =====================================================================
   MOBİL
   ===================================================================== */
@media (max-width: 1100px) {
	.ks-in { padding: 0 64px; }
	.ks-t { font-size: 48px !important; }
	.ks-badge { display: none; }
	.ksb { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); width: calc(100% - 24px); }
	.ksb .ks-t { font-size: 40px !important; }
}
@media (max-width: 900px) {
	.ks-slide { height: 470px !important; }
	.ks-slide.has-bg .ks-bg img { object-position: 72% center; }
	.ks-slide.has-bg::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(247, 238, 229, .97) 0%, rgba(247, 238, 229, .9) 40%, rgba(247, 238, 229, 0) 68%); }
	.ks-prod { top: auto; left: 0; width: 100%; height: 56%; }
	.ks-prod img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
	.ks-in { align-items: flex-start; padding: 32px 20px 0; }
	.ks-t { font-size: 38px !important; }
	.ks-txt p { font-size: 14.5px; margin-bottom: 20px !important; }
	.ks-eb { font-size: 10.5px; margin-bottom: 12px; }
	.ks-cta { height: 46px; padding: 0 22px; font-size: 13px; }
	.ks-arr { display: none; }
	.ks-prog { bottom: 16px; }
	.ksb { display: flex; flex-direction: column; width: 100%; margin-top: 0; gap: 10px; }
	.ksb .ks-slider, .ksb .ks-slide { border-radius: 0; }
	.ksb .ks-in { padding: 32px 20px 0; }
	.ksb .ks-t { font-size: 36px !important; }
	.ksb .ks-prog { left: 20px; }
	.ksb .ks-slide.has-bg::before { display: none; }
	.ksb-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 10px; padding: 0 10px; }
	.ksb-pr { aspect-ratio: 1 / 1; border-radius: 14px; }
	.ksb-pr:not(.has-text) { aspect-ratio: auto; }
	.ksb-pr:not(.has-text) img { position: static; height: auto !important; }
	.ksb-pr__t { left: 12px; bottom: 12px; max-width: 80%; }
	.ksb-pr__t b { font-size: 18px; }
	body.home .z-cats { margin: 0 0 18px; }

	/* Ürün görselli slayt: çiçek üstte (ön planda), yazı + buton altta */
	.ks-slide.no-bg { display: flex; flex-direction: column; height: auto !important; }
	/* Çiçek kırpılmadan, tamamı görünür; kenarları zemine yumuşakça karışır (çerçeve yok).
	   Zemin rengi fotoğrafın kendi arka planından alınır (zumrut.js) → kutu görüntüsü oluşmaz */
	.ks-slide.no-bg .ks-prod { position: relative; order: 1; inset: auto; width: 100%; height: min(84vw, 340px); margin: 4px 0 0; }
	.ks-slide.no-bg .ks-prod img { object-fit: contain; object-position: center; -webkit-mask-image: radial-gradient(ellipse 74% 80% at 50% 48%, #000 64%, transparent 100%); mask-image: radial-gradient(ellipse 74% 80% at 50% 48%, #000 64%, transparent 100%); }
	.ks-slide.no-bg { background: #f6ece4; }
	.ks-slide.no-bg .ks-in { order: 2; justify-content: center; width: 100%; height: auto; margin: 0; padding: 10px 16px 44px; }
	.ks-slide.no-bg .ks-txt { flex: 1 1 100%; width: 100%; max-width: none; text-align: center; }
	.ks-slide.no-bg .ks-eb { margin-bottom: 6px; font-size: 10px; }
	.ks-slide.no-bg .ks-eb::before { display: none; }
	/* Telefonda başlık tek satır, açıklama gizli: buton ilk ekranda, arama/WhatsApp balonlarıyla aynı hizada */
	.ks-slide.no-bg .ks-t { margin-bottom: 12px !important; font-size: clamp(22px, 7vw, 28px) !important; line-height: 1.1 !important; }
	.ks-slide.no-bg .ks-t br { display: none; }
	.ks-slide.no-bg .ks-txt p { display: none !important; }
	.ks-slide.no-bg .ks-txt p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: none; margin: 0 auto 16px !important; font-size: 13.5px; line-height: 1.5; }
	.ks-slide.no-bg .ks-cta { height: 44px; padding: 0 24px; font-size: 13px; box-shadow: 0 6px 16px rgba(184, 67, 95, .22); }
	.ks-prog { display: none !important; }
	.ks-slide.no-bg .ks-in { padding-bottom: 24px; }
}

/* =====================================================================
   Yeni slider açıkken eski büyük promo alanı ve eski kategori şeridi gizlenir
   (Elementor'daki kısa kod ya da eski HTML / görsel bloğu fark etmez)
   ===================================================================== */
body.k-hero-on .elementor-widget:has(.am-promo),
body.k-hero-on .am-promo,
body.k-hero-on .elementor-widget:has(img[src*="haftanin-firsati"]),
body.k-hero-on .elementor-widget:has(a[href] img[src*="desktop-guller"]),
body.k-hero-on .elementor-widget:has(a[href] img[src*="desktop-buket"]),
body.k-hero-on .elementor-widget:has(img[src*="mobil-haftanin"]),
body.k-cats-on .elementor-widget:has(#almina-category-section, .am-cats),
body.k-cats-on #almina-category-section,
body.k-cats-on .am-cats { display: none !important; }
body.k-hero-on .ks-wrap.is-full { margin-bottom: 0; }
body.k-hero-on > .z-cats, body.k-hero-on .z-cats:first-of-type { padding-top: 6px; }

/* =====================================================================
   ANA SAYFA ÜRÜN KARTLARI (Zümrüt ile aynı): 4 sütun × 4 satır
   ===================================================================== */
:is(html, #am) body.k-cards.home ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
:is(html, #am) body.k-cards.home:not(.k-front) ul.products > li.product:nth-child(n+17) { display: none !important; }
body.k-cards.home .elementor-widget-woocommerce-products .elementor-widget-container,
body.k-cards.home .elementor-widget-wc-elements .elementor-widget-container { overflow: visible; }
@media (max-width: 900px) { :is(html, #am) body.k-cards.home ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px 10px !important; } }

/* Klasik kategori sayfası: Zümrüt'teki mobil alt menü yok → WhatsApp balonu ve alt boşluk normal */
@media (max-width: 900px) {
	body.am-k.k-cards.am-z:not(.single-product) { padding-bottom: 0 !important; }
	body.am-k.k-cards.am-z:not(.single-product) .am-wa-float { display: flex !important; }
	body.am-k.k-cards.am-z:not(.single-product) .am-call-float { bottom: 16px !important; left: 16px !important; width: 56px; height: 56px; }
}
html.z-lock body.am-k.k-cards :is(.am-call-float, .am-wa-float) { display: none !important; }


/* =====================================================================
   KLASİK ANA SAYFA (Elementor'suz, [almina_klasik])
   ===================================================================== */
body.k-front #content-wrap, body.k-front #primary, body.k-front #content { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; float: none !important; }
body.k-front .entry-content > p:empty, body.k-front .page-header { display: none; }
body.k-front .entry-content { margin: 0 !important; }
.k-home { overflow-x: clip; }
.k-sec { width: 100%; max-width: 1320px; margin: 0 auto 56px; padding: 0 24px; box-sizing: border-box; }
.k-sec--top { margin-bottom: 24px; }
.k-sec--products .am-heading { margin-bottom: 24px; }
@media (max-width: 900px) {
	.k-sec { margin-bottom: 36px; padding: 0 12px; }
}
.k-sec .z-wrap { padding-left: 0; padding-right: 0; }
.k-sec--collections, .k-sec--zoccasions { margin-bottom: 40px; }
@media (max-width: 900px) { .k-sec--collections, .k-sec--zoccasions { margin-bottom: 28px; } }
