/* ===== Variables ===== */
:root {
  --color-bg: #f5f5f4;
  --color-surface: #ffffff;
  --color-text: #1a1918;
  --color-text-muted: #6f6c69;
  --color-border: #e5e5e4;
  --color-border-strong: #d9d9d7;
  --color-primary: #2c2b29;
  --color-primary-hover: #1a1918;
  --color-accent: #3d7c5c;
  --color-accent-hover: #336b4d;
  --color-success: #2d7a4f;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-header: 0 0 20px 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --font-sans: 'Outfit', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Header, container, footer aynı genişlik (max 1200px, yan padding 20px) */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 0;
  box-sizing: border-box;
}

/* ===== Header: product-section / container içeriği ile eşit genişlik (1160px) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: calc(100% - 40px);
  max-width: 1160px;
  margin: 28px auto 0;
  padding: 18px 20px;
  padding-top: max(18px, env(safe-area-inset-top));
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.logo-link {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  opacity: 0.95;
  transition: opacity var(--transition);
}
.logo-link:hover {
  opacity: 1;
}
.logo-link:active {
  opacity: 0.8;
}

/* ===== Product Section: üst tab ile boşluk ===== */
.product-page .container {
  padding-top: 28px;
}

.product-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 40px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .product-section {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 28px;
  }
}

/* ===== Gallery (tek ürün görseli) ===== */
.product-gallery {
  position: sticky;
  top: 24px;
}
.gallery-main {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .product-gallery { position: static; }
}

/* ===== Product Info ===== */
.product-info { min-width: 0; }

.product-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--color-text);
}
@media (max-width: 600px) {
  .product-title { font-size: 1.25rem; }
}

.product-meta {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.product-pricing { margin-bottom: 24px; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.badge-discount {
  background: var(--color-border);
  color: var(--color-text-muted);
}
.prices { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-old {
  font-size: 1rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.price-current {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

/* CTA butonları: web = normal yan yana, mobil = alt alta tam genişlik */
.cta-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 10px;
  transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}
.btn:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }
/* Web: normal buton boyutu, yan yana */
.btn-primary,
.btn-redirect {
  background: var(--color-primary);
  color: #fff;
  border: none;
  min-width: 120px;
}
.btn-primary:hover,
.btn-redirect:hover {
  background: var(--color-primary-hover);
}
.btn-primary:active,
.btn-redirect:active {
  opacity: 0.92;
}
.btn-whatsapp {
  background: #ffffff;
  color: var(--color-accent);
  border: 2px solid var(--color-border);
  min-width: 120px;
}
.btn-whatsapp:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-whatsapp:active {
  opacity: 0.92;
}
/* Mobil: butonlar alt alta, tam genişlik, daha yüksek */
@media (max-width: 767px) {
  .cta-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    min-height: 50px;
    padding: 16px 24px;
    font-size: 1rem;
    border-radius: 12px;
  }
  .btn-primary, .btn-redirect, .btn-whatsapp {
    min-width: 0;
  }
}

/* Yönlendirme: sayfada inline (modal değil), 9 sn geri sayım + progress */
.redirect-inline {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.redirect-inline[hidden] { display: none !important; }
.redirect-inline-message {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  color: var(--color-text);
  font-weight: 500;
}
/* Progress bar: 9 saniye yönlendirme – daha uzun (tam genişlik) */
.redirect-inline-progress-wrap {
  width: 100%;
  height: 8px;
  margin-bottom: 10px;
  background: var(--color-border);
  border-radius: 9999px;
  overflow: hidden;
}
.redirect-inline-progress {
  height: 100%;
  width: 0%;
  min-width: 0;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 9999px;
  transition: width 0.2s linear;
}
.redirect-inline-countdown {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.trust-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.trust-badges li { display: flex; align-items: center; gap: 8px; }
.icon-truck::before { content: ''; display: inline-block; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236f6c69'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-shield::before { content: ''; display: inline-block; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236f6c69'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-refresh::before { content: ''; display: inline-block; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236f6c69'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ===== Ürün Açıklaması (tek blok, UI dostu) ===== */
.product-description {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.description-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  letter-spacing: 0.02em;
}

.description-content {
  padding: 24px;
}

.description-subtitle {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px;
}

.description-lead {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.feature-list li {
  font-size: 0.9375rem;
  color: var(--color-text);
  padding: 10px 14px 10px 40px;
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), background var(--transition);
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}
.feature-list li:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface);
}

/* ===== Footer: header/product-section ile eşit genişlik (1160px), daha dar ===== */
.site-footer {
  width: calc(100% - 40px);
  max-width: 1160px;
  margin: 8px auto 32px;
  padding: 14px 20px;
  box-sizing: border-box;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.site-footer a {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--color-accent);
  font-weight: 500;
}
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; font-size: inherit; }
