/* Babiest teması — thebabiest.com yapısal referansıyla.
   Palet: somon üst şerit/rozet/fiyat, beyaz header, mavi başlık/etiket, turuncu CTA. */
.theme-babiest {
  --b-salmon: #e8a08b;
  --b-salmon-dark: #d98d78;
  --b-blue: #2b52a5;
  --b-orange: #ef9d1f;
  --b-orange-dark: #d8880f;
  --b-navy: #1e2430;
  --c-primary: #e8a08b;
  --c-primary-dark: #d98d78;
  --c-text: #1e2430;
  --c-muted: #8b8f98;
  --c-border: #ececef;
  --c-bg: #ffffff;
  --c-bg-soft: #f7f5f2;
  --c-success: #2e9e6b;
  --c-error: #d2543f;
  --radius: 12px;
}
.theme-babiest a:hover { color: var(--b-salmon-dark); }

/* CTA (turuncu) */
.btn-cta {
  display: inline-block; background: var(--b-orange); color: #fff; border: 0;
  padding: 13px 34px; border-radius: 8px; font-weight: 700; letter-spacing: .05em;
  cursor: pointer; font-size: 1rem; text-align: center;
}
.btn-cta:hover { background: var(--b-orange-dark); color: #fff; }

/* ---- Üst şerit (somon) ---- */
.top-strip { background: var(--b-salmon); color: #fff; font-size: .82rem; }
.top-strip-inner { display: flex; align-items: stretch; gap: 14px; padding: 0 16px; min-height: 40px; }
.top-left, .top-right { display: flex; align-items: center; gap: 0; white-space: nowrap; }
.top-chip, .top-right a {
  color: #fff; padding: 10px 12px; border-right: 1px solid rgba(255,255,255,.25); font-weight: 500;
}
.top-left .top-chip:first-child { border-left: 1px solid rgba(255,255,255,.25); }
a.top-chip:hover { background: rgba(255,255,255,.15); color: #fff; }
.top-chip-active { background: rgba(255,255,255,.22); }

/* RTL (Arapça vb.) */
[dir="rtl"] .theme-babiest .header-inner, [dir="rtl"] .nav-row { direction: rtl; }
[dir="rtl"] .cat-sub { left: auto; right: 100%; }
[dir="rtl"] .b-fav { right: auto; left: 10px; }
[dir="rtl"] .b-badge { left: auto; right: 10px; }
.top-right a { border-right: 0; border-left: 1px solid rgba(255,255,255,.25); }
.top-announce { flex: 1; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; text-align: center; }

/* ---- Header ---- */
.theme-babiest .site-header { border-bottom: 0; }
.theme-babiest .header-inner { padding: 20px 16px; gap: 30px; }
.logo-script {
  font-size: 2rem; font-weight: 800; color: #17b0a7; letter-spacing: -.02em;
  text-shadow: 2px 2px 0 #14356e11;
}
.theme-babiest .logo img { max-height: 62px; }
.pill-search { max-width: 640px; position: relative; }
.pill-search input {
  border: 1px solid var(--c-border); border-radius: 30px 0 0 30px; padding: 13px 22px;
  background: #fff;
}
.pill-search button {
  border-radius: 0 30px 30px 0; padding: 0 24px; font-size: 1.2rem;
  background: #fff; color: var(--c-muted); border: 1px solid var(--c-border); border-left: 0;
}
.pill-search button:hover { color: var(--b-navy); }
.theme-babiest .header-actions { gap: 20px; }
.action-item { font-weight: 600; font-size: .95rem; }
.action-icon { position: relative; font-size: 1.25rem; display: flex; align-items: center; gap: 6px; }
.theme-babiest .cart-badge {
  position: absolute; top: -8px; left: 12px; background: var(--b-salmon); color: #fff;
  min-width: 18px; height: 18px; line-height: 18px; padding: 0 4px; font-size: .72rem;
}
.cart-amount { font-size: .92rem; font-weight: 700; color: var(--b-navy); }

/* ---- Ana menü satırı ---- */
.theme-babiest .main-nav { background: #fff; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.nav-row { display: flex; align-items: stretch; gap: 20px; }
.cat-menu { position: relative; }
.cat-menu-btn {
  background: var(--b-salmon); color: #fff; border: 0; cursor: pointer;
  padding: 15px 26px; font-weight: 700; font-size: .95rem; border-radius: 10px 10px 0 0;
  display: flex; gap: 10px; align-items: center; min-width: 250px;
}
.cat-menu-btn .caret { margin-left: auto; }
.cat-menu-panel {
  display: none; position: absolute; top: 100%; left: 0; z-index: 80; width: 250px;
  background: #fff; border: 1px solid var(--c-border); box-shadow: 0 10px 24px rgba(20,25,40,.1);
}
.cat-menu:hover .cat-menu-panel, .cat-menu:focus-within .cat-menu-panel { display: block; }
.cat-menu-panel > li { position: relative; border-bottom: 1px solid var(--c-border); }
.cat-menu-panel > li > a { display: block; padding: 13px 18px; font-weight: 500; }
.cat-menu-panel > li:hover > a { color: var(--b-salmon-dark); background: var(--c-bg-soft); }
.cat-sub {
  display: none; position: absolute; left: 100%; top: 0; min-width: 220px; background: #fff;
  border: 1px solid var(--c-border); box-shadow: 0 10px 24px rgba(20,25,40,.1);
}
.cat-menu-panel > li:hover .cat-sub { display: block; }
.cat-sub a { display: block; padding: 11px 16px; }
.nav-center { display: flex; gap: 6px; align-items: center; flex: 1; justify-content: center; list-style: none; }
.nav-center a { padding: 15px 14px; font-weight: 600; font-size: .95rem; display: block; }
.nav-shop { display: flex; align-items: center; font-weight: 700; gap: 6px; }

/* ---- Hero (yapı ortak ui.css'te; burada sadece tema aksanı) ---- */
.babiest-hero { margin: 0 auto 10px; --hero-accent: var(--b-salmon); --hero-title: var(--b-navy); --hero-sub: #3c414c; }
.babiest-hero .sl-caption h2 { font-weight: 800; }
.hero-dot { background: rgba(0,0,0,.22); }
.hero-dot.active { background: var(--b-salmon); }

/* ---- Bölüm başlıkları ---- */
.b-section { margin: 46px 0; }
.b-overline { text-align: center; color: var(--c-muted); letter-spacing: .2em; font-size: .8rem; margin-bottom: 6px; }
.b-title { text-align: center; color: var(--b-blue); font-size: 1.6rem; font-weight: 800; letter-spacing: .06em; margin-bottom: 24px; }

/* ---- Kategori kartları ---- */
.cat-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin: 10px 0 0;
}
.cat-card {
  position: relative; display: block; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 1; background: var(--c-bg-soft);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 10px;
  background: linear-gradient(transparent, rgba(30,36,48,.72));
  color: #fff; font-weight: 600; text-align: center; letter-spacing: .06em;
}

/* ---- Ürün kartı ---- */
.b-card { position: relative; border: 1px solid var(--c-border); border-radius: var(--radius); text-align: center; }
.b-card-img { position: relative; display: block; overflow: hidden; }
.b-card-img img { width: 100%; aspect-ratio: 7/8; object-fit: cover; transition: opacity .3s; }
.b-card-img .img-hover { position: absolute; inset: 0; opacity: 0; }
.b-card:hover .img-hover { opacity: 1; }
.b-badge {
  position: absolute; top: 10px; left: 10px; background: var(--b-salmon); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 6px;
}
.b-quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(30,36,48,.85);
  color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  padding: 10px; border-radius: 8px; opacity: 0; transition: opacity .2s;
}
.b-card:hover .b-quick { opacity: 1; }
.b-fav { position: absolute; top: 10px; right: 10px; z-index: 5; }
.b-fav button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--c-border);
  background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--b-navy);
}
.b-fav button:hover { color: var(--b-salmon-dark); border-color: var(--b-salmon); }
.b-card-body h3 { min-height: 0; font-size: 1rem; color: var(--b-navy); }
.b-cat { color: var(--c-muted); font-size: .84rem; margin: 2px 0 6px; }
.b-price { justify-content: center; }
.b-price strong { color: var(--b-salmon-dark); font-size: 1.12rem; }
.b-card .card-rating { justify-content: center; display: flex; gap: 4px; }

