/*==============================================================================
  BaskıSepeti — Header
  ----------------------------------------------------------------------------
  Bu dosya yalnızca header ve sepet çekmecesini biçimlendirir.
  style.css'e hiç dokunulmadı; bu dosya ondan SONRA yüklendiği için
  eski .gi-header kurallarını ezer.

  Geri alma: header.php içindeki bu dosyanın <link> satırını silmek yeterli.

  ÖNEMLİ — JS bağlantıları (main.js / public-init.js bunlara bağlı, ASLA
  yeniden adlandırılmamalı):
    .gi-site-menu-icon .gi-mobile-menu .gi-mobile-menu-overlay .gi-close-menu
    .gi-cart-toggle .gi-side-cart .gi-side-cart-overlay .gi-cart-close
    .gi-cart-pro-items .cart-sub-total .gi-cart-count .gi-wishlist-count
    .gi-compare-count .gi-search-bar .search-results .gi-category-toggle
    .gi-menu-content .sub-menu
==============================================================================*/

:root {
  --hdr-pink: #e6007e;
  --hdr-pink-dark: #c4006b;
  --hdr-blue: #1FA9E0;      /* istek listesi rozeti + Back to School */
  --hdr-cart: #E01C83;      /* sepet rozeti */
  --hdr-ink: #1a1a1a;
  --hdr-text: #2d2d2d;
  --hdr-muted: #6b7280;
  --hdr-line: #e8eaed;
  --hdr-line-soft: #f1f3f5;
  --hdr-bg: #ffffff;
  --hdr-bg-soft: #f7f8fa;
  --hdr-radius: 10px;
  --hdr-radius-lg: 14px;
  --hdr-shadow: 0 2px 12px rgba(16, 24, 40, .06);
  --hdr-shadow-lg: 0 16px 40px rgba(16, 24, 40, .12);
  --hdr-topbar-h: 38px;
}

/*==============================================================================
  1. TEMEL
==============================================================================*/

.gi-header {
  background: var(--hdr-bg);
  font-family: var(--font-sans, 'Inter', sans-serif);
  position: relative;
  z-index: 500;
}

/* Sayfa yükleme ekranı (#gi-overlay, demo-1.css'te z-index:99) header'ın
   (500) altında kalıyor, yüklenirken header önde görünüyordu. Header'ı
   düşürmek açılır menü/sepet katmanlarını bozacağından yükleme ekranı en
   üste alınır (menü 1050-1200, yan sepet 1100, modal 1055, SweetAlert 1060). */
#gi-overlay { z-index: 2000; }

.gi-header a { text-decoration: none; }

.gi-header .container {
  max-width: 1440px;
  padding-left: 24px;
  padding-right: 24px;
}

/*==============================================================================
  2. ÜST ŞERİT
  Sol: telefonlar | Orta: slogan | Sağ: yardım linkleri + kur
==============================================================================*/

.gi-header .header-top {
  padding: 0;
  background-color: #f8f8fb !important;
  border-bottom: 1px solid var(--hdr-line);
  font-size: 12.5px;
  line-height: 1;
}

.gi-header .header-top .row {
  min-height: var(--hdr-topbar-h);
  flex-wrap: nowrap;
}

/* -- sol: telefonlar -- */
.gi-header .header-top-social ul {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gi-header .header-top-social li {
  display: inline-flex;
  align-items: center;
  gap: 0px;
  color: var(--hdr-text);
  white-space: nowrap;
  font-weight: 500;
}

.gi-header .header-top-social li a {
  display: inline-flex;
  align-items: center;
  color: var(--hdr-muted);
  line-height: 1;
}

.gi-header .header-top-social li a i { font-size: 14px; }

.gi-header .header-top-social li:hover,
.gi-header .header-top-social li:hover a { color: var(--hdr-pink); }

/* -- orta: slogan -- */
.gi-header .header-top-message {
  color: var(--hdr-text);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

/* -- sağ: yardım linkleri -- */
.gi-header .header-top-right-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.gi-header .header-top-right-inner .gi-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hdr-text);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s ease;
}

.gi-header .header-top-right-inner .gi-help i { font-size: 14px; color: var(--hdr-muted); }
.gi-header .header-top-right-inner .gi-help:hover { color: var(--hdr-pink); }
.gi-header .header-top-right-inner .gi-help:hover i { color: var(--hdr-pink); }

/* kur bilgisi — link değil, bilgi */
.gi-header .header-top-right-inner .gi-rate {
  color: var(--hdr-muted);
  font-weight: 600;
  cursor: default;
}
.gi-header .header-top-right-inner .gi-rate:hover { color: var(--hdr-muted); }

/*==============================================================================
  3. ORTA SATIR — logo + arama + aksiyonlar
==============================================================================*/

.gi-header .gi-header-bottom {
  padding: 0;
  background-color: #f8f8fb !important;
  border-bottom: 1px solid var(--hdr-line);
}

.gi-header .gi-header-bottom .gi-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding: 18px 0;
}

/* -- logo -- */
.gi-header .gi-header-logo { flex: 0 0 auto; }

.gi-header .header-logo img {
  max-height: 52px;
  width: auto;
  display: block;
}

/* -- arama -- */
.gi-header .gi-header-search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 560px;
}

.gi-header .header-search { position: relative; }

/* style.css form.gi-search-group-form ustune 1px #eee cerceve + 5px radius
   koyuyor; yuvarlak input icinde koseli bir kutu goruntusu olusuyordu. */
