:root {
  --primary-color: #9f533d;
  --secondary-color: #2a211d;
  --accent-color: #efe4d8;
  --soft-color: #f7f3ef;
  --text-color: #1e1b18;
  --muted-color: #706861;
  --border-color: #e8e2db;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-color);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(1640px, calc(100% - 2rem));
  margin: 0 auto;
}

.service-bar {
  background: #f5f5f5;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: #8a827a;
}

.service-bar-inner {
  width: min(1640px, calc(100% - 2rem));
  min-height: 46px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.main-header {
  background: #fff;
  border-bottom: 1px solid #ddd7d1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.main-header-inner {
  width: min(1640px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 124px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.brand-alani {
  display: flex;
  align-items: center;
}

.brand-mark {
  font-size: 1.9rem;
  letter-spacing: 0.58rem;
  font-weight: 400;
  color: #181614;
  text-align: center;
  text-transform: uppercase;
}

.menu-kabuk {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.main-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.15rem;
  min-height: 58px;
  padding: 0.32rem;
  border: 1px solid #e7e0d9;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(42, 33, 29, 0.04);
  white-space: nowrap;
  overflow: hidden;
}

.menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 0.92rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: #2f2b28;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu-link:visited,
.menu-link:hover,
.menu-link:active {
  color: #2f2b28;
}

.menu-link:hover {
  background: rgba(34, 27, 24, 0.05);
  color: #171412;
  transform: translateY(-1px);
}

.menu-link.active {
  background: #f2e9e3;
  color: #59453d;
}

.menu-link.active:visited,
.menu-link.active:hover,
.menu-link.active:active {
  color: #59453d;
}

.highlight-link {
  color: #d93333;
}

.highlight-link:visited,
.highlight-link:hover,
.highlight-link:active {
  color: #d93333;
}

.highlight-link.active,
.highlight-link:hover {
  background: rgba(221, 47, 47, 0.06);
  color: #c22b2b;
}

.menu-catalog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 0.55rem;
  min-height: 58px;
  padding: 0.72rem 0.96rem;
  border: 1px solid #e7e0d9;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: #2f2b28;
  background: #fff;
  box-shadow: 0 8px 18px rgba(42, 33, 29, 0.04);
}

.menu-catalog:visited,
.menu-catalog:hover,
.menu-catalog:active {
  color: #2f2b28;
}

.catalog-icon {
  width: 16px;
  height: 16px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
  position: relative;
}

.catalog-icon::before,
.catalog-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  height: 1.4px;
  background: currentColor;
}

.catalog-icon::before {
  top: 4px;
}

.catalog-icon::after {
  bottom: 4px;
}

.ana-slider {
  position: relative;
  margin: 1.25rem auto 1.5rem;
  width: min(1700px, calc(100% - 1rem));
}

.ana-slider-icerik {
  position: relative;
  min-height: 640px;
}

.ana-slider-ogesi {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.ana-slider-ogesi.aktif {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.slider-kompozisyon {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.2fr;
  gap: 2rem;
  align-items: center;
  min-height: 640px;
  background: #fff;
}

.slider-gorsel-sol,
.slider-gorsel-sag {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-gorsel-sol img,
.slider-gorsel-sag img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}

.slider-gorsel-sol img {
  aspect-ratio: 0.8 / 1;
}

.slider-gorsel-sag img {
  aspect-ratio: 0.95 / 1;
}

.slider-metin {
  text-align: center;
  padding: 2rem 1rem;
}

.slider-dugme {
  display: inline-block;
  margin-top: 1.25rem;
  border: 1px solid #9d958f;
  padding: 0.9rem 1.2rem;
  font-size: 0.98rem;
  color: #3f3935;
  background: #fff;
}

.ana-slider-noktalar {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.ana-slider-nokta {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(80, 70, 64, 0.28);
}

.ana-slider-nokta.aktif {
  background: #756962;
}

.slider-ok {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 0;
  background: transparent;
  color: #7d7570;
  font-size: 5rem;
  line-height: 1;
  padding: 0;
}

.slider-ok-sol {
  left: -0.25rem;
}

.slider-ok-sag {
  right: -0.25rem;
}

.kurumsal-kutular {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem 0 2rem;
}

.kurumsal-kutu {
  border: 1px solid var(--border-color);
  background: var(--soft-color);
  padding: 1.1rem 1.2rem;
}

.kurumsal-kutu span {
  display: block;
  font-weight: 700;
}

.kurumsal-kutu small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted-color);
  font-size: 0.9rem;
}

.bolum-baslik {
  padding: 0.5rem 0 1rem;
  text-align: center;
}

.bolum-baslik h3,
.content-page h1,
.admin-header h1,
.admin-page-head h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
}

.kategori-vitrini {
  padding: 1rem 0 2.3rem;
}

.vitrin-baslik {
  text-align: center;
  margin-bottom: 1.2rem;
}

.vitrin-baslik h4 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.vitrin-baslik p,
.page-summary,
.page-content,
.admin-header p {
  color: var(--muted-color);
  line-height: 1.8;
}

.kategori-baglantisi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.55rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: #3d3530;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.kategori-detay {
  padding-top: 0;
}