/* ---- Filtre kenar çubuğu (mavi başlıklar) ---- */
.theme-babiest .filter-sidebar { border: 0; padding: 0 16px 0 0; }
.theme-babiest .filter-block h4 { color: var(--b-blue); font-size: 1.02rem; }
.theme-babiest .filter-block { border-bottom: 1px solid var(--c-border); padding: 14px 0 18px; }

/* ---- Ürün sayfası ---- */
.b-title-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.b-cat-label { color: var(--c-muted); font-size: .85rem; letter-spacing: .04em; }
.theme-babiest .product-info h1 { font-size: 2rem; font-weight: 800; color: var(--b-navy); }
.brand-box {
  border: 1px solid var(--c-border); border-radius: var(--radius); padding: 12px 18px;
  color: var(--b-salmon-dark); font-weight: 700; white-space: nowrap;
}
.theme-babiest .price-box strong { color: var(--b-salmon-dark); font-size: 2rem; }
.theme-babiest .option-label { color: var(--b-blue); font-weight: 600; }
.theme-babiest .option-group select,
.theme-babiest .option-group input[type="text"],
.theme-babiest .option-group textarea { border-radius: 24px; padding: 11px 18px; max-width: 100%; }
.theme-babiest .option-group textarea { border-radius: 16px; }
.totals-box { border-top: 1px solid var(--c-border); margin-top: 18px; padding-top: 8px; }
.totals-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .98rem; }
.totals-row strong { color: var(--b-salmon-dark); font-weight: 700; }
.totals-grand { border-top: 1px dashed var(--c-border); margin-top: 4px; padding-top: 11px; font-size: 1.08rem; }
.totals-grand span { font-weight: 700; }

