/* Reset / temel */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Arial", sans-serif;
  color: #fff;
  background: url("../images/back.jpg") center center / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* overlay tüm içeriği hafif karartır */
.overlay {
  min-height: 100vh;
  background: rgba(0,0,0,0.45); /* arka planla kontrast */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 30px 20px;
}

/* Başlık */
.site-header { text-align: center; margin-bottom: 18px; position: relative; }
.title { font-size: 42px; margin: 0; letter-spacing: 1px; }

/* Ürünleri saran kutu */
.product-box {
  background: rgba(15,15,15,0.35); /* yarı şeffaf koyu kutu */
  border-radius: 14px;
  padding: 28px 22px 18px 22px;
  max-width: 1400px;
  margin: 0 auto;
  width: calc(100% - 40px);
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}

/* Kutunun başlığı (sol üst) */
.box-header {
  position: absolute;
  top: -16px;
  left: 20px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 12px 18px; /* Büyütülmüş padding */
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px; /* Büyütülmüş font */
  letter-spacing: 0.8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Grid: responsive, satırda 5'e kadar izlemek istersen minmax'i değiştir */
.product-grid {
  display: grid;
  gap: 22px;
  margin-top: 10px;
  /* Desktop: 5 sütun istiyorsan repeat(5, 1fr) yerine auto-fit kullanabilirsin.
     Burada geniş ekranda 5 sütun, orta 3-4, mobil 1-2 olacak şekilde ayarladım */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
}

/* Her bir ürün kartı */
.product {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* price+buton her zaman altta */
  height: 320px; /* tüm kartlar aynı yükseklikte */
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

/* Hover efekti */
.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}

/* Görsel kapsayıcı; ortala ve boşluk bırak */
.media {
  height: 180px;     /* görsel alanı sabit */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  border-radius: 8px;
  padding: 6px;
}

/* Görsellerin kendisi - kırpılmaz, orantı korunur */
.product img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* kırpmadan sığdırır */
  display: block;
}

/* meta (fiyat + buton) */
.meta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* fiyat */
.price {
  margin: 6px 0 10px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}

/* buton */
.buy-btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 10px;
  background: linear-gradient(#ff6b6b, #ff4d4d);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255,77,77,0.12);
  transition: transform .12s ease, box-shadow .12s ease;
}
.buy-btn:active { transform: translateY(1px); }
.buy-btn:hover { box-shadow: 0 10px 26px rgba(255,77,77,0.18); }

/* Sağ alt köşe görseli */
.corner-img {
  position: fixed;
  bottom: 12px;
  right: 12px;
  width: 120px; /* Büyütülmüş hali */
  height: auto;
  z-index: 999;
  pointer-events: none; /* tıklanmasını istemezsen */
  opacity: 0.93;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5));
}

/* Footer telif - sabit en altta ortalı */
.site-footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  z-index: 800;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.35);
  padding: 6px 12px;
  border-radius: 8px;
  pointer-events: none;
}

/* Responsive ince ayarlar */
@media (max-width: 900px) {
  .product { height: 300px; }
  .media { height: 160px; }
  .title { font-size: 34px; }
}

@media (max-width: 520px) {
  .product { height: 320px; } /* mobilde görsel ve buton dengesini koru */
  .media { height: 200px; }
  .product-box { padding: 18px 14px; }
  .box-header { left: 12px; top: -14px; font-size: 13px; }
}

/* TERMS ve About Us başlığı için stil */
.terms-header {
  position: absolute;
  top: 10px;
  right: 20px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-decoration: none;
  display: inline-block;
}

.about-header {
  position: absolute;
  top: 10px;
  left: 20px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-decoration: none;
  display: inline-block;
}

/* Terms ve About sayfası için stil */
.terms-box, .about-box {
  background: rgba(15,15,15,0.35);
  border-radius: 14px;
  padding: 28px 22px 18px 22px;
  max-width: 800px;
  margin: 0 auto;
  width: calc(100% - 40px);
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  margin-top: 20px;
}

