/* ==========================================================================
   ProfTürker — Ürün Kartı (ampulcu.com düzeni, ProfTürker renkleriyle) — 2026-12-05
   Kaynak: Kod Stüdyosu → parcacik/urun_karti.twig
   Çekirdeğin kart HTML'i AYNEN basılır (sepete ekle formu, varyant penceresi, favori, fiyat).
   Bu blok yalnız görünümü değiştirir; betik bloğu düğme yazısını ve tükenen üründe
   WhatsApp düğmesini ekler. Kartın renk/yazı tipi temeli footer_ozel_html parçasındadır;
   buradaki kurallar "html body div." özgüllüğüyle onun yerleşimini ezer.
   Düzen: kart esnek sütun; ikon kabı (cart-1) display:contents olur → favori sağ üstte,
   sepete ekle formu kartın altında. Fareli ekranda düğme kartın üzerine gelince belirir,
   fiyat o alanda büyük durur; dokunmatikte düğme fiyatın altında hep görünür.
   Geri almak için: Kod Stüdyosu sürüm geçmişinden önceki sürüme dön + yayınla.
   ========================================================================== */
:root{--pt-k-wa:#178540}

/* --- Kart çerçevesi --- */
html body div.cat-detail-products-box{position:relative!important;display:flex!important;flex-direction:column;padding:12px!important;border-radius:16px!important;overflow:hidden}

/* --- Görsel alanı: sabit kare + Tükendi etiketi --- */
html body div.cat-detail-products-box .cat-detail-products-box-img{position:relative;display:block!important;width:auto!important;height:auto!important;aspect-ratio:auto!important;margin:0 0 10px!important;border-radius:12px;overflow:hidden;background:#F6F9F7}
html body div.cat-detail-products-box .cat-detail-products-box-img a{display:block!important;width:100%;height:auto}
html body div.cat-detail-products-box .cat-detail-products-box-img img{display:block;width:100%!important;height:auto!important;aspect-ratio:1/1;object-fit:contain}
html body div.cat-detail-products-box .cat-detail-products-box-img.product-grey-img img{filter:none!important;-webkit-filter:none!important;opacity:1!important}
html body div.cat-detail-products-box .cat-detail-products-box-img.product-grey-img::after{content:"Tükendi";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:9px 18px;border:1px solid rgba(255,255,255,.35);border-radius:10px;background:rgba(15,31,22,.86);color:#fff;font-family:var(--pt-body);font-size:14px;font-weight:600;line-height:1;white-space:nowrap;pointer-events:none}

/* --- Favori: sağ üstte beyaz daire (hep görünür) --- */
html body div.cat-detail-products-box .cat-detail-products-box-cart-1{display:contents!important}
html body div.cat-detail-products-box .cat-detail-products-box-cart-1>a{position:absolute!important;top:20px;right:20px;z-index:3;width:36px!important;height:36px!important;margin:0!important;opacity:1!important;visibility:visible!important;transform:none!important}

/* --- Yıldız + ad --- */
html body div.cat-detail-products-box .cat-detail-products-box-info{padding:0 2px!important;margin:0 0 8px!important;text-align:left!important}

/* --- Fiyat: kartın altına yaslı; liste satırı üstte, güncel fiyat altta --- */
html body div.cat-detail-products-box .cat-detail-products-box-fiyat{display:flex!important;align-items:flex-end;justify-content:flex-start;min-height:46px;margin:auto 0 0!important;padding:0 2px!important;border:0!important}
html body div.cat-detail-products-box .cat-detail-products-box-fiyat-out{display:block!important;width:auto!important;margin:0!important;padding:0!important;text-align:left!important}
html body div.cat-detail-products-box .cat-detail-products-box-fiyat-out .cat-detail-products-box-fiyat-mevcut{color:var(--pt-g7)!important;margin:2px 0 0!important}
/* Tükenen üründe çekirdeğin "Tükendi" kutusu görselin üstündeki etikete dönüştü; fiyatsız kalan boş kutu satırı itmesin */
html body div.cat-detail-products-box .cat-detail-products-box-fiyat-out.button-red{display:none!important}
html body div.cat-detail-products-box .cat-detail-products-box-fiyat:not(:has(.cat-detail-products-box-fiyat-out:not(.button-red))){display:none!important}

/* --- Alt düğme: Sepete Ekle (form ya da varyant düğmesi) / tükenende WhatsApp --- */
html body div.cat-detail-products-box .cat-detail-products-box-cart-1>form,html body div.cat-detail-products-box .cat-detail-products-box-cart-1>button,html body div.cat-detail-products-box>.pt-kart-wa{position:absolute!important;left:12px;right:12px;bottom:12px;z-index:4;margin:0!important;transition:opacity .2s,transform .2s}
html body div.cat-detail-products-box .cat-detail-products-box-cart-1>form button,html body div.cat-detail-products-box .cat-detail-products-box-cart-1>button{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;height:40px!important;padding:0 10px!important;border:1px solid var(--pt-g)!important;border-radius:10px!important;background:var(--pt-g)!important;color:#fff!important;font-family:var(--pt-body)!important;font-size:13.5px!important;font-weight:700!important;line-height:1!important;box-shadow:none!important;cursor:pointer}
html body div.cat-detail-products-box .cat-detail-products-box-cart-1>form button{position:static!important;margin:0!important;opacity:1!important;visibility:visible!important;transform:none!important}
html body div.cat-detail-products-box .cat-detail-products-box-cart-1>button{width:auto!important}
html body div.cat-detail-products-box .cat-detail-products-box-cart-1>form button:hover,html body div.cat-detail-products-box .cat-detail-products-box-cart-1>button:hover{background:var(--pt-g7)!important;border-color:var(--pt-g7)!important;color:#fff!important}
html body div.cat-detail-products-box .cat-detail-products-box-cart-1>form button::before,html body div.cat-detail-products-box .cat-detail-products-box-cart-1>form button::after,html body div.cat-detail-products-box .cat-detail-products-box-cart-1>button::before,html body div.cat-detail-products-box .cat-detail-products-box-cart-1>button::after{content:none!important;display:none!important}
html body div.cat-detail-products-box .cat-detail-products-box-cart-1>form button i,html body div.cat-detail-products-box .cat-detail-products-box-cart-1>button i{font-size:17px!important;line-height:1}
html body div.cat-detail-products-box>.pt-kart-wa{display:flex;align-items:center;justify-content:center;gap:7px;height:40px;border-radius:10px;background:var(--pt-k-wa);color:#fff!important;font-family:var(--pt-body);font-size:13.5px;font-weight:700;text-decoration:none!important}
html body div.cat-detail-products-box>.pt-kart-wa:hover{background:#126b33}
html body div.cat-detail-products-box>.pt-kart-wa i{font-size:18px;line-height:1}

/* --- Fareli ekran: düğme kartın üzerine gelince belirir; o alan boşken fiyat büyük durur --- */
@media (hover:hover){
  html body div.cat-detail-products-box{padding-bottom:62px!important}
  html body div.cat-detail-products-box .cat-detail-products-box-cart-1>form,html body div.cat-detail-products-box .cat-detail-products-box-cart-1>button,html body div.cat-detail-products-box>.pt-kart-wa{opacity:0;transform:translateY(6px);pointer-events:none}
  html body div.cat-detail-products-box:hover .cat-detail-products-box-cart-1>form,html body div.cat-detail-products-box:hover .cat-detail-products-box-cart-1>button,html body div.cat-detail-products-box:hover>.pt-kart-wa,html body div.cat-detail-products-box:focus-within .cat-detail-products-box-cart-1>form,html body div.cat-detail-products-box:focus-within .cat-detail-products-box-cart-1>button,html body div.cat-detail-products-box:focus-within>.pt-kart-wa{opacity:1;transform:none;pointer-events:auto}
  html body div.cat-detail-products-box .cat-detail-products-box-fiyat-out{transform:translateY(var(--pt-bf-y,44px));transition:transform .2s ease}
  html body div.cat-detail-products-box .cat-detail-products-box-fiyat-out .cat-detail-products-box-fiyat-mevcut{font-size:22px!important;transition:font-size .2s ease}
  html body div.cat-detail-products-box:hover .cat-detail-products-box-fiyat-out,html body div.cat-detail-products-box:focus-within .cat-detail-products-box-fiyat-out{transform:none}
  html body div.cat-detail-products-box:hover .cat-detail-products-box-fiyat-out .cat-detail-products-box-fiyat-mevcut,html body div.cat-detail-products-box:focus-within .cat-detail-products-box-fiyat-out .cat-detail-products-box-fiyat-mevcut{font-size:18px!important}
}
/* --- Dokunmatik ekran: üzerine gelme yok → düğme fiyatın altında hep görünür --- */
@media (hover:none){
  html body div.cat-detail-products-box .cat-detail-products-box-cart-1>form,html body div.cat-detail-products-box .cat-detail-products-box-cart-1>button,html body div.cat-detail-products-box>.pt-kart-wa{position:static!important;order:10;margin-top:10px!important}
}
@media (max-width:560px){
  html body div.cat-detail-products-box{padding:8px!important;border-radius:14px!important}
  html body div.cat-detail-products-box .cat-detail-products-box-cart-1>a{top:14px;right:14px;width:34px!important;height:34px!important}
  html body div.cat-detail-products-box .cat-detail-products-box-cart-1>form,html body div.cat-detail-products-box .cat-detail-products-box-cart-1>button,html body div.cat-detail-products-box>.pt-kart-wa{left:8px;right:8px;bottom:8px}
  html body div.cat-detail-products-box .cat-detail-products-box-cart-1>form button,html body div.cat-detail-products-box .cat-detail-products-box-cart-1>button,html body div.cat-detail-products-box>.pt-kart-wa{height:38px!important;font-size:13px!important}
}
@media (hover:hover) and (max-width:560px){html body div.cat-detail-products-box{padding-bottom:56px!important}}
