/* ====== Mevcut stillerin (aynen korunuyor) ====== */
body { font-family: Arial, sans-serif; margin: 20px; background: #f4f4f9; }
h1 { text-align: center; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-top: 20px; }
.product-card { background: #fff; padding: 15px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); text-align: center; }
.product-card img { max-width: 100%; border-radius: 8px; height: 200px; object-fit: cover; }
.product-card h2, .product-card h3 { font-size: 18px; margin: 10px 0; }
.whatsapp { display: inline-block; margin-top: 10px; padding: 10px 15px; background: #053273; color: #fff; text-decoration: none; border-radius: 5px; }
.whatsapp:hover { background: #20b954; }
form { background: #fff; padding: 15px; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
label { display: block; margin-bottom: 8px; }
button { padding: 8px 12px; border: none; background: #007bff; color: #fff; border-radius: 5px; cursor: pointer; }
button:hover { background: #0056b3; }

form.search-form { text-align: center; margin: 20px 0; }
form.search-form input[type="text"] { padding: 8px; width: 250px; border: 1px solid #ccc; border-radius: 5px; }
form.search-form button { padding: 8px 12px; border: none; background: #007bff; color: #fff; border-radius: 5px; cursor: pointer; }
form.search-form button:hover { background: #0056b3; }

.old-price { text-decoration: line-through; color: #888; font-size: 14px; }
.discounted { color: #e60000; font-size: 18px; }
.stock { font-size: 14px; color: #333; margin-top: 5px; }

/* ====== Yeni eklenen bölümler ====== */

/* Banner */
.banner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 16px;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner.no-image { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.banner-text {
  position: absolute;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: clamp(18px, 3vw, 28px);
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
}

/* Kayan marka logoları */
.brand-ticker {
  max-width: 1200px;
  margin: 0 auto 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
}
.brand-track {
  display: inline-flex;
  gap: 32px;
  padding: 12px 18px;
  align-items: center;
  white-space: nowrap;
  animation: tickerAnim 25s linear infinite;
}
@keyframes tickerAnim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.brand-logo { height: 28px; filter: grayscale(100%); opacity: .85; }
.brand-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4f4f9;
  border: 1px solid #eee;
  font-weight: 600;
  letter-spacing: .4px;
  color: #555;
}

/* Özellik kutuları */
.features {
  max-width: 1200px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.feature-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-card .icon { font-size: 26px; }
.feature-title { font-weight: 700; color: #222; }
.feature-sub { color: #666; font-size: 13px; }

/* Kategori kartları */
.categories {
  max-width: 1200px;
  margin: 0 auto 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.cat {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.cat .emoji { font-size: 24px; display: block; margin-bottom: 6px; }


.navbar {
  background: #053273;
  padding: 10px 20px;
  width: 100%;      /* Tam genişlik */
  box-sizing: border-box;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Dar ekranda satır atabilsin */
}

.nav-logo {
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  text-decoration: none;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.nav-menu li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-menu li a:hover {
  color: #f0c040;
}
.page-content {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}
.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ====== Yorumlar Bölümü ====== */
.comments { 
  margin-top: 30px; 
}

.comment-card {
  background: #fff;
  padding: 15px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.comment-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #222;
}

.comment-card p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.comment-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
}

.comment-actions form {
  display: inline-block;
}

.comment-edit textarea, 
.comment-edit input[type="text"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

.comment-edit button {
  background: #007bff;
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.comment-edit button:hover {
  background: #0056b3;
}

/* --- Yorumlar Bölümü --- */
.comments { margin-top: 20px; }
.comment-card {
  background: #fff;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.comment-card strong { font-size: 15px; color: #222; display: block; margin-bottom: 4px; }
.comment-card p { margin: 5px 0 0; color: #555; line-height: 1.4; }

.banner {
  position: relative;
  width: 100%;         /* tam genişlik */
  margin: 0 auto 16px; /* üst/alt boşluk koru */
  border-radius: 0;    /* köşe yuvarlama istersen 0 yap */
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;   /* kırpma istemezsen contain kullan */
}
