/* DoğaVitrin Admin — doğal / köy paneli */
.page-admin {
  background: #eef2ec;
  overflow-x: hidden;
}
.page-admin .site-main-admin,
.page-admin .admin-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
.page-admin .site-main {
  padding: 0;
  min-height: 100vh;
  background: #eef2ec;
  width: 100%;
  overflow-x: hidden;
}
.page-admin .site-header,
.page-admin .site-footer {
  display: none !important;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.admin-side {
  background: #1f3324;
  color: #e8f0e6;
  padding: 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.admin-mobile-bar { display: none; }
.admin-backdrop { display: none; }
.admin-side-close { display: none; }

.admin-side-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.4rem 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  flex-shrink: 0;
}
.admin-side-brand span {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #6aa85a, #2f6b3a);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}
.admin-side-brand strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.2;
}
.admin-side-brand small {
  color: rgba(232,240,230,0.65);
  font-size: 0.68rem;
}

.admin-nav {
  display: grid;
  gap: 0.12rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.admin-nav .nav-label {
  margin: 0.45rem 0.45rem 0.15rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232,240,230,0.45);
  font-weight: 700;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.6rem;
  border-radius: 8px;
  color: rgba(232,240,230,0.82);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.25;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.admin-nav a.is-active {
  background: #c6a15b;
  color: #1f2a1a;
}
.admin-nav a .ico {
  width: 16px;
  opacity: 0.9;
}

.admin-side-foot {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.admin-side-foot a {
  color: rgba(232,240,230,0.7);
  font-size: 0.74rem;
  padding: 0.32rem 0.55rem;
  border-radius: 7px;
}
.admin-side-foot a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.admin-main {
  padding: 1.25rem 1.5rem 2.5rem;
  min-width: 0;
}

.admin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-top h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.85rem;
  color: #1f2a1a;
  font-weight: 700;
}
.admin-top p {
  margin: 0.25rem 0 0;
  color: #5f6d57;
  font-size: 0.92rem;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 10px;
  background: #2f6b3a;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}
.admin-btn:hover { background: #24552d; color: #fff; }
.admin-btn.ghost {
  background: #fff;
  color: #2f6b3a;
  border: 1px solid #c9d7c2;
}
.admin-btn.ghost:hover { background: #f4f8f2; }
.admin-btn.danger {
  background: #9b2c2c;
}
.admin-btn.sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.admin-alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.admin-alert.ok {
  background: #e7f5ea;
  color: #1f6b3a;
  border: 1px solid #b9dfc4;
}
.admin-alert.error {
  background: #fdecec;
  color: #9b2c2c;
  border: 1px solid #f0c4c4;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.admin-stat {
  background: #fff;
  border: 1px solid #dce6d6;
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 10px 28px rgba(31,42,26,0.05);
  position: relative;
  overflow: hidden;
}
.admin-stat::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,107,58,0.12), transparent 70%);
}
.admin-stat .label {
  color: #6b7864;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}
.admin-stat .value {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1f2a1a;
  line-height: 1;
}
.admin-stat .meta {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: #5f6d57;
}

.admin-panel {
  background: #fff;
  border: 1px solid #dce6d6;
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 10px 28px rgba(31,42,26,0.04);
  margin-bottom: 1.15rem;
}
.admin-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: #1f2a1a;
}
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.admin-panel-head h2 { margin: 0; }

.admin-table {
  display: grid;
  gap: 0.65rem;
}
.admin-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #e4ebe0;
  border-radius: 12px;
  background: #fbfcf9;
}
.admin-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #e8efe4;
}
.admin-row strong {
  display: block;
  color: #1f2a1a;
  margin-bottom: 0.2rem;
}
.admin-row .hint {
  color: #6b7864;
  font-size: 0.84rem;
}
.admin-row .share-line {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.admin-row .share-line input {
  flex: 1;
  min-width: 180px;
  border: 1px solid #d5e0cc;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font: inherit;
  font-size: 0.8rem;
  background: #fff;
}
.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
}
.admin-badge {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e7f5ea;
  color: #1f6b3a;
}
.admin-badge.off {
  background: #f3f3f3;
  color: #777;
}
.admin-badge.sold {
  background: #fff3d9;
  color: #8a6410;
}
.admin-badge.wait {
  background: #fff3d9;
  color: #8a6410;
}
.admin-badge.paid {
  background: #e7f5ea;
  color: #1f6b3a;
}

