body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
}

/* Top bar */
.top-bar {
  background: #fff;
  padding: 5px 20px;
  font-size: 14px;
  display: flex;
  justify-content: flex-end;
  color: #333;
}

.top-bar-content {
  display: flex;
  gap: 20px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 15px 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #000;


}

.logo span {
  color: red;
  text-decoration: none; /* Alt çizgiyi kaldırır */
  
}

.logo a {
  
  text-decoration: none; /* Alt çizgiyi kaldırır */
  color: #000;
  
}




/* Navbar */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navbar ul li a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase; /* Hepsini büyük harf yapar */
  padding: 12px 20px;
  display: block;
}






/* Sadece aktif olan menu için */
.navbar ul li a.active {
  background-color: red;
  color: white;
}

/* Hover yapınca rengi değiştirme (isteğe bağlı ekleyebiliriz) */
.navbar ul li a:hover {
  background-color: #eee;
  transition: 0.3s;
  border-radius: 4px;
}




/* Dropdown başlangıcı */
.navbar ul li.dropdown {
  position: relative;
}

.navbar ul li .dropdown-menu {
  display: none;
  position: absolute;
  background-color: white;
  top: 100%;
  left: 0;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
  z-index: 1;
  padding: 0;
  margin: 0;
}

.navbar ul li .dropdown-menu li {
  list-style: none;
}

.navbar ul li .dropdown-menu li a {
  padding: 12px 16px;
  display: block;
  text-align: left;
  text-decoration: none;
  color: black;
  font-size: 12px;
}

.navbar ul li .dropdown-menu li a:hover {
  background-color: #f1f1f1;
}

/* Hover ile açılmasını sağla */
.navbar ul li.dropdown:hover .dropdown-menu {
  display: block;
}

.aciklama

{
  background-color: white;
  padding: 50px 50px;
}






/* Search Area */
.search-area {
  display: flex;
  gap: 8px;
  align-items: center;
  background-color: red;
  color: white;
  padding: 12px 20px;
  border: none;
  
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 6px;
}





/* Main Section */
.main-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 60px 20px;
  background-color: #e6e6e6;
}

.text-content {
  max-width: 600px;
}

.text-content h1 {
  font-size: 28px;
  color: #222;
}

.text-content p {
  margin-top: 20px;
  font-size: 16px;
  color: #555;
}

.buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}

.red-button {
  background-color: red;
  color: white;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 6px;
}

.red-button a {
  text-decoration: none; /* Alt çizgiyi kaldır */
  color: inherit; /* Button içindeki yazı rengiyle aynı olsun */
  display: block; /* Tüm buton alanına yayılsın */
  width: 100%;
  height: 100%;
}


.image-content img {
  max-width: 500px;
  width: 100%;
}




















.gallery {
  padding: 60px 60px;
  background-color: #ffffff;
  text-align: center;
}

.gallery h2 {
  font-size: 28px;
  color: #222;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.part-number {
  font-size: 14px;
  font-weight: bold;
  color: #000;
  margin: 10px 0 5px 0;
}

.product-name {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

.details-btn {
  background-color: red;
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.details-btn:hover {
  background-color: #e0a800;
}











.gallery2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* SABİT 4 ürün */
  gap: 20px;
  padding: 20px;
}

.card {
  background-color: #fafafa;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
}

.card .product-code {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
  color: #000;
}

.card .product-name {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.card button {
  background-color: #ff0000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.card button:hover {
  background-color: #cc0000;
}

.pagination {
  text-align: center;
  margin: 30px 0;
}

.pagination button {
  margin: 0 5px;
  padding: 8px 12px;
  border: none;
  background-color: #2a3f82;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.pagination button.active {
  background-color: #ff6600;
}

.pagination button:hover {
  background-color: #4455aa;
}


#product-detail

{
   text-align: center;
      background: white;
      padding: 40px;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      max-width: 500px;
      width: 90%;
      
}

  #product-detail img {
      max-width: 100%;
      height: auto;
      margin-bottom: 20px;
    }


#product-detail h1

{
  margin-bottom: 20px;
      font-size: 24px;
}


#product-detail p

{
  font-size: 18px;
      color: #333;
}

.product-detail-wrapper {
  display: flex;
  justify-content: center; /* Yatay ortalama */
  align-items: center;     /* Dikey ortalama */
  min-height: 100vh;       /* Ekranın tamamını kapla */
  padding: 20px;           /* Mobilde nefes aldırır */
}









.related-products {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}
.related-products h2 {
  font-size: 20px;
  margin: 0 0 16px;
  color: #333;
}
.related-products .related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr)); /* 2 sütun */
  gap: 16px;
}
.related-products .related-item {
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
  transition: box-shadow .2s ease, background .2s ease;
}
.related-products .related-item:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,.15);
  background: #fff;
}
.related-products .related-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
  border-radius: 4px;
}
.related-products .related-item p {
  margin: 0;
  font-size: 14px;
  color: #444;
}

/* Mobilde tek sütuna düşsün istersen: */
@media (max-width: 500px){
  .related-products .related-list { grid-template-columns: 1fr; }
}