.gi-header .gi-header-search form.gi-search-group-form,
.gi-mh-search form.gi-search-group-form {
  position: relative;
  display: block;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.gi-header .gi-search-bar {
  width: 100%;
  height: 46px;
  padding: 0 52px 0 22px;
  border: 1px solid var(--hdr-line);
  border-radius: 999px;
  background: var(--hdr-bg-soft);
  font-family: inherit;
  font-size: 14px;
  color: var(--hdr-ink);
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  /* eski satır içi text-transform:uppercase ezilir */
  text-transform: none !important;
}

.gi-header .gi-search-bar::placeholder {
  color: #9aa1ab;
  text-transform: none;
  font-weight: 400;
}

.gi-header .gi-search-bar:focus {
  background: #fff;
  border-color: #cfd4da;
  box-shadow: 0 0 0 4px rgba(230, 0, 126, .07);
}

.gi-header .search_submit {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--hdr-muted);
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}

.gi-header .search_submit:hover { color: var(--hdr-pink); background: rgba(230, 0, 126, .07); }

/* Buyutec ikonu kutunun tam ortasinda dursun.
   Flaticon glifleri :before ile cizildigi icin hem <i> hem :before
   ortalanmali; aksi halde ikon birkac piksel yukarida duruyordu. */
.gi-header .search_submit i,
.gi-mh-search .search_submit i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 20px;
  line-height: 1;
  padding-right: 15px;
}

.gi-header .search_submit i::before,
.gi-mh-search .search_submit i::before {
  display: block;
  line-height: 1;
}

/* style.css .header-search'e min-width:700px + padding:0 30px veriyor;
   dar ekranlarda arama kutusunu tasiriyordu. */
.gi-header .gi-header-search .header-search,
.gi-mh-search .header-search {
  width: 100%;
  min-width: 0;
  padding: 0;
  position: relative;
}

/*------------------------------------------------------------------
  ARAMA ÖNERİLERİ (search-results)
  JS yalnızca show()/hide() yapar; kutunun görünümü buradan gelir.
  İçeriği api/product_actions.php üretir (.search-suggestions > .ss-item).
------------------------------------------------------------------*/
.gi-header .search-results,
.gi-mh-search .search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100% !important;
  padding: 6px;
  background: #fff !important;
  border: 1px solid var(--hdr-line) !important;
  border-radius: var(--hdr-radius-lg) !important;
  box-shadow: var(--hdr-shadow-lg);
  max-height: 440px;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 1200;
}

.search-results .search-suggestions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-results .ss-item { list-style: none; margin: 0; }

.search-results .ss-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--hdr-text);
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}

.search-results .ss-link:hover,
.search-results .ss-item.autocomplete-active > .ss-link,
.search-results .ss-item.autocomplete-active {
  background: var(--hdr-bg-soft);
  color: var(--hdr-pink);
}

.search-results .ss-thumb {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: block;
  border: 1px solid var(--hdr-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.search-results .ss-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-results .ss-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-results .ss-name.is-highlight { color: #f08c00; font-weight: 600; }

.search-results .ss-note {
  margin-top: 4px;
  padding: 9px 11px;
  border-top: 1px solid var(--hdr-line-soft);
  color: var(--hdr-muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.search-results .ss-empty {
  padding: 22px 14px;
  text-align: center;
  color: var(--hdr-muted);
  font-size: 13.5px;
}

/* klavye ile gezinme (public-init.js .autocomplete-active ekliyor) */
.search-results .autocomplete-active { background-color: var(--hdr-bg-soft) !important; }

/*==============================================================================
  4. AKSİYON BUTONLARI (Hesabım / İstek Listem / Sepetim)
==============================================================================*/

.gi-header .gi-header-action { flex: 0 0 auto; margin-left: auto; }

.gi-header .gi-header-action .gi-header-buttons {
  display: flex;
  align-items: center;
  gap: 26px;
}

.gi-header .gi-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: relative;
  color: var(--hdr-ink);
  transition: color .15s ease;
}

.gi-header .gi-header-btn:hover { color: var(--hdr-pink); }

/* Bootstrap Icons glifleri gicons'a gore daha kucuk cizildigi icin
   hesap / istek listesi / sepet ikonlari buyutuldu. */
.gi-header-buttons .gi-header-btn i {
  font-size: 27px;
  line-height: 17px;
}

/* bi-person digerlerinden daha kucuk gorunuyor, ayrica buyutuldu */
.gi-header-buttons .gi-header-btn i.bi-person { font-size: 35px; }

.gi-header .gi-header-btn .header-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  line-height: 1;
  color: var(--hdr-ink);
  transition: color .15s ease;
}

.gi-header .gi-header-btn:hover .header-icon { color: var(--hdr-pink); }

.gi-header .gi-header-buttons .gi-btn-desc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.3;
  white-space: nowrap;
}

.gi-header .gi-header-buttons .gi-btn-title {
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--hdr-muted);
}

.gi-header .gi-header-buttons .gi-header-btn .gi-btn-stitle {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--hdr-ink);
}

.gi-header .gi-header-btn:hover .gi-btn-title,
.gi-header .gi-header-btn:hover .gi-btn-stitle { color: var(--hdr-pink); }

/* -- sayaç rozeti --
   İstek listesi mavi (#1FA9E0), sepet pembe (#E01C83).
   style.css .gi-header-buttons ön ekiyle yazdığı için aynı özgüllük kullanıldı. */