/* Dikey galeri + lightbox */
.vertical-gallery { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; }
.gallery-thumbs-v { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; }
.gallery-thumbs-v .thumb { border-radius: 10px; }
.vertical-gallery .gallery-main { cursor: zoom-in; position: relative; border-radius: var(--radius); background: var(--c-bg-soft); }
.zoom-hint {
  position: absolute; right: 10px; bottom: 10px; background: rgba(255,255,255,.9);
  border-radius: 20px; padding: 4px 12px; font-size: .78rem; color: var(--c-muted);
}
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(23,26,33,.93);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 8px; }
#lightbox-close { position: absolute; top: 14px; right: 20px; font-size: 2.2rem; background: none; border: 0; color: #fff; cursor: pointer; }
.trust-list { margin-top: 20px; border-top: 1px dashed var(--c-border); padding-top: 14px; list-style: none; }
.trust-list li { padding: 6px 0; color: var(--c-muted); font-size: .92rem; display: flex; align-items: center; gap: 9px; }
.trust-list .trust-ico { color: var(--c-primary, #d6789b); flex-shrink: 0; }

/* ---- Koleksiyon sekmeleri ---- */
.collection-tabs { display: flex; gap: 8px; justify-content: center; margin: 0 0 24px; flex-wrap: wrap; }
.tab-btn {
  border: 1px solid var(--c-border); background: #fff; padding: 10px 24px;
  border-radius: 30px; font-weight: 700; letter-spacing: .06em; cursor: pointer; font-size: .84rem;
  color: var(--c-muted);
}
.tab-btn.active { background: var(--b-salmon); border-color: var(--b-salmon); color: #fff; }

/* ---- Yorum kartları ---- */
.review-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.review-card { background: var(--c-bg-soft); border-radius: var(--radius); padding: 20px; border: 1px solid var(--c-border); }
.review-card .stars { margin-bottom: 8px; }
.review-card p { font-style: italic; }

/* ---- Footer ---- */
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badges span {
  border: 1px solid var(--c-border); border-radius: 6px; padding: 5px 10px;
  font-size: .75rem; font-weight: 700; color: var(--c-muted); background: #fff;
}

/* ---- Mobil ---- */
.mobile-menu-btn { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--b-navy); }
.mobile-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 84vw; z-index: 400;
  background: #fff; box-shadow: 4px 0 24px rgba(0,0,0,.18); overflow-y: auto;
  transition: transform .2s;
}
.mobile-drawer.hidden { display: block; transform: translateX(-105%); box-shadow: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--c-border); }
.drawer-head button { background: none; border: 0; font-size: 1.6rem; cursor: pointer; }
.mobile-drawer nav a { display: block; padding: 13px 20px; border-bottom: 1px solid var(--c-border); font-weight: 500; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 390; }
.drawer-overlay.hidden { display: none; }

.mobile-bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #fff; border-top: 1px solid var(--c-border);
  grid-template-columns: repeat(4, 1fr); box-shadow: 0 -4px 16px rgba(20,25,40,.06);
}
.mobile-bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 10px; font-size: .72rem; font-weight: 600; position: relative;
}
.mobile-bottom-nav a span { font-size: 1.25rem; }
.bottom-badge {
  position: absolute; top: 4px; right: 22%; background: var(--b-salmon); color: #fff;
  border-radius: 10px; min-width: 17px; height: 17px; line-height: 17px; text-align: center;
  font-size: .68rem; font-style: normal;
}

