/* ============================================================
YAPIMCI : OFISIMO 
Versiyon: v8.0.0
    CSS INDEX OFISIMO SOFTWARE
   FG FIXES — fg-fixes.css
   fg-style.css'TEN SONRA yüklenir. Buradaki kurallar, tema/CSS
   yeniden üretildiğinde fg-style.css ezilse bile korunur.
   header.twig içinde fg-style.css'in HEMEN ARDINDAN link'lenmeli.
   ============================================================ */

/* 1) Kategori menüsü hover köprüsü ---------------------------------
   Masaüstünde link ile açılır menü arasındaki 6px boşlukta fare
   li:hover'ı kaybedip menüyü kapatmasın diye boşluğu görünmez doldurur.
   (Alt kategorili bir kategori menüye eklenince devreye girer.)         */
@media (min-width: 769px) {
  .fg-dropdown-menu::before {
    content: ""; position: absolute;
    left: 0; right: 0; top: -6px; height: 6px;
  }
}

/* 2) Para birimi/dil açılır menüsü sticky header'ın ÖNÜNDE -----------
   .fg-main-header sticky + z-index:1000 olduğu için, top bar'daki
   dropdown menüsü onun arkasında kalıyordu. Sadece MENÜYÜ yükseltiyoruz
   (top bar'ın tamamını değil), böylece sepet drawer'ı header içinde
   kalıp top bar'ı örtmeye devam eder.                                   */
.fg-top-bar .fg-topbar-widgets .dropdown-menu { z-index: 1001; }

/* 3) Çift ok düzeltmesi --------------------------------------------
   Şablondaki <i class="fa fa-caret-down"> kalsın; Bootstrap'in
   dropdown-toggle'a otomatik eklediği küçük ::after caret'i gizle.     */
.fg-top-bar .fg-topbar-widgets .dropdown-toggle::after { display: none; }

/* 4) Modern toast bildirimleri — fg-toast --------------------------
   OpenCart'ın Bootstrap ".alert" enjeksiyonlarının yerini alır.
   JS: fg-theme.js içindeki window.fgToast(). Sağ üst köşe, sayfayı
   bloke etmez; sticky header (z-index:1000/1001) önünde durur.        */
/* Tüm ".alert-dismissible"'lar fgToast'a dönüştürülür (fg-theme.js);
   JS çalışana kadar inline görünüp "zıplamasınlar" diye gizliyoruz.   */
.alert.alert-dismissible { display: none !important; }

