/* ════════════════════════════════════════════════════════════
   SHARED NAVIGATION & HAMBURGER STYLES
   ════════════════════════════════════════════════════════════ */

:root {
  --yellow:   #FFFF00;
  --white:    #FFFFFF;
  --tundora:  #444444;
  --light:    #F5F5F5;
  --border:   #D9D9D9;
  --muted:    #888888;
  --dark:     #222222;
  --glassmorphism-blur: 16px;
  --glassmorphism-opacity: 0.4;
  --glassmorphism-border: 0.2;
}

/* === NAV STYLES === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: #fff;
  letter-spacing: -0.02em; transition: color 0.3s ease;
  background: transparent !important;
}
.nav-logo a { color: inherit; text-decoration: none; background: transparent; display: flex; align-items: center; }
.nav-logo img { height: 70px; max-width: 280px; width: auto; display: block; object-fit: contain; background: transparent !important; border-radius: 0 !important; box-shadow: none !important; }

.nav-links { display: flex; gap: 32px; list-style: none; position: relative; }
.nav-links a { color: rgba(255,255,255,0.88); text-decoration: none; font-size: 14px; font-weight: 400; transition: color 0.2s; position: relative; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px; background:var(--yellow); transition:width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #fff; }

nav.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
nav.scrolled .nav-logo { color: var(--tundora); }
nav.scrolled .nav-links a { color: var(--tundora); }
nav.scrolled .nav-links a:hover { color: var(--dark); }
nav.scrolled .nav-hamburger span { background: var(--tundora); }

.nav-btn { background: var(--yellow); color: var(--tundora); border: none; padding: 10px 22px; border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.15s; text-decoration: none !important; display: inline-block; }
.nav-btn:hover { background: #E6E600; transform: translateY(-1px); }
.nav-btn:active { transform: translateY(0); }

.menu-close-btn { background: none !important; border: none !important; outline: none !important; box-shadow: none !important; -webkit-appearance: none; appearance: none; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; position: relative; z-index: 101; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }

@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }
}

/* === MOBILE MENU STYLES === */
@media (max-width: 640px) {
  nav { padding: 16px 20px; }
  .nav-logo { font-size: 20px; }
  .nav-links { display: none; }
  .nav-btn { padding: 9px 16px; font-size: 13px; }
  .nav-hamburger { display: flex; }
  nav.scrolled .nav-hamburger { display: flex !important; }

  .nav-links.open {
    display: flex !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 38px;
    z-index: 99;
    animation: fadeIn 0.25s ease;
  }

  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  .nav-links.open li { list-style: none; }
  .nav-links.open a { font-size: 22px; color: #fff; font-weight: 500; letter-spacing: -0.01em; transition: color 0.2s ease; text-decoration: none; position: relative; }
  .nav-links.open a::after { display: none; }
  .nav-links.open a:hover { color: var(--yellow); }

  .menu-close-btn { position: absolute; top: 24px; right: 24px; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; width: 44px; height: 44px; display: none; align-items: center; justify-content: center; transition: color 0.2s ease, transform 0.2s ease; padding: 0; }
  .nav-links.open .menu-close-btn { display: flex; }
  .menu-close-btn:hover { color: var(--yellow); transform: rotate(90deg); }
  .menu-close-btn:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }
}

/* ════════════════════════════════════════════════════════
   GLOBAL MOBILE FIX
════════════════════════════════════════════════════════ */
html, body { max-width: 100vw !important; overflow-x: hidden !important; }