@media (max-width: 900px) {
  .mobile-menu-btn { display: block; }
  .theme-babiest .main-nav, .top-left, .top-right { display: none; }
  .theme-babiest .header-inner { gap: 12px; padding: 12px 14px; flex-wrap: nowrap; }
  .theme-babiest .search-form { order: 0; }
  .action-item { display: none; }
  .mobile-bottom-nav { display: grid; }
  body.theme-babiest { padding-bottom: 64px; }
  .whatsapp-fab { bottom: 76px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; text-align: center; }
  .babiest-hero .hero-text { padding: 10px 0 0; }
  .babiest-hero .hero-text h2 { font-size: 1.9rem; }
  .babiest-hero .hero-text p { font-size: 1rem; }
  .vertical-gallery { grid-template-columns: 1fr; }
  .gallery-thumbs-v { flex-direction: row; max-height: none; overflow-x: auto; }
  .b-title-row { flex-direction: column; }
  /* Sepete ekle: normal akışta (opsiyonlar → toplam → adet+buton).
     Not: eski "sticky" düzen opsiyon başlıklarının üstüne biniyordu; kaldırıldı. */
  #purchase-row { margin-top: 8px; }
}

/* Kategori menüsü: sabit-açık modu + ikon — panel her zaman görünür, içerik üstünde açık durur */
.cat-menu.cat-fixed .cat-menu-panel { display: block; }
.cat-menu.cat-fixed .cat-menu-btn .caret { display: none; }
@media (max-width: 800px) {
  /* Mobilde sabit-açık panel ekranı kaplar; hover/odak davranışına dön */
  .cat-menu.cat-fixed .cat-menu-panel { display: none; }
  .cat-menu.cat-fixed:hover .cat-menu-panel,
  .cat-menu.cat-fixed:focus-within .cat-menu-panel { display: block; }
}
.cat-ico { vertical-align: middle; margin-right: 5px; }

/* Ürün galeri görseli: çerçevesiz, doğal en-boy (thebabiest gibi dolu görsel) */
.theme-babiest .gallery-main { border: 0; background: transparent; }
.theme-babiest .vertical-gallery .gallery-main { background: transparent; overflow: hidden; }
.theme-babiest .gallery-main img { aspect-ratio: auto; height: auto; object-fit: contain; display: block; }

/* Ürün açıklaması: sağ kolonda genişletilebilir panel */
.prod-accordion { border: 1px solid var(--c-border); border-radius: var(--radius); margin-top: 16px; }
.prod-accordion > summary { padding: 14px 18px; font-weight: 700; cursor: pointer; color: var(--b-navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.prod-accordion > summary::after { content: '+'; font-size: 1.4rem; line-height: 1; }
.prod-accordion[open] > summary::after { content: '−'; }
.prod-accordion > summary::-webkit-details-marker { display: none; }
.prod-accordion .cms-content { padding: 0 18px 18px; }

/* Dikey thumbnail'ler kolonu tam doldursun (yan boşluk yok) */
.theme-babiest .gallery-thumbs-v .thumb { width: 100%; padding: 0; overflow: hidden; }
.theme-babiest .gallery-thumbs-v .thumb img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
/* Ana görsel: üzerine gelince otomatik büyüsün (hover-zoom) */
.theme-babiest .vertical-gallery .gallery-main { overflow: hidden; cursor: zoom-in; }
.theme-babiest .gallery-main img { transition: transform .4s ease; }
.theme-babiest .gallery-main:hover img { transform: scale(1.45); }
.theme-babiest .zoom-hint { display: none; }

/* Opsiyon swatch (desen/renk → tıkla-resim-aç) */
.attr-value.has-swatch { display: inline-flex; align-items: center; gap: 6px; }
.opt-swatch { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; border: 1px solid var(--c-border); cursor: zoom-in; }
.opt-swatch:hover { border-color: var(--b-salmon); }

/* Ürün açıklaması: genişleyince sabit alan içinde kalır, uzunsa kendi içinde kayar */
.prod-accordion .cms-content { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; padding-right: 14px; }
.prod-accordion .cms-content::-webkit-scrollbar { width: 6px; }
.prod-accordion .cms-content::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 4px; }

/* Sabit menü (sadece ana sayfa): slider SOLDAN daralır, sağ kenarı yerinde kalır
   (.hero width:100% olduğundan sadece margin vermek sağa taşırır — genişlik de kısılır) */
.cat-open-home .babiest-hero { margin-left: 266px; width: calc(100% - 266px); }
@media (max-width: 800px) { .cat-open-home .babiest-hero { margin-left: 0; width: 100%; } }
.cat-ico-img { object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 5px; }

/* Ana sayfa yorum kartı görseli + blog bölümü */
.review-card .rev-photo { width: 100%; max-height: 200px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.home-blog .blog-grid { margin-top: 8px; }
