:root {
  --bg: #0f0f12;
  --card: #17171c;
  --muted: #8f96a3;
  --text: #f2f4f8;
  --acc: #3fd08f;
  --danger: #ff5d5d;
  --line: #26262d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg) url('../img/bg_1.jpeg') repeat center center;
  background-size: 100%;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1100px;
  margin-inline: auto;
  padding: 24px;
}

header {
  background: rgba(15, 15, 18, .8);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

header .bar {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo svg {
  width: 28px;
  height: 28px;
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center; /* Header'deki nav-actions butonlarını ortala */
}

/* BÜTÜN SİPARİŞ VER BUTONLARI BÜYÜTÜLDÜ VE ORTALANDI */
.btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.8rem;
  border-radius: 12px;
  border: none;
  background: var(--acc);
  color: #041a0e;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.25rem;
  min-width: 140px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary:hover {
  background: #36ba7d;
  color: #041a0e;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Small butonlarda da büyütme */
.btn.small.primary {
  padding: 0.9rem 1.4rem;
  font-size: 1.1rem;
  min-width: 130px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  transition: .2s;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.btn.small {
  padding: .55rem .8rem;
  font-weight: 600;
}

.btn.small:hover {
  background: #222228;
  border-color: var(--acc);
}

.hero {
  padding: 48px 0 24px;
  display: grid;
  gap: 18px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: .2em 0;
}

.badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #3fd08f, #36ba7d);
  border: none;
  padding: 10px 18px;
  border-radius: 50px;
  color: #041a0e;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  white-space: nowrap;
}


.hero .badge {
  margin-inline: auto; /* Ortalar */
}

.old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 8px;
  font-weight: 600;
  font-size: 20px;
}

.new-price {
  color: #00d084;
  font-size: 28px;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  margin: .2em 0 .4em;
  font-size: 24px;
}

.card p {
  font-size: 18px;
  line-height: 1.6;
}

/* ÜRÜN RESİMLERİ İÇİN KARE ALAN VE HOVER'DA BÜYÜME */
.card .image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1; /* kare */
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  margin-bottom: 12px;
  background: #17171c;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.card .image-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.price {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #141419;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

/* FEATURES (Anında Etki vb) */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.features svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--acc);
}

.features h3 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
}

.features p,
.features .muted {
  font-size: 20px;
  line-height: 1.6;
  margin-top: 4px;
}

.feat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feat svg {
  flex: 0 0 40px;
  margin-top: 2px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px;
}

#set {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
}

.set-info {
  text-align: center;
  max-width: 600px;
  background: #0f1014;
  padding: 20px;
  border-radius: 12px;
  color: var(--text);
}

.set-info h2 {
  font-size: 26px;
  margin-bottom: 10px;
  color: #ffd700;
  font-weight: 700;
}

.set-info ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  text-align: left;
}

.set-info li {
  margin: 5px 0;
  font-size: 18px;
}

#set img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 15px;
  border: 1px solid var(--line);
}

form {
  display: block;
}

form .form-group {
  display: block;
  width: 100%;
  margin-bottom: 15px;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

input, select, textarea {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f1014;
  color: var(--text);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--acc);
}

/* Form alanları alt alta sıralanacak (yanyana değil) */
.inline {
  display: block;
  gap: 12px;
  grid-template-columns: none;
}

/* Hata mesajları */
.error {
  color: var(--danger);
  font-size: 13px;
  display: none;
}

.show {
  display: block;
}

.success {
  background: #11261b;
  border: 1px solid #2c6e4f;
  color: #a9e7c8;
  padding: 12px;
  border-radius: 10px;
  display: none;
}

footer {
  color: var(--muted);
  padding: 28px 0;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  text-align: center;
}

.sticky-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.sticky-cta a {
  border-radius: 999px;
}
#previous-orders {
  margin-top: 30px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.05);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Roboto', sans-serif;
}

#previous-orders h4 {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #4CAF50; /* yeşil alt çizgi */
  padding-bottom: 5px;
}

#orders-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  max-height: 320px; /* uzun listeyi kaydırmalı yap */
  overflow-y: auto;
  border-top: 1px solid #ddd;
}

#orders-list li {
  border-radius: 6px;
  padding: 15px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.07);
  transition: box-shadow 0.3s ease;
  cursor: default;
  font-size: 1rem;
}

#orders-list li:hover {
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.12);
}

#orders-list li strong {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #388E3C; /* koyu yeşil ton */
}

#orders-list li time {
  font-size: 0.85rem;
  font-style: normal;
}

#orders-list li p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.3;
}

/* Genel mobil temel ayar */
@media (max-width: 767px) {

  /* Grid kolonlarını tek kolona indir */
  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: 1fr !important;
  }

  /* header bar içi elemanlar sığsın ve ortalansın */
  header .bar {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center !important;
  }

  /* Logo ve nav-actions alt alta ve ortalı */
  .logo {
    flex: 0 0 100%;
    justify-content: center;
    margin-bottom: 8px;
  }

  .nav-actions {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  /* Hero padding ve yazı boyutları optimize */
  .hero {
    padding: 30px 16px 20px;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  /* Badge’leri daha sıkıştır */
  .badges {
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .badge {
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  /* Features kısmı tek kolon, ikonlar biraz küçülsün */
  .features {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  .feat svg {
    width: 30px;
    height: 30px;
  }

  /* Set bölümü - ortalama ve padding */
  #set {
    padding: 16px 12px;
  }

  .set-info {
    max-width: 100%;
    padding: 16px;
  }

  .set-info h2 {
    font-size: 1.5rem;
  }

  .set-info ul li {
    font-size: 16px;
  }

  #set img {
    margin-top: 10px;
    border-radius: 10px;
  }

  /* Card içindeki ürün görselleri mobilde kareyi koru, boyut büyü */
  .card .image-wrapper {
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
  }

  /* Ürün başlıkları ve fiyat küçült */
  .card h3 {
    font-size: 1.25rem;
  }

  .price {
    font-size: 1.3rem;
  }

  /* Form alanları yanyana değil, blok olarak geniş */
  .inline {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
  }

  input, select, textarea {
    font-size: 1.1rem;
    padding: 12px;
  }

  button.btn.primary {
    width: 100%;
    font-size: 1.2rem;
    padding: 14px 0;
  }

  /* Sipariş formu alanı margin */
  #siparis-formu {
    margin-top: 18px;
  }

  /* Sticky CTA buton küçültüldü */
  .sticky-cta {
    right: 12px;
    bottom: 12px;
  }

  .sticky-cta a {
    padding: 12px 20px;
    font-size: 1rem;
    min-width: auto;
  }

  /* Daha önceki siparişler kutusu mobilde max genişlik ve margin */
  #previous-orders {
    max-width: 100%;
    padding: 16px;
  }

  #orders-list li {
    font-size: 0.95rem;
    padding: 12px 16px;
  }

}
