/* Dizin: themes/amerce/assets/css/kiys.css
 * KIYS entegrasyon stilleri - Amerce'nin styles.css'inde olmayan, KIYS'e özgü
 * parçalar (anlık arama sonuçları, blok boşlukları, editör içeriği, sayfa
 * başlığı, iletişim kartları). Siteye özel düzeltmeler (yuncunihat gibi) burada
 * DEĞİL, panelde Sistem Ayarları > Kod Ekleme > Özel CSS'e yazılır.
 */

/* --- Anlık arama sonuçları (header + arama modalı) --- */
.am-search-results{position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid var(--line,#e5e5e5);border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.08);z-index:999;max-height:420px;overflow-y:auto;text-align:left;}
.am-search-results a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #f1f5f9;color:inherit;}
.am-search-results a:hover{background:#f8fafc;}
.am-search-results .am-sr-title{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.am-search-results .am-sr-tag{flex-shrink:0;font-size:11px;background:#f1f5f9;color:#475569;padding:2px 8px;border-radius:20px;}
.am-search-results .am-sr-empty{padding:12px 14px;font-size:13px;color:#64748b;}

/* --- Blok üst/alt boşlukları (Blok Motoru "Boşluk" ayarı) --- */
.am-spacer-s{height:24px;}
.am-spacer-m{height:48px;}
.am-spacer-l{height:96px;}

/* --- Editör (Quill) içeriği --- */
.cms-content{line-height:1.75;}
.cms-content img{max-width:100%;height:auto;}
.cms-content h2,.cms-content h3,.cms-content h4{margin:1.4em 0 .6em;}
.cms-content p{margin-bottom:1em;}
.cms-content ul,.cms-content ol{padding-left:1.4em;margin-bottom:1em;}
.cms-content ul{list-style:disc;}
.cms-content ol{list-style:decimal;}
.cms-content a{text-decoration:underline;}

/* --- Sayfa başlığı + breadcrumb (Amerce page-title yapısı) --- */
.am-page-title{padding:40px 0 24px;}
.am-page-title .breadcrumbs-list{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px;color:var(--text-2,#6b7280);margin-bottom:10px;}
.am-page-title .breadcrumbs-list a{color:inherit;}
.am-page-title .breadcrumbs-list .sep{opacity:.5;}
.am-page-title h1{font-size:clamp(26px,3.4vw,40px);margin:0;letter-spacing:0;}
.am-page-title .lede{margin-top:10px;color:var(--text-2,#6b7280);max-width:760px;}

/* --- İletişim --- */
.am-contact-card{border:1px solid var(--line,#e5e5e5);border-radius:12px;padding:20px 22px;height:100%;}
.am-contact-card h6{margin-bottom:8px;}
.am-map-embed{border-radius:12px;overflow:hidden;}
.am-map-embed iframe{width:100%;height:100%;min-height:320px;border:0;display:block;}

/* --- Kategori şeridi: görselsiz kategoride yer tutucu --- */
.category-v02 .cate-image .am-cate-placeholder{aspect-ratio:1;border-radius:50%;background:#f3f4f6;display:flex;align-items:center;justify-content:center;font-size:28px;color:#9ca3af;}

/* --- Boş durum --- */
.am-empty{padding:80px 0;text-align:center;}
.am-empty h1{font-size:clamp(28px,4vw,44px);margin-bottom:12px;}

/* --- Mağaza: filtre renk kutucuğu --- */
.am-swatch{display:inline-block;width:16px;height:16px;border-radius:50%;border:1px solid rgba(0,0,0,.15);flex-shrink:0;}
.am-facet-list{max-height:320px;overflow-y:auto;}

/* --- Mağaza: ürün detayı seçenekleri --- */
.am-opt{min-width:44px;height:40px;padding:0 14px;border:1px solid var(--line,#e5e5e5);border-radius:6px;background:#fff;font-size:14px;transition:border-color .15s,box-shadow .15s;}
.am-opt:hover{border-color:var(--primary,#000);}
.am-opt.active{border-color:var(--primary,#000);box-shadow:0 0 0 1px var(--primary,#000);}
.am-opt-color{width:36px;min-width:36px;height:36px;padding:0;border-radius:50%;background:var(--am-swatch,#eee);}
.am-opt-color.active{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--primary,#000);}
.am-opt.am-unavailable{opacity:.35;text-decoration:line-through;}
.am-tone{display:flex;flex-direction:column;align-items:center;width:60px;font-size:11px;color:inherit;}
.am-tone img{width:60px;height:80px;object-fit:cover;border-radius:6px;border:1px solid var(--line,#e5e5e5);margin-bottom:3px;}
.am-tone:hover img{border-color:var(--primary,#000);}
.am-video-badge{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;background:rgba(0,0,0,.35);font-size:20px;pointer-events:none;}
.tf-product-media-main .ratio iframe,.tf-product-media-main .ratio video{width:100%;height:100%;border:0;}
.product-badge_item.sold-out{background:#6b7280;color:#fff;}

/* --- Filtre paneli (masaüstünde sabit sütun) --- */
@media (min-width:1200px){
  #shopFilters{position:sticky;top:20px;}
}
.am-price-input{max-width:110px;height:40px;}
.am-search-results .am-sr-main{display:flex;align-items:center;gap:10px;min-width:0;}
.am-search-results .am-sr-img{width:42px;height:42px;object-fit:cover;border-radius:6px;border:1px solid #eef2f7;flex-shrink:0;}
.am-search-results .am-sr-text{display:flex;flex-direction:column;min-width:0;}
.am-search-results .am-sr-code{font-size:11px;color:#64748b;}
.am-search-results .am-sr-price{flex-shrink:0;font-size:13px;font-weight:700;white-space:nowrap;}
.am-search-results .am-sr-all{justify-content:center;font-size:12.5px;background:#f8fafc;color:#475569;}

/* --- Sepet --- */
.am-cart-qty{width:120px;}
.tf-mini-cart-item .am-cart-qty{width:104px;height:34px;}
.tf-btn.disabled{pointer-events:none;opacity:.5;}

/* --- Favori + hesap --- */
.am-fav-btn{width:52px;height:52px;border:1px solid var(--line,#e5e5e5);border-radius:50%;background:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:22px;transition:.15s;}
.am-fav-btn:hover{border-color:var(--primary,#000);}
.am-fav-btn.active{background:#e11d48;border-color:#e11d48;color:#fff;}
@media (max-width:991px){
  .am-account-nav{display:flex;overflow-x:auto;gap:6px;padding-bottom:6px;}
  .am-account-nav .link-account{white-space:nowrap;flex-shrink:0;}
  .am-account-nav form{flex-shrink:0;}
}