@media (max-width: 640px) {

  /* ── NAV ── */
  nav {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    z-index: 500 !important;
    padding: 14px 20px !important;
    background: rgba(255,255,255,0.97) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    height: 60px !important;
    overflow: visible !important;
    display: flex !important; align-items: center !important; justify-content: space-between !important;
  }

  nav .nav-logo, .nav-logo { font-size: 18px !important; color: #222 !important; }
  nav .nav-logo a, .nav-logo a { color: #222 !important; }
  nav .nav-links, nav ul.nav-links { display: none !important; }

  nav .nav-hamburger, .nav-hamburger {
    display: flex !important; z-index: 10000 !important;
    background: none !important; border: none !important;
    flex-direction: column !important; gap: 5px !important;
    cursor: pointer !important; padding: 4px !important;
  }
  nav .nav-hamburger span, .nav-hamburger span {
    display: block !important; width: 22px !important; height: 2px !important;
    background: #444 !important; border-radius: 2px !important;
  }

  nav .nav-btn, .nav-btn { padding: 8px 14px !important; font-size: 12px !important; }

  /* ════════════════════════════════════════════
     AÇIK MENÜ OVERLAY
     background ve backdrop-filter !important ile
     — hiçbir kural ezemisin
  ════════════════════════════════════════════ */
  .nav-links.open {
    display: flex !important;
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    right: 0 !important; bottom: 0 !important;
    background: rgba(20, 20, 20, 0.75) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 38px !important;
    z-index: 99999 !important;
    list-style: none !important;
    margin: 0 !important; padding: 0 !important;
  }

  .nav-links.open li { list-style: none !important; }
  .nav-links.open a { font-size: 24px !important; color: #fff !important; font-weight: 500 !important; text-decoration: none !important; }
  .nav-links.open a:hover { color: #FFFF00 !important; }
  .nav-links.open .menu-close-btn {
    display: flex !important; position: absolute !important;
    top: 24px !important; right: 24px !important;
    background: none !important; border: none !important;
    color: #fff !important; font-size: 32px !important;
    cursor: pointer !important; z-index: 100000 !important;
    width: 44px !important; height: 44px !important;
    align-items: center !important; justify-content: center !important;
  }

  /* ── SAYFA İÇERİĞİ ── */
  .section, .section-specs, .section-colors, .section-accessories, .section-cta,
  .section-products, .section-categories, [class*="section-"] {
    padding-left: 20px !important; padding-right: 20px !important;
  }

  body { padding-top: 60px !important; }
  .hero, .page-hero, .hero-carousel { margin-top: -60px !important; padding-top: 0 !important; }

  .hero-content, .page-hero-content, .hero-content-inner {
    left: 20px !important; right: 20px !important;
    max-width: calc(100vw - 40px) !important;
    padding-left: 0 !important; padding-right: 0 !important;
  }
  .page-hero-content h1 { font-size: 28px !important; }
  .hero-content h1 { font-size: 28px !important; }

  .breadcrumb { padding: 16px 20px !important; font-size: 12px !important; overflow: hidden !important; text-overflow: ellipsis !important; }

  .options-grid, .features-grid, .related-products, .accessories-grid {
    grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important;
  }
  /* .specs-grid hariç tutuldu — kendi responsive davranışı olsun */
  .products-grid, .categories-grid { grid-template-columns: 1fr !important; }

  .specs-box { padding: 20px !important; margin: 24px 0 !important; }
  .specs-box h3 { font-size: 16px !important; }
  .spec-value { font-size: 16px !important; }

  footer { padding: 40px 20px 28px !important; }
  .footer-top { grid-template-columns: 1fr !important; gap: 24px !important; }
}

@media (max-width: 900px) {
  nav { padding: 16px 24px !important; }
}
/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */

footer {
  background: #222222;
  color: rgba(255,255,255,0.6);
  padding: 56px 48px 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-brand h3 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}

.footer-section h4 {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 11px;
}

.footer-section a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.7);
}

@media (max-width: 900px) {
  footer { padding: 48px 24px 32px; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ════════════════════════════════════════════════════════════
   NAV — HERO OLMAYAN SAYFALARDA BAŞTAN KOYU
   (shared-nav.js updateNavScroll() ile çalışır)
   ════════════════════════════════════════════════════════════ */

nav.scrolled .nav-logo img {
  filter: none;
}

/* ════════════════════════════════════════════════════════════
   WHATSAPP BUTONU
   ════════════════════════════════════════════════════════════ */

.whatsapp-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  background: #25D366;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}

@media (max-width: 640px) {
  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
}