.gi-header .gi-header-buttons .gi-header-btn .gi-header-count,
.gi-mh-actions .gi-header-btn .gi-header-count {
  position: absolute;
  /* ikonun sag ust kosesine otursun */
  top: -12px;
  right: -15px;
  min-width: 14px;
  width: auto;
  height: 14px;
  padding: 5px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  border-radius: 999px;
  background-color: var(--hdr-muted);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.2px;
  box-sizing: content-box;
  opacity: 1;
  pointer-events: none;
}

/* 3 haneli sayilarda (orn. 455) rozet ovalleşsin, tasmasin */
.gi-header .gi-header-buttons .gi-header-btn .gi-header-count {
  max-width: 30px;
  overflow: hidden;
}

/* İstek listesi — mavi
   style.css'te `background-color:#17181c !important` var; ezmek icin
   burada da !important gerekiyor. */
.gi-header .gi-header-buttons .gi-wish-toggle .gi-header-count,
.gi-mh-actions .gi-wish-toggle .gi-header-count {
  background-color: var(--hdr-blue) !important;
}

/* Sepet — pembe */
.gi-header .gi-header-buttons .gi-cart-toggle .gi-header-count,
.gi-mh-actions .gi-cart-toggle .gi-header-count {
  background-color: var(--hdr-cart) !important;
}

.gi-header .gi-header-buttons .gi-header-btn:hover .gi-header-count { color: #fff; }

/* -- hesap açılır menüsü -- */
.gi-header .gi-acc-drop { position: relative; }

.gi-header .gi-acc-drop .gi-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 190px;
  margin: 0;
  padding: 7px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--hdr-line);
  border-radius: var(--hdr-radius);
  box-shadow: var(--hdr-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 1000;
}

.gi-header .gi-acc-drop:hover .gi-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gi-header .gi-acc-drop .gi-dropdown-menu .dropdown-item {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--hdr-text);
  font-size: 13.5px;
  font-weight: 500;
  transition: background .13s ease, color .13s ease;
}

.gi-header .gi-acc-drop .gi-dropdown-menu .dropdown-item:hover {
  background: var(--hdr-bg-soft);
  color: var(--hdr-pink);
}

/*==============================================================================
  5. ALT MENÜ ŞERİDİ
==============================================================================*/

.gi-header .gi-header-cat {
  border-top: 0;
  background-color: #f8f8fb !important;
  border-bottom: 1px solid var(--hdr-line);
}

.gi-header .gi-nav-bar {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 54px;
}

/* -- "Tüm Ürünler" düğmesi -- */
.gi-header .gi-category-icon-block { position: relative; flex: 0 0 auto; }

/* style.css bu düğmeyi turuncu zeminli, 200px sabit ve beyaz yazılı
   yapıyor. Aşağıdaki kurallar aynı özgüllükle (.gi-category-menu ön eki)
   yazıldı ki eskisini ezsin — !important gerekmeden. */
.gi-header .gi-category-menu { position: relative; }

.gi-header .gi-category-menu .gi-category-toggle {
  width: auto;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 4px;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  color: var(--hdr-ink);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: color .15s ease;
}

.gi-header .gi-category-menu .gi-category-toggle span {
  display: inline;
  margin-left: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--hdr-ink);
  transition: color .15s ease;
}

.gi-header .gi-category-menu .gi-category-toggle i {
  font-size: 28px;
  color: var(--hdr-ink);
  line-height: 1;
  transition: color .15s ease;
}

.gi-header .gi-category-menu .gi-category-toggle .gi-angle {
  display: inline-block;
  position: static;
  right: auto;
  font-size: 19px;
  color: var(--hdr-muted);
  line-height: 1;
  transition: transform .2s ease, color .15s ease;
}

.gi-header .gi-category-menu .gi-category-toggle:hover,
.gi-header .gi-category-menu .gi-category-toggle:hover span,
.gi-header .gi-category-menu .gi-category-toggle:hover i { color: var(--hdr-pink); }

.gi-header .gi-category-icon-block:hover .gi-category-toggle .gi-angle { transform: rotate(180deg); }

/* style.css'te position:static !important var; mega menü konumu için
   dropdown'ı container'a göre hizalıyoruz (aşağıda .gi-cat-dropdown). */

/* -- menü linkleri -- */
.gi-header .gi-main-menu > ul {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gi-header .gi-main-menu > ul > li { position: relative; }

/* Yatay padding, ul gap:0 olunca oge araligini ve alt menu hover
   koprusunu koruyor; dikey 16px alt menulerin acik kalmasi icin sart. */
.gi-header .gi-main-menu > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 16px 14px;
  color: var(--hdr-ink);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s ease;
}

.gi-header .gi-main-menu > ul > li > a:hover { color: var(--hdr-pink); }

/* aktif sayfa alt çizgisi */
.gi-header .gi-main-menu > ul > li > a.is-current {
  color: var(--hdr-pink);
}
.gi-header .gi-main-menu > ul > li > a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--hdr-pink);
}

/* -- "Kartvizit Tasarla" vurgusu — görseldeki pembe + Yeni rozeti -- */
.gi-header .highlight-kartvizit .kv-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: relative;
}

/* eski gradient/animasyon iptal, düz pembe */
.gi-header .highlight-kartvizit .kv-menu-text {
  font-weight: 700;
  color: var(--hdr-pink);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  animation: none;
  letter-spacing: 0;
}