.admin-form {
  display: grid;
  gap: 0.9rem;
  max-width: 720px;
}
.admin-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: #2a3526;
  font-size: 0.9rem;
}
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #cfdcc8;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
}
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: 2px solid rgba(47,107,58,0.25);
  border-color: #2f6b3a;
}
.admin-form textarea.admin-code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.45;
  min-height: 260px;
}
.admin-form .admin-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.admin-form .admin-check input {
  width: auto;
}
.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.admin-form-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.admin-product-form { max-width: 860px; }

.admin-color-field,
.admin-ship-field {
  border: 1px solid #d5e0cc;
  border-radius: 12px;
  padding: 0.85rem 1rem 1rem;
  margin: 0;
  background: #fbfdf9;
}
.admin-color-field legend,
.admin-ship-field legend {
  padding: 0 0.35rem;
  font-weight: 800;
  color: #2a3526;
  font-size: 0.9rem;
}
.admin-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
}
.admin-color-opt {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem 0.35rem 0.4rem;
  border: 1px solid #d5e0cc;
  border-radius: 999px;
  background: #fff;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  color: #333 !important;
  cursor: pointer;
  grid: none !important;
}
.admin-color-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  padding: 0 !important;
  border: 0 !important;
}
.admin-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.admin-color-dot.is-none {
  background: #fff;
  box-shadow: inset 0 0 0 1px #c5cec0;
  position: relative;
}
.admin-color-dot.is-none::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  height: 1.5px;
  background: #c45;
  transform: rotate(-40deg);
}
.admin-color-opt:has(input:checked),
.admin-color-opt.is-on {
  border-color: #2f6b3a;
  box-shadow: 0 0 0 2px rgba(47, 107, 58, 0.18);
  background: #f0f7ee;
}

.admin-ship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.admin-ship-opt {
  display: grid !important;
  gap: 0.2rem !important;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d5e0cc;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  position: relative;
  font-weight: 600 !important;
}
.admin-ship-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  padding: 0 !important;
  border: 0 !important;
}
.admin-ship-opt strong {
  font-size: 0.9rem;
  color: #1f2a1a;
}
.admin-ship-opt span {
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7864;
}
.admin-ship-opt:has(input:checked),
.admin-ship-opt.is-on {
  border-color: #2f6b3a;
  box-shadow: 0 0 0 2px rgba(47, 107, 58, 0.18);
  background: #f0f7ee;
}
@media (max-width: 720px) {
  .admin-ship-grid { grid-template-columns: 1fr; }
}
.bank-logo,
.bank-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e5ebe1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  object-fit: contain;
  padding: 3px;
  box-sizing: border-box;
}
.bank-logo-box {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border: 1px dashed #b7c9b0;
  border-radius: 12px;
  background: #f8fbf6;
}
.bank-logo-box-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #2f3d2f;
}
.bank-logo-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #5f6d57;
  font-size: 0.86rem;
}
.bank-logo-lg {
  width: 72px !important;
  height: 72px !important;
  border-radius: 14px !important;
  padding: 6px !important;
}
.bank-logo-file span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid #3d7a45;
  border-radius: 8px;
  color: #3d7a45;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  background: #fff;
}
.bank-logo-file input[type="file"] {
  margin-top: 0.35rem;
  font: inherit;
}
.admin-iban-bankline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  grid-column: 1 / -1;
}
.admin-iban-auto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f3f7f0;
  border: 1px solid #d5e0cc;
}
.admin-iban-auto span {
  display: block;
  font-size: 0.75rem;
  color: #6b7864;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.admin-iban-auto strong {
  font-size: 0.9rem;
  color: #1f2a1a;
  word-break: break-all;
}
.admin-feature-head,
.admin-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr 72px;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.45rem;
}
.admin-feature-head {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7864;
}
.admin-feature-row input {
  border: 1px solid #cfdcc8;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.admin-comment-thread {
  border: 1px solid #e4ebe0;
  border-radius: 12px;
  padding: 0.65rem;
  margin-bottom: 0.55rem;
  background: #fbfcf9;
}
.admin-reply-row {
  margin-top: 0.4rem;
  padding-left: 0.75rem;
  border-left: 3px solid #c6a15b;
}
.admin-reply-tag {
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #8a6410;
  background: #fff3d9;
  border-radius: 8px;
  min-height: 38px;
}
.admin-form .hint {
  margin: 0;
  color: #6b7864;
  font-size: 0.82rem;
  font-weight: 500;
}

.admin-thumbs-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.admin-thumbs-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dce6d6;
}

.admin-order {
  border: 1px solid #e4ebe0;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  margin-bottom: 0.65rem;
  background: #fbfcf9;
}
.admin-order-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.admin-order p {
  margin: 0.25rem 0;
  color: #4a5845;
  font-size: 0.9rem;
}

