/* Velmora — çikolata tanıtım sitesi */
:root {
  --bg: #0f0c0a;
  --bg-elev: #1a1512;
  --surface: #241e1a;
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --gold-dim: #8a7344;
  --cream: #f5efe6;
  --muted: #a89f94;
  --white: #faf8f5;
  --danger: #c45c5c;
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* Top bar */
.topbar {
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(201, 169, 98, 0.15);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 12, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 98, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.logo span {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--gold-dim);
  margin-top: 0.15rem;
}

.nav-main {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.nav-main a {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-main a:hover {
  color: var(--gold);
}

.header-cta {
  font-size: 0.85rem;
  color: var(--muted);
}

.header-cta a {
  color: var(--gold);
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__bg-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(15, 12, 10, 0.92) 0%,
    rgba(15, 12, 10, 0.55) 45%,
    rgba(15, 12, 10, 0.75) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 1rem;
  max-width: 14ch;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 36ch;
  margin: 0 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, #a68540 100%);
  color: #1a1208;
  box-shadow: 0 8px 28px rgba(201, 169, 98, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 12px 36px rgba(201, 169, 98, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(201, 169, 98, 0.45);
}

.btn--ghost:hover {
  background: rgba(201, 169, 98, 0.1);
}

.btn--danger {
  background: rgba(196, 92, 92, 0.2);
  color: #f0b0b0;
  border: 1px solid rgba(196, 92, 92, 0.5);
}

.btn--xs {
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 8px;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--bg-elev);
  border-block: 1px solid rgba(201, 169, 98, 0.08);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--white);
  margin: 0 0 0.75rem;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 169, 98, 0.12);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 98, 0.35);
}

.product-card__media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #120f0d;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--gold-dim);
  font-size: 0.9rem;
}

.product-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.product-card__cat {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin: 0.5rem 0 0.65rem;
  line-height: 1.25;
}

.product-card__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.product-card--compact .product-card__title {
  font-size: 1.15rem;
}

/* Story */
.story-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.story-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 169, 98, 0.2);
  aspect-ratio: 4 / 3;
}

.story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-copy h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin: 0 0 1rem;
}

.story-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.pill {
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.35);
  color: var(--gold-light);
}

/* Notice */
.notice {
  background: linear-gradient(90deg, rgba(201, 169, 98, 0.12), transparent);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(201, 169, 98, 0.12);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand .logo {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  max-width: 32ch;
}

.footer-col h3 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--cream);
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Admin */
.admin-body {
  min-height: 100vh;
  padding: 2rem 0 4rem;
}