.gi-header .highlight-kartvizit .kv-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 21px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--hdr-pink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
  text-transform: none;
}

.gi-header .highlight-kartvizit .kv-menu-link:hover { transform: none; }

/* -- "Back to School" — mavi (#1FA9E0) --
   Eski tema bu baglantiya kayan gradient + parilti animasyonu veriyordu;
   header.php'deki inline <style> hala yuklu oldugu icin burada sifirlaniyor. */
.gi-header .highlight-bts .bts-menu-link,
.gi-header .highlight-bts .bts-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--hdr-blue);
  font-size: 14.5px;
  font-weight: 700;
  -webkit-text-fill-color: currentColor;
  animation: none;
}

.gi-header .highlight-bts .bts-menu-link::before,
.gi-header .highlight-bts .bts-menu-link::after,
.gi-header .highlight-bts .bts-link::before,
.gi-header .highlight-bts .bts-link::after {
  content: none;
  display: none;
}

.gi-header .highlight-bts .bts-menu-link:hover {
  color: #178cbb;
  transform: none;
}

.gi-header .highlight-bts .bts-menu-link.is-current { color: var(--hdr-blue); }
.gi-header .highlight-bts .bts-menu-link.is-current::after {
  content: "";
  display: block;
  background: var(--hdr-blue);
}
.gi-header .highlight-kartvizit .kv-menu-link:hover .kv-menu-text { color: var(--hdr-pink-dark); }

/* -- alt açılır menü (Sipariş Durumları, Kurumsal) -- */
.gi-header .gi-main-menu .sub-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: -14px;
  min-width: 230px;
  margin: 0;
  padding: 7px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--hdr-line);
  border-radius: var(--hdr-radius);
  box-shadow: var(--hdr-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 1000;
}

.gi-header .gi-main-menu > ul > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gi-header .gi-main-menu .sub-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--hdr-text);
  font-size: 13.5px;
  font-weight: 500;
  transition: background .13s ease, color .13s ease;
}

.gi-header .gi-main-menu .sub-menu li a:hover {
  background: var(--hdr-bg-soft);
  color: var(--hdr-pink);
}

.gi-header .gi-main-menu .sub-menu .badge {
  background: var(--hdr-pink) !important;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 600;
  padding: 3px 8px;
  float: none !important;
}

/* ödeme bekleyen sipariş uyarı noktası */
.gi-header .blink-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--hdr-pink);
  animation: hdrBlink 1.3s ease-in-out infinite;
}

@keyframes hdrBlink { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }

@media (prefers-reduced-motion: reduce) {
  .gi-header .blink-dot { animation: none; }
}

/*==============================================================================
  6. MEGA MENÜ
  ----------------------------------------------------------------------------
  Yapı ve AJAX mantığı korundu; yalnızca ölçü/görünüm yeniden kuruldu.

  style.css'teki sorunlu kurallar burada ezilir:
    .gi-cat-dropdown { width:600px; z-index:-15; margin-top:15px }
    .gi-cat-tab .gi-tab-list { min-width:230px; background:#f8f8fb; padding:15px }
    .tab-content .tab-list { display:flex }   <- kategoriler yan yana diziliyordu

  Konumlandırma notu: .gi-category-icon-block'ta style.css'te
  `position: static !important` var. Bu yüzden dropdown, konumlanmayı
  .container'dan (position:relative) alır ve şeridin tam genişliğine yayılır.
==============================================================================*/

.gi-header .gi-header-cat .gi-cat-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: auto;
  max-width: none;
  margin: 6px 0 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--hdr-line);
  border-radius: var(--hdr-radius-lg);
  box-shadow: var(--hdr-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  /* style.css -15 veriyordu; menü içeriğin altında kalıyordu */
  z-index: 1050;
  /* ekrandan tasmasin */
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

.gi-header .gi-category-icon-block:hover .gi-cat-dropdown {
  margin-top: 6px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 1050;
}

/* --- iki sütun: sekmeler | içerik --- */
.gi-header .gi-cat-dropdown .gi-cat-tab {
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-height: 340px;
}

/* sol: dikey kategori sekmeleri */
.gi-header .gi-cat-dropdown .gi-cat-tab .gi-tab-list {
  flex: 0 0 240px;
  width: 240px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* 18 ana kategori var; 420px sinirinda yalnizca ~10 tanesi goruluyordu.
     Sinir kaldirildi, liste tam boyunda gosteriliyor. */
  max-height: none;
  overflow: visible;
  margin: 0 !important;
  padding: 0 10px 0 0;
  background: transparent;
  border-right: 1px solid var(--hdr-line);
  border-radius: 0;
}

/* ince kaydırma çubuğu */
.gi-header .gi-cat-dropdown .gi-tab-list::-webkit-scrollbar,
.gi-header .gi-cat-dropdown .cat-list::-webkit-scrollbar { width: 6px; }
.gi-header .gi-cat-dropdown .gi-tab-list::-webkit-scrollbar-thumb,
.gi-header .gi-cat-dropdown .cat-list::-webkit-scrollbar-thumb {
  background: #d7dbe0;
  border-radius: 999px;
}
.gi-header .gi-cat-dropdown .gi-tab-list::-webkit-scrollbar-track,
.gi-header .gi-cat-dropdown .cat-list::-webkit-scrollbar-track { background: transparent; }

.gi-header .gi-cat-dropdown .gi-cat-tab button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background-color: transparent;
  color: var(--hdr-text);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition: background-color .13s ease, color .13s ease;
}