/* Login /temo */
.page-admin-login .admin-container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(198,161,91,0.22), transparent 35%),
    linear-gradient(160deg, #1f3324 0%, #2f6b3a 45%, #eef2ec 45%);
}
.admin-login-page {
  width: min(420px, 100%);
}
.admin-login-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 24px 50px rgba(20,30,18,0.22);
  display: grid;
  gap: 0.85rem;
}
.admin-login-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.35rem;
}
.admin-login-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #6aa85a, #2f6b3a);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}
.admin-login-brand strong {
  display: block;
  font-size: 1.15rem;
  color: #1f2a1a;
}
.admin-login-brand p {
  margin: 0.15rem 0 0;
  color: #6b7864;
  font-size: 0.86rem;
}
.admin-login-card label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #2a3526;
}
.admin-login-card input {
  border: 1px solid #cfdcc8;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
}
.admin-login-hint {
  margin: 0;
  text-align: center;
  color: #7a8674;
  font-size: 0.8rem;
}
.admin-login-hint code {
  background: #f0f4ec;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

@media (max-width: 960px) {
  /* Sidebar/backdrop akıştan çıksın — grid boşluğu kalmasın */
  .admin-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .admin-mobile-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    background: #1f3324;
    color: #e8f0e6;
    box-shadow: 0 6px 18px rgba(20, 30, 18, 0.2);
  }
  .admin-burger {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: grid;
    gap: 5px;
    place-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .admin-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }
  .admin-mobile-brand {
    flex: 1;
    min-width: 0;
  }
  .admin-mobile-brand strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
  }
  .admin-mobile-brand small {
    display: block;
    color: rgba(232,240,230,0.65);
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .admin-mobile-bar .admin-btn.sm {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
  }
  .admin-mobile-spacer { width: 42px; flex-shrink: 0; }

  .admin-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    width: auto;
    height: auto;
    background: rgba(15, 22, 14, 0.45);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }
  .admin-backdrop[hidden] { display: none !important; }

  .admin-side {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 70;
    width: min(280px, 86vw);
    height: 100vh;
    height: 100dvh;
    padding: 0.75rem 0.65rem;
    gap: 0.55rem;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 12px 0 40px rgba(0,0,0,0.25);
    overflow: hidden;
    flex: none;
  }
  .admin-shell.is-nav-open .admin-side {
    transform: translateX(0);
  }
  .admin-side-brand {
    padding-right: 2.4rem;
  }
  .admin-side-brand small { display: block; }
  .admin-side-close {
    display: grid;
    place-items: center;
    position: absolute;
    right: 0;
    top: 0.15rem;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
  }

  .admin-nav .nav-label { display: block; }

  .admin-main {
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.85rem 0.75rem 2.5rem;
  }
  .admin-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  /* Mobil üst bar zaten başlık gösteriyor */
  .admin-top {
    display: none;
  }

  .admin-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.9rem 0.85rem;
    border-radius: 12px;
    margin-bottom: 0.85rem;
    overflow: hidden;
  }
  .admin-panel-head {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-panel-head .admin-btn { width: 100%; }

  .admin-stats { grid-template-columns: 1fr; }
  .admin-row {
    grid-template-columns: 56px 1fr;
    gap: 0.65rem;
  }
  .admin-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .admin-actions .admin-btn {
    flex: 1 1 auto;
    min-width: 0;
  }
  .admin-form,
  .admin-product-form {
    max-width: none;
    width: 100%;
  }
  .admin-form label {
    min-width: 0;
  }
  .admin-form-row,
  .admin-form-grid3,
  .admin-iban-auto,
  .admin-feature-head,
  .admin-feature-row,
  .theme-grid,
  .theme-fonts {
    grid-template-columns: 1fr !important;
  }
  .admin-feature-row .admin-btn,
  .admin-btn[type="submit"] {
    width: 100%;
  }
  .admin-color-opt {
    max-width: 100%;
  }
  .bank-logo-preview {
    flex-wrap: wrap;
  }
  .admin-table,
  .admin-row {
    min-width: 0;
  }

  body.admin-nav-lock {
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  .admin-main {
    padding: 0.7rem 0.55rem 2.25rem;
  }
  .admin-panel {
    padding: 0.75rem 0.7rem;
    border-radius: 10px;
  }
  .admin-form input,
  .admin-form textarea,
  .admin-form select {
    padding: 0.65rem 0.7rem;
    font-size: 1rem; /* iOS zoom önleme */
  }
}
