/* KentPazarı — sıfır komisyonlu vitrin · mobile-first / PWA-ready */
:root {
  --green-900: #1a3d2e;
  --green-800: #234d3a;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --green-500: #52b788;
  --green-100: #d8f3dc;
  --green-50: #f0faf4;
  --cream: #faf8f3;
  --cream-dark: #f0ebe0;
  --sand: #e8e0d0;
  --text: #1a2e24;
  --text-muted: #5a6e64;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(26, 61, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 61, 46, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1440px;
  --tap: 44px;
  --bottom-nav-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 0.5rem);
  font-size: 16px;
}

@media (min-width: 769px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0.75rem;
}
@media (min-width: 480px) {
  .container { padding: 0 1rem; }
}
@media (min-width: 1200px) {
  .container { padding: 0 1.25rem; }
}

/* —— Ad bar (admin-managed: kayan / sabit / resim) —— */
.ad-bar {
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #c77dff, #ff6b6b);
  background-size: 300% 100%;
  animation: ad-bar-festive-bg 8s linear infinite;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  padding: 0.42rem 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  max-height: none;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
@media (min-width: 769px) {
  .ad-bar {
    font-size: 1.15rem;
    padding: 0.55rem 1rem;
  }
}
.ad-bar--static {
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 769px) {
  .ad-bar--static { white-space: normal; }
}
.ad-bar--static span,
.ad-bar-fallback { opacity: 1; }
.ad-bar--marquee {
  padding: 0;
  max-height: none;
  display: block;
}
.ad-bar-marquee {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.42rem 0;
}
@media (min-width: 769px) {
  .ad-bar-marquee { padding: 0.55rem 0; }
}
.ad-bar-marquee-track {
  display: flex;
  width: max-content;
  animation: ad-bar-marquee 28s linear infinite;
  will-change: transform;
}
.ad-bar-marquee-item {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0 1.75rem;
  font-size: 1.05em;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #fff 0%, #ffe566 18%, #fff 36%, #a8ff78 54%, #fff 72%, #ff9ff3 90%, #fff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: ad-bar-festive-text 3.5s linear infinite;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}
.ad-bar-marquee-item::before,
.ad-bar-marquee-item::after {
  content: "✦ ";
  -webkit-text-fill-color: #fff;
  color: #fff;
  opacity: 0.95;
}
@media (prefers-reduced-motion: reduce) {
  .ad-bar,
  .ad-bar-marquee-track,
  .ad-bar-marquee-item {
    animation: none;
  }
  .ad-bar-marquee-track {
    width: 100%;
    justify-content: center;
  }
  .ad-bar-marquee-item[aria-hidden="true"] { display: none; }
}
@keyframes ad-bar-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes ad-bar-festive-bg {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes ad-bar-festive-text {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
.ad-bar--image {
  padding: 0;
  max-height: none;
  line-height: 0;
  background: #fff8e1;
}
.ad-bar-img {
  display: block;
  width: 100%;
  max-height: 120px;
  height: auto;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 769px) {
  .ad-bar-img { max-height: 90px; }
}

/* —— Header (sticky; primary on desktop) —— */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(26, 61, 46, 0.04);
  padding-top: var(--safe-top);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0 0.25rem;
  min-height: 0;
}
.ilan-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
  margin-right: auto;
  margin-left: 0.15rem;
  min-width: 0;
  line-height: 1.15;
}
.ilan-cta-main {
  color: #1b4332;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.ilan-cta-main:hover { color: #2d6a4f; }
.ilan-cta-sub {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.ilan-cta-sub a {
  color: #8a6114;
  text-decoration: none;
}
.ilan-cta-sub a:hover { text-decoration: underline; }
.ilan-cta-ve { color: #8d887c; font-weight: 600; }
@media (max-width: 720px) {
  .ilan-cta-main { font-size: 0.74rem; }
  .ilan-cta-sub { font-size: 0.68rem; }
}
@media (max-width: 400px) {
  .ilan-cta-sub { display: none !important; }
}

.logo {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.45rem;
  align-items: center;
  color: var(--green-900);
  flex-shrink: 0;
}
.logo-mark {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: left center;
  border-radius: 9px;
  display: block;
}
.logo-name { grid-column: 2; grid-row: 1; }
.logo-tag { grid-column: 2; grid-row: 2; }
.logo:hover { color: var(--green-800); }
.logo-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
@media (min-width: 480px) {
  .logo-name { font-size: 1.12rem; }
}
.logo-tag {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-600);
}
@media (min-width: 480px) {
  .logo-tag { font-size: 0.62rem; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-actions > a {
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
  min-height: 0;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--green-600);
  background: transparent !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.header-actions > a.cta {
  margin-left: 0.15rem;
  background: transparent !important;
  color: var(--green-700) !important;
  border-color: var(--green-600) !important;
}
.header-actions > a:hover,
.header-actions > a:focus-visible {
  background: #1b4332 !important;
  border-color: #1b4332 !important;
  color: #ffffff !important;
  outline: none;
}
.header-actions > a:active {
  background: #081c15 !important;
  border-color: #081c15 !important;
  color: #ffffff !important;
}
.header-actions > a.header-muhasebe {
  background: #fff8e6 !important;
  color: #5c3d00 !important;
  border-color: #f0c36d !important;
  font-weight: 650;
}
.header-actions > a.header-muhasebe:hover,
.header-actions > a.header-muhasebe:focus-visible {
  background: #ffe8b0 !important;
  border-color: #e0a93a !important;
  color: #3d2800 !important;
}

.auth-with-muhasebe {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 840px) {
  .auth-with-muhasebe {
    grid-template-columns: minmax(220px, 0.95fr) minmax(280px, 1.15fr);
    gap: 1.25rem;
    align-items: start;
  }
}
.muhasebe-promo {
  background: linear-gradient(160deg, #fff8e6 0%, #f0faf4 100%);
  border: 1px solid rgba(45, 106, 79, 0.22);
  border-radius: var(--radius, 14px);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.muhasebe-promo h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--green-900, #1b4332);
}
.muhasebe-promo p {
  margin: 0 0 0.95rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-muted, #4b5563);
}
.muhasebe-promo .btn {
  white-space: normal;
  line-height: 1.25;
  padding: 0.7rem 0.9rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  min-width: 36px;
  min-height: 36px;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  color: var(--green-800);
  font-size: 1.1rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

/* —— Search row —— */
.header-search {
  padding: 0 0 0.3rem;
  position: relative;
  z-index: 115;
}
.search-wrap {
  position: relative;
  width: 100%;
  z-index: 115;
}
.search-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
}
.search-form input[type="search"] {
  flex: 1;
  width: 100%;
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  font-size: 16px; /* prevent iOS zoom */
  border: 1px solid var(--sand);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--cream);
  color: var(--text);
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.2);
}
.search-form input[type="search"]::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}
.search-form button[type="submit"] {
  background: var(--green-700);
  color: var(--white);
  border: 1px solid var(--green-700);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.35rem 0.85rem;
  min-height: 36px;
  min-width: 3.5rem;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.search-form button[type="submit"]:hover,
.search-form button[type="submit"]:focus-visible {
  background: var(--green-800);
  border-color: var(--green-800);
  outline: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 130;
  max-height: min(50vh, 360px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
}
.search-results.open {
  display: block;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  min-height: var(--tap);
  color: inherit;
  border-bottom: 1px solid var(--cream-dark);
  transition: background 0.12s;
}
.search-item:hover,
.search-item:focus-visible {
  background: var(--green-50);
  color: inherit;
  outline: none;
}
.search-item:last-of-type { border-bottom: none; }
.search-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}
.search-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.search-name {
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--green-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-seller {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.search-all {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  min-height: var(--tap);
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--green-50);
  color: var(--green-800);
  border-top: 1px solid var(--sand);
  border-radius: 0 0 var(--radius) var(--radius);
  position: sticky;
  bottom: 0;
}
.search-all:hover,
.search-all:focus-visible {
  background: var(--green-100);
  color: var(--green-900);
  outline: none;
}
.search-empty {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}
.search-list-empty {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}


/* —— Category nav (under search) —— */
.cat-nav {
  padding: 0 0 0.55rem;
  margin: 0 -0.75rem;
  box-sizing: border-box;
  border-top: 1px solid transparent;
}
@media (min-width: 480px) {
  .cat-nav { margin: 0 -1rem; }
}
.cat-nav-scroll {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.15rem 1rem 0.1rem;
}
@media (min-width: 480px) {
  .cat-nav-scroll { padding-left: 1.25rem; padding-right: 1.25rem; }
}
.cat-nav-scroll::-webkit-scrollbar { display: none; height: 0; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 0.32rem 0.7rem;
  min-height: 32px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--sand);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.cat-pill:hover,
.cat-pill:focus-visible {
  background: var(--green-50);
  color: var(--green-800);
  border-color: var(--green-500);
  outline: none;
}
.cat-pill.active {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.22);
}
.cat-pill.active:hover,
.cat-pill.active:focus-visible {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}
.cat-ico {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}
.cat-pill.cat-more {
  background: var(--white);
  border-style: dashed;
  color: var(--green-700);
}
.cat-pill.cat-more:hover,
.cat-pill.cat-more:focus-visible {
  background: var(--green-50);
  border-style: solid;
}

/* Category flyouts (Moda, Emlak, …) — fixed so the horizontal cat scroller does not clip them */
.cat-drop {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  scroll-snap-align: start;
  /* Full pill hit area — hover anywhere on the category opens flyout */
  align-self: stretch;
}
.cat-drop .cat-pill {
  height: 100%;
}
.cat-caret {
  width: 0;
  height: 0;
  margin-left: 0.12rem;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.75;
  flex-shrink: 0;
}
.cat-drop.is-open .cat-caret {
  transform: rotate(180deg);
}
.cat-flyout {
  position: fixed;
  /* Always below category bar — never open upward over Giriş/Üye header */
  top: auto;
  bottom: auto;
  z-index: 160;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  min-width: 220px;
  max-width: min(96vw, 520px);
  max-height: min(70vh, calc(100vh - 8rem));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.4rem;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  transform: none;
  transform-origin: top left;
}
/* Invisible bridge: pill → panel arası kopukluk olmasın */
.cat-flyout::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: -28px;
  bottom: auto;
  height: 28px;
  pointer-events: auto;
}
.cat-flyout[hidden] { display: none !important; }

/* Pasif kategoriler (yasal izin bekleniyor) */
.cat-drop.is-pending .cat-pill,
.cat-pill.is-pending {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f3f1ec;
  color: var(--text-muted);
  border-color: var(--sand);
  box-shadow: none;
}
.cat-drop.is-pending .cat-pill:hover,
.cat-drop.is-pending .cat-pill:focus-visible,
.cat-pill.is-pending:hover,
.cat-pill.is-pending:focus-visible {
  background: #eeebe4;
  color: var(--text-muted);
  border-color: var(--sand);
}
.cat-drop.is-pending .cat-caret {
  opacity: 0.35;
}
.cat-drop.is-pending .cat-flyout {
  display: none !important;
}
.cat-pending-tip[hidden] {
  display: none !important;
}
.cat-pending-tip {
  position: fixed;
  z-index: 165;
  max-width: min(90vw, 280px);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #f1b0b0;
  background: #fff5f5;
  color: #c92a2a;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
}
.cat-flyout-col {
  display: flex;
  flex-direction: column;
  min-width: 104px;
  padding: 0.1rem;
}
.cat-flyout-col + .cat-flyout-col {
  border-left: 1px solid var(--sand);
}
.cat-sub-head,
.cat-sub-link {
  display: block;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.cat-sub-head {
  padding: 0.38rem 0.6rem 0.2rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--green-800);
}
.cat-sub-link {
  padding: 0.22rem 0.6rem 0.22rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}
.cat-sub-head:hover,
.cat-sub-head:focus-visible,
.cat-sub-link:hover,
.cat-sub-link:focus-visible {
  background: var(--green-50);
  color: var(--green-800);
  outline: none;
}
.cat-sub-head.active,
.cat-sub-link.active {
  background: var(--green-50);
  color: var(--green-700);
}

.cat-empty-note {
  background: var(--green-50);
  border: 1px dashed var(--green-500);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--green-800);
}
.cat-empty-panel {
  background: var(--green-50);
  border: 1px dashed var(--green-500);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}
.cat-empty-panel p {
  margin: 0 0 0.9rem;
  color: var(--green-800);
  font-size: 1.05rem;
  font-weight: 600;
}
.cat-empty-panel .btn {
  min-width: min(100%, 16rem);
}

/* Desktop: wrap + subtle dividers between pills */
@media (min-width: 900px) {
  .cat-nav {
    margin: 0;
  }
  .cat-nav-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 0;
    padding: 0.2rem 0 0.05rem;
    row-gap: 0.35rem;
  }
  .cat-pill {
    border-radius: 0;
    background: transparent;
    border: none;
    border-right: 1px solid var(--sand);
    padding: 0.28rem 0.75rem;
    min-height: 28px;
    font-size: 0.8rem;
  }
  .cat-nav-scroll > .cat-pill:first-child { padding-left: 0; }
  .cat-nav-scroll > .cat-pill:last-child {
    border-right: none;
    padding-right: 0;
  }
  .cat-pill:hover,
  .cat-pill:focus-visible {
    background: transparent;
    color: var(--green-700);
    border-color: transparent;
    border-right-color: var(--sand);
  }
  .cat-nav-scroll > .cat-pill:last-child:hover,
  .cat-nav-scroll > .cat-pill:last-child:focus-visible {
    border-right: none;
  }
  .cat-pill.active {
    background: transparent;
    color: var(--green-700);
    border-color: transparent;
    border-right-color: var(--sand);
    box-shadow: none;
    position: relative;
  }
  .cat-pill.active::after {
    content: "";
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0;
    height: 2px;
    background: var(--green-600);
    border-radius: 2px;
  }
  .cat-nav-scroll > .cat-pill:first-child.active::after { left: 0; }
  .cat-nav-scroll > .cat-pill:last-child.active::after { right: 0; }
  .cat-pill.active:hover,
  .cat-pill.active:focus-visible {
    background: transparent;
    color: var(--green-800);
  }
  .cat-pill.cat-more {
    background: transparent;
    border-style: none;
    border-right: none;
    color: var(--green-700);
  }
}

/* —— Mobile bottom nav —— */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--white);
  border-top: 1px solid var(--sand);
  box-shadow: 0 -4px 20px rgba(26, 61, 46, 0.08);
  padding-bottom: var(--safe-bottom);
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
}
.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: var(--bottom-nav-h);
  max-width: var(--max);
  margin: 0 auto;
}
.bottom-nav a,
.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: var(--tap);
  padding: 0.35rem 0.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, background 0.15s;
}
.bottom-nav a:hover,
.bottom-nav a:focus-visible,
.bottom-nav button:hover,
.bottom-nav button:focus-visible {
  color: var(--green-700);
  background: var(--green-50);
  outline: none;
}
.bottom-nav a.active {
  color: var(--green-700);
}
.bottom-nav .bn-icon {
  position: relative;
  font-size: 1.25rem;
  line-height: 1;
  display: block;
}
.bottom-nav-cart-badge {
  position: absolute;
  top: -0.4rem;
  right: -0.8rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--white);
}
.bottom-nav-cart-badge[hidden] { display: none !important; }
@media (max-width: 768px) {
  .bottom-nav { display: block; }
}