.gi-header .gi-cat-dropdown .gi-cat-tab button i {
  flex: 0 0 auto;
  font-size: 16px;
  color: var(--hdr-muted);
  transition: color .13s ease;
}

.gi-header .gi-cat-dropdown .gi-cat-tab button:hover {
  background-color: var(--hdr-bg-soft);
  color: var(--hdr-pink);
}

.gi-header .gi-cat-dropdown .gi-cat-tab button:hover i { color: var(--hdr-pink); }

.gi-header .gi-cat-dropdown .gi-cat-tab button.active {
  background-color: rgba(230, 0, 126, .07);
  color: var(--hdr-pink);
  font-weight: 600;
}

.gi-header .gi-cat-dropdown .gi-cat-tab button.active i { color: var(--hdr-pink); }

/* sağ: içerik alanı */
.gi-header .gi-cat-dropdown .gi-cat-tab .tab-content {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.gi-header .gi-cat-dropdown .tab-pane > .row {
  margin: 0;
  --bs-gutter-x: 24px;
}

/* başlıklar */
.gi-header .gi-cat-dropdown .mega-left-title,
.gi-header .gi-cat-dropdown .mega-right-title {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--hdr-muted);
}

.gi-header .gi-cat-dropdown .mega-hr {
  height: 1px;
  margin: 9px 0 14px;
  background: var(--hdr-line);
  border-radius: 0;
}

.gi-header .gi-cat-dropdown .mega-divider { border-left: 0; }

/* --- kategori listesi (sol iç sütun) --- */
/* style.css .tab-list'i flex yapiyordu: maddeler yan yana diziliyordu */
.gi-header .gi-cat-dropdown .gi-cat-tab .tab-content .tab-list {
  display: block;
  margin: 0;
}

.gi-header .gi-cat-dropdown .cat-list {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: none;
  overflow: visible;
}

.gi-header .gi-cat-dropdown .cat-list li { list-style: none; }

/* Ucuncu seviye kategoriler (orn. Tisortler > 1. Kalite Polo Yaka Tisort).
   Ikonlari yok; sol cizgi + girinti ile alt kategoriye bagli oldugu belli olsun. */
.gi-header .gi-cat-dropdown .cat-list-lvl3 {
  margin: 0 0 4px 19px;
  padding: 0 0 0 10px;
  border-left: 1px solid var(--hdr-line);
  list-style: none;
}

.gi-header .gi-cat-dropdown .cat-list-lvl3 .mega-subcat-link {
  padding: 5px 10px;
  color: var(--hdr-muted);
  font-size: 12.5px;
  font-weight: 400;
}

.gi-header .gi-cat-dropdown .cat-list-lvl3 .mega-subcat-link:hover { color: var(--hdr-pink); }

.gi-header .gi-cat-dropdown .gi-cat-tab .tab-content .tab-list li a,
.gi-header .gi-cat-dropdown .mega-subcat-link {
  display: flex;
  align-items: center;
  gap: 9px;
  height: auto;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--hdr-text);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  transition: background .13s ease, color .13s ease;
}

.gi-header .gi-cat-dropdown .mega-subcat-link i {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--hdr-muted);
  transition: color .13s ease;
}

.gi-header .gi-cat-dropdown .gi-cat-tab .tab-content .tab-list li a:hover,
.gi-header .gi-cat-dropdown .mega-subcat-link:hover,
.gi-header .gi-cat-dropdown .mega-subcat-link.is-active {
  background: var(--hdr-bg-soft);
  color: var(--hdr-pink);
  font-weight: 600;
}

.gi-header .gi-cat-dropdown .mega-subcat-link:hover i,
.gi-header .gi-cat-dropdown .mega-subcat-link.is-active i { color: var(--hdr-pink); }

/* --- öne çıkan ürünler --- */
.gi-header .gi-cat-dropdown .mega-prod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.gi-header .gi-cat-dropdown .mega-card {
  padding: 10px;
  height: 100%;
  border: 1px solid var(--hdr-line);
  border-radius: var(--hdr-radius);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.gi-header .gi-cat-dropdown .mega-card:hover {
  border-color: #d9dde2;
  box-shadow: var(--hdr-shadow);
  transform: translateY(-2px);
}

.gi-header .gi-cat-dropdown .mega-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 7px;
}

.gi-header .gi-cat-dropdown .mega-name {
  margin: 9px 0 2px;
  min-height: 34px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--hdr-text);
}

/* iskelet (yuklenirken) — header.php icindeki inline <style> ile ayni olculer,
   burada tema renklerine uyarlandi. Yukseklik verilmezse kartlar yassiliyor. */
.gi-header .gi-cat-dropdown .mega-skeleton {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  background: var(--hdr-line-soft);
  position: relative;
  overflow: hidden;
}

.gi-header .gi-cat-dropdown .mega-skel-name {
  height: 13px;
  margin-top: 9px;
  border-radius: 6px;
  background: var(--hdr-line-soft);
}

/* dar masaüstünde 2 sütun */
@media (max-width: 1199.98px) {
  .gi-header .gi-cat-dropdown .mega-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gi-header .gi-cat-dropdown .gi-cat-tab .gi-tab-list {
    flex-basis: 210px;
    width: 210px;
    min-width: 210px;
  }
}


