/* Base */
:root {
  --bg: #ffffff;
  --text: #0f172a; /* slate-900 */
  --muted: #64748b; /* slate-500 */
  --border: #e2e8f0; /* slate-200 */
  --accent: #1d4ed8; /* blue-700 */
  --accent-dark: #1e40af; /* blue-800 */
  --blue-100: #eff6ff;
  --blue-50: #f0f7ff;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(29,78,216,.18); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.section { padding: 56px 0; }
.section-title { font-size: 24px; margin: 0 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #ffffffcc; backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; position: relative; z-index: 102; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.logo img { width: 100px; height: auto; }
.logo span { font-size: 18px; color: var(--text); }

.site-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.site-nav a { padding: 8px 10px; border-radius: 8px; color: var(--muted); transition: color .2s ease, background-color .2s ease; white-space: nowrap; font-size: 15px; }
.site-nav a:hover, .site-nav a:focus { color: var(--text); background: #f3f4f6; }

/* Logo üzerine gelince nav-link hover efekti uygulanmasın */
.site-nav a.logo:hover,
.site-nav a.logo:focus {
  background: transparent;
  color: inherit;
}

/* Ortalı logo ve mobil/desktop header yerleşimi */
.nav-item { list-style: none; }
.nav-logo { display: none; } /* Mobilde dropdown içinde logo görünmesin */
.header-logo-main { margin-left: auto; } /* Mobil üst barda logo sağda */

/* Burger Menu */
.burger { 
  display: inline-flex; 
  flex-direction: column; 
  gap: 5px; 
  width: 44px; 
  height: 44px; 
  align-items: center; 
  justify-content: center; 
  background: transparent; 
  border: 1px solid var(--border); 
  border-radius: 10px; 
  cursor: pointer; 
  transition: background-color .2s ease;
  padding: 0;
  position: relative;
  z-index: 103;
}
.burger:hover { background: #f9fafb; }
.burger span { 
  width: 20px; 
  height: 2px; 
  background: var(--text); 
  display: block; 
  transition: all .3s ease; 
  border-radius: 2px;
}

/* Burger animasyonu */
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav - Default hidden on mobile */
.site-nav { 
  position: fixed; 
  top: 64px;
  left: 0;
  right: 0;
  background: #ffffff; 
  border-bottom: 1px solid var(--border); 
  transform: translateY(-100%); 
  transition: transform .25s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,.05);
  z-index: 101;
  opacity: 0;
  visibility: hidden;
}
.site-nav.active { 
  transform: translateY(0); 
  opacity: 1;
  visibility: visible;
}
.site-nav ul { flex-direction: column; align-items: center; padding: 12px 0; }
.site-nav li { width: 100%; text-align: center; }
.site-nav a { display: block; padding: 12px 20px; }

/* Mobil hamburger menü içindeki nav item'lar için daha büyük font */
@media (max-width: 959px) {
  .site-nav a {
    font-size: 16px;
    font-weight: 600;
  }
}

/* Desktop nav */
@media (min-width: 960px) {
  .burger { display: none; }
  .logo img { width: 120px; }
  
  .site-nav { 
    width: 100%;
    position: static; 
    transform: none; 
    border: 0; 
    background: transparent; 
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }
  .site-nav ul { 
    flex-direction: row; 
    justify-content: flex-start;
    align-items: center;
    padding: 0; 
    gap: 20px;
  }
  /* Desktop'ta üst bardaki logo gizlenir, nav içindeki logo ortada görünür */
  .header-logo-main { display: none; }
  .site-nav li.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .site-nav li { width: auto; }
  .site-nav a { display: inline-block; padding: 8px 10px; }
}

/* Hero */
.hero { 
  position: relative; 
  min-height: 62vh; 
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center; 
  color: #fff; 
  background: url('../img/banner.jpg') center/cover no-repeat; /* JS ile slider olarak güncellenecek, bu sadece fallback */
}
.hero-overlay { 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(180deg, rgba(30,58,138,.55), rgba(30,64,175,.45)); 
  pointer-events: none; /* tıklamaların ok ve noktalara gitmesini engellemesin */
}
.hero-inner { 
  position: relative;
  z-index: 1; 
  padding: 40px 16px 80px; 
  animation: fadeInUp .6s ease both; 
  max-width: 800px; 
  width: 100%;
}
.hero h1 { margin: 0 0 10px; font-size: clamp(32px, 5vw, 48px); line-height: 1.2; }
.hero p { margin: 0 24px 26px; color: #e5e7eb; font-size: 16px; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
  z-index: 2;
}
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }
.hero-arrow:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: #e5e7eb;
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: #02061780; /* hafif koyu arkaplan */
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: transparent;
  padding: 0;
  display: inline-block;
  cursor: pointer;
  transition: background-color .2s ease, width .2s ease, border-color .2s ease;
}
.hero-dot.is-active {
  width: 18px;
  background: #f9fafb;
  border-color: #f9fafb;
}

/* About */
.about-grid { display: grid; gap: 24px; align-items: center; }
.about-image img { border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.about-text {
  max-width: 720px;
  margin: 0 auto;
}
.about-text h1 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 26px;
  text-align: center;
}
.about-text h2 { margin: 0 0 10px; font-size: 24px; }
.checklist { list-style: none; padding: 0; margin: 14px 0 0; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.checklist li::before { content: '✔'; position: absolute; left: 0; color: var(--green); }

/* Ürün detay sayfası - ürün özellikleri bloğu */
.product-specs {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  row-gap: 8px;
}
.product-spec {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}
.product-spec span:first-child {
  font-weight: 600;
  color: var(--muted);
  flex: 0 0 110px; /* Sabit label genişliği */
}
.product-spec span:last-child {
  flex: 1 1 auto;
  text-align: left; /* Değerler soldan başlasın */
}

@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; }
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 16px; }
.service-card { border: 1px solid var(--border); border-radius: 12px; padding: 18px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; background: #fff; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(29,78,216,.14); border-color: #bfdbfe; }
.service-card .icon { font-size: 28px; margin-bottom: 8px; }
.service-card h3 { margin: 0 0 6px; font-size: 18px; }
.service-card p { margin: 0; color: var(--muted); }

@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* Products page grid (Ürünler) */
#urunler-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobil: her satırda 1 ürün */
  gap: 16px;
}
@media (min-width: 960px) {
  #urunler-grid {
    grid-template-columns: repeat(2, 1fr); /* Desktop: her satırda 2 ürün */
  }
}

