.navbar {
  background-color: #f5f5f5;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
/* Bootstrap navbar içinde yalnızca kendi .navbar-nav'ı şekillendir */
.navbar .navbar-nav{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0;
  padding:0;
}
/* Merkezleme Bootstrap'e bırakılıyor (container + ms-auto/ms-*) */

/* Dropdown görünürlüğü Bootstrap'e uygun olsun */
.navbar .dropdown-menu{
  position:absolute;
  display:none;
  flex-direction:column;
  gap:0;
}
.navbar .dropdown-menu.show{ display:block; }

.navbar a{ background:transparent !important; border-radius:0; }
.navbar a:hover {
  color: #ff007a;
}

.chat-box {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: #fff;
  margin-bottom: 10px;
}

.chat-input-container {
  display: flex;
  gap: 10px;
}

.chat-input-container input {
  flex: 1;
  padding: 8px;
  font-size: 14px;
}

.chat-input-container button {
  padding: 8px 12px;
  background-color: #f15b5b;
  color: white;
  border: none;
  cursor: pointer;
}

/* Sadece site içi klasik nav listeleri (NAVBAR HARİÇ) */
nav:not(.navbar) ul{
  list-style:none;
  display:flex;
  gap:20px;
  padding:0;
}

/* Site içi klasik listeler için (navbar HARİÇ) */
nav:not(.navbar) ul li a{
  text-decoration:none;
  padding:10px 15px;
  background-color:#ffcce0;
  color:#333;
  border-radius:8px;
  font-weight:bold;
}


/* NAVBAR hizalama – tek satır yüksekliği */
.navbar .nav-link,
.navbar .dropdown-toggle{
  display:inline-flex;
  align-items:center;
  height:38px;
  line-height:1;
  padding:.4rem .6rem;
  font-weight:600;
}
.navbar .dropdown-menu .dropdown-item{
  display:block;
  height:auto;
  line-height:1.2;
  padding:.45rem .85rem;
}

/* Navbar dışındaki basit menüler için hover */
nav:not(.navbar) ul li a:hover{
  background-color:#ff99cc;
  color:#fff;
}

.header-container {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

.main-title {
  font-size: 38px;
  font-family: 'Brush Script MT', cursive;
  color: #e91e63;
}

.welcome-message {
  font-size: 18px;
  font-style: italic;
  color: #333;
  margin-top: 10px;
}

#psychologist-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.psychologist-card {
  background-color: #fff0f5;
  border: 2px solid #ff69b4;
  border-radius: 10px;
  padding: 15px;
  width: 220px;
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.psychologist-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.psychologist-name {
  font-weight: bold;
  color: #d1006f;
  margin: 5px 0;
}

.psychologist-expertise {
  font-style: italic;
  color: #555;
  font-size: 14px;
}

#chat-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

#user-input {
  width: 100%;
  height: 80px;
  resize: none;
  padding: 10px;
  margin-bottom: 10px;
}

:root{
  --user-bg-start:#7aa8ff;   /* kullanıcı balonu gradyan */
  --user-bg-end:#3b82f6;
  --bot-bg:#f6f7fb;          /* asistan balonu */
  --bot-border:#e7eaf3;
  --text-dark:#1f2937;
  --pill-bg:#eef2ff;
  --pill-text:#374151;
  --shadow:0 4px 14px rgba(2,6,23,0.08);
  --nav-h: 64px;
}

.chat-wrap{display:flex;flex-direction:column;gap:12px;max-width:900px;margin:0 auto;padding:12px}
#chat-log{height:48vh;min-height:320px;max-height:62vh;overflow:auto;border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff}

/* ===== Ana Sayfa V1 – ek stiller ===== */
.hero-section {
  background: radial-gradient(100% 100% at 0% 0%, #f6f7ff 0%, #ffffff 60%);
}
.hero-photo { max-width: 360px; width: 100%; object-fit: cover; }
.about-card { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; }
.about-list { margin: 0; padding-left: 1.2rem; }
.about-list li { margin-bottom: .4rem; }

.feature-card{
  border:1px solid rgba(0,0,0,.06);
  border-radius:1rem;
  transition:transform .2s ease, box-shadow .2s ease;
}
.feature-icon { font-size: 1.6rem; }

.cta-section { background: #f7f9ff; border-top: 1px solid #eef2f7; }


/* ===== Terapi UX eklentileri ===== */

/* Uyarı bandı */
.risk-alert {
  background: #fff1f0;
  color: #b42318;
  border: 1px solid #ffcdc7;
  border-radius: 10px;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Chat alanı */
.chat-log {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 1rem;
  height: 420px;
  overflow-y: auto;
}

/* Mesaj balonları */
.msg{display:flex;margin:8px 0}
.msg-user{justify-content:flex-end}
.msg-bot{justify-content:flex-start}
msg{ display:flex; margin:10px 0; }
.msg-ai { justify-content: flex-start; }

.bubble {
  position: relative;
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.45;
  box-shadow: var(--shadow);
  word-wrap: break-word;
}
.msg-user .bubble { background: #e7f1ff; border: 1px solid #cfe3ff; }
.msg-ai .bubble   { background: #f6f7fb; border: 1px solid #e8ebf3; }

/* Kullanıcı balonu */
.msg-user .bubble{
  background: linear-gradient(135deg, var(--user-bg-start), var(--user-bg-end));
  color: #fff;
  border: none;
}
.msg-user .bubble::after{
  content:"";
  position:absolute; right:-6px; bottom:10px;
  border-width:7px 0 7px 7px; border-style:solid;
  border-color: transparent transparent transparent var(--user-bg-end);
}

/* Asistan balonu */
.msg-bot .bubble{
  background: var(--bot-bg);
  color: var(--text-dark);
  border: 1px solid var(--bot-border);
}
.msg-bot .bubble::after{
  content:"";
  position:absolute; left:-6px; bottom:10px;
  border-width:7px 7px 7px 0; border-style:solid;
  border-color: transparent var(--bot-border) transparent transparent;
}

/* Duygu etiketi ve zaman */
.bubble .emo{
  display:inline-block; margin-left:6px;
  padding:2px 8px; border-radius:999px; font-size:12px;
  background: var(--pill-bg); color: var(--pill-text);
}
.bubble .ts{ margin-left:6px; font-size:12px; opacity:.7; }

/* Duygu bazlı renk (data-emotion ile) */
.emo[data-emotion="kaygı"]{ background:#fff1f2; color:#b91c1c; }
.emo[data-emotion="öfke"]{ background:#fee2e2; color:#dc2626; }
.emo[data-emotion="üzgün"]{ background:#e0e7ff; color:#4338ca; }
.emo[data-emotion="yalnızlık"]{ background:#fef3c7; color:#b45309; }
.emo[data-emotion="yorgunluk"]{ background:#e5e7eb; color:#374151; }
.emo[data-emotion="umut"]{ background:#dcfce7; color:#16a34a; }

/* Quick reply butonları */
#quick-replies{ gap:8px; }
#quick-replies .qr-btn{
  border-radius:999px; padding:6px 12px; font-size:13px;
  border:1px solid var(--bot-border); background:#fff; cursor:pointer;
  transition: transform .06s ease, box-shadow .06s ease;
}
#quick-replies .qr-btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }

/* 'Yaverin yazıyor...' hayaleti (opsiyonel) */
.msg-bot.typing .bubble{ font-style: italic; opacity:.8; }

/* Yazıyor göstergesi */
.typing { display: flex; align-items: center; gap: 4px; margin-top: .5rem; }
.dot {
  width: 6px; height: 6px; border-radius: 50%; background: #888;
  display: inline-block; animation: blink 1.2s infinite ease-in-out;
}
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: .2; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

/* Yardımcı */
.d-none { display: none !important; }
.quick-replies .btn { margin-right: .4rem; margin-bottom: .4rem; }

.navbar .nav-link.active { font-weight: 600; color: #0d6efd !important; }
.navbar .nav-link { padding: .5rem .75rem; }

.hero-gradient{
  background: radial-gradient(1000px 420px at 10% 0%, #eaf2ff 0%, #ffffff 60%);
}

.feature-card:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(0,0,0,.06); }

.icon-wrap{
  width:48px;height:48px;border-radius:12px;
  background:#eef5ff;color:#0d6efd;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:20px;
}

.cta-box{
  background: linear-gradient(135deg,#f8f9ff,#eef3ff);
  border:1px solid rgba(0,0,0,.06);
}

/* --- About (Sümeyye) zengin görünüm --- */
.about-section{
  background: radial-gradient(900px 380px at 95% -10%, #f5f7ff 0%, #ffffff 60%);
}

.stat-card { transition: transform .15s ease, box-shadow .15s ease; }

.stat-card:hover { transform: translateY(-2px); box-shadow: 0 0.5rem 1rem rgba(0,0,0,.08); }

.about-badges .badge{
  padding: .55rem .85rem;
  font-weight: 600;
}
.about-photo{
  border-radius: 1rem;
  box-shadow: 0 16px 36px rgba(0,0,0,.08);
}

/* About – görsel iyileştirmeler */
.about-points li { line-height: 1.5; }

.about-quote{
  background: #f8fafc;
  border-left: 4px solid #0d6efd;
  padding: 1rem 1.25rem;
  border-radius: .75rem;
  color: #334155;
}

.about-stats .stat{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: .85rem;
  padding: .6rem .9rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
}
.about-stats .icon{
  width: 36px; height: 36px;
  border-radius: .6rem;
  background: #eef5ff;
  color: #0d6efd;
  display:inline-flex; align-items:center; justify-content:center;
}

/* ---- Global tipografi ---- */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: .1px; }

h1,h2,h3 { line-height: 1.2; font-weight: 800; }

/* ---- About (Sümeyye) tipografi dengeleme ---- */
.about-section h2 { letter-spacing: .2px; }

/* İki paragrafı uyumlu boy/renk ile hizala */
.about-lead{
  font-size: clamp(1.125rem, 0.9vw + 1rem, 1.35rem); /* ~18–22px */
  font-weight: 500;
  color: #334155;            /* koyu gri-mavi */
  margin-bottom: .6rem;
}
.about-sub{
  font-size: clamp(1.05rem, 0.6vw + .95rem, 1.2rem);  /* ~17–19px */
  font-weight: 400;
  color: #475569;            /* bir ton daha açık */
  margin-top: .25rem;
}

.about-checks li { margin-bottom: .55rem; }
.about-checks i  { color: #16a34a; }

/* Smooth scroll + aktif menü alt çizgi */
html { scroll-behavior: smooth; }
.navbar .nav-link { position: relative; }
.navbar .nav-link.active::after {
  content:""; position:absolute; left:.75rem; right:.75rem; bottom:.35rem;
  height:2px; background:#0d6efd; border-radius:2px;
}

:root { --nav-h: 64px; }                /* navbar yüksekliği */
#about-sumeyye { scroll-margin-top: calc(var(--nav-h) + 16px); }
.navbar.is-sticky { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
/* Küçük ekranlar için nefes alanı */
#about-sumeyye .stat-card .h4 { font-weight: 800; }

.section-title { position: relative; padding-bottom: .35rem; }
.section-title::after{
  content:""; position:absolute; left:0; bottom:-.1rem; height:3px; width:64px;
  background: linear-gradient(90deg,#0d6efd 0%, #8ab4ff 100%); border-radius:3px;
}

/* DARK */
[data-bs-theme="dark"] body { background-color:#0b1220; }
[data-bs-theme="dark"] .navbar.is-sticky { box-shadow: 0 6px 24px rgba(0,0,0,.4); }
[data-bs-theme="dark"] .hero-gradient{
  background: radial-gradient(1000px 420px at 10% 0%, #0f1b35 0%, #0b1220 60%);
}
[data-bs-theme="dark"] .feature-card{ border-color: rgba(255,255,255,.08); }
[data-bs-theme="dark"] .cta-box{
  background: linear-gradient(135deg,#0f172a,#0b1220);
  border-color: rgba(255,255,255,.08);
}
[data-bs-theme="dark"] .section-title::after{
  background: linear-gradient(90deg,#60a5fa 0%, #93c5fd 100%);
}

/* Sohbet balonlarında \n -> yeni satır olarak işlensin */
.assistant-message, .ai-text, .chat-message, .bot-bubble {
  white-space: pre-wrap;   /* \n’leri koru, satır sarma açık */
  word-wrap: break-word;
}

/* Kart görseli */
.card-img-top{ height:180px; object-fit:cover; }

/* Detay sayfası büyük görsel */
.product-hero{ max-height:360px; object-fit:cover; width:100%; }

/* Kadın El Emeği sayfası üst aksiyon barı */
.shop-action-bar{
  display:flex;
  justify-content:flex-end; /* sağa yasla */
  gap:12px;
  margin: 12px 0 16px;
}

/* Mobil floating action button (+) */
.shop-fab{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #0d6efd;   /* Bootstrap primary */
  color: #fff;
  box-shadow: 0 6px 12px rgba(13,110,253,.3);
  font-size: 22px;
  z-index: 1030;
}
.shop-fab:hover{ filter: brightness(0.95); }

/* --- Ürün Grid --- */
.products-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;                 /* kartlar arası boşluk */
}

/* --- Kart --- */
.product-card{
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* --- Görsel alanı (sabit oran) --- */
.product-thumb{
  position: relative;
  background: #f8f9fa;
  aspect-ratio: 4 / 3;          /* modern tarayıcılar */
  width: 100%;
  overflow: hidden;
}
.product-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;             /* farklı oranları şık kırpar */
  display: block;
}

/* Rozet */
.product-badge{
  position: absolute;
  top: .6rem;
  left: .6rem;
  padding: .35rem .55rem;
  font-size: .75rem;
  border-radius: 999px;
  background: #0d6efd;
  color: #fff;
}

/* Açıklamayı 2 satırda kes */
.clamp-2{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fiyat */
.price .amount{ font-weight: 700; font-size: 1.05rem; }
.price .currency{ font-size: .9rem; opacity: .8; margin-left: .1rem; }

/* ===== HARD FIX: Ürün listesi her koşulda grid olsun ===== */
.shop-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 1.25rem !important;
  max-width: 1200px;          /* merkezde genişlik sınırı */
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
}

/* .row içindeki .col paddinglerini sıfırla, grid item yap */
.shop-grid > [class*="col"]{
  padding: 0 !important;
  width: auto !important;
}

/* Ürün görseli yüksekliği sabitle – kırık görselde bile kutu şişmesin */
.shop-grid .card-img-top{
  height: 200px !important;
  object-fit: cover !important;
  display: block;
}

/* Yalnızca shop list kartı için sabit oranlı görsel */
/* Kart görseli hover-zoom + rozet */
.shop-card .thumb{
  position: relative;
  aspect-ratio: 4/3;
  background: #f8f9fa;
  overflow: hidden;
  border-top-left-radius: .375rem;
  border-top-right-radius: .375rem;
}

.shop-card .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.shop-card:hover .thumb img{ transform: scale(1.04); }

/* İndirim rozeti */
.shop-card .sale-badge{
  position: absolute;
  top: .5rem;
  left: .5rem;
  background: #dc3545;  /* Bootstrap danger */
  color: #fff;
  padding: .3rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(220,53,69,.25);
}

/* 2 satır açıklama (… ile) */
.clamp-2{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* mini bar */
.bars .bar-row{display:flex;align-items:center;gap:8px;margin:4px 0}
.bars .bar-label{width:54px;font-size:12px;color:#666}
.bars .bar{flex:1;height:10px;background:#eee;border-radius:6px;overflow:hidden}
.bars .bar-fill{display:block;height:100%}
.bars .bar-val{width:28px;text-align:right;font-size:12px;color:#333}

.mood-chip{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.2rem .5rem; border-radius:999px;
  font-size:.85rem; font-weight:600;
  border:1px solid var(--chip, #9e9e9e);
  color:var(--chip, #9e9e9e);
  background:color-mix(in srgb, var(--chip, #9e9e9e) 12%, transparent);
}
.mood-chip small{ font-weight:700; opacity:.9 }

/* Kartı esnek ve sabit oranlı kapakla kur */
.card-psych{display:flex;flex-direction:column;border:1px solid rgba(0,0,0,.06);border-radius:1rem;overflow:hidden;transition:transform .15s,box-shadow .15s;}
.card-psych:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.06);}

/* Kapak görseli */
.card-psych .thumb{position:relative;background:#f8fafc;}
.card-psych .thumb::after{content:"";display:block;aspect-ratio:4/3;width:100%;}
.card-psych .thumb > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* Görüntülü rozeti */
.card-psych .badge-vo{position:absolute;top:.5rem;right:.5rem}
.badge-soft{background:#eef5ff;color:#0d6efd;border-radius:9999px;padding:.15rem .5rem;font-size:.75rem}

/* Gövde */
.card-psych .body{padding:.9rem;display:flex;flex-direction:column;gap:.35rem;flex:1}
.card-psych .name{font-weight:600}
.card-psych .meta{color:#64748b;font-size:.85rem}
.card-psych .meta .chip{background:#f1f5f9;border:1px solid rgba(0,0,0,.06);border-radius:9999px;padding:.1rem .5rem}
.card-psych .price{font-weight:600;margin-top:auto}

/* Admin aksiyonları – hover’da belirginleşsin */
.card-psych .admin-actions{display:flex;gap:.4rem;margin-top:.5rem;opacity:0;transition:opacity .15s}
.card-psych:hover .admin-actions{opacity:1}

/* Dark */
[data-bs-theme="dark"] .card-psych{border-color:rgba(255,255,255,.08)}
[data-bs-theme="dark"] .card-psych .meta{color:#94a3b8}
[data-bs-theme="dark"] .card-psych .meta .chip{background:#0b1325;border-color:rgba(255,255,255,.08)}

/* ---- Accessible Tag (Rozet) ---- */
.tags { display:flex; flex-wrap:wrap; gap:.5rem; row-gap:.6rem; }

.tag {
  display:inline-flex; align-items:center; gap:.4rem;
  font-size:.925rem; /* ~15px */
  line-height:1; font-weight:600;
  padding:.5rem .75rem; /* dokunmatik alan */
  border-radius:999px; border:1px solid transparent;
  letter-spacing:.2px; user-select:none;
  text-decoration:none; white-space:nowrap;
}

/* Yüksek kontrastlı renk seti */
.tag--engineer { background:#0B5ED7; color:#fff; }       /* mavi */
.tag--author   { background:#198754; color:#fff; }       /* yeşil */
.tag--founder  { background:#6C2BD9; color:#fff; }       /* mor */

/* Hover/Focus (klavye erişilebilir) */
.tag:focus-visible { outline:3px solid #ffd166; outline-offset:2px; }
.tag:hover { filter: brightness(1.05); }

/* Karanlık tema uyumu */
@media (prefers-color-scheme: dark) {
  .tag--engineer { background:#3A86FF; }
  .tag--author   { background:#2BB673; }
  .tag--founder  { background:#8E5CF6; }
}

/* Küçük ekranlarda satır sonu kırılması daha rahat */
@media (max-width:480px){
  .tag { font-size:1rem; padding:.55rem .85rem; }
}

/* === Kullanıcı Paneli Grid (içeriğe göre yükseklik) === */
.panel-grid{
  display:grid;
  grid-template-columns: 280px 1fr;          /* Sol Profil + Orta içerik */
  grid-auto-rows: min-content;               /* Satır yükseklikleri içeriğe göre */
  gap: 16px;
  align-items:start;
}

/* Kartların sabit yüksekliklerini iptal et */
.panel-grid .card,
.panel-grid .profile-card,
.panel-grid .quick-actions,
.panel-grid .content-body{
  height:auto !important;
  min-height:auto !important;
}

/* Alt bloklar üst satırı takiben gelsin */
.panel-bottom{ grid-column: 1 / -1; }        /* tüm genişlik */

/* Panelde kartlar içeriğe göre uzasın */
.col-lg-4 .card,
.col-lg-8 .card { height:auto !important; min-height:auto !important; }

/* içerik nefes alsın */
.container-lg, .container-xl {
  padding-bottom: 2rem;
}

/* kart başlık/çizgi aralıkları */
.card { border-radius: 14px; }

/* tabloda sayıları sağa hizala */
.table td:nth-child(2),
.table td:nth-child(3),
.table td:nth-child(4),
.table th:nth-child(2),
.table th:nth-child(3),
.table th:nth-child(4) {
  text-align: right;
}

/* 'Ödeme Yap' butonu için üst boşluk */
.pay-actions { margin-top: .75rem; }

/* === Kadın El Emeği – kompakt grid === */
/* Eskisi: #products-grid.shop-grid { ... } */
#products-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px)) !important;
  gap: 1.1rem !important;
  justify-content: center;
  align-content: start;
  margin-inline: auto;
}

/* Kart ölçüsü ve görünümü */
.product-card{
  width: 100%;
  max-width: 320px;               /* kart asla sonsuza kadar uzamasın */
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Kapak daha konsantre: sabit oran + makul yükseklik */
.product-thumb{
  aspect-ratio: 4 / 3;
  background: #f4f6fb;
}
.product-thumb img{
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Kart içi tipografi biraz sıkı */
.product-card .card-body{ padding: .9rem .95rem 1rem; display:flex; flex-direction:column; gap:.45rem; }
.product-title{ font-size: 1rem; font-weight: 700; margin: 0; }
.product-desc{ font-size: .9rem; line-height: 1.35; margin: 0; }

/* Aksiyonlar tek satır, taşma yok */
.product-actions{ display: inline-flex; align-items: center; gap: .4rem; }
.product-actions form{ margin: 0; }

@media (max-width: 576px){
  #products-grid.shop-grid{ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important; gap: .9rem !important; }
}

/* ==== Kadın El Emeği – temiz grid ve kartlar ==== */

/* Sayfa içi maksimum genişlik & nefes */
.shop-page { max-width: 1200px; margin-inline: auto; padding: 0 12px 24px; }

/* Üst araç çubuğu ve arama */
.shop-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin: 12px 0 10px;
}
.shop-search{ margin: 6px 0 8px; }

/* Grid — her zaman ortalı ve dengeli */
#products-grid,
.shop-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px)) !important;
  gap: 1.1rem !important;
  justify-content: center;   /* tek/az ürün varsa bile ortala */
  align-content: start;
}

/* Kart */
.product-card{
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover{ transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.07); }

/* Kapak */
.product-thumb{ aspect-ratio: 4 / 3; background: #f4f6fb; }
.product-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

/* İçerik */
.product-card .card-body{ padding: .9rem .95rem 1rem; display:flex; flex-direction:column; gap:.45rem; }
.product-title{ font-size: 1rem; font-weight: 700; }
.product-desc{ font-size: .9rem; line-height: 1.35; }

/* Fiyat */
.price .amount{ font-weight: 700; font-size: 1.05rem; }
.price .currency{ font-size: .9rem; opacity: .8; margin-left: .1rem; }

/* Aksiyonlar tek satır */
.product-actions{ display: inline-flex; align-items: center; gap: .4rem; }
.product-actions form{ margin: 0; }

/* Küçük ekran: daha kompakt kart genişliği */
@media (max-width: 576px){
  #products-grid,
  .shop-grid{
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: .9rem !important;
  }
}

/* ==== Kadın El Emeği – kartları toparla (kompakt & tok) ==== */

/* Grid aynı kalsın; kartları ortaya diziyoruz */
#products-grid,
.shop-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill, minmax(250px, 300px))!important;
  gap:1.1rem!important;
  justify-content:center;
  align-content:start;
}

/* Kart: daha kompakt, daha tok gölge ve net kenar */
.product-card{
  width:100%;
  max-width:300px;                 /* hantal büyümesin */
  border-radius:12px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.product-card:hover{
  transform:translateY(-2px);
  border-color: rgba(13,110,253,.22);
  box-shadow:0 14px 30px rgba(13,110,253,.12);
}

/* Kapak: sabit yükseklik ver, “boşluk” hissini al */
.product-thumb{
  height:200px;                    /* aspect-ratio yerine net yükseklik */
  background:#f2f4f9;
}
.product-thumb img{
  width:100%; height:100%; object-fit:cover; display:block;
}

/* Gövde: sıkı tipografi + hafif ayıraç */
.product-card .card-body{
  padding:.85rem .9rem .95rem;
  display:flex; flex-direction:column; gap:.4rem;
  border-top:1px solid rgba(0,0,0,.04);
}

/* Başlık & açıklama: sık ve okunur */
.product-title{ font-size:.98rem; font-weight:700; letter-spacing:.1px; margin:0; }
.product-desc{  font-size:.87rem; line-height:1.35; color:#6b7280; margin:0; }

/* Fiyat belirgin */
.price .amount{ font-weight:800; font-size:1.06rem; }

/* Aksiyonlar: tek satır, daha küçük yastık */
.product-actions{ display:inline-flex; align-items:center; gap:.4rem; }
.product-actions .btn{ padding:.34rem .6rem; border-radius:8px; }
.product-actions .btn-outline-primary{ border-color:#d6e3ff; }

/* Küçük ekranlarda biraz daha sıkıştır */
@media (max-width:576px){
  .product-card{ max-width:270px; }
  .product-thumb{ height:180px; }
  #products-grid, .shop-grid{
    grid-template-columns:repeat(auto-fill, minmax(220px, 1fr))!important;
    gap:.9rem!important;
  }
}


.product-actions .btn{ line-height:1.1; padding:.36rem .62rem; }

.product-title{ display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }

/* === Ürünlerim – grid ve kart === */
.my-products-page .shop-toolbar{
  display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 12px;
}

#my-products{
  display:grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px)) !important;
  gap: 1.1rem !important;
  justify-content:center;
  align-content:start;
  margin-inline:auto;
}

/* Kart, kapak ve rozetler (shop ile uyumlu) */
.owner-card{ border:1px solid rgba(0,0,0,.06); border-radius:14px; box-shadow:0 4px 16px rgba(0,0,0,.04); }
.owner-card .product-thumb{ aspect-ratio:4/3; background:#f4f6fb; position:relative; overflow:hidden; }
.owner-card .product-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.status-badge{
  position:absolute; top:.6rem; left:.6rem; padding:.28rem .55rem;
  border-radius:999px; font-size:.75rem; font-weight:600; color:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
}
.status-badge.is-approved{ background:#16a34a; }
.status-badge.is-pending { background:#f59e0b; }
.status-badge.is-rejected{ background:#ef4444; }

.owner-card .card-body{ padding:.9rem .95rem 1rem; display:flex; flex-direction:column; gap:.45rem; }
.product-title{ font-size:1rem; font-weight:700; margin:0; }
.product-desc{ font-size:.9rem; line-height:1.35; margin:0; }

/* Aksiyonlar kompakt ve tek satır */
.owner-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; justify-content:flex-end; }
.owner-actions .btn{ white-space:nowrap; }

/* Mini form (stok/fiyat) */
.owner-actions .mini-form{ display:inline-flex; align-items:center; gap:.35rem; }
.owner-actions .mini-form .form-control{ width:84px; padding:.2rem .4rem; }

/* büyük ekranlarda bir tık daha sık grid */
@media (min-width:1400px){
  #my-products{ grid-template-columns:repeat(auto-fill,minmax(260px, 1fr)) !important; }
}

/* === Ürün Detay (clean layout) === */
.prod-wrap{max-width:1100px;margin:0 auto;padding-bottom:24px;}
.prod{
  display:grid; gap:20px;
  grid-template-columns: 1fr;
}
@media (min-width:992px){
  .prod{ grid-template-columns: 520px 1fr; }
  .prod .gallery{ position: sticky; top: 84px; }
}
.gallery .frame{
  border-radius:16px; overflow:hidden;
  background:linear-gradient(135deg,#f6f8ff,#eef2f8);
  border:1px solid #eef2f7;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}
.gallery .frame .ratio{ width:100%; }
.gallery img{ width:100%; height:100%; object-fit:cover; display:block; }

.prod-title{ margin-bottom:.35rem; font-weight:800; letter-spacing:.2px; }
.prod-meta{ color:#6b7280; font-size:.925rem; }
.prod-price{ margin:.35rem 0 1rem; }
.prod-price .amount{ font-weight:800; font-size:clamp(1.4rem, 1vw + 1.2rem, 1.9rem); }
.prod-price .currency{ opacity:.8; margin-left:.1rem; }

.stock-badge{ font-size:.75rem; font-weight:700; border-radius:999px; padding:.25rem .55rem; }
.stock-ok{ background:#dcfce7; color:#166534; border:1px solid #bbf7d0; }
.stock-low{ background:#fef9c3; color:#854d0e; border:1px solid #fde68a; }
.stock-out{ background:#fee2e2; color:#991b1b; border:1px solid #fecaca; }

.qty-group .form-control{ max-width:110px; text-align:center; }
.prod-actions{ display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.prod-admin{ display:flex; gap:.5rem; margin:.5rem 0 1rem; }
.prod-desc{ color:#475569; line-height:1.55; }

/* Ürün detay – kompakt */
.prod { grid-template-columns: 420px 1fr; gap: 16px; } /* 520px → 420px */
.gallery .frame { border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.gallery .frame .ratio { aspect-ratio: 3/2; }          /* 4:3 yerine 3:2, daha sığ */
.prod-title { margin-bottom: .25rem; font-size: clamp(1.1rem, .8vw + .95rem, 1.45rem); }
.prod-meta  { font-size: .9rem; }
.prod-price { margin: .25rem 0 .75rem; }
.prod-price .amount { font-size: clamp(1.15rem, .85vw + 1rem, 1.5rem); }
.stock-badge { padding: .2rem .5rem; font-size: .72rem; }

/* Buton & adet alanı daha sıkı */
.qty-group .btn { padding: .32rem .55rem; }
.qty-group .form-control { max-width: 90px; height: 36px; font-size: .95rem; }
.prod-actions { gap: .4rem; }
.prod-actions .btn { padding: .42rem .7rem; }

/* Büyük ekranın altında otomatik daha küçük olsun */
@media (max-width: 1200px){
  .prod { grid-template-columns: 380px 1fr; }
}

/* --- Reset page polish --- */
.auth-wrap{
  min-height: calc(100dvh - 120px);
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.04));
}

.auth-card{
  width:100%; max-width:460px;
  background:#fff;
  border:1px solid rgba(0,0,0,0.06);
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  padding:28px;
}

.auth-title{
  margin:0 0 6px; font-size:22px; font-weight:700;
}

.auth-subtitle{
  margin:0 0 18px; color:#666; font-size:14px;
}

.form-row{ margin-bottom:16px; }
.form-row label{ display:block; font-weight:600; margin-bottom:8px; }
.hint{ color:#888; font-size:12px; }

.pw-field{
  position:relative; display:flex; align-items:center;
}
.pw-field input{
  width:100%;
  padding:12px 42px 12px 12px;
  border:1px solid #dcdcdc; border-radius:12px; outline:none;
  font-size:14px; transition:border .15s ease, box-shadow .15s ease;
}
.pw-field input:focus{
  border-color:#5b8cff;
  box-shadow:0 0 0 3px rgba(91,140,255,0.2);
}

.pw-toggle{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  border:none; background:transparent; cursor:pointer; padding:6px 8px;
  font-size:16px; line-height:1; opacity:.7; transition:opacity .15s;
}
.pw-toggle:hover{ opacity:1; }

.btn-primary{
  display:inline-block; padding:12px 16px; border:0; border-radius:12px;
  background:#2f66ff; color:#fff; font-weight:700; cursor:pointer;
  transition:transform .05s ease, filter .15s ease;
}
.btn-primary:hover{ filter:brightness(1.05); }
.btn-primary:active{ transform:translateY(1px); }

.w-100{ width:100%; }

/* ============ GLOBAL RESPONSIVE LAYER ============ */

/* 1) Akışkan layout temel kuralları */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
img, video, canvas, svg { max-width: 100%; height: auto; display: block; }
.container, .container-lg, .container-xl, .shop-page, .prod-wrap {
  width: min(100% - 24px, 1200px);
  margin-inline: auto;
}

/* 2) Tipografi akışkan ölçek */
:root{
  --step--1: clamp(.9rem, .2vw + .85rem, 1rem);
  --step-0 : clamp(1rem, .6vw + .95rem, 1.1rem);
  --step-1 : clamp(1.25rem, 1.2vw + 1rem, 1.6rem);
  --step-2 : clamp(1.5rem, 1.8vw + 1.1rem, 2rem);
}
body { font-size: var(--step-0); }
h1 { font-size: var(--step-2); }
h2 { font-size: var(--step-1); }
small, .hint { font-size: var(--step--1); }

/* 3) Navbar: mobil kırılım */
.navbar { position: sticky; top: 0; z-index: 100; }
.navbar .nav-toggle{
  display: none; background:#ffcce0; border:0; border-radius:8px;
  padding:8px 10px; font-weight:700; cursor:pointer;
}
/* Bootstrap navbar: sadece .navbar-nav'u hedefle */
.navbar .navbar-nav{ display:flex; gap:20px; }
@media (max-width: 768px){
  .navbar{ padding:8px 0; }
  /* Bootstrap collapse kullanıldığı için .navbar-nav görünürlüğünü JS yönetir;
     biz sadece dikey dizeceğiz. */
  .navbar .navbar-nav{
    flex-direction:column;
    gap:8px;
    padding:10px 0;
    margin:0;
  }
  .navbar .nav-link{ padding:10px 12px; border-radius:8px; }
}


/* 4) Grid normalizasyonu (tüm kart sayfaları) */
.grid, .products-grid, .shop-grid, #products-grid, #my-products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 1rem !important;
  justify-content: center;
}
@media (min-width: 992px){
  .grid, .products-grid, .shop-grid, #products-grid, #my-products {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  }
}

/* 5) Form ve butonlar */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%; max-width: 100%;
}
.button, .btn, #send-button { touch-action: manipulation; }

/* 6) Chat/therapy ortak: yükseklik ve yönelim uyarlaması */
#chat-log { height: 48vh; min-height: 300px; max-height: 66vh; }
.input-area { display:flex; gap:10px; align-items:flex-end; }
.input-area #user-input { flex:1; }
@media (max-width: 420px){
  .input-area { flex-direction: column; align-items: stretch; }
  #send-button { width: 100%; }
}

/* 7) Kartlar: çıtasız, eş yükseklik */
.card, .product-card, .owner-card, .card-psych {
  display:flex; flex-direction:column; height: 100%;
}

/* 8) Tablo taşması */
.table-wrap { width:100%; overflow-x:auto; }
.table-wrap table { min-width: 640px; }

/* 9) Sayfa başlık blokları – mobilde tek sütun */
.header, .header-container, .shop-toolbar, .prod-actions, .prod-admin {
  display:flex; flex-wrap:wrap; gap:.6rem; align-items:center;
  justify-content: space-between;
}
@media (max-width: 768px){
  .header, .header-container { flex-direction: column; align-items: flex-start; }
  .stats-link { width:100%; text-align:center; }
}

/* 10) Karanlık tema uyumu – yeni eklerin nötr halleri */
@media (prefers-color-scheme: dark){
  .navbar ul { background: #0b1220; border-color: rgba(255,255,255,.1); }
  .table-wrap { scrollbar-color: #666 transparent; }
}

/* 11) Erişilebilir odak ve dokunma alanı */
a, button { outline-offset: 2px; }
@media (pointer: coarse){ .btn, .tag { padding: .6rem .9rem; } }
 
/* Eğer bazı sayfalarda nav altına ikinci bir admin şeridi basılıyorsa gizle */
.admin-toolbar,
.admin-actions,
.admin-actions-bar{ display:none !important; }

/* Navbar içeriği ile tekrar eden sayfa içi admin şeridini kapat */
.admin-inline-quickbar{ display:none !important; }