/*==============================================================================
  7. MOBİL BAŞLIK
  Görseldeki düzen: hamburger + logo + (arama, hesap, sepet)
  Alt satır: tam genişlik arama kutusu
==============================================================================*/

.gi-mobile-header { display: none; }

@media (max-width: 991.98px) {

  /* style.css:2103-2117 eski temada .header-top mobilde position:fixed
     yapiliyordu ve body'ye 50px padding-top bu serit icin bosluk birakiyordu.
     Yeni tasarimda .header-top mobilde tamamen gizli, dolayisiyla o bosluk
     sayfanin ustunde bos bir bant olarak kaliyordu. Ikisi de iptal. */
  body { padding-top: 0 !important; }

  .gi-header .header-top {
    position: static;
    border-bottom: 0;
  }

  /* masaüstü satırları gizle */
  .gi-header .header-top,
  .gi-header .gi-header-bottom,
  .gi-header .gi-header-cat { display: none !important; }

  .gi-mobile-header {
    display: block;
    background: var(--hdr-bg);
    border-bottom: 1px solid var(--hdr-line);
  }

  .gi-mobile-header .container { padding-left: 16px; padding-right: 16px; }

  .gi-mh-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 10px;
  }

  /* hamburger */
  .gi-mh-burger {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: -6px;
    border: 0;
    background: transparent;
    color: var(--hdr-ink);
    font-size: 21px;
    cursor: pointer;
  }

  /* logo — ortada */
  .gi-mh-logo {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .gi-mh-logo img {
    max-height: 38px;
    width: auto;
    display: block;
  }

  /* sağ ikonlar */
  .gi-mh-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .gi-mh-actions .gi-header-btn { gap: 0; }

  .gi-mh-actions .header-icon {
    font-size: 20px;
    color: var(--hdr-ink);
  }

  .gi-mh-actions .gi-header-count {
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
  }

  /* mobil arama satırı */
  /* buyutec dugmesi (arama alanini acar/kapatir) */
  .gi-mh-actions .gi-mh-search-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 1;
  }

  .gi-mh-actions .gi-mh-search-toggle.is-active .header-icon { color: var(--hdr-pink); }

  .gi-mh-search { padding: 0 0 12px; }

  .gi-mh-search .header-search { position: relative; }

  .gi-mh-search .gi-search-bar {
    width: 100%;
    height: 42px;
    padding: 0 46px 0 18px;
    border: 1px solid var(--hdr-line);
    border-radius: 999px;
    background: var(--hdr-bg-soft);
    font-family: inherit;
    font-size: 14px;
    color: var(--hdr-ink);
    outline: none;
    text-transform: none !important;
  }

  .gi-mh-search .gi-search-bar::placeholder { color: #9aa1ab; }

  .gi-mh-search .gi-search-bar:focus {
    background: #fff;
    border-color: #cfd4da;
  }

  .gi-mh-search .search_submit {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--hdr-muted);
    cursor: pointer;
  }

  .gi-mh-search .search_submit i { font-size: 16px; }

  .gi-mh-search .search-results {
    border: 1px solid var(--hdr-line) !important;
    border-radius: var(--hdr-radius) !important;
    box-shadow: var(--hdr-shadow-lg);
    margin-top: 6px;
    max-height: 60vh;
    overflow-y: auto;
    width: 100% !important;
  }
}

/* Telefonlarda (≤400px) logo hamburger'in hemen sağına, sola yaslı.
   400px üstü (tablet) ortalı kalır — bkz. .gi-mh-logo 991.98px bloğu. */
@media (max-width: 399.98px) {
  .gi-mobile-header .gi-mh-logo { justify-content: flex-start; }
}

/* çok dar ekranlarda logo biraz küçülsün */
@media (max-width: 359.98px) {
  .gi-mobile-header .gi-mh-logo img { max-height: 32px; }
  .gi-mobile-header .gi-mh-actions { gap: 13px; }
}

/*==============================================================================
  8. MOBİL YAN MENÜ (hamburger çekmecesi)
  main.js .gi-menu-open sınıfını ekler/çıkarır — mantık aynı.
==============================================================================*/

.gi-mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .45);
  z-index: 1090;
}

.gi-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 86vw;
  background: #fff;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  box-shadow: var(--hdr-shadow-lg);
}

.gi-mobile-menu.gi-menu-open { transform: translateX(0); }

.gi-mobile-menu .gi-menu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--hdr-line);
  flex: 0 0 auto;
}

.gi-mobile-menu .menu_title {
  font-size: 15px;
  font-weight: 700;
  color: var(--hdr-ink);
}

.gi-mobile-menu .gi-close-menu {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--hdr-bg-soft);
  color: var(--hdr-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.gi-mobile-menu .gi-close-menu:hover { background: #eceef1; color: var(--hdr-pink); }

.gi-mobile-menu .gi-menu-inner {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* mobil hızlı erişim (İstek Listem / Karşılaştır) */
.gi-mm-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hdr-line);
}

.gi-mm-quick a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--hdr-line);
  border-radius: var(--hdr-radius);
  background: var(--hdr-bg-soft);
  color: var(--hdr-text);
  font-size: 13px;
  font-weight: 600;
}

.gi-mm-quick a i { font-size: 16px; color: var(--hdr-muted); }
.gi-mm-quick a:hover { border-color: var(--hdr-pink); color: var(--hdr-pink); }
.gi-mm-quick a:hover i { color: var(--hdr-pink); }

