/* A101 clone — paylaşılan özel stiller (index.php + urun.php)
   Sitenin purge'lenmiş Tailwind derlemesinde olmayan yardımcı sınıflar burada tanımlı. */

/* Yatay kategori menüsü */
.cat-nav {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; column-gap: 34px; row-gap: 4px;
  height: 40px; font-size: 14px; line-height: 20px;
}
.cat-nav a {
  position: relative; top: -1px; padding: 8px 0;
  color: #333; cursor: pointer; transition: color 0.15s ease; white-space: nowrap;
}
.cat-nav a:hover { color: #00BAD3; }

/* Breadcrumb */
.breadcrumb-nav { padding-top: 16px; font-size: 16px; color: #333; }
.breadcrumb-nav a { color: #333; cursor: pointer; transition: color 0.15s ease; }
.breadcrumb-nav a:hover { color: #00BAD3; }
.breadcrumb-nav .sep { color: #8D939C; margin: 0 8px; }

/* Taksit rozeti */
.taksit-badge {
  display: inline-block; font-size: 10px; font-weight: 600; line-height: 12px;
  color: #fff; background-color: #EA242A; padding: 4px 6px; border-radius: 6px; white-space: nowrap;
}

/* Sepetim butonu */
.sepetim-btn {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px 0 4px;
  background: #00BAD3; border-radius: 24px; cursor: pointer; flex-shrink: 0;
}
.sepetim-icon {
  position: relative; width: 40px; height: 40px; background: #fff; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sepetim-count {
  position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px;
  background: #00BAD3; color: #fff; font-size: 10px; font-weight: 700; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-sizing: border-box;
}
.sepetim-text { color: #fff; font-size: 16px; font-weight: 500; white-space: nowrap; }

/* Sepete eklendi modalı ürün satırı */
#sepetNotifyProduct { margin: 12px 0 16px; }
.sepet-notify-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid #E5E7E9; border-radius: 20px; padding: 12px;
}
.snr-img {
  width: 72px; height: 72px; border: 1px solid #E5E7E9; border-radius: 14px; overflow: hidden;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff;
}
.snr-img img { width: 100%; height: 100%; object-fit: cover; }
.snr-info { flex: 1; min-width: 0; }
.snr-name {
  font-size: 14px; font-weight: 500; color: #333; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.snr-price { font-size: 18px; font-weight: 500; color: #333; margin-top: 4px; }
.snr-stepper {
  display: flex; align-items: center; border: 1px solid #E5E7E9; border-radius: 9999px; background: #fff; flex-shrink: 0;
}
.snr-trash, .snr-plus {
  width: 28px; height: 28px; margin: 4px; border-radius: 9999px; background: #00BAD3;
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 6px rgba(0,186,211,0.5);
}
.snr-qty { min-width: 28px; text-align: center; font-size: 14px; color: #333; }
.snr-plus-disabled { opacity: 0.5; pointer-events: none; cursor: not-allowed; }

/* Footer */
.a101-footer { background: #fff; padding-top: 40px; margin-top: 24px; }
.a101-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 32px; }
.a101-footer-col { display: flex; flex-direction: column; gap: 28px; }
.ft-group { display: flex; flex-direction: column; }
.ft-head { font-size: 16px; color: #00BAD3; margin-bottom: 10px; }
.ft-group a { font-size: 14px; line-height: 20px; color: #333; padding: 5px 0; cursor: pointer; transition: color 0.15s ease; }
.ft-group a:hover { color: #00BAD3; }
.a101-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; padding: 28px 0;
  border-top: 1px solid #EDF0F2; flex-wrap: wrap; gap: 20px;
}
.ft-social { display: flex; align-items: center; gap: 20px; }
.ft-social a { color: #8D939C; transition: color 0.15s ease; }
.ft-social a:hover { color: #00BAD3; }
.ft-social svg { width: 22px; height: 22px; display: block; }
.ft-apps { display: flex; align-items: center; gap: 16px; }
.ft-appbadge { display: flex; align-items: center; gap: 8px; background: #000; color: #fff; border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.ft-appbadge-glyph { width: 22px; height: 22px; flex-shrink: 0; }
.ft-appbadge-txt { display: flex; flex-direction: column; line-height: 1.1; font-size: 14px; font-weight: 600; }
.ft-appbadge-txt small { font-size: 9px; font-weight: 400; opacity: 0.85; }
.ft-qr {
  width: 64px; height: 64px; border-radius: 6px;
  background-image: repeating-linear-gradient(90deg,#000 0 6px,#fff 6px 12px), repeating-linear-gradient(0deg,#000 0 6px,#fff 6px 12px);
  background-size: 12px 12px; background-blend-mode: multiply; border: 3px solid #fff; box-shadow: 0 0 0 1px #ddd;
}
.ft-trgo svg { width: 76px; height: 76px; }
.a101-footer-copy { text-align: center; padding: 22px 0; border-top: 1px solid #EDF0F2; font-size: 14px; color: #333; }
.scroll-top-btn {
  position: fixed; right: 24px; bottom: 40px; width: 48px; height: 48px; border-radius: 9999px;
  background: #E9F0F5; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 40;
}
.scroll-top-btn svg { width: 22px; height: 22px; }
@media (max-width: 1024px) {
  .a101-footer-cols { grid-template-columns: repeat(2, 1fr); }
  .a101-footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .a101-footer-cols { grid-template-columns: 1fr; gap: 0; }
  .a101-footer-col { gap: 0; }
  .scroll-top-btn { bottom: 80px; }
  /* Footer link grupları mobilde accordion (A101 mobil davranışı) */
  .ft-head {
    cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0; padding: 15px 2px; border-bottom: 1px solid #EDF0F2;
  }
  .ft-head::after {
    content: ""; width: 8px; height: 8px; border-right: 2px solid #8D939C; border-bottom: 2px solid #8D939C;
    transform: rotate(45deg) translateY(-2px); transition: transform .2s; flex: 0 0 auto; margin-right: 4px;
  }
  .ft-group.open .ft-head::after { transform: rotate(-135deg) translateY(-2px); }
  .ft-group a { display: none; padding-left: 2px; }
  .ft-group.open a { display: block; }
  .ft-group.open a:last-child { padding-bottom: 12px; }
}

/* Ürün sayfası — mobil yapışkan alt bar (solda fiyat, sağda kompakt Sepete Ekle) — A101 birebir */
.urun-mobile-bar {
  position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom));
  background: #fff; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 16px; min-height: 105px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.10);
  /* gölge alttaki menü barına taşmasın (belirgin renk farkı yaratıyordu) */
  clip-path: inset(-24px 0 0 0);
}
.urun-mobile-bar .umb-left { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.urun-mobile-bar .umb-left .stok-badge { padding: 0.2rem 0.55rem; font-size: 0.72rem; }
.urun-mobile-bar .umb-price { font-size: 20px; font-weight: 500; color: #EA242A; white-space: nowrap; }
/* eski fiyat yeni fiyatın yanında (üst üste değil) */
.urun-mobile-bar .umb-old { display: inline; font-size: 14px; font-weight: 400; color: #8D939C; text-decoration: line-through; margin-right: 6px; vertical-align: 2px; }
.urun-mobile-bar .umb-btn {
  height: 48px; width: auto; border: none; border-radius: 9999px; background: #00BAD3; color: #fff;
  font-size: 16px; font-weight: 500; cursor: pointer; padding: 12px 20px; white-space: nowrap;
}
@media (min-width: 801px) { .urun-mobile-bar { display: none; } }
/* Ürün bilgi panelindeki inline Sepete Ekle: mobilde gizli (yapışkan bar var), 800px üstünde görünür */
.urun-inline-add { display: block; }
@media (max-width: 800px) { .urun-inline-add { display: none; } }

/* Ürün galeri: mobilde thumbnail şeridi gizli (A101 mobilde nokta göstergesi kullanır) */
@media (max-width: 800px) { .urun-thumbs-wrap { display: none !important; } }

/* Ürün bilgi paneli — mobilde fiyat etiketi GİZLİ (A101 mobilde fiyat yalnızca alt yapışkan barda) */
@media (max-width: 800px) { .urun-info-price { display: none !important; } }

/* Ürün detay bölümleri: PC'de sekme çubuğu; mobilde accordion (A101 mobil davranışı) */
.urun-acc-head { display: none; }
@media (max-width: 800px) {
  .product-detail-tabs-list .tab-bar { display: none; }
  .product-detail-tabs-list [id$="yeri"] { border-radius: 0 !important; }
  .urun-acc-head {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; padding: 0 16px; height: 56px; cursor: pointer;
    font-size: 15px; font-weight: 500; color: #333; border-top: 1px solid #EDF0F2;
  }
  .urun-acc-head.open + [id$="yeri"] { border-top: 1px solid #EDF0F2; }
  .urun-acc-head:first-of-type { border-top: none; border-radius: 24px 24px 0 0; }
  .urun-acc-head .acc-chevron { flex: 0 0 auto; transition: transform .25s; }
  .urun-acc-head.open .acc-chevron { transform: rotate(180deg); }
}

/* Ürün sayfası: yukarı çık butonu yapışkan Sepete Ekle barının (üst kenar ~169px) üstünde dursun */
@media (max-width: 800px) { .scroll-top-urun { bottom: 184px; } }

/* Peşin Fiyatına 6 Taksit rozeti — galeri görseli üzerinde sol-alt (yalnız mobil, PC dokunulmaz) */
.urun-taksit-badge {
  display: none;
  position: absolute; left: 12px; bottom: 20px; z-index: 2;
  background: #EA242A; color: #fff; font-size: 12px; font-weight: 400;
  padding: 5px 12px; border-radius: 9999px; line-height: 1.15; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.urun-taksit-badge b { font-weight: 700; }
@media (max-width: 800px) { .urun-taksit-badge { display: block; } }

/* Benzer ürünler karuseli */
.benzer-wrap { margin-top: 8px; }
.benzer-title { font-size: 18px; font-weight: 500; color: #333; margin-bottom: 14px; }
.benzer-scroll {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.benzer-scroll::-webkit-scrollbar { height: 6px; }
.benzer-scroll::-webkit-scrollbar-thumb { background: #E5E7E9; border-radius: 9999px; }
.benzer-card {
  flex: 0 0 auto; width: 220px; scroll-snap-align: start;
  background: #fff; border: 1px solid #EDF0F2; border-radius: 16px; padding: 12px; display: flex; flex-direction: column;
}
.benzer-card .bz-imgwrap { height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.benzer-card .bz-imgwrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.benzer-card .bz-name {
  font-size: 13px; color: #333; line-height: 1.35; margin: 8px 0 6px; min-height: 36px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.benzer-card .bz-price { font-size: 16px; font-weight: 500; color: #EA242A; margin-bottom: 10px; }
.benzer-card .bz-btn {
  margin-top: auto; height: 36px; border: none; border-radius: 9999px; background: #00BAD3; color: #fff;
  font-size: 14px; cursor: pointer; width: 100%;
}
@media (max-width: 600px) { .benzer-card { width: 160px; } .benzer-card .bz-imgwrap { height: 140px; } }

/* Ürün sayfası mobil: sepete eklendi bottom-sheet (alttan yukarı kayar) */
@media (max-width: 800px) {
  #sepetNotify .sepet-sheet-wrap { align-items: flex-end; }
  #sepetNotify .sepet-sheet-box {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 22px 22px 0 0;
    border-bottom: none;
    transform: translateY(105%);
    transition: transform 0.34s cubic-bezier(.4,0,.2,1);
  }
  #sepetNotify.sheet-open .sepet-sheet-box { transform: translateY(0); }
}

/* Sepetim: mobilde masaüstü özet kartını gizle (yerine yapışkan alt bar) */
@media (max-width: 1023px) { .sepet-ozet-desktop { display: none !important; } }
.sepet-mobile-free-shipping { display: none; }
@media (max-width: 1023px) {
  .sepet-mobile-free-shipping {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E6E6E6;
    color: #4CAF50;
    font-size: 12px;
    font-weight: 500;
  }
}

/* Sepetim: mobil yapışkan özet barı (Toplam + Devam Et, dokununca döküm açılır) */
.sepet-mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid #EDF0F2;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.06);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.sepet-mobile-bar .smb-breakdown { display: none; font-size: 14px; color: #333; margin-bottom: 14px; }
.sepet-mobile-bar.open .smb-breakdown { display: block; }
.sepet-mobile-bar .smb-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; }
.sepet-mobile-bar .smb-row.discount { color: #8D939C; padding-left: 16px; }
.sepet-mobile-bar .smb-divider { border-top: 1px solid #EDF0F2; margin-top: 4px; padding-top: 4px; }
.sepet-mobile-bar .smb-main { display: flex; align-items: center; justify-content: space-between; }
.sepet-mobile-bar .smb-total { display: flex; flex-direction: column; align-items: flex-start; cursor: pointer; }
.sepet-mobile-bar .smb-total .lbl { font-size: 12px; color: #8D939C; }
.sepet-mobile-bar .smb-total .amt { display: flex; align-items: center; gap: 2px; font-size: 24px; font-weight: 500; color: #333; }
.sepet-mobile-bar .smb-total .amt svg { width: 24px; height: 24px; transition: transform .25s; }
.sepet-mobile-bar.open .smb-total .amt svg { transform: rotate(180deg); }
.sepet-mobile-bar .smb-btn {
  width: 164px; height: 48px; border: none; border-radius: 9999px; flex: 0 0 auto;
  background: #00BAD3; color: #fff; font-size: 16px; font-weight: 500; cursor: pointer;
}
@media (min-width: 1024px) { .sepet-mobile-bar { display: none; } }
/* mobilde içerik yapışkan barın arkasında kalmasın */
.sepet-mobile-spacer { display: none; }
@media (max-width: 1023px) {
  .sepet-mobile-spacer { display: block; height: 96px; }
  /* yukarı çık butonu yapışkan özet barının üstünde dursun */
  .sepet-mobile-bar ~ .scroll-top-btn { bottom: 96px; }
  /* özet barı açıkken (döküm görünürken) yukarı-çık butonu fiyatların üstüne binmesin → gizle */
  .sepet-mobile-bar.open ~ .scroll-top-btn { display: none; }
}
