/* Theme Custom (Admin -> Ayarlar -> Görünüm) */

/* Sepete Ekle butonları */
.btn.cart-btn{
  background: var(--ui-addtocart-color, var(--brand2));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}
.btn.cart-btn:hover{ filter: brightness(.96); }
.btn.cart-btn:active{ transform: translateY(1px); }
.btn.cart-btn:disabled{ opacity: .55; cursor: not-allowed; filter:none; transform:none; }

/* Header menü tuş vurgusu */
.nav-link:hover,
.nav-link:focus-visible{
  background: var(--ui-menu-accent-bg, rgba(245,158,11,.14));
}
.nav-link:hover{
  color: var(--ui-menu-accent, rgba(17,24,39,.82));
}

/* --- Header Beautify --- */
/* --- Header Beautify --- */
.site-header{
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(17,24,39,.10);
}

/* Üst ince şerit: renkli + daha şık */
.top-strip{
  background: linear-gradient(90deg, var(--ui-menu-accent, #f59e0b) 0%, rgba(17,24,39,.96) 100%);
  border-bottom: none;
}
.top-strip-inner{padding:10px 0}
.top-links .tlink{
  color:#fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
}
.top-links .tlink:hover{background: rgba(255,255,255,.18)}

/* Sosyal ikonlar: daha canlı */
.social .soc{
  width:34px;height:34px;border-radius:14px;
  border:none;
  background: rgba(255,255,255,.14);
  transition: transform .12s ease, filter .12s ease;
}
.social .soc svg{width:17px;height:17px;fill:#fff;opacity:.96}
.social .soc:hover{transform: translateY(-1px); filter: brightness(1.06)}
.social .soc.ig{background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4)}
.social .soc.fb{background:#1877f2}
.social .soc.yt{background:#ff0000}
.social .soc.wa{background:#25d366}

/* Ana header: logo daha büyük, arama daha kompakt */
.header-main{
  justify-content: space-between;
  padding:14px 0;
}
.logo{gap:10px}
.logo-img{height:72px;width:auto;border-radius:18px}
.logo-badge{width:72px;height:72px;border-radius:20px}
.logo-text{display:none}

/* Arama alanı küçült */
.search-wide{
  flex: 1;
  max-width: 520px;
  margin: 0 10px;
}
.search-wide input{
  padding:10px 12px;
  border-radius:14px;
}
.search-wide button{
  padding:10px 14px;
  border-radius:14px;
  background: var(--ui-menu-accent, #f59e0b);
  border-color: transparent;
  color: #111827;
  font-weight: 700;
}
.search-wide button:hover{filter: brightness(.98)}

/* Hesabım / Sepetim butonları: renkli vurgulu */
.header-actions .hact{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 0 0 1px rgba(17,24,39,.08) inset;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.header-actions .hact:hover{
  background: var(--ui-menu-accent-bg, rgba(245,158,11,.14));
  box-shadow: 0 0 0 1px rgba(17,24,39,.10) inset, 0 10px 28px rgba(17,24,39,.08);
  transform: translateY(-1px);
}
.header-actions .hicon{
  width:26px;height:26px;border-radius:12px;
  display:grid;place-items:center;
  background: rgba(255,255,255,.70);
  box-shadow: 0 0 0 1px rgba(17,24,39,.08) inset;
}
.header-actions .hicon i{color: var(--ui-menu-accent, #f59e0b)}

/* Menü alt barı daha temiz */
.nav-wrap{
  background: rgba(255,255,255,.62);
}

/* Mobilde taşma olmasın */
@media (max-width: 1220px){
  .search-wide{max-width: 420px}
  .logo-img{height:62px}
  .logo-badge{width:62px;height:62px}
}
@media (max-width: 980px){
  .search-wide{max-width: 360px}
  .logo-img{height:56px}
  .logo-badge{width:56px;height:56px}
}


/* --- Header Pastel Tuning (isteğe göre) --- */
.top-strip{
  background: linear-gradient(90deg,
    rgba(var(--ui-menu-accent-rgb, 245,158,11), .22) 0%,
    rgba(var(--ui-menu-accent-rgb, 245,158,11), .10) 55%,
    rgba(255,255,255,.70) 100%);
  border-bottom: 1px solid rgba(17,24,39,.08);
}
.top-strip-inner{padding:10px 0}

.top-links .tlink{
  color: rgba(17,24,39,.86);
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 8px 18px rgba(17,24,39,.06);
}
.top-links .tlink:hover{background: rgba(255,255,255,.90)}

.social .soc{
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.78);
}
.social .soc svg{fill: rgba(17,24,39,.85)}
.social .soc.ig svg,
.social .soc.fb svg,
.social .soc.yt svg,
.social .soc.wa svg{fill:#fff}

/* Arama butonu: pastel */
.search-wide button.search-btn{
  background: rgba(var(--ui-menu-accent-rgb, 245,158,11), .14);
  border: 1px solid rgba(var(--ui-menu-accent-rgb, 245,158,11), .28);
  color: rgba(17,24,39,.92);
  font-weight: 700;
}
.search-wide button.search-btn:hover{
  background: rgba(var(--ui-menu-accent-rgb, 245,158,11), .18);
}

/* Header aksiyon butonları: pastel tonlar */
.header-actions .hact{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(17,24,39,.10);
}
.header-actions .hact:hover{
  background: rgba(255,255,255,.94);
}

/* Hesabım (pastel turuncu) */
.header-actions .hact-account{
  background: rgba(255,247,237,.90);
  border-color: rgba(249,115,22,.32);
}
.header-actions .hact-account:hover{
  background: rgba(249,115,22,.10);
}
.header-actions .hact-account .hicon{background: rgba(249,115,22,.14)}
.header-actions .hact-account .hicon i{color:#f97316}

/* Sepet (pastel yeşil) */
.header-actions .hact-cart{
  background: rgba(240,253,244,.92);
  border-color: rgba(34,197,94,.30);
}
.header-actions .hact-cart:hover{
  background: rgba(34,197,94,.10);
}
.header-actions .hact-cart .hicon{background: rgba(34,197,94,.14)}
.header-actions .hact-cart .hicon i{color:#16a34a}

/* Genel ikon rengi (diğerleri) */
.header-actions .hicon i{color: rgba(17,24,39,.84)}


/* =========================================================
   Ürün Kartları: Görsel boyutu dengele + 5'li dizilim
   ========================================================= */

/* Görsellerin bazısı çok küçük görünmesin: çerçeveyi doldursun */
.product-card .thumb{
  aspect-ratio: 5 / 4;          /* 4/3 ile kare arasının "orta" boyutu */
  object-fit: cover;           /* küçük kalmasın, doldursun */
  object-position: center;
  background: #fff;
}
.product-card .imgwrap{
  background:#fff;
}

/* Geniş ekranlarda 5 ürün yan yana (kategori/arama/tüm ürünler dahil) */
@media (min-width: 1100px){
  .grid{ grid-template-columns: repeat(5, 1fr); }
  .home-grid{ grid-template-columns: repeat(5, 1fr); }
}

/* En Çok Satanlar slider: geniş ekranda 5 kartı aynı anda göster */
@media (min-width: 1100px){
  .carousel-item{
    flex: 0 0 calc((100% - (14px * 4)) / 5);
  }
}

/* Mobilde kareye yaklaşmasın (daha dengeli kalsın) */
@media (max-width: 720px){
  .product-card .thumb{ aspect-ratio: 4 / 3; }
}

/* =========================================================
   En Çok Satanlar: daha dengeli görünüm (blur bg + contain)
   Not: Bazı ürün görselleri kendi içinde beyaz boşluklu olduğu için
   sadece 'cover' her zaman yeterli olmuyor. Bu teknik küçük/büyük
   dengesini toparlar.
   ========================================================= */

.carousel[data-carousel="bestsellers"] .product-card .imgwrap.imgframe{
  position:relative;
  overflow:hidden;
  background:#fff;
  aspect-ratio: 5 / 4; /* yükseklik sabit */
  border-bottom: 1px solid rgba(17,24,39,.06);
}

.carousel[data-carousel="bestsellers"] .product-card .imgwrap.imgframe::before{
  content:"";
  position:absolute;
  inset:-10px;
  background-image: var(--pc-img);
  background-size: cover;
  background-position: center;
  filter: blur(16px) saturate(1.08);
  transform: scale(1.15);
  opacity: .38;
}

.carousel[data-carousel="bestsellers"] .product-card .pc-badges{ z-index: 3; }

.carousel[data-carousel="bestsellers"] .product-card .thumb{
  position:relative;
  z-index:2;
  display:block;
  width:100%;
  height:100%;
  object-fit: cover;            /* içeride boşluk olsa bile doldursun */
  object-position: center;
  padding: 0;
  background: transparent;
  aspect-ratio: auto;           /* wrapper zaten oranı veriyor */
  transform: scale(1.03);       /* ince beyaz kenarları gizler */
}

/* Bestsellers: başlık ve açıklama satırlarını sabitle (yükseklik farkı azalt) */
.carousel[data-carousel="bestsellers"] .product-card .p-name a{
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
  min-height: 38px;
}
.carousel[data-carousel="bestsellers"] .product-card .p-desc{
  display:-webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow:hidden;
  min-height: 18px;
}

/* =========================================================
   Yıldızlı Ürünler: görsel çerçevesini sabitle (blur bg + cover)
   Bu blok en altta olduğu için bazen farklı img ölçülerinde dengesiz görünüyordu.
   ========================================================= */

.carousel[data-carousel="star"] .product-card .imgwrap.imgframe{
  position:relative;
  overflow:hidden;
  background:#fff;
  aspect-ratio: 5 / 4;
  border-bottom: 1px solid rgba(17,24,39,.06);
}

.carousel[data-carousel="star"] .product-card .imgwrap.imgframe::before{
  content:"";
  position:absolute;
  inset:-10px;
  background-image: var(--pc-img);
  background-size: cover;
  background-position: center;
  filter: blur(16px) saturate(1.08);
  transform: scale(1.15);
  opacity: .38;
}

.carousel[data-carousel="star"] .product-card .pc-badges{ z-index: 3; }

.carousel[data-carousel="star"] .product-card .thumb{
  position:relative;
  z-index:2;
  display:block;
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: transparent;
  aspect-ratio: auto;
  transform: scale(1.03);
}