/* —— Hero —— */
.hero {
  background:
    linear-gradient(135deg, var(--green-50) 0%, var(--cream) 50%, var(--cream-dark) 100%);
  padding: 2rem 0 1.75rem;
  border-bottom: 1px solid var(--sand);
}
@media (min-width: 769px) {
  .hero { padding: 3.5rem 0 3rem; }
}
.hero-inner {
  display: grid;
  gap: 1.25rem;
  max-width: 640px;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  line-height: 1.35;
}
.badge-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-600);
}
.hero h1 {
  font-size: clamp(1.55rem, 5vw, 2.5rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--green-900);
}
.hero h1 em {
  font-style: normal;
  color: var(--green-600);
}
.hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 34em;
}
@media (min-width: 769px) {
  .hero p { font-size: 1.05rem; }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.hero-actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 10rem);
  min-height: var(--tap);
}

/* —— Buttons —— */
a.btn { text-decoration: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  min-height: var(--tap);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.25);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green-800);
  color: var(--white);
  outline: none;
}
.btn-outline {
  background: var(--white);
  color: var(--green-800);
  border: 1.5px solid var(--green-600);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--green-50);
  color: var(--green-800);
  outline: none;
}
.btn:disabled,
.btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-block { width: 100%; }

/* —— Sections —— */
.section {
  padding: 2rem 0;
}
@media (min-width: 769px) {
  .section { padding: 3rem 0; }
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.section-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: -0.02em;
}
@media (min-width: 769px) {
  .section-header h2 { font-size: 1.5rem; }
  .section-header { margin-bottom: 1.75rem; }
}
.section-header a {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

/* —— Product grid: 2 cols phone, 1 very small optional —— */
.product-grid,
.similar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 360px) {
  .product-grid,
  .similar-grid { grid-template-columns: 1fr; }
}
@media (min-width: 640px) {
  .product-grid,
  .similar-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.35rem;
  }
}
.similar-products {
  margin: 1.75rem 0 0.5rem;
}
.similar-products h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  color: var(--green-900);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(232, 224, 208, 0.8);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
}
.product-card:focus-within {
  box-shadow: var(--shadow-lg);
}
.product-card a.card-link {
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card a.card-link:hover,
.product-card a.card-link:focus-visible {
  color: inherit;
  outline: none;
}

.product-img {
  aspect-ratio: 1 / 1;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.product-img .emoji {
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}
.product-img .zero-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}
.stock-out-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  background: #9b2335;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
}
.card-actions .btn.is-sold-out,
.detail-actions .btn.is-sold-out {
  background: #e7ece9;
  color: #5c675f;
  border-color: #c5d0cb;
  cursor: not-allowed;
}
@media (min-width: 640px) {
  .product-img .zero-badge {
    top: 0.75rem;
    left: 0.75rem;
  }
}

.zero-badge {
  display: inline-block;
  max-width: calc(100% - 1rem);
  background: var(--green-700);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  white-space: normal;
}
@media (min-width: 640px) {
  .zero-badge { font-size: 0.68rem; padding: 0.28rem 0.55rem; }
}

.product-card:has(> .zero-badge--ilan) { position: relative; }
.product-card > .zero-badge--ilan {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 3;
}
@media (min-width: 640px) {
  .product-card > .zero-badge--ilan { top: 0.75rem; left: 0.75rem; }
}
a.zero-badge.zero-badge--ilan {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: calc(100% - 24px);
  background: #f59e0b;
  color: #1f2937;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 6px;
  padding: 0.28rem 0.5rem;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.18);
  transition: background .22s ease, color .22s ease;
}
.zero-badge__plus {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.12);
  font-size: 12px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}
.zero-badge__txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
a.zero-badge.zero-badge--ilan:hover,
a.zero-badge.zero-badge--ilan:focus-visible {
  background: #d97706;
  color: #1f2937;
  outline: none;
}
@media (min-width: 640px) {
  a.zero-badge.zero-badge--ilan { font-size: 0.68rem; padding: 0.28rem 0.55rem; }
}

.product-body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}
@media (min-width: 640px) {
  .product-body { padding: 1.1rem 1.15rem 1.25rem; gap: 0.35rem; }
}
.product-seller {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 640px) {
  .product-seller { font-size: 0.78rem; }
}
.product-name {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--green-900);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 640px) {
  .product-name { font-size: 1.05rem; }
}
.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-700);
  margin-top: auto;
  padding-top: 0.4rem;
}
@media (min-width: 640px) {
  .product-price { font-size: 1.15rem; padding-top: 0.5rem; }
}
.product-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* —— Features strip —— */
.features {
  background: var(--white);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  padding: 1.5rem 0;
}
@media (min-width: 769px) {
  .features { padding: 2rem 0; }
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }
}
.feature {
  text-align: center;
  padding: 0.5rem;
}
.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.feature h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 0.25rem;
}
.feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* —— Page header (inner pages) —— */
.page-header {
  padding: 1.35rem 0 0.5rem;
}
@media (min-width: 769px) {
  .page-header { padding: 2rem 0 0.5rem; }
}
.page-header h1 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: -0.02em;
}
.page-header p {
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-size: 0.95rem;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  word-break: break-word;
}
.breadcrumb a {
  color: var(--green-700);
  padding: 0.25rem 0;
  display: inline;
}

/* —— Product detail —— */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 1.5rem 0 3rem;
  }
}
.detail-img {
  aspect-ratio: 1;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(4rem, 18vw, 6rem);
  border: 1px solid var(--sand);
  position: relative;
  overflow: hidden;
}
.detail-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.detail-img .zero-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
}
.detail-info h1 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.detail-seller {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.detail-seller strong { color: var(--green-800); }
.detail-seller a.store-name-link {
  color: var(--green-800);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.detail-seller a.store-name-link:hover { color: var(--green-700); }
.seller-kind-note {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #9ca3af;
}
.detail-seller strong .seller-kind-note {
  color: #9ca3af;
  font-weight: 500;
}
.detail-price {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 750;
  color: var(--green-700);
  margin-bottom: 0.35rem;
}
.ambar-badge {
  display: inline-block;
  margin: 0.35rem 0 0;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #fff4e5;
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}
.product-price-kind,
.detail-price-kicker {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted, #6b7280);
  line-height: 1.2;
}
.detail-price-kicker { margin-bottom: 0.15rem; }
.product-ambar-price,
.ambar-cargo-price {
  margin: 0.2rem 0 0;
  font-weight: 800;
  color: #9a3412;
  line-height: 1.3;
}
.product-ambar-price { font-size: 0.92rem; }
.ambar-cargo-price { font-size: 1.05rem; }
.ambar-notice {
  margin: 0.75rem 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #f0c36d;
  border-radius: 12px;
  background: #fff8eb;
  color: #7c2d12;
  font-size: 0.92rem;
  line-height: 1.45;
}
.ambar-notice-line {
  margin: 0.45rem 0 0;
}
.ambar-notice .btn {
  margin-top: 0.15rem;
}
.detail-note {
  font-size: 0.85rem;
  color: var(--green-600);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.detail-desc {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}
.vehicle-specs {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.vehicle-specs h2 {
  font-size: 1rem;
  margin: 0 0 0.65rem;
}
.vehicle-specs dl {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0;
}
.vehicle-specs dt {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.vehicle-specs dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.eids-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0 0.35rem;
  padding: 0.22rem 0.6rem;
  width: fit-content;
  border-radius: 999px;
  background: #f6f1e4;
  color: #6b5424;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}
.eids-star {
  color: #c4a035;
  font-size: 0.95rem;
  line-height: 1;
}
.vehicle-specs .eids-badge { margin-bottom: 0.35rem; }
.edevlet-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.7rem;
  padding: 0.22rem 0.6rem;
  width: fit-content;
  border-radius: 999px;
  background: #e7f0e4;
  color: #245c32;
  font-size: 0.78rem;
  font-weight: 700;
}
.parcel-chip {
  display: inline-flex;
  margin: 0.1rem 0 0.35rem;
  color: #3d4a3a;
  font-size: 0.78rem;
  font-weight: 700;
}
.ada-parsel {
  margin: 0 0 0.65rem;
  font-weight: 700;
}
.emlak-osm {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 10px;
  margin-top: 0.6rem;
}
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 100%;
}
@media (min-width: 768px) {
  .detail-actions { max-width: 320px; }
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.qty-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.qty-row input {
  width: 80px;
  min-height: var(--tap);
  padding: 0.5rem 0.65rem;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 16px;
}

/* —— Member / forms —— */
.member-layout {
  padding: 1rem 0 2rem;
}
@media (min-width: 769px) {
  .member-layout { padding: 1.5rem 0 3rem; }
}
.tabs {
  display: flex;
  gap: 0.2rem;
  border-bottom: 2px solid var(--sand);
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  min-height: var(--tap);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.tab-btn:hover,
.tab-btn:focus-visible {
  color: var(--green-700);
  outline: none;
}
.tab-btn.active {
  color: var(--green-800);
  border-bottom-color: var(--green-600);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--sand);
  max-width: 480px;
  width: 100%;
}
@media (min-width: 480px) {
  .form-card { padding: 1.75rem; }
}
.form-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 0.35rem;
}
.form-card .form-lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}
.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 0.35rem;
}
.form-group input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text);
  font-size: 16px; /* prevent iOS zoom */
  transition: border-color 0.15s, background 0.15s;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.2);
}
.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.sms-sponsor-note {
  font-weight: 600;
  color: var(--text);
  margin: 0.5rem 0 0.85rem;
}
.form-wide { max-width: 560px; }

.uye-tipi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  border: 0;
  margin: 0 0 1.1rem;
  padding: 0;
  min-width: 0;
}
.uye-tipi legend {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6d7a72;
  padding: 0;
  margin: 0 0 0.15rem;
}
.uye-tipi-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-height: 7.25rem;
  margin: 0;
  padding: 0.95rem 2.6rem 0.9rem 0.95rem;
  border: 1.5px solid #e4ddd2;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(70, 58, 40, 0.05);
}
.uye-tipi-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
}
.uye-tipi-mark {
  position: absolute;
  top: 0.85rem;
  right: 0.75rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1.5px solid #d9d0c4;
  background: #fff;
}
.uye-tipi-card:has(input:checked) {
  border-color: #7a9e7e;
  background: #f4f8f4;
  box-shadow: 0 0 0 3px rgba(122, 158, 126, 0.22);
}
.uye-tipi-card:has(input:checked) .uye-tipi-mark {
  border-color: #7a9e7e;
  background: #7a9e7e;
}
.uye-tipi-card:has(input:checked) .uye-tipi-mark::after {
  content: "";
  position: absolute;
  left: 0.38rem;
  top: 0.18rem;
  width: 0.32rem;
  height: 0.58rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.uye-tipi-card:focus-within {
  outline: 2px solid #c8734f;
  outline-offset: 2px;
}
.uye-tipi-name {
  font-size: 1rem;
  font-weight: 700;
  color: #243028;
}
.uye-tipi-desc {
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 500;
  color: #667068;
}
.form-group > label:has(> input[type="checkbox"]),
.form-group > label:has(> input[type="radio"]) {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
  cursor: pointer;
}
.form-group > label > input[type="checkbox"],
.form-group > label > input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: #7a9e7e;
}
@media (max-width: 520px) {
  .uye-tipi { grid-template-columns: 1fr; }
  .uye-tipi-card { min-height: 0; }
}

/* —— Seller onboarding / belge yükleme —— */
.seller-fieldset {
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.35rem;
  margin: 0 0 1.25rem;
  background: var(--cream);
}
.seller-fieldset legend {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-900);
  padding: 0 0.35rem;
}
.seller-sms { margin-top: 0.65rem; }
.seller-sms-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.seller-sms-row input { flex: 1 1 auto; min-width: 0; }
.seller-sms .btn { margin: 0.35rem 0 0.55rem; }
.seller-sms.is-verified #satici-sms-status {
  color: var(--green-900);
  font-weight: 600;
}
.seller-docs-hint { margin: 0 0 0.85rem; }
.doc-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--sand);
}
.doc-upload:first-of-type { border-top: none; padding-top: 0.25rem; }
.doc-upload-meta {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.doc-upload-title {
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--green-900);
}
.doc-upload-name {
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-all;
}
.doc-upload.has-file .doc-upload-name {
  color: var(--green-800);
  font-weight: 600;
}
.doc-upload-actions {
  flex: 0 0 auto;
}
.doc-pick-btn {
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  min-height: calc(var(--tap) - 4px);
}
.doc-upload.is-invalid {
  background: #fff8f7;
  border-radius: var(--radius-sm);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.seller-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(27, 67, 50, 0.92);
  color: #fff;
  box-sizing: border-box;
  animation: sellerSuccessIn 0.25s ease-out;
}
.seller-success-overlay[hidden] { display: none !important; }
.seller-success-overlay.is-leaving {
  animation: sellerSuccessOut 0.35s ease-in forwards;
}
.seller-success-overlay-inner {
  text-align: center;
  max-width: 28rem;
  width: 100%;
}
.seller-success-check {
  margin: 0 0 0.75rem;
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 700;
  color: #95d5b2;
}
.seller-success-overlay strong {
  display: block;
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  line-height: 1.25;
  margin: 0 0 0.65rem;
  font-weight: 800;
}
.seller-success-sub {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.95;
  line-height: 1.45;
}
.seller-success-ref {
  margin-top: 0.85rem !important;
  color: #d8f3dc !important;
}
@keyframes sellerSuccessIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes sellerSuccessOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
/* eski sınıf (başka sayfa) */
.seller-success {
  background: var(--green-50);
  border: 1.5px solid var(--green-500);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  color: var(--green-900);
}
.seller-success strong { display: block; margin-bottom: 0.35rem; font-size: 1.02rem; }
.seller-success p { margin: 0.25rem 0; font-size: 0.92rem; }
.seller-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--green-800);
}


.placeholder-box {
  background: var(--green-50);
  border: 1.5px dashed var(--green-500);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--green-800);
}
.placeholder-box strong { display: block; margin-bottom: 0.25rem; }

/* —— Auth forms polish —— */
.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}
.check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.check-label input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--green-700);
  flex-shrink: 0;
}
.check-label.check-block {
  display: flex;
  margin-bottom: 1.15rem;
  color: var(--green-900);
  font-weight: 600;
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--green-700);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: auto;
}
.link-btn:hover,
.link-btn:focus-visible {
  color: var(--green-600);
  outline: none;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sand);
}
.social-auth {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.btn-social {
  background: var(--white);
  color: var(--green-900);
  border: 1.5px solid var(--sand);
  font-weight: 600;
  box-shadow: none;
}
.btn-social:hover,
.btn-social:focus-visible {
  background: var(--cream);
  border-color: var(--green-500);
  outline: none;
}
.social-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--sand);
  font-size: 0.75rem;
  font-weight: 700;
  color: #4285f4;
  flex-shrink: 0;
}
.btn-social[data-social="apple"] .social-ico {
  color: #111;
  font-size: 0.95rem;
  border: none;
  background: transparent;
}
.form-demo-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.field-error {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b42318;
}
.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #f04438;
  background: #fff8f7;
}
.form-group input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.18);
}