.gi-mm-quick .gi-mm-badge {
  margin-left: auto;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--hdr-pink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}

/* menü listesi */
.gi-mobile-menu .gi-menu-content > ul {
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.gi-mobile-menu .gi-menu-content li { position: relative; list-style: none; }

/* style.css her satira cerceve + alt bosluk veriyor; ayni ozgullukle sadelestirildi */
.gi-mobile-menu .gi-menu-inner .gi-menu-content ul li a {
  display: block;
  margin-bottom: 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--hdr-text);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  transition: background .13s ease, color .13s ease;
}

.gi-mobile-menu .gi-menu-inner .gi-menu-content > ul > li > a {
  font-weight: 600;
  color: var(--hdr-ink);
}

.gi-mobile-menu .gi-menu-inner .gi-menu-content ul li a:hover {
  background: var(--hdr-bg-soft);
  color: var(--hdr-pink);
}

/* satirlar arasi ince ayirici */
.gi-mobile-menu .gi-menu-inner .gi-menu-content > ul > li {
  border-bottom: 1px solid var(--hdr-line-soft);
}

/* alt menü — main.js slideUp/slideDown ile açıyor, display'e karışma */
.gi-mobile-menu .gi-menu-content .sub-menu {
  display: none;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  background: var(--hdr-bg-soft);
}

.gi-mobile-menu .gi-menu-content .sub-menu li a {
  padding: 10px 18px 10px 34px;
  font-size: 13.5px;
  font-weight: 400;
}

.gi-mobile-menu .gi-menu-content .sub-menu .sub-menu li a { padding-left: 50px; }

/* main.js'in eklediği açma/kapama oku */
.gi-mobile-menu .gi-menu-content .menu-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 44px;
  cursor: pointer;
  z-index: 2;
}

/* Tek ikon kurali:
   style.css zaten ::before ile "+" basiyor. Daha once buraya ::after ile
   ayrica bir ok ekleniyordu ve iki ikon ust uste geliyordu.
   ::after tamamen kapatildi; acikken "+" yerine "−" gosteriliyor. */
.gi-mobile-menu .gi-menu-inner .gi-menu-content ul li .menu-toggle::after {
  content: none !important;
  display: none !important;
}

.gi-mobile-menu .gi-menu-inner .gi-menu-content ul li .menu-toggle::before {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--hdr-bg-soft);
  color: var(--hdr-muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  transition: background .13s ease, color .13s ease;
}

.gi-mobile-menu .gi-menu-inner .gi-menu-content ul li.active > .menu-toggle::before {
  content: "\2212";   /* eksi isareti */
  background: rgba(230, 0, 126, .08);
  color: var(--hdr-pink);
}

.gi-mobile-menu .gi-menu-content .badge {
  background: var(--hdr-pink) !important;
  border-radius: 999px;
  font-size: 10.5px !important;
  font-weight: 600;
  padding: 3px 7px;
}

/* --- mobil menü altı: iletişim + sosyal --- */
.gi-mobile-menu .gi-mm-foot {
  margin-top: 6px;
  padding: 16px 18px 24px;
  border-top: 1px solid var(--hdr-line);
  background: var(--hdr-bg-soft);
}

.gi-mobile-menu .gi-mm-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.gi-mobile-menu .gi-mm-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--hdr-line);
  border-radius: var(--hdr-radius);
  background: #fff;
  color: var(--hdr-ink);
  font-size: 13.5px;
  font-weight: 600;
}

.gi-mobile-menu .gi-mm-contact a i { font-size: 15px; color: var(--hdr-pink); }
.gi-mobile-menu .gi-mm-contact a:hover { border-color: var(--hdr-pink); color: var(--hdr-pink); }

.gi-mobile-menu .gi-mm-foot-title {
  display: block;
  margin-bottom: 10px;
  color: var(--hdr-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* Sosyal butonlar — satır içi SVG (ikon fontu kullanılmıyor) */
.gi-mobile-menu .header-top-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gi-mobile-menu .header-top-social .gi-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hdr-line);
  border-radius: 50%;
  background: #fff;
  color: var(--hdr-text);
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.gi-mobile-menu .header-top-social .gi-social-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.gi-mobile-menu .header-top-social .gi-social-btn:hover {
  background: var(--hdr-pink);
  border-color: var(--hdr-pink);
  color: #fff;
}

/*==============================================================================
  9. SEPET ÇEKMECESİ — dolu ve boş hâller
  public-init.js .cart-sub-total .text-right sırasına göre yazıyor;
  tablo yapısı korunmalı.
==============================================================================*/

.gi-side-cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .45);
  z-index: 1090;
}

.gi-side-cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 92vw;
  background: #fff;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  box-shadow: var(--hdr-shadow-lg);
  font-family: var(--font-sans, 'Inter', sans-serif);
}

.gi-side-cart.gi-open-cart { transform: translateX(0); }

.gi-side-cart .gi-cart-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gi-side-cart .gi-cart-top {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.gi-side-cart .gi-cart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--hdr-line);
  flex: 0 0 auto;
}

.gi-side-cart .cart_title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--hdr-ink);
}

.gi-side-cart .gi-cart-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hdr-bg-soft);
  color: var(--hdr-text);
  font-size: 18px;
}