.admin-card {
  background: var(--surface);
  border: 1px solid rgba(201, 169, 98, 0.15);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.admin-card h1 {
  font-family: var(--font-display);
  color: var(--white);
  margin: 0 0 0.5rem;
}

.admin-card > .sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.gate-box {
  max-width: 360px;
  margin: 2rem auto;
  text-align: center;
}

.gate-box label {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.gate-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #e8a0a0;
  min-height: 1.25em;
}

.admin-save-bar {
  position: sticky;
  top: 58px;
  z-index: 48;
  margin: -1rem -2rem 1.35rem;
  padding: 1.1rem 2rem;
  background: linear-gradient(180deg, #2c241e 0%, var(--surface) 100%);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .admin-save-bar {
    top: 52px;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.admin-save-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-save-bar__text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 12rem;
}

.admin-save-bar__title {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-save-bar__hint {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.btn--kaydet {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 1rem 1.75rem;
  min-width: 11rem;
  box-shadow: 0 6px 28px rgba(201, 169, 98, 0.4);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(201, 169, 98, 0.12);
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  text-align: left;
}

.admin-table th {
  background: rgba(0, 0, 0, 0.25);
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.td-center {
  text-align: center;
}

.td-actions {
  white-space: nowrap;
}

.inp {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 169, 98, 0.25);
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.inp:focus {
  outline: 2px solid var(--gold-dim);
  outline-offset: 1px;
}

.inp--sm {
  min-width: 120px;
}

.inp--area {
  resize: vertical;
  min-height: 52px;
}

.status-msg {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gold-light);
}

.import-export {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .import-export {
    grid-template-columns: 1fr 1fr;
  }
}

.import-export label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.import-export textarea {
  width: 100%;
  min-height: 140px;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
}

/* ——— Layout: mobil menü, sayfa şablonları, formlar ——— */

.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;
}

.nav-link {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link--active {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  color: var(--gold-light);
}

.nav-toggle__bars {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  box-shadow:
    0 -6px 0 currentColor,
    0 6px 0 currentColor;
}

@media (min-width: 769px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .nav-main {
    flex: 1;
    justify-content: center;
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .logo {
    order: 1;
  }

  .nav-toggle {
    order: 2;
    display: flex;
    margin-left: auto;
  }

  .header-cta {
    order: 3;
  }

  .nav-main {
    order: 4;
    flex-basis: 100%;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 0 0.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(201, 169, 98, 0.15);
  }

  .site-header.nav-open .nav-main {
    display: flex;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Product card as link */
a.product-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.product-card--link:hover .product-card__title {
  color: var(--gold-light);
}

a.product-card--link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.product-card__cta {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Inner pages */
.page-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
  border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

.page-hero--sm {
  padding: 2.25rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--white);
  margin: 0.75rem 0 0;
  line-height: 1.15;
}

.page-lead {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.breadcrumb a {
  color: var(--gold-light);
}

.section--tight {
  padding-top: 2.5rem;
}

/* Chips / catalog */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.35);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.chip:hover {
  background: rgba(201, 169, 98, 0.1);
}

.chip--active {
  background: rgba(201, 169, 98, 0.22);
  border-color: var(--gold);
  color: var(--white);
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.catalog-count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Product detail */
.product-detail__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .product-detail__grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.product-detail__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 169, 98, 0.2);
  background: #120f0d;
}

.product-detail__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.product-detail__placeholder {
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dim);
}

.product-detail__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--white);
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
}

.product-detail__desc {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.product-detail__notice {
  margin-top: 1rem;
}

/* Stores */
.store-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.store-card {
  background: var(--surface);
  border: 1px solid rgba(201, 169, 98, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.store-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  margin: 0 0 0.75rem;
}

.store-card__addr {
  color: var(--cream);
  margin: 0 0 0.5rem;
}

.store-card__meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.35rem;
}

.store-card__map {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.contact-card,
.contact-aside {
  background: var(--surface);
  border: 1px solid rgba(201, 169, 98, 0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-card h2,
.contact-aside h2 {
  font-family: var(--font-display);
  color: var(--white);
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.req {
  color: var(--gold);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-status--ok {
  color: var(--gold-light);
}

.form-status--error {
  color: #e8a0a0;
}

.aside-note {
  font-size: 0.85rem;
  color: var(--gold-dim);
}

/* FAQ */
.faq {
  max-width: 720px;
  margin-inline: auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid rgba(201, 169, 98, 0.12);
  border-radius: var(--radius);
  padding: 0 1.25rem;
  margin-bottom: 0.65rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
  padding: 1rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item p {
  margin: 0;
  padding: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Prose / legal */
.prose {
  max-width: 720px;
  margin-inline: auto;
}

.prose h2 {
  font-family: var(--font-display);
  color: var(--white);
  margin: 2rem 0 0.75rem;
  font-size: 1.65rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose-list {
  padding-left: 1.25rem;
}

.prose-list li {
  margin-bottom: 0.5rem;
}

.timeline {
  padding-left: 1.25rem;
  color: var(--muted);
}

.timeline li {
  margin-bottom: 0.65rem;
}

.legal p {
  font-size: 0.95rem;
}

/* Footer: dört sütun + logo link */
.footer-brand .logo {
  text-decoration: none;
  display: inline-block;
}

.footer-brand .logo:hover {
  text-decoration: none;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ——— Admin: görsel yükleme, önizleme, modal ——— */

.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table--products {
  min-width: 920px;
}

.th-preview {
  width: 112px;
}

.th-image {
  min-width: 220px;
}

.admin-preview-cell {
  vertical-align: middle;
}

.admin-preview-hit {
  display: block;
  width: 96px;
  height: 96px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: #120f0d;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-preview-hit:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.2);
}

.admin-preview-hit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.admin-preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.admin-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.7rem;
  color: var(--gold-dim);
  padding: 0.35rem;
  text-align: center;
  line-height: 1.25;
}

.admin-image-cell {
  min-width: 200px;
}

.admin-image-tools {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-file-label {
  display: block;
  cursor: pointer;
  margin: 0;
}

.admin-file-btn {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(201, 169, 98, 0.45);
  color: var(--cream);
  background: rgba(201, 169, 98, 0.08);
  transition: background 0.15s;
}

.admin-file-label:hover .admin-file-btn {
  background: rgba(201, 169, 98, 0.18);
}

.admin-image-hint {
  font-size: 0.72rem;
  color: var(--gold-dim);
  line-height: 1.35;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.preview-modal[hidden] {
  display: none !important;
}

.preview-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.preview-modal__box {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 960px);
  max-height: 88vh;
  background: var(--surface);
  border: 1px solid rgba(201, 169, 98, 0.3);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
}

.preview-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.preview-modal__close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.preview-modal__img {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 2rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
}

/* ——— Ana sayfa ek bölümler ——— */

.section--compact {
  padding: 2.25rem 0;
}

.home-trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .home-trust__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-trust__item {
  padding: 1rem;
  border: 1px solid rgba(201, 169, 98, 0.15);
  border-radius: var(--radius);
  background: rgba(36, 30, 26, 0.5);
}

.home-trust__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.1;
}

.home-trust__label {
  font-size: 0.8rem;
  color: var(--muted);
}

.home-features {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .home-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .home-features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-feature {
  background: var(--surface);
  border: 1px solid rgba(201, 169, 98, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.home-feature:hover {
  border-color: rgba(201, 169, 98, 0.35);
}

.home-feature__icon {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.home-feature h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.home-feature p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.home-showcase {
  position: relative;
  min-height: 340px;
  display: grid;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
}

.home-showcase__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 12, 10, 0.94) 0%, rgba(15, 12, 10, 0.65) 55%, rgba(15, 12, 10, 0.88) 100%),
    url("https://images.unsplash.com/photo-1606312619070-d48b4bdc5b60?w=1600&q=80")
      center / cover no-repeat;
}

.home-showcase__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.home-showcase__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.home-showcase__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  color: var(--white);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.home-showcase__text {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 36ch;
}

.home-split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .home-split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.home-quote {
  margin: 0;
  padding: 1.75rem;
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.home-quote p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--cream);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.home-quote footer {
  font-size: 0.9rem;
  color: var(--muted);
}

.home-quote__note {
  font-size: 0.8rem;
  color: var(--gold-dim);
}

.home-quote__heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--white);
  margin: 0 0 0.75rem;
}

.home-quote__aside p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.home-quote__list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-quote__list li {
  margin-bottom: 0.4rem;
}

.home-cta__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .home-cta__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.home-cta__card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 169, 98, 0.2);
  background: linear-gradient(145deg, var(--surface) 0%, rgba(36, 30, 26, 0.6) 100%);
}

.home-cta__card--dim {
  background: var(--bg-elev);
}

.home-cta__card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 0 0.75rem;
}

.home-cta__card p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

/* Öne çıkanlar — yatay kaydırma */
.featured-section {
  padding-bottom: 3rem;
}

.featured-carousel-outer {
  width: 100%;
  margin-top: 0.25rem;
}

.featured-carousel {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.5vw, 0.75rem);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 3vw, 1.25rem);
}

.featured-carousel__viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 98, 0.5) transparent;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 1.5%,
    #000 98.5%,
    transparent 100%
  );
  padding: 0.35rem 0 1rem;
}

.featured-carousel__viewport::-webkit-scrollbar {
  height: 7px;
}

.featured-carousel__viewport::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 98, 0.45);
  border-radius: 999px;
}

.featured-carousel__track {
  display: flex;
  gap: 1.35rem;
  padding: 0.35rem 0.35rem 0.85rem;
}

.featured-carousel__slide {
  flex: 0 0 min(380px, 86vw);
  max-width: 380px;
  scroll-snap-align: start;
  scroll-margin-inline: 6px;
}

.featured-nav {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 98, 0.5);
  background: rgba(15, 12, 10, 0.92);
  color: var(--gold-light);
  font-size: 1.85rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.12s;
}