/* Header logged-in state — account dropdown (Hesabım hesabı menüsü) */
.header-actions [data-auth-cta][hidden],
.header-actions [data-auth-cta][aria-hidden="true"],
.header-actions [data-auth-register][hidden],
.header-actions [data-auth-register][aria-hidden="true"] {
  display: none !important;
}
.header-actions .auth-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 140;
}
.header-actions .auth-menu[hidden] { display: none !important; }
.header-actions .auth-menu-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--green-50);
  color: var(--green-800);
  border: 1px solid var(--green-100);
  font-weight: 650;
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  min-height: 0;
  line-height: 1.2;
  border-radius: 999px;
  cursor: pointer;
  max-width: 9.5rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.header-actions .auth-menu-trigger:hover,
.header-actions .auth-menu-trigger:focus-visible,
.header-actions .auth-menu.open .auth-menu-trigger {
  background: var(--green-100);
  border-color: var(--green-500);
  outline: none;
}
.header-actions .auth-menu-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 7rem;
}
.header-actions .auth-menu-caret {
  font-size: 0.65rem;
  opacity: 0.75;
  flex-shrink: 0;
}
.header-actions .auth-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 15.5rem;
  max-width: min(20rem, calc(100vw - 1.5rem));
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.35rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.header-actions .auth-dropdown[hidden] { display: none !important; }
.header-actions .auth-dropdown a,
.header-actions .auth-dropdown button.auth-dd-logout {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  min-height: var(--tap);
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.header-actions .auth-dropdown a:hover,
.header-actions .auth-dropdown a:focus-visible,
.header-actions .auth-dropdown button.auth-dd-logout:hover,
.header-actions .auth-dropdown button.auth-dd-logout:focus-visible {
  background: var(--green-50);
  color: var(--green-900);
  outline: none;
}
.header-actions .auth-dd-ico {
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.header-actions .auth-dd-logout {
  border-top: 1px solid var(--cream-dark) !important;
  margin-top: 0.2rem;
  padding-top: 0.65rem !important;
  color: #b42318 !important;
  font-weight: 600 !important;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.header-actions .auth-dd-logout:hover,
.header-actions .auth-dd-logout:focus-visible {
  background: #fff5f4 !important;
  color: #912018 !important;
}
.header-actions .auth-logout-btn {
  appearance: none;
  background: transparent;
  color: var(--green-700);
  border: 1px solid var(--green-600);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  min-height: 0;
  line-height: 1.2;
  border-radius: 999px;
  cursor: pointer;
  margin-left: 0.15rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.header-actions .auth-logout-btn:hover,
.header-actions .auth-logout-btn:focus-visible {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
  outline: none;
}
.header-actions .auth-user-name {
  font-weight: 650;
  font-size: 0.78rem;
  color: var(--green-800);
  padding: 0.28rem 0.55rem;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Forgot-password modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-modal[hidden] { display: none !important; }
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 46, 36, 0.45);
}
.auth-modal-dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 22rem;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--sand);
}
.auth-modal-dialog h2 {
  font-size: 1.15rem;
  color: var(--green-900);
  margin-bottom: 0.5rem;
}
.auth-modal-dialog p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
body.modal-open { overflow: hidden; }

/* —— Auth UX: Google-first + profil tamamla —— */
.social-auth-primary {
  margin-bottom: 0.25rem;
}
.btn-google {
  border-color: #dadce0;
  font-weight: 650;
  gap: 0.65rem;
}
.btn-google:hover,
.btn-google:focus-visible {
  border-color: #4285f4;
  background: #f8fbff;
  box-shadow: 0 1px 2px rgba(66, 133, 244, 0.12);
}
.social-ico.google-g {
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: transparent;
  padding: 0;
}
.social-ico.google-g svg {
  display: block;
}
.label-opt {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8em;
}
.profil-step-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-700);
  background: rgba(45, 106, 79, 0.1);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.75rem;
}
.profil-email-hint {
  display: inline;
  color: var(--green-800);
  font-weight: 600;
}
.profil-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: #fff8e8;
  border: 1px solid #f0d78c;
  border-radius: var(--radius);
  color: #6b4e00;
  font-size: 0.9rem;
}
.profil-banner[hidden] { display: none !important; }
.profil-banner strong {
  color: #5c4200;
}
.profil-banner .btn-sm {
  margin-left: auto;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  min-height: 0;
}
.google-picker-dialog {
  max-width: 24rem;
}
.google-picker-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #3c4043;
  margin-bottom: 0.85rem;
}
.google-picker-sub {
  margin-bottom: 1rem !important;
  font-size: 0.85rem !important;
}
.google-account-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1rem;
  border: 1.5px solid #dadce0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.google-account-chip:hover,
.google-account-chip:focus-visible {
  border-color: #4285f4;
  background: #f8fbff;
  outline: none;
}
.google-account-chip[aria-pressed="true"] {
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}
.google-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.google-account-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}
.google-account-name {
  font-weight: 650;
  font-size: 0.92rem;
  color: #202124;
}
.google-account-email {
  font-size: 0.8rem;
  color: #5f6368;
}
.google-account-check {
  color: #1a73e8;
  font-weight: 700;
  font-size: 1rem;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  box-shadow: none;
  font-weight: 600;
  margin-top: 0.35rem;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--green-800);
  background: var(--cream);
  outline: none;
}
.tab-btn[hidden] { display: none !important; }


@media (max-width: 768px) {
  .header-actions .auth-menu {
    width: 100%;
  }
  .header-actions .auth-menu-trigger {
    font-size: 0.9rem;
    padding: 0.55rem 0.85rem;
    max-width: none;
    width: 100%;
    justify-content: space-between;
  }
  .header-actions .auth-menu-name { max-width: none; }
  .header-actions .auth-dropdown {
    position: static;
    margin-top: 0.35rem;
    min-width: 0;
    max-width: none;
    box-shadow: var(--shadow);
  }
  .header-actions .auth-logout-btn {
    font-size: 0.9rem;
    padding: 0.55rem 0.85rem;
    width: 100%;
    justify-content: center;
    display: inline-flex;
    margin-left: 0;
  }
  .header-actions .auth-user-name {
    font-size: 0.9rem;
    max-width: none;
    padding: 0.55rem 0.75rem;
  }
  .form-card { max-width: none; }
}


/* —— Footer —— */
.site-footer {
  margin-top: auto;
  background: var(--green-900);
  color: rgba(255,255,255,0.85);
  padding: 2rem 0 calc(1.25rem + 0.25rem);
}
@media (min-width: 769px) {
  .site-footer { padding: 2.5rem 0 1.5rem; }
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
}
.footer-brand .logo-name {
  color: var(--white);
  font-size: 1.2rem;
}
.footer-brand .logo-tag {
  color: var(--green-500);
}
.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.8;
  max-width: 28em;
}
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-500);
  margin-bottom: 0.85rem;
}
.footer-col a {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  padding: 0.45rem 0;
  min-height: 2.5rem;
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--white);
  outline: none;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  opacity: 0.65;
  text-align: center;
}
.footer-payments {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 0.5rem auto 0;
  padding: 1.25rem 0 1.1rem;
  width: 100%;
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer-payments-title {
  margin: 0 0 0.85rem;
  width: 100%;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  color: #ffd700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.footer-payments-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 0 auto;
  width: 100%;
}
.footer-payments-logos img {
  display: block;
  height: 40px;
  width: auto;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(255, 215, 0, 0.22);
  background: transparent;
  filter: saturate(1.05) contrast(1.05);
}
.home-footer-payments {
  border-top: 1px solid rgba(255,255,255,0.16);
  padding: 1.4rem 1rem 1.25rem;
  background: radial-gradient(ellipse at center top, rgba(255,215,0,0.09), transparent 68%);
}
.home-footer-payments .footer-payments-title {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
  letter-spacing: 0.035em;
}
.home-footer-payments-note {
  margin: 0 0 1rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}
.home-footer-payments-logos {
  gap: 0.75rem;
}
.home-footer-payment-card {
  display: grid;
  min-width: 88px;
  min-height: 56px;
  padding: 6px 9px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 0%, #f3f5f4 100%);
  box-shadow: 0 5px 16px rgba(0,0,0,0.2), inset 0 1px 0 #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.home-footer-payment-card img {
  width: 72px;
  height: 44px;
  border-radius: 8px;
  box-shadow: none;
  filter: none;
}
.home-footer-payment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.26), inset 0 1px 0 #fff;
}
@media (prefers-reduced-motion: reduce) {
  .home-footer-payment-card { transition: none; }
}
.legal-page {
  max-width: none;
  width: 100%;
  margin: 0 0 2.5rem;
  padding: 1.35rem 1.5rem 1.75rem;
  background: var(--cream, #f7f5f0);
  border-radius: var(--radius, 12px);
  line-height: 1.65;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.legal-page h2 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.05rem;
}
.legal-page p {
  margin: 0 0 0.95rem;
  white-space: pre-wrap;
}
.card-block { display: block; }

/* —— Toast (above bottom nav on mobile) —— */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--green-900);
  color: var(--white);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  max-width: min(90vw, 28rem);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (min-width: 769px) {
  .toast { bottom: 1.5rem; }
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.toast[hidden],
.toast:empty {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* —— Responsive header / search mobile —— */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    flex: 0 0 auto;
  }
  .header-top {
    flex-wrap: nowrap;
    position: relative;
    min-width: 0;
    width: 100%;
  }
  .ilan-cta {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }
  .ilan-cta-main,
  .ilan-cta-sub {
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .kp-msg-btn {
    width: 36px;
    height: 36px;
    margin-left: 0;
    flex: 0 0 auto;
  }
  .header-actions {
    display: none;
    position: absolute;
    top: 100%;
    left: -1rem;
    right: -1rem;
    width: auto;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--sand);
    box-shadow: var(--shadow);
    gap: 0.15rem;
    z-index: 110;
  }
  .header-actions.open { display: flex; z-index: 120; }
  .header-actions > a {
    padding: 0.55rem 0.75rem;
    min-height: 40px;
    font-size: 0.85rem;
    border-radius: 999px;
  }
  .header-actions > a.cta {
    margin-left: 0;
    margin-top: 0.25rem;
    text-align: center;
    justify-content: center;
  }

  .header-search { padding-bottom: 0.45rem; }
  .search-form {
    flex-direction: row;
    gap: 0;
  }
  .search-form input[type="search"] {
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  }
  .search-form button[type="submit"] {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    flex-shrink: 0;
  }
}

/* Search highlight when focused via bottom nav Ara */
.search-wrap.search-focus-pulse input[type="search"] {
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.35);
}


/* —— Hesabım hub & account pages —— */
.site-header-compact .header-search,
.site-header-compact .cat-nav { display: none; }
.page-hesabim .page-header { padding-bottom: 0.25rem; }

.hesabim-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.5rem 0 2.5rem;
}
@media (min-width: 860px) {
  .hesabim-layout {
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1rem 0 3rem;
  }
}
.hesabim-side {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hesabim-side-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-600);
  padding: 0.35rem 0.65rem 0.55rem;
}
.hesabim-side a {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.hesabim-side a:hover,
.hesabim-side a:focus-visible {
  background: var(--green-50);
  color: var(--green-900);
  outline: none;
}
.hesabim-side a.active {
  background: var(--green-50);
  color: var(--green-800);
  font-weight: 650;
  box-shadow: inset 3px 0 0 var(--green-600);
}
.hesabim-logout {
  appearance: none;
  margin-top: 0.45rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-top: 1px solid var(--cream-dark);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 0.75rem 0.65rem;
  min-height: var(--tap);
  color: #b42318;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
}
.hesabim-logout:hover,
.hesabim-logout:focus-visible {
  background: #fff5f4;
  outline: none;
}
.hesabim-main .hesabim-panel { max-width: none; width: 100%; }
.hesabim-profile {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
}
.hesabim-profile > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: baseline;
}
.hesabim-profile dt {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hesabim-profile dd {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-900);
  word-break: break-word;
}
.hesabim-profile-compact > div {
  grid-template-columns: 7rem minmax(0, 1fr);
}

