/* Genel */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f4f4;
}

/* Header Temel */
.site-header {
  background-color: #222;
  color: white;
  position: relative; /* İletişimi sağa sabitlemek için */
  padding: 15px 0; /* Üst-alt padding optimize edildi */
}

/* Header container: başlık ortalanacak */
.header-inner {
  display: flex;
  justify-content: center; /* Başlığı ortala */
  align-items: center;
  position: relative;
  max-width: 1100px;
  margin: 0 auto; /* Ortala container */
  padding: 0 20px; /* Responsive için yatay padding */
}

/* Site Başlığı */
.site-title {
  margin: 0;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  z-index: 1;
}

/* İletişim sağda üstte sabit */
.header-contact {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 15px;
}

.header-contact a {
  color: #25D366;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
}

.header-contact a:hover {
  text-decoration: underline;
}

/* Alt başlık / slogan */
.header-subtitle {
  text-align: center;
  
  font-size: 1rem;
  color: #ccc;
}

/* Responsive Header */
@media(max-width:768px) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
  }

  .header-contact {
    position: static; /* mobilde altına geçsin */
    margin-top: 10px;
    transform: none;
    justify-content: center;
  }

  .site-title {
    font-size: 1.6rem;
  }
}

/* Container & Grid */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 30px 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 30px;
}

/* Kartlar */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
  text-align: center;
  padding:10px;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.card h3 {
  margin-top: 10px;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: #222;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

/* Ürün detay & görseller */
.product-images {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 10px;
}

.product-images img {
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  flex: 1;
  cursor: pointer;
}

.product-details {
  padding: 15px;
  text-align: left;
}

.product-details h3 {
  margin-top: 0;
}

.short-desc {
  font-weight: bold;
  margin-bottom: 10px;
}

.tags {
  margin-top: 10px;
}

.tag {
  display: inline-block;
  background: #222;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  margin: 3px;
  font-size: 14px;
}

ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80%;
  margin-top: 5%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ccc;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  user-select: none;
  transform: translateY(-50%);
}

.prev { left: 0; }
.next { right: 0; }

.prev:hover, .next:hover { color: #ccc; }

/* Responsive grid & ürün görselleri */
@media(max-width:800px){
  .grid { grid-template-columns:1fr; }
  .product-images img { height:150px; }
}

@media (max-width: 600px) {
  .card img { height: 200px; }
}

/* Floating WhatsApp Button */
.whatsapp-fixed {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s;
}

.whatsapp-fixed img {
  width: 60px;
  height: 60px;
}

.whatsapp-fixed:hover {
  transform: scale(1.2);
}
