:root {
  --ana-renk: #3333CC;
  --koyu-renk: #343a40;
  --acik-renk: #fff8e1;
  --metin-renk: #333;
}

/* Kutulama modeli düzeltmesi */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;            
  overflow-x: hidden;     
}

.urunlerimiz-sayfa {
  overflow-y: auto;  /* sadece bu sayfada dikey scroll */
  height: auto;      /* içerik kadar büyüsün */
}
.iletisim-sayfa {
  overflow-y: auto;  /* sadece bu sayfada dikey scroll */
  height: auto;      /* içerik kadar büyüsün */
}


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: var(--metin-renk);
  scroll-behavior: smooth;

  height: 100vh;          /* min-height yerine height yaptım */
  display: flex;
  flex-direction: column;
  overflow-x: hidden;     /* yatay scroll engelle */
}

/* HEADER: Mavi üst kısım */
header {
  background: #3333CC;
  padding: 0;
  margin: 0;
  color: #ffffff;
  font-size: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 130px;
  width: 100%;
  user-select: none;
}

/* NAV: Turuncu menü çubuğu */
nav {
  background-color: #FF9900;
  display: flex;
  flex-wrap: nowrap;
  padding: 0 10px;
  margin: 0;
  align-items: stretch;
  width: 100%;
  height: 50px;
  box-sizing: border-box;
}

/* Menü linkleri */
nav a {
  color: white;
  text-decoration: none;
  padding: 14px 20px;
  font-weight: 500;
  margin: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  height: 100%;
  text-align: center;
}

/* Hover efekti */
nav a:hover {
  background-color: #808080;
  border-radius: 0;
}

/* Sayfa içeriği alanı */
section, main {
  flex-grow: 1;
  height: 100%;          /* min-height: calc(...) yerine height: 100% */
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* LOGO */
.logo {
  font-size: 70px;
  font-weight: bold;
  text-align: center;
  width: 100%;
  user-select: none;
}

.logo h1 {
  font-size: 25px;
  font-family: Arial, Helvetica, sans-serif;
  justify-content: center;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 300;
}

h2 {
  font-size: 35px;
  margin-bottom: 50px;
  border-left: 5px solid var(--ana-renk);
  padding-left: 40px;
}

h3{
  font-size: 35px;
  margin-bottom: 50px;
  padding-left: 40px;
}

.hakkimizda {
  margin: 0 auto;
  padding: 40px;
  line-height: 1.8;
  font-size: 18px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  color: #000000;
  text-align: center;
  min-height: calc(100vh - 130px - 50px - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.urunlerimiz-grid {
  display: block; /* Grid veya flex olmasın */
  padding: 20px;
}

.urunlerimiz-grid a {
  display: block; /* Her ürün linki tam satırı kaplasın */
  margin-bottom: 15px; /* Kutular arasında boşluk */
  text-decoration: none;
  color: inherit;
}

.urunler {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: 0.3s;
}

.urunler:hover {
  background-color: #e9e9e9;
  transform: scale(1.02);
}

.urunler img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* İletişim sayfası */
.iletisim {
  color: #000;
  padding: 40px;
  min-height: calc(100vh - 130px - 50px - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;  /* Sola yasla */
  text-align: left;         /* Yazıları sola hizala */
}

.iletisim-info {
  padding: 30px;
  font-size: 14px;
  max-width: 600px;
  /* margin: auto;  kaldırdım, soldan hizalamak için */
  text-align: left;         /* Yazıları sola hizala */
  width: 100%;              /* Genişliği tam kullan */
}

.iletisim-info p {
  margin: 10px 0;
}

.iletisim-info a {
  color: #ff6600;
  text-decoration: none;
}

.iletisim-info i {
  margin-right: 10px;
  color: #333;
}

/* Butonlar */
.anasayfa-buton {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 24px;
  background-color: #ffca28;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s;
  text-align: center;
  cursor: pointer;
  user-select: none;
  max-width: 280px;
  width: 100%;
}

.anasayfa-buton:hover {
  background-color: #ffc107;
}

.btn {
  background-color: #ff9900;
  color: white;
  padding: 25px 40px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #ff6600;
}

/* #topButton */
#topButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  background-color: #ffcc00;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

/* Footer */
footer {
  background-color: var(--koyu-renk);
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-size: 16px;
  width: 100%;
  user-select: none;
}

/* Responsive */

@media (max-width: 768px) {
  .menu {
    display: block;
    text-align: center;
  }
  
  .container {
    padding: 10px;
  }

  nav {
    justify-content: center;
  }

  nav a {
    padding: 12px 16px;
    font-size: 14px;
  }

  section, main {
    padding: 40px 10px;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .menu {
    font-size: 14px;
  }

  .container {
    padding: 5px;
  }

  header {
    font-size: 36px;
    height: 100px;
  }

  nav {
    height: 40px;
  }

  main h1 {
    font-size: 28px;
  }

  main p {
    font-size: 16px;
  }

  .anasayfa-buton {
    padding: 12px 20px;
    font-size: 16px;
  }

  footer {
    font-size: 14px;
    padding: 20px 10px;
  }
}