.terms-content, .about-section {
  padding: 20px;
  color: #fff;
}

.terms-content h2, .about-section h2 {
  font-size: 24px;
  margin-top: 0;
}

.terms-content p, .about-section p {
  font-size: 16px;
  line-height: 1.5;
}

/* Geri dönüş butonu için stil */
.back-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(#4CAF50, #45a049);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(76, 175, 80, 0.12);
  transition: transform .12s ease, box-shadow .12s ease;
  text-align: center;
  position: absolute;
  top: 10px;
  right: 20px;
}

.back-btn:hover {
  box-shadow: 0 10px 26px rgba(76, 175, 80, 0.18);
}

.back-btn:active {
  transform: translateY(1px);
}

/* Canlı Destek Butonu ve Chat */
.support-btn {
  position: fixed;
  bottom: 80px; /* Butonu yukarı aldık, 20px yerine 80px */
  right: 20px;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(#2196F3, #1976D2);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(33, 150, 243, 0.12);
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.support-btn:hover {
  box-shadow: 0 10px 26px rgba(33, 150, 243, 0.18);
}

.chat-window {
  position: fixed;
  bottom: 160px; /* Butonla uyumlu olarak yukarı taşındı */
  right: 20px;
  width: 300px;
  height: 150px;
  background: rgba(15,15,15,0.9);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.chat-header {
  padding: 10px;
  background: rgba(255,255,255,0.06);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-weight: 700;
  text-align: center;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  color: #fff;
}

.sent {
  text-align: right;
  color: #4CAF50;
}

.received {
  text-align: left;
  color: #2196F3;
}

#chatInput {
  padding: 5px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

#chatWindow button {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  background: #2196F3;
  color: #fff;
  cursor: pointer;
  margin: 5px;
}

#chatWindow button:hover {
  background: #1976D2;
}

/* Support Panel Stil */
.support-box {
  background: rgba(15,15,15,0.35);
  border-radius: 14px;
  padding: 28px 22px 18px 22px;
  max-width: 800px;
  margin: 0 auto;
  width: calc(100% - 40px);
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  margin-top: 20px;
}

.support-content {
  padding: 20px;
  color: #fff;
}

.support-content h2 {
  font-size: 24px;
  margin-top: 0;
}

.support-messages div {
  font-size: 16px;
  line-height: 1.5;
}

/* Admin Giriş Formu */
.login-form {
  background: rgba(15,15,15,0.35);
  border-radius: 14px;
  padding: 20px;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.login-form input {
  padding: 10px;
  margin-bottom: 10px;
  width: 100%;
  border: none;
  border-radius: 5px;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.login-form button {
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(#4CAF50, #45a049);
  color: #fff;
  border: none;
  cursor: pointer;
}

.login-form button:hover {
  background: linear-gradient(#45a049, #4CAF50);
}

/* Live Support Butonu ve Penceresi */
.chat-window {
  position: fixed;
  bottom: 160px; /* Butonla uyumlu olarak yukarı taşındı */
  right: 20px;
  width: 300px;
  height: 150px;
  background: rgba(15,15,15,0.9);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.chat-header {
  padding: 10px;
  background: rgba(255,255,255,0.06);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-weight: 700;
  text-align: center;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  color: #fff;
}

.chat-messages a {
  color: #4CAF50;
  text-decoration: none;
}

.chat-messages a:hover {
  text-decoration: underline;
}

#liveSupportWindow button {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  background: #f44336;
  color: #fff;
  cursor: pointer;
  margin: 5px;
  align-self: flex-end;
}

#liveSupportWindow button:hover {
  background: #da190b;
}

/* Communication Header */
.communication-header {
  position: absolute;
  top: 10px;
  right: 100px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-decoration: none;
  display: inline-block;
}