/* —— Adres defteri —— */
.address-card {
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: #fff;
}
.address-card.is-default {
  border-color: var(--green-600, #40916c);
  box-shadow: inset 3px 0 0 var(--green-600, #40916c);
}
.address-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.address-badge {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--green-800, #1b4332);
  background: rgba(45, 106, 79, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.address-card-name,
.address-card-line {
  margin: 0.15rem 0;
  font-size: 0.9rem;
  color: var(--text, #1a1a1a);
}
.address-card-line { color: var(--text-muted); }
.address-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.address-form-wrap {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sand);
}
.address-form-wrap h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.address-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.checkout-address-book {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--cream, #f8f6f1);
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
}
.checkout-address-book h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.checkout-addr-pick {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.checkout-addr-opt {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}
.checkout-addr-opt:has(input:checked) {
  border-color: var(--green-600, #40916c);
  background: rgba(45, 106, 79, 0.06);
}
.checkout-addr-opt input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.checkout-addr-opt span {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.checkout-addr-opt strong {
  font-size: 0.92rem;
}
.checkout-addr-opt em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-word;
}

.hesabim-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}
@media (min-width: 560px) {
  .hesabim-tiles { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .hesabim-tiles { grid-template-columns: 1fr 1fr 1fr; }
}
.hesabim-tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
  min-height: 5.5rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.hesabim-tile:hover,
.hesabim-tile:focus-visible {
  border-color: var(--green-500);
  box-shadow: var(--shadow);
  color: inherit;
  outline: none;
  transform: translateY(-1px);
}
.hesabim-tile-ico { font-size: 1.35rem; line-height: 1; }
.hesabim-tile-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-900);
}
.hesabim-tile-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hesabim-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  margin: 0.75rem 0 1rem;
  background: linear-gradient(135deg, var(--green-50), var(--cream));
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
}
.hesabim-balance-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.hesabim-balance-value {
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--green-800);
  letter-spacing: -0.02em;
}

.hesabim-orders {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hesabim-order {
  padding: 0.85rem 1rem;
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, var(--cream));
}
.hesabim-order-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}
.hesabim-order-status {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--green-800);
  background: var(--green-50);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.hesabim-order-delivered-banner {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2b8a3e;
}
.hesabim-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hesabim-order-msg {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hesabim-order-items {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.75rem;
}
.hesabim-order-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
a.hesabim-order-item-link {
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 0.35rem 0.4rem;
  margin: -0.35rem -0.4rem;
  transition: background 0.12s;
}
a.hesabim-order-item-link:hover,
a.hesabim-order-item-link:focus-visible {
  background: #f3fbf6;
  outline: none;
}
a.hesabim-order-item-link:hover strong {
  color: var(--green-800);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hesabim-order-item strong {
  display: block;
  line-height: 1.35;
}
.hesabim-order-item p {
  margin: 0.12rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hesabim-order-img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--green-100);
}
.hesabim-order-img-empty {
  display: block;
}
.hesabim-order-pay {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--green-100);
  font-size: 0.9rem;
}
.hesabim-order-paid {
  font-size: 1.05rem;
  color: var(--green-800);
}

.hesabim-order-inv {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.hesabim-order-inv-title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}
.hesabim-order-inv-item {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
}
.hesabim-order-inv-link {
  color: var(--green-800, #1b4332);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hesabim-order-return {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.hesabim-return-row {
  margin-top: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: rgba(45, 106, 79, 0.05);
  border-radius: 8px;
}
.hesabim-return-row > p {
  margin: 0 0 0.35rem;
}
.hesabim-return-status {
  font-weight: 600;
  color: var(--green-800, #1b4332);
}
.hesabim-return-deadline {
  font-size: 0.88rem;
  color: var(--text-muted, #5c6670);
}
.hesabim-return-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem 0.75rem;
}
.hesabim-return-timing {
  flex: 1 1 14rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted, #5c6670);
}
.yasakli-page h2 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.1rem;
  color: var(--green-800, #1b4332);
}
.yasakli-page ul {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.2rem;
}
.yasakli-page li {
  margin: 0.25rem 0;
  line-height: 1.45;
}
.yasakli-law {
  font-size: 0.86rem;
  color: var(--text-muted, #5c6670);
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  background: rgba(45, 106, 79, 0.06);
  border-radius: 8px;
  border-left: 3px solid var(--green-600, #40916c);
}
.footer-legal-note {
  margin: 0.85rem 0 0.35rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  text-align: center;
  background: rgba(45, 106, 79, 0.07);
  border-radius: 8px;
  color: var(--text-muted, #5c6670);
}
.footer-legal-note a {
  color: var(--green-800, #1b4332);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-contact-line {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted, #5c6670);
  line-height: 1.45;
}
.footer-contact-line a {
  color: var(--green-800, #1b4332);
  font-weight: 650;
}
.footer-payment-security-copy,
.footer-payment-security-title {
  display: block;
  margin-top: 0.65rem;
}
.footer-payment-security-copy {
  color: var(--green-900, #1b4332);
  font-weight: 650;
}
.footer-payment-security-title {
  color: var(--green-800, #1b4332);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-payment-security-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
}
.footer-payment-security-logos img {
  display: block;
  width: 64px;
  height: 40px;
  padding: 3px;
  border: 1px solid rgba(27,67,50,0.14);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}
.footer-payments-note {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted, #5c6670);
}

/* Çerez bilgilendirme çubuğu */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: rgba(26, 61, 46, 0.96);
  color: #fff;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
}
.cookie-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.cookie-bar p {
  margin: 0;
  flex: 1 1 240px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.cookie-bar a {
  color: #b7f0c8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-bar-accept {
  flex: 0 0 auto;
  background: #52b788;
  border-color: #52b788;
  color: #103528;
  font-weight: 700;
}
.cookie-bar-accept:hover {
  background: #74c69d;
  border-color: #74c69d;
  color: #103528;
}

/* Discreet admin entry (footer dot) */

.admin-discreet {
  display: inline-block;
  color: rgba(255,255,255,0.28);
  font-size: 0.75rem;
  margin-left: 0.15rem;
  text-decoration: none;
  vertical-align: baseline;
}
.admin-discreet:hover,
.admin-discreet:focus-visible {
  color: rgba(255,255,255,0.7);
  outline: none;
}


/* —— Admin login gate —— */
.admin-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(160deg, #0f2a1f 0%, #1a3d2e 55%, #143228 100%);
}
.admin-gate[hidden] { display: none !important; }
.admin-gate-card {
  width: min(100%, 22rem);
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
.admin-gate-card h1 {
  font-size: 1.35rem;
  color: var(--green-900);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
.admin-gate-hint {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 1.15rem;
}
.admin-gate-card .form-group { margin-bottom: 1rem; }
.admin-gate-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 0.35rem;
}
.admin-gate-card input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 0.55rem;
  font-size: 1rem;
  box-sizing: border-box;
}
.admin-gate-card input[type="password"]:focus {
  outline: 2px solid rgba(82, 183, 136, 0.45);
  border-color: var(--green-500, #52b788);
}
.admin-gate-error {
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  min-height: 1.2em;
}
.admin-gate-error[hidden] { display: none !important; }
.admin-gate-card .btn { width: 100%; }
.page-admin.admin-locked .admin-shell { display: none !important; }
.admin-logout-btn {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.4rem 0;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.admin-logout-btn:hover,
.admin-logout-btn:focus-visible {
  color: rgba(255,255,255,0.9);
  outline: none;
}

/* —— Admin panel —— */
.page-admin {
  background: #f3f6f4;
  padding-bottom: 0;
  min-height: 100vh;
  min-height: 100dvh;
}
.page-admin .ad-bar,
.page-admin .bottom-nav { display: none !important; }
.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}
.admin-pulse {
  height: 1cm;
  max-height: 1cm;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0 0.75rem;
  overflow-x: auto;
  background: #143028;
  color: #d7ebe1;
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}
.admin-pulse b { color: #fff; font-weight: 750; }
.admin-pulse .is-alert b { color: #fecaca; }
@media (min-width: 800px) {
  .admin-shell {
    grid-template-columns: 15rem minmax(0, 1fr);
    grid-template-rows: 1cm minmax(0, 1fr);
  }
  .admin-pulse { grid-column: 1 / -1; }
  .admin-sidebar { grid-column: 1; grid-row: 2; }
  .admin-body { grid-column: 2; grid-row: 2; }
}
.admin-sidebar {
  background: var(--green-900);
  color: rgba(255,255,255,0.9);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.55rem;
  row-gap: 0.05rem;
  align-items: center;
  color: var(--white);
  padding: 0.25rem 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.admin-brand .logo-mark {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
}
.admin-brand .logo-name,
.admin-brand .admin-brand-sub { grid-column: 2; }
.admin-brand:hover { color: var(--white); }
.admin-brand .logo-name { color: var(--white); font-size: 1.15rem; }
.admin-brand-sub {
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-500);
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.admin-nav-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.85);
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  min-height: var(--tap);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.admin-nav-btn:hover,
.admin-nav-btn:focus-visible {
  background: rgba(255,255,255,0.08);
  outline: none;
}
.admin-nav-btn.active {
  background: rgba(82, 183, 136, 0.18);
  border-color: rgba(82, 183, 136, 0.35);
  color: var(--white);
}
.admin-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.admin-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.1rem 0 0.2rem 0.45rem;
  padding: 0.15rem 0 0.2rem 0.65rem;
  border-left: 2px solid rgba(82, 183, 136, 0.45);
}
.admin-nav-sub[hidden] {
  display: none !important;
}
.admin-nav-sub-btn {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  color: rgba(255,255,255,0.78);
}
.admin-nav-sub-btn.active {
  background: rgba(82, 183, 136, 0.18);
  border-color: rgba(82, 183, 136, 0.35);
  color: var(--white);
}
.admin-sidebar-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.admin-sidebar-foot a {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 600;
}
.admin-sidebar-foot a:hover { color: var(--white); }
.admin-demo-note {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  opacity: 0.65;
}
.admin-body {
  padding: 1.25rem 1rem 2rem;
}
@media (min-width: 800px) {
  .admin-body { padding: 1.75rem 1.75rem 2.5rem; }
}
.admin-topbar {
  margin-bottom: 1.25rem;
}
.admin-topbar h1 {
  font-size: 1.45rem;
  color: var(--green-900);
  letter-spacing: -0.02em;
}
.admin-topbar-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}
.admin-panel[hidden] { display: none !important; }
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.admin-filter {
  flex: 1;
  min-width: 12rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 16px;
}
.admin-filter:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.18);
}
.admin-count {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-muted);
}
.admin-table-wrap {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 40rem;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--cream-dark);
  white-space: nowrap;
}
.admin-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--cream);
  position: sticky;
  top: 0;
}
.admin-table tbody tr:hover { background: var(--green-50); }
.admin-table tbody tr[data-ofis-id] { cursor: pointer; }
.admin-table tbody tr.is-selected { background: #e7f5ee; }
.ofis-detail {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}
.ofis-detail[hidden] { display: none !important; }
.ofis-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ofis-detail-title { margin: 0; font-size: 1.15rem; }
.ofis-detail-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ofis-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.7rem 1.25rem;
  margin: 0.9rem 0 0;
}
.ofis-detail-grid dt {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ofis-detail-grid dd { margin: 0.15rem 0 0; font-weight: 650; }
.ofis-page { max-width: 64rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.ofis-back { font-weight: 700; color: var(--green-800); }
.ofis-kicker { margin: 0 0 0.2rem; color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ofis-page .ofis-detail { margin-top: 0.75rem; }
.ofis-page .ofis-detail-title { font-size: 1.6rem; }
.ofis-status { margin: 0.75rem 0 0; color: var(--text-muted); }
@media print {
  .ofis-page-actions, .ofis-back { display: none !important; }
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.admin-badge.ok { background: #e8f8ef; color: #1b6b3a; }
.admin-badge.warn { background: #fff6e5; color: #9a6700; }
.admin-badge.muted { background: #eef1ef; color: #5a6e64; }
.admin-foot-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* —— Admin settings (Ayarlar) —— */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.admin-settings {
  display: grid;
  gap: 1rem;
}
@media (min-width: 960px) {
  .admin-settings {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
  }
}
.admin-settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.35rem;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 960px) {
  .admin-settings-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    position: sticky;
    top: 0.75rem;
    padding: 0.5rem;
  }
}
.admin-settings-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 650;
  font-size: 0.86rem;
  text-align: left;
  padding: 0.55rem 0.75rem;
  min-height: 2.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.admin-settings-tab:hover,
.admin-settings-tab:focus-visible {
  background: var(--green-50);
  color: var(--green-900);
  outline: none;
}
.admin-settings-tab.active {
  background: rgba(82, 183, 136, 0.16);
  border-color: rgba(64, 145, 108, 0.28);
  color: var(--green-900);
}
.admin-settings-pane[hidden] { display: none !important; }
.admin-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 1.25rem;
}
@media (min-width: 800px) {
  .admin-card { padding: 1.35rem 1.5rem 1.5rem; }
}
.admin-card-title {
  font-size: 1.1rem;
  color: var(--green-900);
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
}
.admin-card-lead {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 1.15rem;
  line-height: 1.45;
}
.cat-editor-tree {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cat-editor-children {
  margin: 0.15rem 0 0.35rem 0.7rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--sand);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cat-editor-children[hidden] { display: none !important; }
.cat-editor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.15rem;
}
.cat-editor-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--green-900);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  padding: 0.28rem 0.35rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.cat-editor-toggle:hover,
.cat-editor-toggle:focus-visible {
  background: var(--green-50);
  outline: none;
}
.cat-editor-caret {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex: 0 0 auto;
  margin-top: -0.1rem;
}
.cat-editor-toggle[aria-expanded="true"] .cat-editor-caret {
  transform: rotate(45deg);
  margin-top: -0.2rem;
}
.cat-editor-name { min-width: 0; }
.cat-editor-badge {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--text-muted);
}
.cat-editor-add,
.cat-editor-del {
  font-size: 0.78rem;
  min-height: 1.85rem;
  padding: 0.15rem 0.55rem;
  margin-left: auto;
}
.cat-editor-del { margin-left: 0; }
.cat-editor-empty,
.cat-editor-form {
  margin: 0.15rem 0 0.35rem;
}
.cat-editor-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.cat-editor-form input {
  flex: 1 1 12rem;
  min-width: 10rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  font: inherit;
}
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.blog-post {
  padding: 1.15rem 1.25rem 1.35rem;
}
.blog-post h2 {
  margin: 0 0 0.35rem;
  color: var(--green-900);
  font-size: 1.35rem;
}
.blog-post-meta {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.blog-post-body {
  line-height: 1.55;
  color: var(--text);
}
.blog-post-body h2,
.blog-post-body h3 {
  color: var(--green-900);
  margin: 1rem 0 0.4rem;
}
.chatgpt-campaign-out {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
}
.chatgpt-campaign-out h3 {
  margin: 0.75rem 0 0.4rem;
  font-size: 1rem;
  color: var(--green-900);
}
.chatgpt-campaign-out h3:first-child { margin-top: 0; }
.chatgpt-prompt-card {
  margin: 0.65rem 0 1rem;
  padding: 0.75rem 0.85rem;
  background: var(--green-50);
  border-radius: 10px;
  border: 1px solid rgba(45, 106, 79, 0.15);
}
.chatgpt-prompt-card pre,
.chatgpt-raw {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  margin: 0.45rem 0 0;
}
.chatgpt-blog-item {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 0.45rem;
}
.chatgpt-blog-item .ticket-item {
  flex: 1 1 auto;
  cursor: pointer;
  opacity: 0.95;
  text-align: left;
}
.chatgpt-blog-item.is-active {
  outline: 2px solid var(--forest, #2d6a4f);
  outline-offset: 2px;
  border-radius: 8px;
}
.chatgpt-blog-editor {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sand, #e8e2d9);
}
.chatgpt-blog-manage-list {
  max-height: 22rem;
  overflow: auto;
}
.admin-settings .admin-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem 1.25rem;
}
#ticket-delete-btn {
  color: #9b1c1c;
  border-color: #f8b4b4;
}
#ticket-delete-btn:hover,
#ticket-delete-btn:focus-visible {
  background: #fef2f2;
  border-color: #f05252;
}
.admin-form-grid {
  display: grid;
  gap: 0 1rem;
}
@media (min-width: 560px) {
  .admin-form-grid { grid-template-columns: 1fr 7.5rem; }
}
.cargo-api-block {
  margin-top: 1.35rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--cream-dark);
}
.cargo-api-block h3 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
}
.cargo-api-grid {
  display: grid;
  gap: 0 1rem;
}
@media (min-width: 720px) {
  .cargo-api-grid { grid-template-columns: 1fr 1fr; }
}
.admin-logo-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.admin-logo-ph {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--green-700), var(--green-900));
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(26, 61, 46, 0.2);
}
.admin-logo-meta { flex: 1; min-width: 0; }
.admin-logo-meta input { width: 100%; }
.admin-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
}
.admin-switch-row strong {
  display: block;
  font-size: 0.92rem;
  color: var(--green-900);
}
.admin-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  flex: 0 0 auto;
}
.admin-switch input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.admin-switch-ui {
  width: 2.75rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #c5d0c9;
  position: relative;
  transition: background 0.15s;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}
