/* ===== Zintek UX iyileştirmeleri (2026-10) ===== */
:root { --zintek-red: #B82020; --zintek-red-dark: #961a1a; }

/* --- Ürün detay CTA --- */
.zintek-cta { margin: 24px 0 8px; padding: 20px; border: 1px solid #ececec; border-radius: 12px; background: #fafafa; }
.zintek-cta__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.zintek-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 8px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none !important; transition: background-color .2s, color .2s, border-color .2s; }
.zintek-btn--primary { background: var(--zintek-red); color: #fff !important; flex: 1 1 100%; font-size: 16px; padding: 15px 20px; }
.zintek-btn--primary:hover, .zintek-btn--primary:focus { background: var(--zintek-red-dark); }
.zintek-btn--whatsapp { background: #25D366; color: #fff !important; flex: 1 1 0; }
.zintek-btn--whatsapp:hover, .zintek-btn--whatsapp:focus { background: #1ebe5a; }
.zintek-btn--ghost { background: #fff; color: #222 !important; border: 1px solid #d6d6d6; flex: 1 1 0; }
.zintek-btn--ghost:hover, .zintek-btn--ghost:focus { border-color: var(--zintek-red); color: var(--zintek-red) !important; }
.zintek-cta__trust { list-style: none; margin: 16px 0 0; padding: 0; font-size: 14px; color: #444; }
.zintek-cta__trust li { margin: 6px 0; padding: 0; }
.zintek-cta__trust li::before { display: none; }
.zintek-cta__trust .fa-check { color: var(--zintek-red); margin-right: 8px; }
@media (max-width: 480px) { .zintek-btn--whatsapp, .zintek-btn--ghost { flex: 1 1 100%; } }

/* --- Benzer ürünler --- */
.zintek-related { clear: both; margin: 48px 0 24px; }
.zintek-related__title { font-size: 26px; margin: 0 0 8px; padding-bottom: 14px; position: relative; }
.zintek-related__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 3px; background: var(--zintek-red); }
.zintek-related__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.zintek-related__card { display: flex; flex-direction: column; background: #fff; border: 1px solid #ececec; border-radius: 12px; overflow: hidden; color: #222 !important; text-decoration: none !important; transition: box-shadow .2s, transform .2s; }
.zintek-related__card:hover, .zintek-related__card:focus { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.zintek-related__img { display: block; background: #f4f5f7; }
.zintek-related__img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; margin: 0 !important; }
.zintek-related__name { display: block; font-weight: 700; font-size: 16px; padding: 14px 16px 4px; }
.zintek-related__desc { display: block; font-size: 14px; color: #555; padding: 0 16px; flex: 1; }
.zintek-related__more { display: block; padding: 12px 16px 16px; color: var(--zintek-red); font-weight: 600; font-size: 14px; }
@media (max-width: 991px) { .zintek-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .zintek-related__grid { gap: 12px; } .zintek-related__name { font-size: 15px; padding: 12px 12px 4px; } .zintek-related__desc { display: none; } .zintek-related__more { padding: 8px 12px 12px; } }

/* --- Sektör kartları: başlık her zaman görünür (hover'a bağlı değil) --- */
.elementor-widget-anps_portfolio .projects-item-wrap { position: relative; overflow: hidden; border-radius: 10px; }
.elementor-widget-anps_portfolio .projects-item-wrap img { display: block; width: 100%; transition: transform .4s; }
.elementor-widget-anps_portfolio .projects-item:hover .projects-item-wrap img { transform: scale(1.04); }
.elementor-widget-anps_portfolio .project-hover-bg { opacity: 1 !important; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,0) 75%) !important; }
.elementor-widget-anps_portfolio .projects-item:hover .project-hover-bg { background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.2) 100%) !important; }
.elementor-widget-anps_portfolio .project-hover { opacity: 1 !important; left: 0 !important; right: 0 !important; top: 0 !important; bottom: 0 !important; display: flex; flex-direction: column; justify-content: flex-end; transform: none !important; width: auto !important; padding: 20px 22px !important; text-align: left; line-height: 1.4; }
.elementor-widget-anps_portfolio .project-hover .project-title { color: #fff !important; font-size: 19px !important; line-height: 1.3 !important; margin: 0 0 6px !important; text-align: left !important; }
.elementor-widget-anps_portfolio .project-hover .project-desc { color: rgba(255,255,255,.85) !important; font-size: 14px; margin: 0 0 10px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s, opacity .35s; display: block !important; }
.elementor-widget-anps_portfolio .projects-item:hover .project-hover .project-desc { max-height: 120px; opacity: 1; }
/* "Devamını oku" butonu tüm kartı tıklanabilir yapan görünmez katman olsun */
.elementor-widget-anps_portfolio .project-hover .btn { position: absolute !important; inset: 0 !important; top: 0 !important; height: auto !important; background: transparent !important; border: 0 !important; text-indent: -9999px !important; overflow: hidden; z-index: 6; }
.elementor-widget-anps_portfolio .project-hover .project-title::after { content: "  →"; color: var(--zintek-red); font-weight: 700; }
@media (max-width: 767px) {
  .elementor-widget-anps_portfolio .projects-item { margin-bottom: 16px; }
  .elementor-widget-anps_portfolio .project-hover { padding: 14px 16px !important; }
  .elementor-widget-anps_portfolio .project-hover .project-title { font-size: 17px !important; }
}

/* --- İletişim formu "Gönder" butonu marka rengi --- */
.wpcf7 .wpcf7-submit { background: var(--zintek-red) !important; border-color: var(--zintek-red) !important; color: #fff !important; border-radius: 8px; padding: 12px 32px; font-weight: 600; transition: background-color .2s; }
.wpcf7 .wpcf7-submit:hover, .wpcf7 .wpcf7-submit:focus { background: var(--zintek-red-dark) !important; border-color: var(--zintek-red-dark) !important; }

/* --- Ana sayfa ürün karuseli: açıklama 2 satırda temiz dursun --- */
.eael-product-carousel .eael-product-excerpt p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Hız / CLS: ürün karuseli JS başlamadan da son düzende dursun (kayma olmasın) --- */
/* Essential Addons başlatma öncesi kartları 450px'e sabitliyor (gerçek ~330px); yükseklik içerikten gelsin */
.eael-woo-product-carousel-container .eael-woo-product-carousel.swiper-8:not(.swiper-initialized) .eael-product-carousel { height: auto; }
/* Görünenden fazla slaytı başlatma öncesi gizle; EA'nın 4 sütunlu grid'i tablette 2, mobilde 1 sütuna insin (canlı karuselle aynı) */
.eael-woo-product-carousel-container .eael-woo-product-carousel:not(.swiper-initialized) .swiper-slide:nth-child(n+5) { display: none; }
@media (max-width: 1024px) {
  .eael-woo-product-carousel-container .eael-woo-product-carousel:not(.swiper-initialized)[data-items] .swiper-wrapper.products { grid-template-columns: repeat(2, 1fr); }
  .eael-woo-product-carousel-container .eael-woo-product-carousel:not(.swiper-initialized) .swiper-slide:nth-child(n+3) { display: none; }
}
@media (max-width: 767px) {
  .eael-woo-product-carousel-container .eael-woo-product-carousel:not(.swiper-initialized)[data-items] .swiper-wrapper.products { grid-template-columns: 100%; }
  .eael-woo-product-carousel-container .eael-woo-product-carousel:not(.swiper-initialized) .swiper-slide:nth-child(n+2) { display: none; }
}

/* --- Hız / CLS: ürün galerisi JS (flexslider) başlamadan da son düzende dursun --- */
/* Başlamadan önce wrapper doğrudan galerinin içinde; başlayınca .flex-viewport içine taşınıyor */
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) { display: none; }
/* Birden fazla görsel varsa altta açılacak 4'lü küçük resim şeridinin yerini ayır */
.woocommerce-product-gallery:has(> .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(2)) { padding-bottom: calc((100% + 8px) / 4 + 2px); }

/* --- Alt menü ikonları: FA 4.7 kaldırıldı; aynı ikonlar FA5 Solid'de aynı kodla var --- */
.wp-bottom-menu .wp-bottom-menu-item i.fa { font-family: "Font Awesome 5 Free"; font-weight: 900; }

/* --- Hız / CLS: flexslider başlarken şeridi %400 genişliğe açıyor ve slayt genişliklerini bir sonraki karede veriyor;
   arada slaytlar dev boyutta alt alta çiziliyor. Genişliği henüz atanmamış slaytları galeri genişliğiyle sınırla --- */
.woocommerce-product-gallery { container-type: inline-size; }
.woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image:not([style*="width"]) { max-width: 100cqw; }
.woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image:not([style*="width"]):not(:first-child) { display: none; }
/* Küçük resimler yüklenmeden de kare yer kaplasın */
.woocommerce-product-gallery .flex-control-thumbs li img { aspect-ratio: 1 / 1; height: auto; }

/* --- Hız / CLS: sağdan sola (RTL) karusel başlarken Swiper döngü kopyalarını ekleyip kaydırmayı bir kare geç uyguluyor;
   başlangıçtan sonraki 300 ms görünmez tut (yeri korunur, kayma sayılmaz) --- */
.eael-woo-product-carousel[dir="rtl"].swiper-initialized { visibility: hidden; animation: zintek-show 0s linear .3s forwards; }
@keyframes zintek-show { to { visibility: visible; } }