.fg-toast-wrap {
  position: fixed; top: 16px; right: 16px; z-index: 99999;
  display: flex; flex-direction: column; gap: 10px;
  width: 360px; max-width: calc(100vw - 32px);
  pointer-events: none;
}
.fg-toast {
  position: relative; overflow: hidden; pointer-events: auto;
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--fg-white, #fff); color: var(--fg-800, #27272a);
  border: 1px solid var(--fg-200, #e4e4e7);
  border-left: 4px solid var(--fg-400, #a1a1aa);
  border-radius: 12px; padding: 13px 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  font-size: 13.5px; line-height: 1.5;
  transform: translateX(120%); opacity: 0;
  transition: transform .32s cubic-bezier(.22,1,.36,1), opacity .32s;
}
.fg-toast.fg-toast--in  { transform: translateX(0);    opacity: 1; }
.fg-toast.fg-toast--out { transform: translateX(120%); opacity: 0; }
.fg-toast-ico {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.fg-toast-body  { flex: 1; min-width: 0; }
.fg-toast-title { font-weight: 700; color: var(--fg-950, #09090b); margin-bottom: 2px; font-size: 13px; }
.fg-toast-msg   { color: var(--fg-600, #52525b); word-wrap: break-word; }
.fg-toast-msg a { color: var(--fg-950, #09090b); font-weight: 600; text-decoration: underline; }
.fg-toast-close {
  flex-shrink: 0; background: none; border: none; cursor: pointer; padding: 0;
  width: 22px; height: 22px; color: var(--fg-400, #a1a1aa); font-size: 15px;
  display: flex; align-items: center; justify-content: center; transition: color .15s;
}
.fg-toast-close:hover { color: var(--fg-700, #3f3f46); }
.fg-toast-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  transform: scaleX(1); transform-origin: left; background: var(--fg-300, #d4d4d8);
  animation-name: fgToastBar; animation-timing-function: linear; animation-fill-mode: forwards;
}
.fg-toast:hover .fg-toast-bar { animation-play-state: paused; }
@keyframes fgToastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* tipler */
.fg-toast--success { border-left-color: #16a34a; }
.fg-toast--success .fg-toast-ico { color: #16a34a; }
.fg-toast--success .fg-toast-bar { background: #16a34a; }
.fg-toast--error { border-left-color: #dc2626; }
.fg-toast--error .fg-toast-ico { color: #dc2626; }
.fg-toast--error .fg-toast-bar { background: #dc2626; }
.fg-toast--warning { border-left-color: #d97706; }
.fg-toast--warning .fg-toast-ico { color: #d97706; }
.fg-toast--warning .fg-toast-bar { background: #d97706; }
.fg-toast--info { border-left-color: #2563eb; }
.fg-toast--info .fg-toast-ico { color: #2563eb; }
.fg-toast--info .fg-toast-bar { background: #2563eb; }
@media (max-width: 520px) {
  .fg-toast-wrap { top: 10px; left: 10px; right: 10px; width: auto; max-width: none; }
  .fg-toast      { transform: translateY(-130%); }
  .fg-toast.fg-toast--in  { transform: translateY(0); }
  .fg-toast.fg-toast--out { transform: translateY(-130%); }
}

/* 5) İletişim sayfası düzeni --------------------------------------
   Açıklamalar tam genişlik (kendi satırı); altında Form + Harita
   masaüstünde 2'li, mobilde (<=960px) teke düşer. Harita artık ayrı
   bir alt bölüm değil, formun yanında ve form yüksekliğine uzanır.    */
.fg-contact-comment-full { margin-bottom: 24px; }
.fg-contact-layout { grid-template-columns: 1fr 1fr; align-items: stretch; }
.fg-contact-layout .fg-map-frame { height: 100%; min-height: 480px; cursor: default; }
/* Mobil kuralı EN SONDA: masaüstü 1fr 1fr'i mobilde ezsin */
@media (max-width: 960px) {
  .fg-contact-layout { grid-template-columns: 1fr; }
  .fg-contact-layout .fg-map-frame { min-height: 320px; }
}

/* 6) Header arama autocomplete dropdown --------------------------- */
/* Desktop arama: dış wrapper flex item olur, iç .fg-search-box yalnızca
   yuvarlak kutu olarak kalır. Bu sayede .fg-search-box overflow:hidden
   panelimizi kırpmaz çünkü panel artık wrap'in çocuğu, kutunun değil. */
.fg-search-wrap { flex: 1; max-width: 500px; }
.fg-search-wrap .fg-search-box { flex: none; max-width: none; width: 100%; }
@media (max-width: 900px) {
  .fg-search-wrap { display: none; }
}

.fg-ac-host { position: relative; }
.fg-ac-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  box-shadow: 0 18px 40px -10px rgba(15, 23, 42, .18), 0 4px 14px rgba(15, 23, 42, .06);
  z-index: 1050;
  max-height: 70vh;
  overflow-y: auto;
  padding: 6px 0;
  font-size: 14px;
}
.fg-ac-panel[hidden] { display: none !important; }

.fg-ac-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 10px 16px 4px;
}
.fg-ac-section + .fg-ac-section { border-top: 1px solid #f1f3f5; margin-top: 4px; }
.fg-ac-list { list-style: none; margin: 0; padding: 0; }

.fg-ac-item > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  color: #1f2937;
  text-decoration: none;
  line-height: 1.3;
  border-left: 3px solid transparent;
  transition: background-color .12s, border-color .12s;
}
.fg-ac-item.fg-ac-active > a,
.fg-ac-item > a:hover {
  background: #f7f9fc;
  border-left-color: #ef4444;
}

.fg-ac-thumb {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fg-ac-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fg-ac-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.fg-ac-title {
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fg-ac-title mark { background: #fff3c4; color: inherit; padding: 0 1px; border-radius: 2px; }
.fg-ac-sub {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fg-ac-tag {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  color: #4338ca;
  background: #eef2ff;
  padding: 3px 8px;
  border-radius: 999px;
}

.fg-ac-price { flex: 0 0 auto; text-align: right; font-size: 13px; color: #111827; white-space: nowrap; }
.fg-ac-price strong { color: #ef4444; font-weight: 700; }
.fg-ac-old { color: #9ca3af; text-decoration: line-through; font-size: 12px; margin-right: 4px; }

.fg-ac-empty {
  padding: 22px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

.fg-ac-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 8px 6px;
  padding: 10px 14px;
  background: #111827;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: background-color .15s;
}
.fg-ac-all:hover { background: #ef4444; }
.fg-ac-all.fg-ac-active { background: #ef4444; outline: 2px solid rgba(239, 68, 68, .25); outline-offset: 2px; }
.fg-ac-all span { font-weight: 700; }

/* Loader (üç nokta) */
.fg-ac-loader {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  padding: 16px;
}
.fg-ac-loader span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ef4444;
  animation: fg-ac-bounce 1s infinite ease-in-out;
}
.fg-ac-loader span:nth-child(2) { animation-delay: .15s; }
.fg-ac-loader span:nth-child(3) { animation-delay: .3s; }
@keyframes fg-ac-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: .5; }
  40%           { transform: scale(1);   opacity: 1;  }
}

/* Mobil arama — panel form'un dışında, host wrapper'da konumlanır */
.fg-mobile-search-host { position: relative; }
.fg-ac-panel--mobile {
  top: calc(100% + 6px);
  border-radius: 10px;
  max-height: 60vh;
}

@media (max-width: 600px) {
  .fg-ac-panel { font-size: 13px; }
  .fg-ac-thumb { flex-basis: 38px; width: 38px; height: 38px; }
  .fg-ac-tag   { display: none; }
  .fg-ac-item > a { padding: 8px 12px; gap: 10px; }
}

/* 7) 404 / not_found sayfası ---------------------------------------- */
.fg-404-page { padding: 24px 0 60px; }
.fg-404-page .fg-bc { margin-bottom: 24px; }

.fg-404 {
  max-width: 720px;
  margin: 30px auto 0;
  text-align: center;
  background: var(--fg-white, #fff);
  border: 1px solid var(--fg-200, #e5e7eb);
  border-radius: 20px;
  padding: 56px 32px 48px;
  box-shadow: 0 22px 60px -28px rgba(15, 23, 42, .15);
}

.fg-404-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
  line-height: 1;
}
.fg-404-digit {
  font-size: 140px;
  font-weight: 800;
  color: var(--fg-950, #0c0c0e);
  letter-spacing: -0.04em;
  font-family: var(--fg-font, "Plus Jakarta Sans", sans-serif);
  background: linear-gradient(180deg, #1f2937 0%, #4b5563 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fg-404-orb {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fecaca 0%, #ef4444 60%, #b91c1c 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 42px;
  box-shadow:
    0 18px 30px -12px rgba(239, 68, 68, .55),
    inset 0 -10px 20px rgba(0, 0, 0, .15);
  animation: fg-404-float 3.6s ease-in-out infinite;
}
@keyframes fg-404-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.fg-404-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--fg-950, #0c0c0e);
}
.fg-404-text {
  font-size: 15px;
  color: var(--fg-500, #6b7280);
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 520px;
}

.fg-404-search {
  display: flex;
  align-items: center;
  max-width: 480px;
  margin: 0 auto 24px;
  background: var(--fg-50, #f7f8fa);
  border: 1px solid var(--fg-200, #e5e7eb);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.fg-404-search:focus-within {
  border-color: var(--fg-900, #18181b);
  box-shadow: 0 0 0 3px rgba(9, 9, 11, .08);
  background: #fff;
}
.fg-404-search-icon { padding: 0 10px 0 18px; color: var(--fg-400, #9ca3af); }
.fg-404-search input {
  flex: 1;
  padding: 12px 6px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--fg-950, #0c0c0e);
  font-family: var(--fg-font, "Plus Jakarta Sans", sans-serif);
}
.fg-404-search button {
  padding: 12px 22px;
  background: var(--fg-950, #0c0c0e);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--fg-font, "Plus Jakarta Sans", sans-serif);
  transition: background .15s;
}
.fg-404-search button:hover { background: #ef4444; }

.fg-404-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.fg-404-actions .fg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--fg-font, "Plus Jakarta Sans", sans-serif);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.fg-404-actions .fg-btn:active { transform: translateY(1px); }
.fg-404-actions .fg-btn--primary {
  background: var(--fg-950, #0c0c0e);
  color: #fff;
}
.fg-404-actions .fg-btn--primary:hover { background: #ef4444; }
.fg-404-actions .fg-btn--ghost {
  background: transparent;
  color: var(--fg-700, #374151);
  border-color: var(--fg-200, #e5e7eb);
}
.fg-404-actions .fg-btn--ghost:hover {
  border-color: var(--fg-950, #0c0c0e);
  color: var(--fg-950, #0c0c0e);
  background: var(--fg-50, #f7f8fa);
}

.fg-404-suggest { border-top: 1px dashed var(--fg-200, #e5e7eb); padding-top: 24px; }
.fg-404-suggest-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-500, #6b7280);
  margin-bottom: 14px;
}
.fg-404-suggest-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.fg-404-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--fg-50, #f7f8fa);
  border: 1px solid var(--fg-200, #e5e7eb);
  border-radius: 999px;
  color: var(--fg-800, #1f2937);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.fg-404-chip i { font-size: 11px; opacity: .5; transition: transform .2s, opacity .2s; }
.fg-404-chip:hover {
  background: var(--fg-950, #0c0c0e);
  color: #fff;
  border-color: var(--fg-950, #0c0c0e);
}
.fg-404-chip:hover i { opacity: 1; transform: translateX(2px); }

@media (max-width: 600px) {
  .fg-404 { padding: 40px 20px 36px; border-radius: 16px; }
  .fg-404-digit { font-size: 90px; }
  .fg-404-orb { width: 70px; height: 70px; font-size: 26px; }
  .fg-404-title { font-size: 22px; }
  .fg-404-text { font-size: 14px; }
  .fg-404-search button { padding: 12px 16px; }
}

/* 8) Arama sayfası — eşleşen kategoriler bloğu ------------------------ */
.fg-srch-cats {
  background: var(--fg-white, #fff);
  border: 1px solid var(--fg-200, #e5e7eb);
  border-radius: 16px;
  padding: 18px 18px 6px;
  margin: 0 0 22px;
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, .12);
}
.fg-srch-cats-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px 14px;
  border-bottom: 1px dashed var(--fg-200, #e5e7eb);
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--fg-800, #1f2937);
}
.fg-srch-cats-head i { color: #ef4444; font-size: 14px; }
.fg-srch-cats-head span { font-weight: 600; flex: 1; min-width: 0; }
.fg-srch-cats-head small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--fg-600, #4b5563);
  background: var(--fg-50, #f7f8fa);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--fg-200, #e5e7eb);
}

.fg-srch-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  padding-bottom: 12px;
}
.fg-srch-cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--fg-50, #f7f8fa);
  border: 1px solid var(--fg-200, #e5e7eb);
  border-radius: 12px;
  text-decoration: none;
  color: var(--fg-900, #18181b);
  transition: background .15s, border-color .15s, transform .12s;
}
.fg-srch-cat-card:hover {
  background: #fff;
  border-color: var(--fg-950, #0c0c0e);
  transform: translateY(-1px);
}
.fg-srch-cat-thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--fg-100, #f1f3f5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fg-srch-cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fg-srch-cat-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.fg-srch-cat-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-950, #0c0c0e);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fg-srch-cat-parent {
  font-size: 12px;
  color: var(--fg-500, #6b7280);
  margin-top: 2px;
}

.fg-srch-cat-meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-500, #6b7280);
  font-size: 12px;
}
.fg-srch-cat-count {
  padding: 3px 9px;
  background: #fff;
  border: 1px solid var(--fg-200, #e5e7eb);
  border-radius: 999px;
  font-weight: 600;
  color: var(--fg-700, #374151);
  white-space: nowrap;
}
.fg-srch-cat-meta i {
  font-size: 12px;
  opacity: .5;
  transition: transform .2s, opacity .2s;
}
.fg-srch-cat-card:hover .fg-srch-cat-meta i { opacity: 1; transform: translateX(2px); }

@media (max-width: 600px) {
  .fg-srch-cats { padding: 14px 14px 4px; border-radius: 12px; }
  .fg-srch-cats-grid { grid-template-columns: 1fr; gap: 8px; }
  .fg-srch-cat-thumb { flex-basis: 42px; width: 42px; height: 42px; }
}

/* ============================================================
   Bayrak ikonları (dil seçici) — fazla büyük görünmesin
   Topbar'daki #form-language hem tetik butonunda hem açılır
   listede bayrak PNG'lerini sınırla. (PNG'ler yüksek çözünürlüklü
   olduğu için boyut verilmezse devasa görünüyordu.)
   ============================================================ */
.fg-top-bar #form-language img,
.fg-topbar-widgets #form-language img {
  width: 18px;
  height: auto;
  vertical-align: middle;
  margin-right: 4px;
  border-radius: 2px;
}
.fg-topbar-widgets #form-language .dropdown-menu img {
  width: 18px;
}
/* Para birimi / dil tetik butonları aynı hizada, kompakt */
.fg-topbar-widgets #form-language .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