.featured-nav:hover {
  background: rgba(201, 169, 98, 0.2);
  border-color: var(--gold);
  color: var(--white);
}

.featured-nav:active {
  transform: scale(0.96);
}

@media (max-width: 640px) {
  .featured-nav {
    width: 42px;
    height: 42px;
    font-size: 1.55rem;
  }

  .featured-carousel__slide {
    flex-basis: min(340px, 88vw);
  }
}

.admin-image-field {
  display: block;
  width: 100%;
  min-height: 4.5rem;
  max-height: 8rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  resize: vertical;
}

/* Ana sayfa — admin banner */
.home-banner-section .section__head {
  margin-bottom: 1.25rem;
}

.home-banner-mount {
  margin-top: 0.25rem;
}

.home-banner-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 169, 98, 0.28);
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.home-banner-link:hover {
  border-color: rgba(201, 169, 98, 0.55);
  transform: translateY(-3px);
}

.home-banner-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.home-banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 540px);
  object-fit: cover;
}

.home-banner-fallback {
  text-align: center;
  color: var(--muted);
  padding: 2.5rem 1rem;
  border: 1px dashed rgba(201, 169, 98, 0.35);
  border-radius: var(--radius);
  margin: 0;
}

.admin-banner-card {
  margin: 1.5rem 0 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(201, 169, 98, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.admin-banner-card h2 {
  font-family: var(--font-display);
  color: var(--white);
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.admin-banner-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 840px) {
  .admin-banner-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.admin-banner-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.85rem 0 0.4rem;
}

.admin-banner-grid > div > .admin-banner-label:first-of-type {
  margin-top: 0;
}

.admin-banner-file {
  display: inline-block;
  margin-bottom: 0.45rem;
}

.banner-admin-status {
  margin: 0.65rem 0;
  font-size: 0.9rem;
  color: var(--gold-light);
  min-height: 1.2em;
}

.banner-preview-wrap {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 169, 98, 0.12);
}

.banner-preview-img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(201, 169, 98, 0.25);
  margin-top: 0.45rem;
}

.admin-hero-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .admin-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.admin-hero-pair {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}

@media (min-width: 560px) {
  .admin-hero-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-hero-grid > div > .admin-banner-label:first-of-type {
  margin-top: 0;
}