.urun-izgara {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.galeri-izgara {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 2rem;
}

.galeri-karti {
  position: relative;
  overflow: hidden;
  background: #f7f3ef;
}

.galeri-karti img {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
}

.galeri-yazi {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
}

.galeri-yazi span,
.galeri-yazi small {
  display: block;
}

.urun-karti {
  background: #fff;
}

.urun-gorsel-sarmal {
  background: #f7f3ef;
  overflow: hidden;
}

.urun-gorsel-sarmal img {
  width: 100%;
  aspect-ratio: 4 / 5.2;
  object-fit: cover;
}

.urun-govde {
  padding: 0.9rem 0.2rem 0.35rem;
  text-align: center;
}

.urun-govde h5 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.urun-govde p {
  margin: 0 0 0.5rem;
  color: var(--muted-color);
  font-size: 0.9rem;
}

.urun-govde strong {
  font-size: 0.98rem;
}

.site-footer {
  margin-top: 2rem;
  background: #f8f8f8;
  border-top: 1px solid var(--border-color);
}

.footer-top {
  width: min(1640px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.4rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-brand h3,
.footer-column h4 {
  margin: 0 0 0.9rem;
}

.footer-brand p,
.footer-column p,
.footer-column a {
  display: block;
  margin: 0 0 0.6rem;
  color: var(--muted-color);
  line-height: 1.7;
}

.footer-bottom {
  width: min(1640px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 1.4rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--muted-color);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.content-page {
  padding: 2.2rem 0 3rem;
}

.page-summary {
  margin-top: 0.75rem;
}

.page-content {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.admin-body {
  background: #f5f0ea;
}

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

.admin-sidebar {
  background: var(--secondary-color);
  color: #f6f0ea;
  padding: 2rem 1.5rem;
}

.admin-brand {
  display: block;
  margin-bottom: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admin-nav {
  display: grid;
  gap: 0.75rem;
}

.admin-nav a {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  color: rgba(246, 240, 234, 0.86);
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-main {
  padding: 2rem;
}

.admin-sidebar-foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-user-name {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: rgba(246, 240, 234, 0.88);
}

.admin-header,
.admin-page-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--primary-color);
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  font-weight: 700;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.admin-stats-six {
  grid-template-columns: repeat(3, 1fr);
}

.stat-card,
.table-card,
.editor-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
}

.admin-login-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f3ece5 0%, #faf7f4 100%);
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.admin-login-card {
  width: min(460px, 100%);
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 1.2rem;
  box-shadow: 0 20px 40px rgba(42, 33, 29, 0.08);
}

.admin-login-text {
  margin: 0.7rem 0 0;
  color: var(--muted-color);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.media-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 0.85rem;
}

.media-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.75rem;
  background: #f7f3ef;
}

.media-meta {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0;
}

.media-meta strong,
.media-meta small {
  overflow-wrap: anywhere;
}

.media-current-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 0.9rem;
  background: #faf7f4;
}

.media-current-preview img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 0.7rem;
}

.stat-card span {
  display: block;
  color: var(--muted-color);
  margin-bottom: 0.6rem;
}

.stat-card strong {
  font-size: 2rem;
}

.table {
  --bs-table-bg: transparent;
}

@media (max-width: 1200px) {
  .main-header-inner {
    grid-template-columns: 1fr;
  }

  .brand-alani {
    justify-content: center;
    padding-top: 1rem;
  }

  .menu-kabuk {
    flex-direction: column;
    justify-content: center;
    padding-bottom: 1rem;
  }

  .main-menu {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    white-space: normal;
  }

  .slider-kompozisyon {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: auto;
  }

  .slider-gorsel-sol img,
  .slider-gorsel-sag img {
    max-height: 420px;
  }
}

@media (max-width: 991px) {
  .kurumsal-kutular,
  .urun-izgara,
  .galeri-izgara,
  .footer-top,
  .admin-shell,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .ana-slider-icerik {
    min-height: auto;
  }

  .footer-bottom,
  .service-bar-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-mark {
    letter-spacing: 0.25rem;
  }

  .main-menu {
    border-radius: 1.4rem;
  }

  .slider-ok {
    font-size: 3.5rem;
  }
}