.admin-switch-ui::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform 0.15s;
}
.admin-switch input:checked + .admin-switch-ui {
  background: var(--green-600);
}
.admin-switch input:checked + .admin-switch-ui::after {
  transform: translateX(1.15rem);
}
.admin-switch input:focus-visible + .admin-switch-ui {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}
.admin-check-grid {
  border: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
@media (min-width: 560px) {
  .admin-check-grid { grid-template-columns: 1fr 1fr; }
}
.admin-legend {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 0.55rem;
  padding: 0;
}
.admin-check,
.admin-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--cream);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}
.admin-check:hover,
.admin-radio:hover { background: var(--green-50); }
.admin-check input,
.admin-radio input {
  margin-top: 0.15rem;
  accent-color: var(--green-700);
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}
.admin-radio-group {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}
.admin-radio span { display: flex; flex-direction: column; gap: 0.15rem; }
.admin-radio .form-hint { margin: 0; }
.admin-table-compact { margin-bottom: 0.75rem; }
.admin-table-compact .admin-table { min-width: 18rem; }
.admin-table-compact .admin-table input[type="number"] {
  width: 5.5rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.5rem;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 16px;
}
.admin-table-compact .admin-table input[type="number"]:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.2);
}
.admin-settings .form-group input,
.admin-settings .form-group select,
.admin-settings .form-group textarea {
  background: var(--cream);
}
.admin-foot-note code {
  font-size: 0.78em;
  background: var(--cream-dark);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}


.admin-reklam-file-row .btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  cursor: pointer;
  margin: 0;
}
.admin-reklam-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.55rem;
}
.admin-reklam-file-row .form-hint { margin: 0; }
.admin-reklam-sizes {
  margin-top: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: var(--cream);
  border: 1px dashed var(--sand);
  border-radius: var(--radius-sm);
  line-height: 1.45;
}
.ad-bar[hidden],
.ad-bar.is-off { display: none !important; }
@media (max-width: 799px) {
  .admin-sidebar { padding-bottom: 0.75rem; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav-btn { flex: 1 1 auto; text-align: center; min-width: 5.5rem; }
  .admin-nav-group { flex: 1 1 100%; width: 100%; }
  .admin-nav-sub { margin-left: 0.25rem; }
  .admin-nav-sub-btn { text-align: left; justify-content: flex-start; }
}

/* —— Destek talepleri (admin) —— */
.admin-nav-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
}
.admin-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}
.admin-nav-badge.is-zero {
  background: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.85);
}
.admin-nav-badge.is-hot {
  background: #e03131;
  color: #fff;
  animation: ticket-status-blink 1s steps(1, end) infinite;
}
.admin-source {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 650;
}
.ticket-layout {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .ticket-layout {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    align-items: start;
  }
}
.ticket-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ticket-item {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.ticket-item:hover,
.ticket-item:focus-visible {
  border-color: var(--green-500);
  outline: none;
}
.ticket-item.is-selected {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.16);
}
.ticket-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.ticket-item-subject {
  font-weight: 750;
  color: var(--green-900);
}
.ticket-item-meta {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.approved-seller-row--simple {
  display: block;
}
.approved-seller-row--simple .ticket-item {
  width: 100%;
}
.ticket-item--store .ticket-item-top {
  justify-content: flex-start;
}
.ticket-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.ticket-status--waiting {
  color: #9b1c1c;
  background: #fde8e8;
  animation: ticket-status-blink 1s steps(1, end) infinite;
}
.ticket-status--answered {
  color: #146c36;
  background: #e5f7ec;
}
@keyframes ticket-status-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .ticket-status--waiting,
  .admin-nav-badge.is-hot,
  .admin-sellers-badge.is-hot { animation: none; }
}
.ticket-empty,
.ticket-detail-empty {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.ticket-detail {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem 1.1rem;
}
.ticket-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}
.ticket-detail-head h2 {
  font-size: 1.15rem;
  color: var(--green-900);
}
.ticket-meta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.ticket-message,
.ticket-reply-view {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cream-dark);
}
.ticket-message h3,
.ticket-reply-view h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.ticket-message p,
.ticket-reply-view p {
  white-space: pre-wrap;
  line-height: 1.45;
}
.ticket-reply-view { background: #f3fbf6; margin-left: -0.35rem; margin-right: -0.35rem; padding: 0.75rem; border-radius: var(--radius-sm); border-top: none; }
#ticket-reply-form { margin-top: 1rem; }
#support-refresh { min-height: 2.4rem; padding: 0.35rem 0.9rem; }


/* —— Satıcılar alt menü (dikey hiyerarşi + rozet) —— */
.admin-sellers-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.35rem;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.admin-sellers-nav--stack {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  max-width: 22rem;
}
.admin-sellers-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 650;
  font-size: 0.86rem;
  text-align: left;
  padding: 0.55rem 0.75rem;
  min-height: 2.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.admin-sellers-tab--child {
  margin-left: 0.85rem;
  padding-left: 0.95rem;
  border-left: 2px solid rgba(64, 145, 108, 0.35);
  font-size: 0.84rem;
}
.admin-sellers-tab:hover,
.admin-sellers-tab:focus-visible {
  background: var(--green-50);
  color: var(--green-900);
  outline: none;
}
.admin-sellers-tab.active {
  background: rgba(82, 183, 136, 0.16);
  border-color: rgba(64, 145, 108, 0.28);
  color: var(--green-900);
}
.admin-sellers-pane[hidden] { display: none !important; }
.admin-sellers-badge.is-hot,
.admin-nav-badge.admin-sellers-badge.is-hot {
  background: #e8590c;
  color: #fff;
  animation: ticket-status-blink 1s steps(1, end) infinite;
}
.admin-sellers-badge[hidden] {
  display: none !important;
}
.admin-sales { display: flex; flex-direction: column; gap: 0.7rem; }
.admin-sale {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--green-100, #d7eadf);
  border-radius: 12px;
  background: #fff;
}
.admin-sale-img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--cream, #f7f4ee);
  border: 1px solid var(--green-100, #d7eadf);
}
.admin-sale h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.admin-sale p { margin: 0.12rem 0; color: var(--text-muted); font-size: 0.9rem; }
.admin-sale-pay { font-weight: 750; color: var(--green-800); }

/* —— Satıcı başvuruları (admin) —— */
.admin-subsection {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cream-dark, #e8e0d4);
}
.admin-subsection-title {
  font-size: 1.15rem;
  color: var(--green-900);
  margin: 0 0 0.35rem;
}
.admin-subsection-lead {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.seller-app-status--pending {
  color: #9b1c1c;
  background: #fde8e8;
  animation: ticket-status-blink 1s steps(1, end) infinite;
}
.seller-app-status--approved {
  color: #146c36;
  background: #e5f7ec;
}
.seller-app-status--rejected {
  color: #6b21a8;
  background: #f3e8ff;
  border-color: #d8b4fe;
}
.seller-app-status--paused {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fdba74;
}
.seller-apps-activity-btn {
  flex: 1 1 auto;
}
.seller-apps-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 960px) {
  .seller-apps-layout {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  }
}
.seller-apps-layout--list {
  display: block;
  position: relative;
}
.seller-apps-list-col {
  max-width: 100%;
  max-height: min(70vh, 42rem);
  overflow: auto;
}
.seller-apps-detail-col {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem 1.15rem;
}
.pending-products {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.pending-product {
  background: #fff;
  border: 1px solid rgba(229, 223, 209, 0.95);
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(26, 61, 46, 0.06);
  overflow: hidden;
}
.pending-product.is-open {
  border-color: rgba(45, 106, 79, 0.35);
}
.pending-product-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
}
.pending-product-check-wrap {
  display: grid;
  place-items: center;
}
.pending-product-summary {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
  min-width: 0;
}
.pending-product-title {
  display: block;
  font-weight: 800;
  color: #122d22;
}
.pending-product-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.pending-product-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pending-product-detail {
  border-top: 1px solid rgba(229, 223, 209, 0.9);
  padding: 0.85rem 1rem 1rem;
}
.pending-product-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.pending-product-thumb {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(229, 223, 209, 0.95);
  background: #f7f5f0;
}
.pending-product-thumb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.35rem;
}
.pending-product-price,
.pending-product-desc {
  margin: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--text);
}
.pending-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
.approved-seller-product-row {
  grid-template-columns: auto 1fr;
  align-items: start;
}
.approved-seller-product-thumb {
  flex: 0 0 auto;
}
.approved-seller-product-main {
  min-width: 0;
}
.approved-seller-product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
}
.approved-seller-product-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem 5.5rem;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.approved-seller-product-edit--full {
  grid-template-columns: minmax(0, 1fr) 7rem 5.5rem;
}
.approved-seller-product-edit--full .asp-span-2 {
  grid-column: 1 / -1;
}
.approved-seller-product-edit label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}
.approved-seller-product-edit input,
.approved-seller-product-edit textarea {
  width: 100%;
  border: 1px solid var(--sand);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font: inherit;
  color: inherit;
  background: #fff;
  resize: vertical;
}
.approved-seller-product-edit input:focus,
.approved-seller-product-edit textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.14);
}
.admin-table tr.admin-seller-row {
  cursor: pointer;
}
.admin-table tr.admin-seller-row.is-selected {
  background: rgba(64, 145, 108, 0.1);
}
.admin-table tr.admin-seller-row:hover {
  background: rgba(64, 145, 108, 0.06);
}
.approved-seller-product-actions .asp-delete {
  color: #9b1c1c;
  border-color: #f8b4b4;
}
@media (max-width: 720px) {
  .pending-product-row {
    grid-template-columns: 1fr;
  }
  .pending-product-quick {
    justify-content: stretch;
  }
  .pending-product-quick .btn {
    flex: 1 1 auto;
  }
  .approved-seller-product-edit {
    grid-template-columns: 1fr;
  }
  .approved-seller-row {
    flex-direction: column;
  }
  .approved-seller-return {
    width: 100%;
  }
}
.seller-apps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.seller-apps-actions .btn[hidden],
.btn[hidden] {
  display: none !important;
}