/* Contact */
.contact-grid { display: grid; gap: 24px; }
.contact-info .map { margin-top: 12px; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.contact-form { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fff; }
.form-group { display: grid; gap: 6px; margin-bottom: 12px; }
.form-group label { font-weight: 600; font-size: 14px; }
.form-group input, .form-group textarea { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #93c5fd; box-shadow: 0 0 0 4px rgba(147,197,253,.25); }
.form-status { margin-top: 10px; font-size: 14px; color: var(--muted); }

@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

/* Footer */
.site-footer { 
  border-top: 1px solid var(--border); 
  background: #fafafa; 
  margin-top: 48px; 
  padding-left: 15px;
  padding-right: 15px;
}
.footer-grid { display: grid; gap: 24px; padding: 28px 0; }
.footer-brand .logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 6px; }
.footer-brand .logo img { width: 36px; height: 36px; }
.footer-nav h3, .footer-social h3 { margin: 0 0 10px; font-size: 16px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.social-icons { display: flex; gap: 10px; font-size: 20px; }
.social-icons a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border); transition: background-color .2s ease; }
.social-icons a:hover { background: #fff; }
.copy { border-top: 1px solid var(--border); text-align: center; font-size: 14px; color: var(--muted); padding: 14px 0; }

/* Utilities & Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Reco Widget */
.reco-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reco-nav { display: inline-flex; gap: 8px; }
.reco-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.reco-btn:hover { background: var(--blue-100); transform: translateY(-1px); }

.reco-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% - 24px); gap: 16px; overflow-x: auto; padding: 6px 2px; scroll-snap-type: x mandatory; }
.reco-row::-webkit-scrollbar { height: 8px; }
.reco-row::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

@media (min-width: 640px) { .reco-row { grid-auto-columns: calc(50% - 24px); } }
@media (min-width: 960px) { .reco-row { grid-auto-columns: calc(25% - 24px); } }

.product-card { position: relative; border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 14px; scroll-snap-align: start; transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(30,64,175,.12); border-color: #c7d2fe; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 999px; }
.badge-sale { background: #16a34a; }
.product-media { display: grid; place-items: center; background: var(--blue-50); border-radius: 10px; overflow: hidden; }
/* Görsele göre dinamik yükseklik için sabit yükseklik kaldırıldı */
.product-media img { width: 100%; height: auto; object-fit: contain; display: block; }
.product-title { font-size: 14px; margin: 10px 0 8px; min-height: 38px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price-group { display: flex; align-items: center; gap: 8px; }
.price { font-weight: 700; color: var(--text); }
.old-price { color: var(--muted); text-decoration: line-through; }
.cart { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; transition: background-color .2s ease; }
.cart:hover { background: var(--blue-100); }

/* PDP Gallery */
.gallery-main { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.gallery-main img { width: 100%; height: auto; display: block; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { padding: 0; border: 1px solid var(--border); background: #fff; border-radius: 8px; cursor: pointer; }
.thumb img { width: 64px; height: 64px; object-fit: cover; display: block; border-radius: 8px; }
.thumb.active { outline: 2px solid var(--accent); }

/* PDP Image lightbox (zoom) */
.gallery-main img {
  cursor: zoom-in;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999;
}
.image-lightbox-inner {
  position: relative;
  max-width: min(960px, 100%);
  max-height: 90vh;
}
.image-lightbox-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.8);
  background: #fff;
}
.image-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}
.image-lightbox-close:focus-visible {
  outline: 2px solid #bfdbfe;
  outline-offset: 2px;
}