.gi-side-cart .gi-cart-close:hover { background: #eceef1; color: var(--hdr-pink); }

/* ürün listesi */
.gi-side-cart .gi-cart-pro-items {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

/* style.css'te .gi-cart-inner ön ekli kurallar var — aynı özgüllükle ezilir */
.gi-side-cart .gi-cart-inner .gi-cart-pro-items li,
.gi-side-cart .gi-cart-pro-items > li {
  margin: 0;
  padding: 14px 20px;
  border: 0;
  border-bottom: 1px solid var(--hdr-line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  list-style: none;
}

.gi-side-cart .gi-cart-pro-items > li:last-child { border-bottom: 0; }

/* -- boş sepet --
   İki durumu da kapsar:
   1. PHP ilk yüklemede .gi-cart-empty basar
   2. public-init.js son ürün silinince '<li>Sepetiniz boş</li>' basar */
.gi-side-cart .gi-cart-empty,
.gi-side-cart .gi-cart-pro-items > li:only-child:not([data-key]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 320px;
  padding: 40px 26px;
  border-bottom: 0;
  text-align: center;
  color: var(--hdr-muted);
  font-size: 14px;
}

.gi-side-cart .gi-cart-empty-icon {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--hdr-bg-soft);
  color: #b6bcc4;
  font-size: 30px;
}

.gi-side-cart .gi-cart-empty-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--hdr-ink);
}

.gi-side-cart .gi-cart-empty-text {
  font-size: 13.5px;
  color: var(--hdr-muted);
  line-height: 1.5;
  max-width: 250px;
}

.gi-side-cart .gi-cart-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--hdr-pink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .15s ease;
}

.gi-side-cart .gi-cart-empty-btn:hover { background: var(--hdr-pink-dark); color: #fff; }

/* ürün satırı iç düzeni */
.gi-side-cart .gi-cart-inner .gi-cart-pro-items li .gi-pro-content .cart-pro-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--hdr-ink);
}

.gi-side-cart .gi-cart-inner .gi-cart-pro-items li .gi-pro-content .qty-plus-minus {
  margin: 8px 0 0;
  border: 0;
  width: auto;
  height: auto;
}

.gi-side-cart .gi-cart-inner .gi-cart-pro-items li .gi-pro-content input.qty-input {
  float: none;
  width: 88px;
  height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--hdr-line);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 32px;
  color: var(--hdr-ink);
  text-align: center;
  outline: none;
}

.gi-side-cart .gi-cart-inner .gi-cart-pro-items li .gi-pro-content input.qty-input:focus {
  border-color: var(--hdr-pink);
}

/* kaldır (×) düğmesi */
.gi-side-cart .gi-cart-inner .gi-cart-pro-items li .gi-pro-content .remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #9aa1ab !important;
  font-size: 18px;
  line-height: 1;
  transition: background .13s ease, color .13s ease;
}

.gi-side-cart .gi-cart-inner .gi-cart-pro-items li .gi-pro-content .remove:hover {
  background: rgba(230, 0, 126, .08);
  color: var(--hdr-pink) !important;
}

/* sepet altı — toplamlar */
.gi-side-cart .gi-cart-bottom {
  flex: 0 0 auto;
  padding: 15px 20px 20px;
  border-top: 1px solid var(--hdr-line);
  background: #fff;
}

/* sepet boşken toplamları ve ödeme butonunu gizle */
.gi-side-cart.is-empty .gi-cart-bottom { display: none; }

.gi-side-cart .cart-sub-total { margin: 0 0 13px; }

.gi-side-cart .cart-table { width: 100%; margin: 0; }

.gi-side-cart .cart-table td {
  padding: 6px 0;
  border: 0;
  font-size: 13px;
  color: var(--hdr-muted);
  background: transparent;
}

.gi-side-cart .cart-table td.text-right {
  text-align: right;
  font-weight: 600;
  color: var(--hdr-text);
  white-space: nowrap;
}

/* son satır — genel toplam */
.gi-side-cart .cart-table tr:last-child td {
  padding-top: 11px;
  border-top: 1px solid var(--hdr-line);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--hdr-ink);
}

.gi-side-cart .cart-table tr:last-child td.text-right,
.gi-side-cart .cart-table .primary-color {
  color: var(--hdr-pink) !important;
  font-size: 16px;
  font-weight: 700;
}

.gi-side-cart .gi-cart-inner .gi-cart-bottom .cart_btn { margin: 0; display: block; }

/* style.css bu bagi 48% genislik + buyuk harf yapiyor; ayni ozgullukle ezilir */
.gi-side-cart .gi-cart-inner .gi-cart-bottom .cart_btn a {
  width: 100%;
  height: 46px;
  padding: 0;
  text-transform: none;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 46px;
}

.gi-side-cart .cart_btn .gi-btn-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: var(--hdr-pink);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  /* style.css bu butonu buyuk harf yapiyor — normale cevir */
  text-transform: none;
  letter-spacing: 0;
  transition: background-color .15s ease;
}

.gi-side-cart .cart_btn .gi-btn-2:hover { background-color: var(--hdr-pink-dark); color: #fff; }

/* eski tema butona ::after ile kayan bir dolgu ekliyor — sepette gereksiz */
.gi-side-cart .cart_btn .gi-btn-2::before,
.gi-side-cart .cart_btn .gi-btn-2::after { display: none; }

/*==============================================================================
  10. YÜKLEME EKRANI — header ile uyum
==============================================================================*/

#gi-overlay { background: #fff; }