.seller-apps-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.85rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}
.seller-apps-dl dt {
  color: var(--text-muted);
  font-weight: 650;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.seller-apps-dl dd {
  margin: 0;
  word-break: break-word;
}
.seller-doc-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}
@media (min-width: 1100px) {
  .seller-doc-grid { grid-template-columns: 1fr 1fr; }
}
.seller-doc-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.7rem;
  background: var(--cream, #faf7f2);
  border: 1px solid var(--sand, #e5dccf);
  border-radius: 8px;
}
.seller-doc-card h4 {
  margin: 0;
  font-size: 0.92rem;
}
.seller-doc-card .seller-apps-doc-thumb {
  display: block;
  width: 100%;
  margin: 0;
}
.seller-doc-card .seller-apps-doc-preview {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #fff;
}
.seller-doc-card iframe {
  width: 100%;
  height: min(78vh, 900px);
  border: 1px solid var(--sand, #e5dccf);
  border-radius: 6px;
  background: #fff;
}
.seller-doc-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.seller-doc-missing {
  margin: 0;
  color: #9b2c2c;
  font-size: 0.88rem;
}
.seller-apps-docs {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.seller-apps-docs li {
  font-size: 0.88rem;
  padding: 0.55rem 0.65rem;
  background: var(--cream, #faf7f2);
  border-radius: var(--radius-sm, 6px);
}
.seller-apps-doc-thumb {
  display: inline-block;
  margin-top: 0.45rem;
  margin-right: 0.5rem;
  padding: 0;
  border: 1px solid var(--sand, #e5dccf);
  border-radius: 6px;
  background: #fff;
  cursor: zoom-in;
  vertical-align: top;
  overflow: hidden;
  line-height: 0;
}
.seller-apps-doc-thumb:hover,
.seller-apps-doc-thumb:focus-visible {
  border-color: var(--green-700, #2d6a4f);
  outline: 2px solid rgba(45, 106, 79, 0.35);
  outline-offset: 1px;
}
.seller-apps-visuals {
  display: grid;
  gap: 0.85rem;
  margin: 0.75rem 0 1rem;
}
.seller-apps-visuals h3 {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
}
.seller-apps-banner {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f0ea;
  border: 1px solid var(--sand, #e5dccf);
}
.seller-apps-logo {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--sand, #e5dccf);
}
.seller-apps-doc-preview {
  display: block;
  width: 88px;
  height: 66px;
  max-width: 88px;
  max-height: 66px;
  object-fit: cover;
  border-radius: 0;
  border: 0;
  background: #f3f0ea;
  cursor: zoom-in;
}
.seller-apps-doc-link {
  display: inline-block;
  margin-top: 0.35rem;
  margin-right: 0.55rem;
  font-weight: 650;
  color: var(--green-700, #2d6a4f);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
button.seller-apps-doc-link {
  color: var(--green-700, #2d6a4f);
}

/* Slide-over inceleme paneli */
.seller-apps-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(20, 30, 20, 0.45);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.seller-apps-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  width: 100vw;
  max-width: 100vw;
  height: 100%;
  max-height: 100dvh;
  background: var(--white, #fff);
  border-left: 0;
  box-shadow: none;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  visibility: hidden;
}
.seller-apps-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}
.seller-apps-drawer[hidden] {
  display: none !important;
}
.seller-apps-drawer-backdrop[hidden] {
  display: none !important;
}
html.seller-apps-drawer-open,
html.seller-apps-drawer-open body {
  overflow: hidden;
}
.seller-apps-drawer-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--cream-dark, #e8e0d4);
  background: var(--cream, #faf7f2);
}
.seller-apps-drawer-nav {
  display: flex;
  gap: 0.3rem;
}
.seller-apps-nav-btn {
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0.2rem 0.55rem;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}
.seller-apps-drawer-title {
  flex: 1;
  margin: 0;
  font-size: 0.98rem;
  color: var(--green-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seller-apps-drawer-close {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.55rem;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.seller-apps-drawer-close:hover,
.seller-apps-drawer-close:focus-visible {
  background: #fff;
  border-color: var(--sand);
  color: var(--green-900);
  outline: none;
}
.seller-apps-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 0.9rem 1rem 1.1rem;
  -webkit-overflow-scrolling: touch;
}
.seller-apps-drawer-foot {
  flex-shrink: 0;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--cream-dark, #e8e0d4);
  background: var(--white);
}
.seller-apps-edit {
  margin-top: 1rem;
  padding: 0.85rem 0.9rem 1rem;
  border: 1px solid var(--sand, #e4d8c4);
  border-radius: var(--radius, 12px);
  background: #fffdf8;
}
.seller-apps-edit h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.seller-apps-edit label {
  display: block;
  margin: 0.65rem 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-muted);
}
.seller-apps-edit input,
.seller-apps-edit textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.48rem 0.65rem;
  border: 1px solid #d9d0c3;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.seller-apps-edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.seller-apps-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.seller-apps-dl dd {
  white-space: pre-wrap;
}
.seller-apps-reject-step {
  margin-top: 1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #f5c2c7;
  border-radius: var(--radius);
  background: #fff5f5;
}
.seller-apps-reject-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #9b1c1c;
}
.seller-apps-reject-lead {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.seller-apps-reject-checks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.seller-apps-reject-msg-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 0.3rem;
}
.seller-apps-reject-message {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
  font: inherit;
  resize: vertical;
  min-height: 4.5rem;
}
.seller-apps-reject-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  justify-content: flex-end;
}
@media (prefers-reduced-motion: reduce) {
  .seller-app-status--pending { animation: none; }
  .seller-apps-drawer { transition: none; }
}
.seller-apps-layout > .seller-apps-drawer {
  position: relative;
  top: auto;
  right: auto;
  z-index: 1;
  width: auto;
  max-width: none;
  height: auto;
  max-height: calc(100vh - 7rem);
  transform: none;
  visibility: visible;
  display: flex;
  border: 1px solid var(--sand, #e5dccf);
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
  background: #fff;
}
.seller-apps-layout > .seller-apps-drawer[hidden] {
  display: none !important;
}
.seller-apps-drawer-backdrop {
  display: none !important;
}
.seller-apps-layout > .seller-apps-drawer .seller-apps-drawer-foot {
  order: 1;
}
.seller-apps-layout > .seller-apps-drawer .seller-apps-drawer-body {
  order: 2;
}
html.seller-apps-drawer-open,
html.seller-apps-drawer-open body {
  overflow: auto;
}

/* —— Satıcı başvuru sayfası (satici-basvuru.html) —— */
.page-seller-apply .seller-apply-card { max-width: 640px; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
@media (max-width: 560px) {
  .form-row-2 { grid-template-columns: 1fr; }
}
.label-optional {
  font-weight: 500;
  color: var(--text-muted, #6b7280);
  font-size: 0.85em;
}
.kvkk-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.25rem 0 0.5rem;
}
.kvkk-check {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.2rem;
  accent-color: var(--green-700, #2d6a4f);
  cursor: pointer;
  border-radius: 4px;
}
.kvkk-check.is-invalid {
  outline: 2px solid #c1121f;
  outline-offset: 2px;
}
.kvkk-details {
  flex: 1 1 auto;
  min-width: 0;
}
.kvkk-summary {
  cursor: pointer;
  list-style: none;
  color: var(--green-800, #1b4332);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  line-height: 1.45;
}
.kvkk-summary::-webkit-details-marker { display: none; }
.kvkk-summary::before {
  content: "▸ ";
  display: inline-block;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.kvkk-details[open] > .kvkk-summary::before {
  content: "▾ ";
}
.kvkk-scroll {
  margin-top: 0.65rem;
  max-height: 280px;
  overflow: auto;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-sm, 8px);
  background: var(--cream, #faf7f2);
  font-size: 0.88rem;
  line-height: 1.55;
}
.kvkk-scroll .kvkk-title {
  font-size: 1rem;
  margin: 0 0 0.65rem;
  color: var(--green-800, #1b4332);
}
.kvkk-scroll h3 {
  font-size: 0.92rem;
  margin: 0.9rem 0 0.4rem;
}
.kvkk-scroll p { margin: 0 0 0.65rem; }
.kvkk-scroll ul {
  margin: 0 0 0.65rem;
  padding-left: 1.15rem;
}
.kvkk-scroll li { margin: 0.25rem 0; }
.check-label-block {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.check-label-block input { margin-top: 0.2rem; flex-shrink: 0; }
.seller-apply-cta {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--green-600, #40916c);
  border-radius: var(--radius-sm, 8px);
  background: rgba(45, 106, 79, 0.06);
}
.seller-apply-cta p { margin: 0 0 0.75rem; }
.admin-empty-row td {
  text-align: center;
  color: var(--text-muted, #6b7280);
  padding: 1.25rem 0.75rem;
}

/* —— Satıcı başvuru: adımlar + evrak yükleme (v31) —— */
.seller-steps-indicator {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.92rem;
}
.seller-steps-indicator li {
  color: var(--text-muted, #6b7280);
  font-weight: 500;
}
.seller-steps-indicator li.is-active {
  color: var(--green-800, #1b4332);
  font-weight: 700;
}
.seller-steps-indicator li.is-done {
  color: var(--green-700, #2d6a4f);
}
.seller-step { margin-top: 0.25rem; }
.seller-docs-fieldset .form-hint { margin-top: 0; }
.seller-doc-field input[type="file"] {
  display: block;
  width: 100%;
  font-size: 0.92rem;
  padding: 0.45rem 0;
}
.seller-doc-fname {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--green-800, #1b4332);
  word-break: break-all;
}
.seller-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  margin-top: 1rem;
}
.seller-step-actions .btn { min-width: 9rem; }
.seller-apps-docs a, .seller-apps-doc-link { color: var(--green-700, #2d6a4f); font-weight: 600; }


/* Belge lightbox (admin satıcı başvuru inceleme) */
.seller-doc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
}
.seller-doc-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.seller-doc-lightbox[hidden] {
  display: none !important;
}
.seller-doc-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(12, 18, 14, 0.55);
  cursor: pointer;
}
.seller-doc-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(85vw, 960px);
  max-width: 85vw;
  max-height: 82vh;
  background: var(--white, #fff);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}
.seller-doc-lightbox-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--cream-dark, #e8e0d4);
  background: var(--cream, #faf7f2);
}
.seller-doc-lightbox-title {
  flex: 1 1 8rem;
  margin: 0;
  min-width: 0;
  font-size: 0.95rem;
  color: var(--green-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seller-doc-lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}
.seller-doc-lightbox-btn {
  min-height: 2.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 650;
}
.seller-doc-lightbox-body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  overflow: auto;
  padding: 0.85rem;
  background: #1a1f1c;
  -webkit-overflow-scrolling: touch;
}
.seller-doc-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(82vh - 4.75rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  background: #0d110f;
}
.seller-doc-lightbox-iframe {
  display: block;
  width: 100%;
  height: calc(82vh - 4.75rem);
  min-height: 16rem;
  border: 0;
  border-radius: 4px;
  background: #fff;
}
.seller-doc-lightbox-img[hidden],
.seller-doc-lightbox-iframe[hidden] {
  display: none !important;
}
html.seller-doc-lightbox-open,
html.seller-doc-lightbox-open body {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .seller-doc-lightbox { transition: none; }
}
@media (max-width: 560px) {
  .seller-doc-lightbox-dialog {
    width: min(94vw, 960px);
    max-width: 94vw;
    max-height: 88vh;
  }
  .seller-doc-lightbox-actions {
    width: 100%;
  }
  .seller-doc-lightbox-btn {
    flex: 1 1 auto;
  }
}


/* —— KentPazarı cart (MVP localStorage) —— */
.header-actions > a.header-cart {
  position: relative;
  gap: 0.35rem;
  padding-right: 0.7rem;
}
.header-cart-ico {
  font-size: 1rem;
  line-height: 1;
}
.header-cart-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.15rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--white);
}
.header-cart-badge[hidden] { display: none !important; }

.card-actions {
  padding: 0 0.75rem 0.9rem;
  margin-top: 0;
}
.card-actions .btn-add-cart {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}
.product-card .card-ask,
.card-actions .card-ask {
  display: none !important;
}
.card-ask {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0.6rem 0 0;
  padding: 0.2rem 0.15rem 0.05rem;
  border: 0;
  background: transparent;
  color: #1a4d34;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  white-space: normal;
  overflow: visible;
  cursor: pointer;
}
.detail-actions [hidden],
.ilan-sahibi[hidden],
.ilan-sahibi [hidden] {
  display: none !important;
}
.ilan-sahibi {
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1rem;
  margin: 0;
  max-width: 320px;
  justify-self: end;
  align-self: start;
  width: 100%;
}
@media (min-width: 768px) {
  .product-detail.has-ilan-sahibi {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(240px, 300px);
  }
}
@media (max-width: 767px) {
  .product-detail > .detail-img { order: 1; }
  .product-detail > .kp-actbar { order: 2; width: 100%; }
  .product-detail.has-ilan-sahibi .ilan-sahibi {
    order: 3;
    max-width: none;
  }
  .product-detail > .detail-info { order: 4; }
}
@media (min-width: 768px) {
  .product-detail:not(.has-ilan-sahibi) > .detail-img { grid-column: 1; grid-row: 1 / span 2; }
  .product-detail:not(.has-ilan-sahibi) > .kp-actbar { grid-column: 2; grid-row: 1; }
  .product-detail:not(.has-ilan-sahibi) > .detail-info { grid-column: 2; grid-row: 2; }
  .product-detail.has-ilan-sahibi > .detail-img { grid-column: 1; grid-row: 1 / span 3; }
  .product-detail.has-ilan-sahibi > .detail-info { grid-column: 2; grid-row: 1 / span 3; }
  .product-detail.has-ilan-sahibi > .kp-actbar { grid-column: 3; grid-row: 1; align-self: start; }
  .product-detail.has-ilan-sahibi > .ilan-sahibi { grid-column: 3; grid-row: 2; }
}
.ilan-sahibi h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.ilan-sahibi-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
}
.ilan-rozet {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--sand);
  font-size: 0.75rem;
  font-weight: 600;
}
.ilan-sahibi-phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.ilan-sahibi-phone [data-ilan-phone] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.detail-actions .card-ask {
  margin-top: 0.75rem;
  font-size: 1.05rem;
}
.card-actions .card-ask:hover,
.card-actions .card-ask:focus-visible {
  color: var(--green-800);
}
.ask-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(28, 36, 32, 0.45);
}
.ask-modal[hidden] { display: none !important; }
.ask-modal-card {
  width: min(28rem, 100%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem 1.25rem;
}
.ask-modal-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.ask-modal-card .ask-product {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.ask-modal-card textarea {
  width: 100%;
  min-height: 6.5rem;
  resize: vertical;
}
.ask-modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.btn-sm {
  min-height: 2.25rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.cart-page {
  padding-bottom: 2rem;
}
.cart-empty {
  background: var(--white);
  border: 1px solid rgba(232, 224, 208, 0.9);
  border-radius: var(--radius);
  padding: 1.75rem 1.35rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.cart-empty .cart-empty-ico {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 0.65rem;
}
.cart-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid rgba(232, 224, 208, 0.9);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: var(--shadow);
}
@media (min-width: 560px) {
  .cart-item {
    grid-template-columns: 88px 1fr auto;
    align-items: center;
  }
}
.cart-item-media {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.6rem;
}
@media (min-width: 560px) {
  .cart-item-media { width: 88px; height: 88px; }
}
.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cart-item-seller {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.cart-item-name {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--green-900, #1b4332);
  text-decoration: none;
}
.cart-item-name:hover { text-decoration: underline; }
.cart-item-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cart-item-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.cart-item-controls input[type="number"] {
  width: 72px;
  min-height: 2.25rem;
  padding: 0.35rem 0.45rem;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: var(--white);
}
.cart-item-remove {
  border: none;
  background: transparent;
  color: #9b2226;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.35rem 0.4rem;
  min-height: var(--tap);
}
.cart-item-remove:hover,
.cart-item-remove:focus-visible {
  text-decoration: underline;
  outline: none;
}
.cart-item-line {
  font-weight: 700;
  color: var(--green-800);
  font-size: 0.95rem;
  white-space: nowrap;
  align-self: start;
}
@media (min-width: 560px) {
  .cart-item-line { align-self: center; text-align: right; min-width: 6.5rem; }
}
.cart-summary {
  background: var(--white);
  border: 1px solid rgba(232, 224, 208, 0.9);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0.75rem;
}
.cart-summary h2 {
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}
.cart-summary-row.total {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(232, 224, 208, 0.95);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-800);
}
.cart-summary .form-hint { margin: 0.75rem 0 0.9rem; }
.cart-summary .btn { width: 100%; }
.cart-summary .btn + .btn { margin-top: 0.5rem; }

/* —— Checkout / ödeme (PCI-aware scaffold) —— */
.checkout-page { padding-bottom: 2rem; }
.checkout-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}
.checkout-main { display: flex; flex-direction: column; gap: 1rem; }
.checkout-card {
  background: var(--white);
  border: 1px solid rgba(232, 224, 208, 0.9);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.checkout-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
  color: var(--green-900, #1b4332);
}
.checkout-secure-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: flex-start;
  background: var(--green-50, #d8f3dc);
  border: 1px solid rgba(45, 106, 79, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  color: var(--green-900, #1b4332);
  margin-bottom: 0.25rem;
}
.checkout-secure-banner strong { display: block; margin-bottom: 0.15rem; }
.checkout-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fff3cd;
  color: #7a5b00;
  border: 1px solid #f0d78c;
}
.checkout-mode-pill.is-sandbox { background: #e7f1ff; color: #0b3d91; border-color: #b6d0fe; }
.checkout-mode-pill.is-live { background: #d8f3dc; color: #1b4332; border-color: #95d5b2; }
.checkout-grid-2 {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 560px) {
  .checkout-grid-2 { grid-template-columns: 1fr 1fr; }
}
.checkout-card-fields {
  border: 1.5px dashed rgba(45, 106, 79, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  background: linear-gradient(180deg, #f8faf8 0%, #fff 100%);
  position: relative;
}
.checkout-card-fields::before {
  content: "Sağlayıcı alanı (iframe hazır)";
  position: absolute;
  top: -0.55rem;
  left: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #fff;
  padding: 0 0.35rem;
  color: var(--green-700, #2d6a4f);
}
.checkout-card-visual {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.checkout-card-row {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 480px) {
  .checkout-card-row { grid-template-columns: 1.4fr 1fr 0.9fr; }
}
.checkout-card-fields input[data-pci-field] {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.45rem 0.65rem;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: #fff;
  letter-spacing: 0.04em;
}
.checkout-card-fields label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}
.checkout-provider-frame {
  min-height: 0;
  border: none;
  /* Gerçek entegrasyonda buraya iyzico/PayTR iframe gelir */
}
.checkout-provider-frame[data-active="1"] {
  min-height: 220px;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  width: 100%;
  background: #fafafa;
}
.checkout-provider-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.65rem 0 0;
  line-height: 1.45;
}
.checkout-summary-lines {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.checkout-summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}
.checkout-summary-lines .qty { color: var(--text-muted); font-size: 0.8rem; }
.checkout-result {
  text-align: center;
  padding: 1.5rem 1rem;
}
.checkout-result .checkout-result-ico {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.5rem;
}
.checkout-result h2 { margin: 0 0 0.5rem; }
.checkout-paytr { max-width: 720px; margin: 0 auto; }
.paytr-frame-wrap {
  margin: 1rem 0;
  border: 1px solid rgba(45, 106, 79, 0.18);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  min-height: 420px;
}
.paytr-frame-wrap iframe { display: block; width: 100%; border: 0; }
.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.checkout-actions .btn { width: 100%; }
.checkout-profile-gate {
  background: #fff8e6;
  border: 1px solid #f0c36d;
  color: #5c3d00;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.checkout-profile-gate strong { display: block; margin-bottom: 0.25rem; }
.checkout-profile-gate p { margin: 0; }
.checkout-profile-lead { margin: -0.25rem 0 0.85rem; }
.checkout-ship {
  margin: 0.85rem 0 0.35rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(45, 106, 79, 0.12);
}
.checkout-ship h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.checkout-ship-opts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.55rem 0;
}
.checkout-ship-opt {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(45, 106, 79, 0.18);
  border-radius: 10px;
  cursor: pointer;
  background: #f7faf8;
}
.checkout-ship-opt:has(input:checked) {
  border-color: #2d6a4f;
  background: #eef7f1;
}
.checkout-ship-opt input { margin-top: 0.2rem; }
.checkout-ship-opt span { display: flex; flex-direction: column; gap: 0.15rem; }
.checkout-ship-opt strong { font-size: 0.95rem; color: #1b4332; }
.checkout-ship-opt em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-muted, #5c6b80);
}
.checkout-ship-opt-courier em {
  font-weight: 700;
  color: #1b4332;
}
.cart-summary-courier span:last-child {
  font-weight: 700;
  color: #1b4332;
}
.checkout-courier-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.35rem 0 0.2rem;
}
.checkout-cargo-detail {
  margin: 0.25rem 0 0.5rem;
}
.checkout-cargo-detail .form-hint { margin: 0; }
.checkout-tax-office {
  margin: 0;
}
.checkout-tax-office .opt-tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  vertical-align: middle;
}
.checkout-profile-savebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0.85rem 0 0.35rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #d8f3dc, #fff);
  border: 1px solid rgba(45, 106, 79, 0.22);
}
.checkout-profile-savebar-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 12rem;
}
.checkout-profile-savebar-text strong {
  font-size: 0.92rem;
  color: #1b4332;
}
.checkout-profile-savebar [data-checkout-save-profile] {
  flex: 0 0 auto;
  min-width: 7.5rem;
}
.checkout-profile-savebar .checkout-save-ok,
.form-hint.checkout-save-ok { color: #1b4332; font-weight: 600; }
.checkout-profile-savebar .checkout-save-err,
.form-hint.checkout-save-err { color: #9b2226; font-weight: 600; }
.checkout-actions [data-checkout-save-status] {
  margin: 0.15rem 0 0;
  text-align: center;
}
.checkout-actions .checkout-save-ok { color: #1b4332; }
.checkout-actions .checkout-save-err { color: #9b2226; }
button[data-checkout-submit]:disabled,
button[data-checkout-submit][aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.checkout-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin: 0.75rem 0;
}
.checkout-check input { margin-top: 0.2rem; }

.support-auth-gate {
  background: #fff8e6;
  border: 1px solid #f0c36d;
  color: #5c3d00;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.support-auth-gate[hidden] { display: none !important; }
.support-auth-gate strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}
.support-auth-gate p { margin: 0 0 0.85rem; }
.support-auth-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}
.support-auth-gate-actions .btn {
  flex: 1 1 10rem;
  text-align: center;
}
form[data-support-form][hidden] { display: none !important; }

.form-error-banner {
  background: #fff0f0;
  border: 1px solid #f5c2c7;
  color: #842029;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}
.form-ok-banner {
  background: #d8f3dc;
  border: 1px solid #95d5b2;
  color: #1b4332;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}


/* Google Identity Services button host */
.google-gis-slot {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 44px;
}
.google-gis-slot iframe {
  margin: 0 auto;
}

.hesabim-order-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}
.hesabim-order-filter,
.admin-sales-view {
  font: inherit;
  cursor: pointer;
}
.hesabim-order-filter {
  border: 1px solid var(--green-100);
  background: #fff;
  color: var(--green-800);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}
.hesabim-order-filter.is-on,
.admin-sales-view.is-on {
  background: var(--green-800);
  color: #fff;
  border-color: var(--green-800);
}

/* —— Değerlendirme / mağaza puanı —— */
.magaza-layout {
  display: grid;
  gap: 1.1rem;
  padding-bottom: 2.5rem;
}
.magaza-summary-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.magaza-store-meta {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.magaza-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  min-width: 8rem;
}
.magaza-score-inline {
  align-items: flex-start;
  margin: 0.5rem 0 1rem;
}
.magaza-score strong {
  font-size: 2rem;
  line-height: 1;
  color: var(--green-900);
}
.magaza-count {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.star-row {
  letter-spacing: 0.06em;
  color: #c4a035;
  font-size: 1.05rem;
  line-height: 1;
}
.star-row .star-empty { color: #c9c2b4; }
.magaza-breakdown {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--cream-dark);
}
.magaza-break-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr 2.4rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.magaza-break-bar {
  height: 0.45rem;
  background: #eee8dc;
  border-radius: 999px;
  overflow: hidden;
}
.magaza-break-bar > span {
  display: block;
  height: 100%;
  background: var(--green-700, #40916c);
  border-radius: inherit;
}
.star-picker {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.star-pick {
  appearance: none;
  border: 0;
  background: transparent;
  color: #c9c2b4;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem;
}
.star-pick.is-on,
.star-pick.is-hover { color: #c4a035; }
.review-list,
.review-pending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.review-item,
.review-pending {
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  background: #fff;
}
.review-item-top,
.review-pending-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}
.review-item-top strong,
.review-pending-top strong {
  color: var(--green-900);
}
.review-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.review-item p,
.review-pending p {
  margin: 0.45rem 0 0;
  line-height: 1.45;
  white-space: pre-wrap;
}
.review-pending .star-picker { margin-top: 0.55rem; }
.review-pending textarea {
  width: 100%;
  margin-top: 0.55rem;
  min-height: 4.5rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
  font: inherit;
  resize: vertical;
}
.review-pending .btn { margin-top: 0.55rem; }
.review-pending-msg {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.store-name-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.store-rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.35rem;
}
.store-rating-chip .star-row { font-size: 0.85rem; }

.product-reviews {
  margin: 1.25rem 0 2.5rem;
  max-width: none;
}
.product-reviews h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--green-900);
}
#product-review-form-card {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--cream-dark);
}
.admin-review-actions {
  white-space: nowrap;
}
.admin-review-actions .btn {
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.8rem;
}
#admin-reviews-kind {
  min-height: 2.4rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.55rem;
  background: #fff;
}

.footer-company {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.footer-company a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— 2026-10-08: ürün görseli boyut güvencesi (aspect-ratio desteklemeyen eski tarayıcılar dahil) —— */
.product-img,
.detail-img { background: #fff; }
.product-img img,
.detail-img img { max-width: 100%; max-height: 100%; background: #fff; }
@supports not (aspect-ratio: 1 / 1) {
  .product-img { height: 0; padding-top: 100%; }
  .detail-img { height: 0; padding-top: 100%; }
  .product-img img,
  .detail-img img { position: absolute; top: 0; left: 0; }
  .product-img .emoji { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
}

/* Kayıt telefon SMS doğrulama */
.form-group .kayit-otp-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.form-group .kayit-otp-row input {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}
.form-group .kayit-otp-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.kayit-otp-row [hidden] { display: none !important; }
.kayit-otp-ok {
  display: inline-flex;
  align-items: center;
  color: var(--green-700);
  font-weight: 700;
  white-space: nowrap;
}
.kayit-otp-box { margin-top: 0.55rem; }
#kayit-otp-box[hidden],
#profil-otp-box[hidden],
#giris-sms-otp-box[hidden] { display: none !important; }
.giris-yontem {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--line, #e6e6e6);
  margin: 0 0 1rem;
}
.giris-yontem-btn {
  background: none;
  border: none;
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.giris-yontem-btn.is-active { color: var(--green-800); border-bottom-color: var(--green-600); }
[data-giris-panel][hidden] { display: none !important; }
.giris-hatirla { margin-top: 0.85rem; }

.form-group .kayit-pwd-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.form-group .kayit-pwd-row input {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}
.form-group .kayit-pwd-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.kayit-pwd-guc {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 1.1em;
}
.kayit-pwd-guc.is-zayif { color: #9b2335; }
.kayit-pwd-guc.is-orta { color: #8a5a00; }
.kayit-pwd-guc.is-guclu { color: var(--green-700); }
.kayit-onaylar > label { align-items: flex-start; font-weight: 500; }
.kayit-onaylar a { font-weight: 700; }
#kayit-ref-wrap[hidden] { display: none !important; }

/* İletişim tercihi kartları — tekrar kullanılabilir */
.kp-choice {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
  min-inline-size: 0;
  width: 100%;
  max-width: 100%;
}
.kp-choice__title {
  float: none;
  width: auto;
  padding: 0;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text, #1a2e24);
}
.kp-choice__lead {
  margin: 0.2rem 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted, #5a6e64);
}
.kp-choice__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  min-width: 0;
}
.kp-choice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}
.kp-choice-card:hover {
  border-color: #b5b5b5;
  box-shadow: 0 4px 14px rgba(26, 61, 46, 0.08);
}
.kp-choice-card:has(.kp-choice-card__input:checked) {
  border-color: var(--green-700, #2d6a4f);
  background: var(--green-50, #f0faf4);
}
.kp-choice-card:has(.kp-choice-card__input:focus-visible) {
  outline: 2px solid var(--green-700, #2d6a4f);
  outline-offset: 2px;
}
.kp-choice-card:has(.kp-choice-card__input[value="hide"]:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.kp-choice-card__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.kp-choice-card__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50, #f0faf4);
  color: var(--green-700, #2d6a4f);
}
.kp-choice-card:has(.kp-choice-card__input:checked) .kp-choice-card__icon {
  background: #fff;
}
.kp-choice-card__icon svg { display: block; }
.kp-choice-card__body { min-width: 0; flex: 1 1 auto; }
.kp-choice-card__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  padding-right: 1.6rem;
}
.kp-choice-card__name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text, #1a2e24);
}
.kp-choice-card__text {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted, #5a6e64);
  overflow-wrap: anywhere;
}
.kp-choice-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: var(--green-100, #d8f3dc);
  color: var(--green-800, #234d3a);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.4;
}
.kp-choice-card__check,
.kp-choice-card__lock {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.kp-choice-card__check { background: var(--green-700, #2d6a4f); color: #fff; }
.kp-choice-card:has(.kp-choice-card__input:checked) .kp-choice-card__check { display: flex; }
.kp-choice-card__lock { background: #f4efe4; color: #6b5420; }
.kp-choice-card:has(.kp-choice-card__input:disabled) .kp-choice-card__lock { display: flex; }
.kp-choice-card:has(.kp-choice-card__input:checked) .kp-choice-card__lock { right: 38px; }
.kp-choice-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.9rem;
  background: #fbf6e8;
  border: 1px solid #ead9a8;
  border-radius: 12px;
  color: #6b5420;
  font-size: 0.86rem;
  line-height: 1.4;
}
.kp-choice-note[hidden] { display: none !important; }
.kp-choice-note__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-700, #2d6a4f);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.kp-choice-note__btn:hover { color: #fff; background: var(--green-800, #234d3a); }
.kp-choice__preview {
  margin: 0.7rem 0 0;
  padding: 8px 12px;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text, #1a2e24);
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .kp-choice__grid { grid-template-columns: 1fr; }
}

.kp-sahip-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.kp-sahip-tabs button {
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #1a2e24;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 650;
  cursor: pointer;
}
.kp-sahip-tabs button.is-on {
  background: #2d6a4f;
  border-color: #2d6a4f;
  color: #fff;
}
.kp-sahip-tabs span { margin-left: 4px; font-weight: 800; }
.kp-sahip-search {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
}
.kp-sahip-owner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
}
.kp-sahip-list { display: flex; flex-direction: column; gap: 12px; }
.kp-sahip-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px;
  transition: box-shadow .15s ease, opacity .25s ease, transform .25s ease;
}
.kp-sahip-card:hover { box-shadow: 0 6px 18px rgba(26, 61, 46, .08); }
.kp-sahip-card.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.kp-sahip-card__img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
  display: block;
}
.kp-sahip-card__img--empty { display: block; }
.kp-sahip-card__title { margin: 0 0 4px; font-size: 1rem; line-height: 1.3; }
.kp-sahip-card__price { margin: 0 0 4px; font-weight: 800; }
.kp-sahip-card__meta,
.kp-sahip-card__date { margin: 0; color: #5c6b64; font-size: .9rem; }
.kp-sahip-card__owner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 2px;
}
.kp-sahip-phone {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #d8f3dc;
  color: #1b4332;
  font-size: .75rem;
  font-weight: 700;
}
.kp-sahip-card__actions { display: flex; flex-direction: column; gap: 8px; }
.kp-sahip-ok {
  background: #2d6a4f;
  border: 1px solid #2d6a4f;
  color: #fff;
}
.kp-sahip-ok:hover { background: #1b4332; }
.kp-sahip-no {
  background: #fff;
  color: #9b2335;
  border: 1px solid #9b2335;
}
.kp-sahip-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 16px;
  text-align: center;
  color: #5c6b64;
}
.kp-sahip-empty[hidden] { display: none !important; }
.kp-sahip-empty svg { width: 48px; height: 48px; stroke: #2d6a4f; fill: none; stroke-width: 2; }
.kp-sahip-empty p { margin: 0; font-weight: 700; }
.kp-sahip-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 32, 26, .45);
}
.kp-sahip-modal[hidden] { display: none !important; }
.kp-sahip-modal__card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}
.kp-sahip-modal__card h3 { margin: 0 0 10px; }
.kp-sahip-modal textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 8px 10px;
}
.kp-sahip-modal__actions { display: flex; gap: 8px; margin-top: 10px; }
@media (max-width: 700px) {
  .kp-sahip-card { grid-template-columns: 1fr; align-items: start; }
  .kp-sahip-card__actions { width: 100%; }
  .kp-sahip-card__actions .btn { width: 100%; }
}

.kp-sahip-jump {
  background: none;
  border: 0;
  padding: 0;
  color: #9b2335;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.kp-admin-act-err {
  margin: .35rem 0 0;
  color: #9b2335;
  font-size: .85rem;
  font-weight: 650;
}
.pending-product.is-leaving,
article.is-leaving {
  opacity: 0;
  transition: opacity .26s ease;
}
.pending-product.is-approved-flash,
article.is-approved-flash {
  background: #e5f6ea;
  transition: background 1.2s ease;
}

.detail-img.has-gallery {
  aspect-ratio: auto;
  height: auto;
  padding-top: 0;
  overflow: visible;
  display: block;
  font-size: 1rem;
  align-items: stretch;
  justify-content: flex-start;
  touch-action: pan-y pinch-zoom;
}
.detail-img.has-gallery .zero-badge { z-index: 3; }
.detail-img.has-gallery .kp-gal img { position: static; max-height: none; }
.kp-gal__stage { position: relative; touch-action: pan-y pinch-zoom; }
.kp-gal__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 4 / 3;
  background: #f3f2ef;
  touch-action: pan-x pan-y pinch-zoom;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.kp-gal__track::-webkit-scrollbar { display: none; }
.kp-gal__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kp-gal__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3f2ef;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.kp-gal__count {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 24, 22, .62);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}
.kp-gal__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  color: #1a2e24;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.kp-gal__prev { left: 10px; }
.kp-gal__next { right: 10px; }
.kp-gal__nav[hidden] { display: none !important; }
.kp-gal__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.kp-gal__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d5d1c8;
  transition: background-color .2s ease, transform .2s ease;
}
.kp-gal__dot.is-on { background: #2d6a4f; transform: scale(1.45); }
.kp-gal__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.kp-gal__thumbs::-webkit-scrollbar { display: none; }
.kp-gal__thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f2ef;
  cursor: pointer;
}
.kp-gal__thumb.is-on { border-color: #2d6a4f; }
.kp-gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kp-gal-full {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kp-gal-full[hidden] { display: none !important; }
.kp-gal-full .kp-gal__track { width: 100%; height: 100%; aspect-ratio: auto; background: #000; }
.kp-gal-full .kp-gal__slide img { background: #000; }
.kp-gal-full__x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
body.kp-gal-lock { overflow: hidden; }
@media (max-width: 768px) {
  .kp-gal__nav, .kp-gal__thumbs { display: none; }
  .kp-gal-full .kp-gal__nav { display: block; }
  .kp-gal-full .kp-gal__nav[hidden] { display: none !important; }
}
@media (min-width: 769px) {
  .kp-gal__dots { display: none; }
  .kp-gal__nav { opacity: .6; transition: opacity .2s ease; }
  .kp-gal__stage:hover .kp-gal__nav,
  .kp-gal__nav:hover,
  .kp-gal__nav:focus,
  .kp-gal-full .kp-gal__nav:hover,
  .kp-gal-full .kp-gal__nav:focus { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .kp-gal__track { scroll-behavior: auto; }
  .pending-product.is-leaving, article.is-leaving { transition: none; }
}

/* —— Mesaj zarfı ve paneli —— */
.kp-msg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--green-800);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .22s ease, transform .22s ease;
}
.kp-msg-btn svg { width: 22px; height: 22px; display: block; }
.kp-msg-btn:hover,
.kp-msg-btn:focus-visible { background: rgba(26, 46, 36, .08); outline: none; }
.kp-msg-btn:focus-visible { box-shadow: 0 0 0 3px rgba(45, 106, 79, .28); }
.kp-msg-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  border: 2px solid #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  pointer-events: none;
}
.kp-msg-badge[hidden] { display: none; }
@keyframes kpMsgPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 57, 53, .45); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 7px rgba(229, 57, 53, 0); }
}
.kp-msg-btn.has-unread { animation: kpMsgPulse 1.6s ease-in-out 3; }
@media (max-width: 768px) {
  .header-top > .kp-msg-btn {
    width: 36px;
    height: 36px;
    margin-left: 0;
    flex: 0 0 auto;
  }
  .header-top > .kp-msg-btn + .nav-toggle { margin-left: .35rem; flex: 0 0 auto; }
}
.kp-msg-live.visually-hidden { position: absolute; }

.kp-msg-panel[hidden] { display: none; }
.kp-msg-back {
  position: fixed;
  inset: 0;
  z-index: 4600;
  border: 0;
  padding: 0;
  background: rgba(26, 46, 36, .46);
  cursor: pointer;
  opacity: 0;
  transition: opacity .22s ease;
}
.kp-msg-panel.is-open .kp-msg-back { opacity: 1; }
.kp-msg-sheet {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 4601;
  width: min(420px, 100%);
  max-width: 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  border-radius: 16px 0 0 16px;
  box-shadow: -16px 0 48px rgba(26, 61, 46, .16);
  transform: translateX(104%);
  transition: transform .24s ease;
}
.kp-msg-panel.is-open .kp-msg-sheet { transform: translateX(0); }
@media (max-width: 768px) {
  .kp-msg-sheet {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    border-radius: 0;
    transform: translateY(-100%);
    padding-top: env(safe-area-inset-top, 0px);
  }
  .kp-msg-panel.is-open .kp-msg-sheet { transform: translateY(0); }
}
.kp-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .85rem 1rem .35rem;
  min-height: 60px;
}
.kp-msg-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -.02em;
  color: var(--green-900);
}
.kp-msg-x,
.kp-msg-backrow {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--green-900);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}
.kp-msg-x { width: 44px; font-size: 1.45rem; line-height: 1; }
.kp-msg-x:hover,
.kp-msg-x:focus-visible,
.kp-msg-backrow:hover,
.kp-msg-backrow:focus-visible { background: var(--cream); outline: none; }
.kp-msg-tabs {
  display: flex;
  gap: .5rem;
  padding: .35rem 1rem .75rem;
}
.kp-msg-tab {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.kp-msg-tab.is-on {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}
.kp-msg-tabn {
  display: inline-block;
  min-width: 18px;
  margin-left: .35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: .68rem;
  line-height: 18px;
  vertical-align: 1px;
}
.kp-msg-tab.is-on .kp-msg-tabn { background: #fff; color: #c62828; }
.kp-msg-tabn[hidden] { display: none; }
.kp-msg-scroll {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.kp-msg-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  column-gap: .65rem;
  row-gap: .12rem;
  width: 100%;
  min-height: 44px;
  padding: .8rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--sand);
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease;
}
.kp-msg-row:hover,
.kp-msg-row:focus-visible { background: var(--green-50); outline: none; }
.kp-msg-dot {
  grid-row: 1 / span 3;
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}
.kp-msg-row.is-unread .kp-msg-dot { background: #1565c0; }
.kp-msg-row.is-unread .kp-msg-row-title,
.kp-msg-row.is-unread .kp-msg-row-q { font-weight: 700; }
.kp-msg-row-title {
  font-size: .92rem;
  color: var(--green-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kp-msg-row-q,
.kp-msg-row-meta {
  grid-column: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kp-msg-row-q { font-size: .84rem; color: var(--text); }
.kp-msg-row-meta { font-size: .75rem; color: var(--text-muted); }
.kp-msg-empty,
.kp-msg-skel { padding: 1.5rem 1rem 2rem; }
.kp-msg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  color: var(--text-muted);
  text-align: center;
}
.kp-msg-empty svg { width: 42px; height: 42px; color: var(--green-600); }
.kp-msg-empty p { margin: 0; font-weight: 700; color: var(--green-900); }
.kp-msg-skel span {
  display: block;
  height: 68px;
  margin-bottom: .55rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #f3f1eb 20%, #fff 50%, #f3f1eb 80%);
  background-size: 200% 100%;
  animation: kpMsgShimmer 1.15s ease infinite;
}
@keyframes kpMsgShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.kp-msg-detail { padding: .35rem 1rem 1.25rem; }
.kp-msg-backrow { padding: 0 .7rem; margin: 0 0 .35rem -0.35rem; }
.kp-msg-ilan {
  display: block;
  margin: .25rem 0 .75rem;
  padding: .75rem .85rem;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-900);
  font-weight: 700;
  line-height: 1.35;
  transition: background .2s ease;
}
.kp-msg-ilan:hover { background: var(--green-100); }
.kp-msg-kicker { margin: 0; font-size: .75rem; font-weight: 700; color: var(--green-600); letter-spacing: .04em; text-transform: uppercase; }
.kp-msg-q,
.kp-msg-a {
  margin: .45rem 0;
  line-height: 1.5;
}
.kp-msg-a {
  padding: .75rem .85rem;
  border-radius: 12px;
  background: var(--cream);
}
.kp-msg-compose {
  flex: 0 0 auto;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--sand);
  background: #fff;
  box-shadow: 0 -8px 24px rgba(26, 61, 46, .05);
}
.kp-msg-compose[hidden] { display: none; }
.kp-msg-note { margin: 0 0 .45rem; font-size: .88rem; font-weight: 700; }
.kp-msg-note[hidden] { display: none; }
.kp-msg-note.is-err { color: #e53935; }
.kp-msg-note.is-ok { color: var(--green-700); }
.kp-msg-compose textarea {
  width: 100%;
  min-height: 88px;
  padding: .75rem .85rem;
  border: 1px solid var(--sand);
  border-radius: 12px;
  background: var(--cream);
  color: var(--text);
  font: inherit;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.kp-msg-compose textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(82, 183, 136, .28);
}
.kp-msg-send {
  width: 100%;
  min-height: 44px;
  margin-top: .55rem;
  border: 0;
  border-radius: 12px;
  background: var(--green-700);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}
.kp-msg-send:hover,
.kp-msg-send:focus-visible { background: var(--green-800); outline: none; }
.kp-msg-send:disabled { opacity: .6; cursor: default; }
.kp-msg-page {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
body.kp-msg-open #kp-assistant,
body.kp-msg-open #kp-cookie-bar,
.page-mesajlar #kp-assistant { display: none !important; }
@media (max-width: 860px) {
  .page-mesajlar .hesabim-layout { display: flex; flex-direction: column; }
  .page-mesajlar .hesabim-main { order: -1; }
  .page-mesajlar .kp-hesap-menu > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .55rem .75rem;
    border-radius: 12px;
    font-weight: 750;
    color: var(--green-900);
    cursor: pointer;
    list-style: none;
  }
  .page-mesajlar .kp-hesap-menu > summary::-webkit-details-marker { display: none; }
  .page-mesajlar .kp-hesap-menu:not([open]) .kp-hesap-menu-body { display: none; }
  .page-mesajlar .kp-hesap-menu[open] .kp-hesap-menu-body { display: flex; flex-direction: column; gap: .15rem; margin-top: .35rem; }
}
@media (min-width: 861px) {
  .page-mesajlar .kp-hesap-menu > summary { display: none; }
  .page-mesajlar .kp-hesap-menu-body { display: flex !important; flex-direction: column; gap: .15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .kp-msg-btn.has-unread { animation: none; box-shadow: inset 0 0 0 2px #e53935; }
  .kp-msg-skel span { animation: none; }
  .kp-msg-sheet,
  .kp-msg-back,
  .kp-msg-tab,
  .kp-msg-row,
  .kp-msg-btn { transition: none; }
  .kp-actbar__btn,
  .kp-share__menu,
  .kp-share__item { transition: none; animation: none; }
}

.kp-actbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  width: 100%;
}
.kp-share { position: relative; min-width: 0; }
.kp-actbar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  min-height: 44px;
  padding: 0.45rem 0.3rem;
  border: 1px solid var(--sand);
  border-radius: 12px;
  background: var(--white);
  color: var(--green-800);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.kp-actbar__btn svg { width: 18px; height: 18px; display: block; }
.kp-actbar__btn:hover,
.kp-actbar__btn:focus-visible {
  background: var(--green-50);
  border-color: var(--green-500);
  outline: none;
}
.kp-actbar__btn.is-on {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff5f5;
}
.kp-share__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 220px;
  max-width: min(280px, 92vw);
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 0.35rem;
}
.kp-share__menu[hidden] { display: none !important; }
.kp-share__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.kp-share__item:hover,
.kp-share__item:focus-visible {
  background: var(--green-50);
  color: var(--green-900);
  outline: none;
}
@media (max-width: 767px) {
  body.kp-share-open #kp-assistant,
  body.kp-share-open #kp-cookie-bar { display: none !important; }
  body.kp-share-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 4050;
  }
  .kp-share__menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 4100;
    max-width: none;
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 0.35rem 0.5rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    max-height: min(80vh, 560px);
    overflow: auto;
  }
  .kp-share__menu::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    margin: 0.2rem auto 0.45rem;
    border-radius: 999px;
    background: #cfc8bc;
  }
  body.kp-share-open .kp-share__menu {
    animation: kp-share-up 220ms ease;
  }
}
@keyframes kp-share-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.kp-print-meta { display: none; }

@media print {
  @page { size: A4; margin: 8mm; }
  html, body {
    overflow: visible !important;
    background: #fff !important;
    padding: 0 !important;
    height: auto !important;
  }
  .site-header,
  .ad-bar,
  .bottom-nav,
  .site-footer,
  .breadcrumb,
  .page-header,
  .kp-actbar,
  .detail-actions,
  .similar-products,
  .product-reviews,
  .zero-badge,
  .toast,
  #kp-assistant,
  #kp-cookie-bar,
  #kp-install-banner,
  .kp-msg-sheet,
  #kp-msg-panel,
  .kp-msg-btn,
  .kp-share__menu,
  .detail-note,
  .card-ask,
  [data-show-phone],
  [data-call-phone],
  [data-ilan-soru] { display: none !important; }
  .ilan-sahibi-phone { display: none !important; }
  .ilan-sahibi-phone.is-open { display: block !important; }
  .kp-print-meta {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ccc;
    color: #1a2e24;
    font-size: 12px;
  }
  .kp-print-logo { width: 36px; height: 36px; }
  .kp-print-meta p { margin: 0; }
  .product-detail { display: block !important; background: #fff !important; }
  .detail-img,
  .detail-img.has-gallery {
    height: auto !important;
    overflow: visible !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    border: 0;
    background: none !important;
  }
  .kp-gal,
  .kp-gal__stage { overflow: visible !important; height: auto !important; background: none !important; }
  .kp-gal__track {
    aspect-ratio: auto !important;
    height: auto !important;
    background: none !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    overflow: visible !important;
    transform: none !important;
    width: 100% !important;
  }
  .kp-gal__nav,
  .kp-gal__dots,
  .kp-gal__thumbs,
  .kp-gal__count,
  .kp-gal-full { display: none !important; }
  .kp-gal__slide {
    display: none !important;
    height: auto !important;
    flex: 0 0 32% !important;
    width: auto !important;
    background: none !important;
  }
  .kp-gal__slide:nth-child(-n+3) {
    display: flex !important;
    break-inside: avoid;
    margin: 0;
  }
  .detail-img img {
    position: static !important;
    max-height: 180px !important;
    width: auto !important;
    max-width: 100% !important;
    background: none !important;
  }
  .kp-gal__slide img {
    position: static !important;
    width: 100% !important;
    height: 180px !important;
    max-height: 180px !important;
    object-fit: cover !important;
    background: none !important;
  }
  .vehicle-specs,
  .detail-desc,
  .detail-price,
  .detail-info h1,
  .detail-seller { display: block !important; }
  .detail-info:empty,
  .detail-info > :empty,
  .detail-info [hidden],
  .vehicle-specs:empty,
  .vehicle-specs[hidden],
  .detail-desc:empty,
  .detail-img:empty,
  .ilan-sahibi:empty,
  .form-card:empty { display: none !important; }
  .detail-info h1 { font-size: 16px !important; margin: 0.2rem 0 !important; }
  .detail-desc,
  .vehicle-specs { font-size: 12px !important; }
  .kp-print-meta { break-after: avoid; }
}

.kp-off-tag {
  display: inline-block;
  margin: 0.45rem 0.65rem 0;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #4b5563;
  font-size: 0.72rem;
  font-weight: 700;
}
.product-card.is-unpublished { background: #f3f4f6; }
.product-card.is-unpublished .product-img img,
.product-card.is-unpublished .product-body { filter: grayscale(1); opacity: 0.8; }
.kp-fav-card {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
#favorilerim-empty { margin: 0.5rem 0 1rem; }
