@font-face {
  font-family: "AlexBrush";
  src: url("../fonts/AlexBrush-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "BENATHIO";
  src: url("../fonts/BENATHIO.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background-color: #fff;
}

/* Sayfa başlığı */
.header {
  background-image: url("../images/sayfa2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
  text-align: center;
  display: flex;               /* eklendi */
  flex-direction: column;      /* eklendi */
  align-items: center;         /* eklendi */
}


.logo-container {              /* zaten vardı, ortalamayı garantiye alalım */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.main-logo {                   /* responsive merkez logo */
  display: block;
  margin: 0 auto;
  width: clamp(160px, 40vw, 320px); /* ekranda akıllı ölçekleme */
  height: auto;
}
.logo-text {
  font-size: 25px;
  margin-top: 10px;
  color: rgb(2, 2, 59);
  font-family: "AlexBrush";
  display: block;
  width: 100%;
  text-align: center;
}

.search-container {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 25px;
  padding: 5px 15px;
  margin-top: 15px;
  margin-bottom: 10px;
}

.search-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.search-input {
  background: none;
  border: none;
  outline: none;
  color: #333;
  flex-grow: 1;
}

.menu-icon {
  width: 25px;
  height: 25px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;                   /* aralığı kontrollü verelim */
  padding: 10px 12px;          /* iç boşluk */
  background-color: #fff;
  border-bottom: 1px solid #eee;
  overflow-x: auto;            /* yatay scroll */
  white-space: nowrap;         /* satır kırılma yok */
  scrollbar-width: none;       /* Firefox: scrollbar gizle */
  -ms-overflow-style: none;    /* IE/Edge eski */
}
.nav::-webkit-scrollbar { display: none; } /* WebKit: scrollbar gizle */

.nav-item {
  flex: 0 0 auto;              /* kaydırmada item'lar sabit genişlikte */
  color: #000;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  position: relative;
}

.nav-item.active { color: orange; }

/* Eski fiyat için küçük sınıf */
.old-price { text-decoration: line-through; opacity:.6; margin-right:6px; }
.content {
  padding: 15px;
}

.category-title {
  font-size: 30px;
  margin: 20px auto 15px auto;
  color: orange;
  font-family: "Montserrat", "Poppins", system-ui, -apple-system, sans-serif;
  display: inline-block;
  border-bottom: 2px solid orange;
  padding-bottom: 3px;
  font-weight: 100;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-card {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 10px;
  text-decoration: none;
}

.product-image {
  width: 130px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
}

.product-info {
  flex-grow: 1;
  padding: 0 15px;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  color: #8a2be2;
  margin-bottom: 5px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

.product-description {
  font-size: 13px;
  color: #444;
  margin-bottom: 5px;
  font-family: "Poppins", sans-serif;
  font-weight: 200;
}

.product-price {
  font-weight: 700;
  font-size: 16px;
  color: #8a2be2;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

/* TAM EKRAN MENÜ STİLLERİ */
.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  overflow-x: hidden;
  transition: 0.5s;
  background-image: url("../images/sayfa3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 45px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.menu-logo {
  position: absolute;
  top: 80%;
  left: 53%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: auto;
}

.back-btn {
  font-size: 40px;
  text-decoration: none;
  color: white;
  transition: 0.3s;
  z-index: 2;
}

.back-btn:hover {
  color: orange;
}

.menu-divider {
  width: 100%;
  height: 2px;
  background-color: orange;
  position: absolute;
  top: 150px;
  left: 0;
}

.overlay-content {
  position: relative;
  top: 10%;
  width: 100%;
  text-align: center;
}

.overlay-content a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #f1f1f1;
  display: block;
  transition: 0.3s;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.5;
}

.overlay-content a:hover,
.overlay-content a:focus {
  color: orange;
}

.instagram-icon-container {
  margin-top: 20px;
  display: inline-block;
}

.instagram-icon {
  width: 40px;
  height: auto;
  filter: invert(100%);
}

/* MOBİL GÖRÜNÜM AYARLARI */
@media screen and (max-width: 600px) {
  /* Ana sayfadaki logo ve metni küçültme */
  .main-logo {
    display: block;
    margin: 20px auto 0 auto; /* üstten boşluk + ortalama */
    width: 250px; /* istersen küçültebilirsin */
    height: auto;
  }

  .logo-text {
    font-size: 23px;
  }

  /* Ana menü çubuklarını küçültme */
  .nav-item {
    font-size: 14px;
    padding: 5px;
  }

  .product-card {
    display: flex; /* Flex yapısını koruyoruz */
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px; /* Kartlar arası boşluk */
    flex-direction: row; /* Yan yana dizilim */
    align-items: center; /* Dikeyde ortalama */
    padding: 10px; /* İç boşluk */
    text-decoration: none;
  }

  .product-image {
    width: 40%; /* Görselin kartın %40'ını kaplaması */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 10px; /* Görsel ve yazı arası boşluk */
  }

  .product-info {
    flex-grow: 1; /* Yazı alanının kalan alanı kaplaması */
    text-align: left; /* Yazıları sola hizalama */
    padding: 0;
  }

  .product-title {
    font-size: 16px;
    font-weight: 600;
    color: #8a2be2;
    margin-bottom: 5px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
  }

  .product-description {
    font-size: 12px;
    color: #444;
    margin-bottom: 5px;
    font-family: "Poppins", sans-serif;
    font-weight: 200;
  }

  .product-price {
    font-weight: 700;
    font-size: 16px;
    color: #8a2be2;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    margin-left: auto; /* Fiyatı sağa yaslama */
  }
  .category-title {
    font-size: 24px;
  }

  /* Tam ekran menü ayarları */
  .overlay-header {
    padding: 20px 20px; /* Kenar boşluklarını azaltma */
  }

  .menu-logo {
    position: absolute;
    top: 80%;
    left: 60%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: auto;
  }

  .back-btn {
    font-size: 30px; /* Buton boyutunu küçültme */
  }

  .menu-divider {
    .menu-divider {
      width: 100%;
      height: 2px;
      background-color: orange;
      position: absolute;
      top: 150px;
      left: 0;
    }
  }

  .overlay-content {
    top: 12%; /* Menü linklerini yukarı çekme */
    text-align: right; /* Menü linklerini sağa yaslama */
    padding-right: 20px;
  }

  .overlay-content a {
    font-size: 28px; /* Linklerin yazı boyutunu küçültme */
    font-weight: 600;
    line-height: 1.8; /* Satır aralığını artırma */
  }
}
@media screen and (max-width: 600px) {
  .menu-logo {
    position: absolute;
    top: 80%;
    left: 60%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: auto;
  }

  .menu-divider {               /* İÇ İÇE blok hatasını düzelttik */
    width: 100%;
    height: 2px;
    background-color: orange;
    position: absolute;
    top: 150px;
    left: 0;
  }
}/* --------- ÜRÜN KARTI: Görseldeki tasarım --------- */
/* =========================
   Modernist Yatay Ürün Kartı
   ========================= */
:root{
  --accent: #6d4aff;          /* vurgu rengi (mor) */
  --ink: #111827;             /* başlık rengi */
  --muted: #4b5563;           /* açıklama rengi */
  --line: #e5e7eb;            /* sınır çizgisi */
}

/* Kart */
.product-card{
  --thumb: 190px;             /* sol görsel genişliği */
  display: grid;
  grid-template-columns: var(--thumb) 1fr auto;  /* görsel | metin | fiyat */
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;        /* az yuvarlak – modern */
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(17,24,39,.05);
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* İnce vurgu şeridi (solda) */
.product-card::before{
  content:"";
  position:absolute;
  top:-1px; bottom:-1px; left:-1px;
  width: 4px;
  border-top-left-radius: 9px;
  border-bottom-left-radius: 9px;
  background: linear-gradient(180deg, var(--accent), #9c6cff);
  opacity: .9;
}

.product-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(17,24,39,.10);
}
.product-card:active{ transform: translateY(0); }
.product-card:focus-visible{
  outline: 3px solid rgba(109,74,255,.25);
  outline-offset: 2px;
  border-color: #cfd4ff;
}

/* Görsel */
.product-image{
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;         /* köşe yuvarlaması daha düşük */
  background: #f6f7fb;
}

/* Metinler */
.product-info{ min-width:0; display:flex; flex-direction:column; gap:6px; }
.product-title{
  margin:0;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.2px;
  line-height: 1.15;
  white-space: nowrap; overflow:hidden; text-overflow: ellipsis;
}
.product-description{
  /* mevcut stillerin... */
  overflow: hidden;

  /* Çok satırlı kısaltma — standart + eski webkit birlikte */
  line-clamp: 2;             /* ✅ standart özellik */
  display: -webkit-box;      /* eski WebKit için gerekli */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;     /* ↔️ uyumluluk için */
}

/* Fiyat – kompakt rozet */
.product-price{
  align-self: end;            /* sağ alt görünümü */
  justify-self: end;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--accent);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafaff;
  letter-spacing: .2px;
}
.old-price{ text-decoration: line-through; opacity:.55; margin-right:6px; }

/* Küçük ekranlar – yine yatay, sadece ölçüler küçülür */
@media (max-width: 600px){
  .product-card{ gap:12px; padding:12px; --thumb: 140px; }
  .product-image{ height: 96px; }
  .product-title{ font-size: 18px; }
  .product-description{ font-size: 12px; }
  .product-price{ font-size: 15px; align-self:center; }
}
/* ——— Kart ızgarasını düzelt: bilgi alanına asgari genişlik ver ——— */
.product-card{
  /* sol görsel genişliği */
  --thumb: 190px;
  display: grid;
  /* 2. sütun (metin) en az 160px olsun, yoksa sıkışıp 1 harfe düşüyor */
  grid-template-columns: var(--thumb) minmax(160px, 1fr) auto;
  gap: 18px;
}

/* Görsel */
.product-image{
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

/* Metin alanı: küçülebilsin */
.product-info{ min-width: 0; }

/* Başlık: tek satırda kes; küçük ekranda 2 satıra izin ver */
.product-title{
  margin: 0;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  color: #111827;

  /* çok satırlı kısaltma (standart + webkit) */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

/* Açıklama: 2 satıra kadar göster */
.product-description{
  margin: 0;
  font-weight: 300;
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.45;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* Fiyat rozeti biraz kompakt kalsın */
.product-price{
  align-self: end;
  justify-self: end;
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
}

/* ——— Küçük ekran optimizasyonu ——— */
@media (max-width: 480px){
  .product-card{
    /* görseli küçült, metne alan aç */
    --thumb: 120px;
    gap: 12px;
    grid-template-columns: var(--thumb) minmax(140px, 1fr) auto;
  }
  .product-image{ height: 96px; }
  .product-title{
    font-size: 18px;
    /* küçük ekranda başlığa 2 satır ver */
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .product-description{ font-size: 12px; }
  .product-price{ font-size: 14px; padding: 4px 8px; }
}
/* --- FİYAT TAŞMASI FİX --- */
/* Kart artık 2 sütun: [görsel | metin]. Fiyat sağ-alta sabitlenir. */
.product-card{
  position: relative;
  overflow: hidden; /* dışarı taşmayı kes */
  --thumb: 190px;
  display: grid;
  grid-template-columns: var(--thumb) minmax(150px, 1fr);
  gap: 16px;
  padding-right: 112px;        /* sağda fiyat rozeti için boşluk */
}

/* Metin alanı sıkışabilsin */
.product-info{ min-width: 0; }

/* Fiyat: kartın içinde, sağ-altta sabit */
.product-price{
  position: absolute;
  right: 14px;
  bottom: 12px;
  align-self: auto;            /* eski hizalamaları sıfırla */
  justify-self: auto;
  white-space: nowrap;         /* tek satır kalsın */
  margin: 0;
}

/* Küçük ekran optimizasyonu */
@media (max-width: 480px){
  .product-card{
    --thumb: 120px;            /* görseli küçült, metne alan aç */
    gap: 12px;
    padding-right: 96px;       /* rozete yer */
  }
  .product-image{ height: 96px; }
  .product-price{ right: 10px; bottom: 5px; font-size: 14px; padding: 4px 8px; }
}
/* ===== Overlay içerik kartları ===== */
.overlay-content{
  top: 10%;
  width: 100%;
  text-align: left;
  padding: 20px;
  box-sizing: border-box;
}
.overlay-sections{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Genel aksiyon kartı */
.action-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.92);
  color: #111;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 14px;
  backdrop-filter: blur(2px);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
  transition: transform .15s ease, box-shadow .15s ease;
}
.action-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
}
.action-card .left{ display:flex; align-items:center; gap:10px; }
.action-card .icon{
  width: 38px; height: 38px; border-radius: 10px;
  background: #fff; display:grid; place-items:center;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  font-size: 18px;
}
.action-card h3{ margin:0; font-size:16px; font-weight:800; color:#111; }
.action-card p{ margin:2px 0 0; font-size:12px; color:#666; }
.action-card .chev{ font-size:24px; color:#bbb; margin-left:auto; }
.action-card .actions{ display:flex; gap:6px; }
.mini-btn{
  display:inline-block; padding:6px 10px; font-size:12px; border-radius:8px;
  text-decoration:none; color:#fff;
}
.mini-btn.whats{ background:#25D366; }
.mini-btn.mail{  background:#8a2be2; }

/* Wi-Fi kartı */
.wifi-card{
  background: rgba(255,255,255,.96);
  color:#111;
  border:1px solid rgba(255,255,255,.7);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.2);
}
.wifi-head{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.wifi-head .icon-strong{
  width:42px; height:42px; border-radius:12px;
  background:#8a2be2; color:#fff; display:grid; place-items:center; font-size:20px;
  box-shadow: 0 6px 18px rgba(138,43,226,.35);
}
.wifi-card h3{ margin:0; font-size:16px; font-weight:800; }
.wifi-card p{ margin:2px 0 0; font-size:12px; color:#555; }
.wifi-row{
  display:flex; align-items:center; gap:8px;
  margin:8px 0 0 0;
}
.wifi-row span{
  width:50px; font-size:12px; color:#666;
}
.wifi-row code{
  background:#f7f7ff; border:1px dashed #d8d8ff; color:#111;
  border-radius:8px; padding:6px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
.copy-btn{
  margin-left:auto; cursor:pointer; border:0; border-radius:8px; padding:6px 10px;
  background:#111; color:#fff; font-size:12px;
}
.copy-btn:hover{ background:#8a2be2; }

/* İki sütunlu düzeni geniş ekranda açalım */
@media (min-width: 560px){
  .overlay-sections{ grid-template-columns: 1fr 1fr; }
  .wifi-card{ grid-column: 1 / -1; }
}

/* Karanlık arkaplanda linkler okunaklı olsun */
.overlay a.action-card{ color: inherit; }
/* ===== Overlay içerik layout (responsive) ===== */
.overlay-content{
  top: 10%;
  width: 100%;
  text-align: left;
  padding: 20px;
  box-sizing: border-box;
}
.overlay-sections{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.action-card{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 14px; border-radius:14px;
  background: rgba(255,255,255,.96);
  color:#111; text-decoration:none; border:1px solid #eee;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.action-card:hover{ transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.action-card.is-button{ border:none; cursor:pointer; }
.action-card .left{ display:flex; align-items:center; gap:10px; }
.action-card .icon{
  width:38px; height:38px; border-radius:10px; background:#fff;
  display:grid; place-items:center; box-shadow:0 4px 12px rgba(0,0,0,.12); font-size:18px;
}
.action-card h3{ margin:0; font-size:16px; font-weight:800; }
.action-card p{ margin:2px 0 0; font-size:12px; color:#666; }
.action-card .chev{ font-size:24px; color:#bbb; margin-left:auto; }

/* Wi-Fi kartı */
.wifi-card{
  background: rgba(255,255,255,.98);
  color:#111; border:1px solid #eee; border-radius:16px; padding:14px;
  box-shadow:0 10px 26px rgba(0,0,0,.2);
}
.wifi-head{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.icon-strong{
  width:42px; height:42px; border-radius:12px; background:#8a2be2; color:#fff;
  display:grid; place-items:center; font-size:20px; box-shadow:0 6px 18px rgba(138,43,226,.35);
}
.wifi-card h3{ margin:0; font-size:16px; font-weight:800; }
.wifi-card p{ margin:2px 0 0; font-size:12px; color:#555; }
.wifi-row{ display:flex; align-items:center; gap:8px; margin-top:8px; }
.wifi-row span{ width:50px; font-size:12px; color:#666; }
.wifi-row code{
  background:#f7f7ff; border:1px dashed #d8d8ff; color:#111; border-radius:8px; padding:6px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
.copy-btn{ margin-left:auto; cursor:pointer; border:0; border-radius:8px; padding:6px 10px; background:#111; color:#fff; font-size:12px; }
.copy-btn:hover{ background:#8a2be2; }

/* 2 kolon büyük ekran */
@media (min-width: 560px){
  .overlay-sections{ grid-template-columns: 1fr 1fr; }
  .wifi-card{ grid-column: 1 / -1; }
}

/* ===== MODAL ===== */
.modal-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:999;
}
.modal-backdrop.open{ opacity:1; pointer-events:auto; }

.modal{
  position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  pointer-events:none; z-index:1000;
}
.modal.open{ pointer-events:auto; }
.modal-card{
  width:min(560px, 92vw); background:#fff; color:#111; border-radius:16px;
  border:1px solid #eee; box-shadow:0 30px 70px rgba(0,0,0,.35);
  transform: translateY(20px); opacity:0; transition: transform .22s ease, opacity .22s ease;
  padding:16px;
}
.modal.open .modal-card{ transform: translateY(0); opacity:1; }

.modal-close{
  appearance:none; border:0; background:#f6f6f6; color:#111; border-radius:10px;
  padding:6px 10px; cursor:pointer; float:right;
}
.modal-head{ display:flex; align-items:center; gap:10px; margin:6px 0 12px; }
.modal-head .modal-icon{
  width:42px; height:42px; border-radius:12px; background:#8a2be2; color:#fff;
  display:grid; place-items:center; font-size:20px; box-shadow:0 6px 18px rgba(138,43,226,.35);
}
.modal-head h3{ margin:0; font-size:18px; font-weight:900; }
.modal-head p{ margin:2px 0 0; font-size:12px; color:#666; }

/* Form */
.form-row{ display:flex; gap:8px; margin-bottom:10px; }
.seg{
  display:flex; align-items:center; gap:6px; background:#f7f7ff; border:1px solid #eaeaff; color:#333;
  padding:8px 10px; border-radius:10px; cursor:pointer; user-select:none;
}
.seg input{ accent-color:#8a2be2; }

.form-group{ display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }
.form-group input, .form-group textarea{
  border:1px solid #e9e9ef; border-radius:12px; padding:10px 12px; font-size:14px;
  outline:none; transition: box-shadow .15s ease, border-color .15s ease;
}
.form-group input:focus, .form-group textarea:focus{
  border-color:#cdb0ff; box-shadow:0 0 0 4px rgba(138,43,226,.15);
}
.err{ color:#c0392b; min-height:14px; }

.form-actions{ display:flex; gap:8px; justify-content:flex-end; margin-top:6px; }
.btn{
  border:0; border-radius:10px; padding:10px 14px; font-weight:800; cursor:pointer;
}
.btn.primary{ background:#8a2be2; color:#fff; }
.btn.ghost{ background:#f1f1f6; color:#111; }
.btn:disabled{ opacity:.6; cursor:not-allowed; }

.form-note{ margin-top:6px; color:#777; }
.form-result{
  margin-top:10px; padding:10px 12px; border-radius:10px; font-size:14px; display:block;
}
.form-result.ok{ background:#e8fff3; color:#116b3b; border:1px solid #b7f0cf; }
.form-result.err{ background:#fff1f1; color:#842029; border:1px solid #f5c2c7; }

/* Mobil: tam ekran sheet */
@media (max-width: 560px){
  .modal{ align-items:flex-end; }
  .modal-card{ width:100vw; border-radius:16px 16px 0 0; }
}


/* Mobilde biraz daha kısa header ve daha esnek logo */
@media (max-width: 600px){
  .overlay-header{ --hdrH: 140px; }
  .menu-logo{
    max-width: calc(100% - 40px);
    max-height: calc(var(--hdrH) - 28px);
  }
}

.site-footer{
  margin-top: auto;          /* alt tarafa iter */
  text-align:center;
  padding:12px 10px 18px;
  color:#667;
  font-size:12.5px;
  border-top:1px solid #eee;
  background:#fff;
}
.site-footer a{
  color:#8a2be2; text-decoration:none; font-weight:700;
}
.site-footer a:hover{ text-decoration:underline; }



/* Başlık düzeni: geri butonu solda, logo ortada */
.overlay-header{
  position: sticky; top: 0; z-index: 40;
  display: grid;
  grid-template-columns: 44px 1fr 44px; /* < geri | LOGO | boşluk/menü */
  align-items: center;
  padding: 10px 12px;
}

/* Logo: otomatik ölçek, taşma yok */
.menu-logo{
  grid-column: 2;                /* ortadaki kolon */
  justify-self: center;
  height: clamp(36px, 8vw, 56px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.05))
          drop-shadow(0 8px 16px rgba(0,0,0,.25));
}

/* Geri butonu solda hizalı kalsın */
.back-btn{
  grid-column: 1;
  justify-self: start;
}

/* Küçük ekran dokunuşları */
/* MOBİL LOGO ORTALAMA — önce eski konumlandırmayı sıfırla, sonra ortala */
@media (max-width: 600px){
  /* Başlık çubuğunu ortalamak için flex kullan */
  .overlay-header{
    display: flex;
    align-items: center;
    justify-content: center; /* ortala */
    padding: 8px 10px;
    position: relative;
    min-height: 64px;
  }

  /* Geri ok solda sabit kalsın */
  .overlay-header .back-btn{
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  /* LOGO: eski absolute/top/left/transform'u iptal et ve ortala */
  .overlay-header .menu-logo{
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;

    display: block;
    margin: 0 auto !important;   /* yatay ortalama */
    width: min(220px, 60vw);
    height: auto;
    object-fit: contain;
  }
}
@media (max-width: 600px){
  .menu-divider{
    height: 2px;
    margin: 1px 0 1px;                        /* daha az boşluk */
  }
}
@media (max-width: 600px){
  /* Header alt boşluğunu azalt */
  .overlay-header{
    padding-bottom: 2px;                      /* eskisinden küçük olsun */
  }

  /* Logo’nun alt marjinini azalt/sıfırla */
  .overlay-header .menu-logo{
    margin-bottom: 0px !important;            /* ya da 0px */
  }

  /* İçerik bölümünü yukarı çek */
  .overlay .overlay-content{
    padding-top: 0px;                          /* gerekiyorsa 0 yap */
    margin-top: 0;                             
  }

  /* Kart listesinin gereksiz üst marjinlerini sıfırla (varsa) */
  .overlay .overlay-sections{ margin-top: 0; }
}
