/* ============================================================
   DOLIVA DOLAP DÜNYASI — GLOBAL CSS (BLACK & WHITE E-COMMERCE)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', Arial, sans-serif; color: var(--text, #1a1a1a); background: var(--bg, #fff); line-height: 1.6; overflow-x: hidden; }
a { color: var(--primary, #000); text-decoration: none; transition: color .2s; }
a:hover { color: var(--secondary, #555); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* Container */
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* ===== BUTONLAR ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 4px; font-weight: 600; font-size: 15px; cursor: pointer; border: 2px solid transparent; transition: all .3s ease; text-decoration: none; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-primary { background: #000; color: #fff; border-color: #000; }
.btn-primary:hover { background: #333; border-color: #333; color: #fff; }
.btn-outline { background: transparent; color: #000; border-color: #000; }
.btn-outline:hover { background: #000; color: #fff; }
.btn-hero { background: #fff; color: #000; padding: 16px 40px; font-size: 15px; border-radius: 0; }
.btn-hero:hover { background: #000; color: #fff; border-color: #fff; }
.btn-tam-genislik { width: 100%; }
.btn-kucuk { padding: 8px 16px; font-size: 13px; }
.btn-tehlike { background: #000; color: #fff; border-color: #000; }
.btn-tehlike:hover { background: #333; }

/* ===== FORMLAR ===== */
.form-kontrol { width: 100%; padding: 12px 16px; border: 1px solid #e0e0e0; border-radius: 4px; font-size: 15px; transition: border-color .3s, box-shadow .3s; background: #fff; }
.form-kontrol:focus { outline: none; border-color: #000; box-shadow: 0 0 0 1px #000; }
.form-grup { margin-bottom: 20px; }
.form-grup label { display: block; margin-bottom: 8px; font-weight: 500; color: #000; font-size: 14px; }
.form-iki { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.zorunlu { color: #000; }

/* ===== HEADER (AVMPARK STYLE) ===== */
.site-header { background: #fff; border-bottom: 1px solid #eaeaea; position: sticky; top: 0; z-index: 1000; }
.header-top { background: #000; color: #fff; font-size: 12px; padding: 8px 0; text-align: center; letter-spacing: 0.5px; }
.header-top a { color: #fff; text-decoration: underline; }

.header-main { padding: 20px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 45px; width: auto; }
.logo-metin { font-size: 26px; font-weight: 800; color: #000; letter-spacing: -1px; text-transform: uppercase; }

/* Search Bar */
.header-search { flex: 1; max-width: 600px; position: relative; }
.header-search form { display: flex; border: 2px solid #000; border-radius: 4px; overflow: hidden; }
.header-search input { flex: 1; border: none; padding: 12px 20px; font-size: 15px; outline: none; }
.header-search button { background: #000; color: #fff; border: none; padding: 0 24px; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; }
.header-search button:hover { background: #333; }

/* Icons */
.header-right { display: flex; align-items: center; gap: 24px; }
.header-ikon-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #000; transition: color .2s; position: relative; }
.header-ikon-wrap:hover { color: #555; }
.header-ikon-wrap svg { width: 24px; height: 24px; stroke-width: 1.5; }
.header-ikon-metin { font-size: 12px; font-weight: 500; }
.sepet-sayi { position: absolute; top: -6px; right: -8px; background: #000; color: #fff; font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* Nav Bar */
.header-nav-bar { border-top: 1px solid #eaeaea; }
.ana-nav { display: flex; align-items: center; justify-content: center; gap: 32px; }
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 6px; padding: 16px 0; color: #000; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.nav-item > a::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: #000; transition: width .3s ease; }
.nav-item:hover > a::after, .nav-item > a.aktif::after { width: 100%; }

/* Dropdown */
.dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid #eaeaea; box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 12px 0; z-index: 100; border-radius: 4px; }
.nav-item.has-dropdown:hover .dropdown { display: block; animation: fadeIn .2s ease forwards; }
.dropdown li a { display: block; padding: 10px 24px; color: #333; font-size: 14px; font-weight: 500; transition: all .2s; }
.dropdown li a:hover { background: #f9f9f9; color: #000; padding-left: 28px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 26px; height: 2px; background: #000; border-radius: 2px; transition: all .3s; }
.hamburger.acik span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.acik span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.acik span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobil-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; }
.mobil-menu-overlay.aktif { display: block; }

/* ===== SAYFA BAŞLIĞI ===== */
.sayfa-baslik-alani { background: #f9f9f9; padding: 40px 0 30px; border-bottom: 1px solid #eaeaea; margin-bottom: 0; text-align: center; }
.sayfa-baslik-alani h1 { font-size: 32px; color: #000; margin-bottom: 10px; font-weight: 800; text-transform: uppercase; }
.breadcrumb { font-size: 13px; color: #666; display: flex; align-items: center; justify-content: center; gap: 8px; }
.breadcrumb a { color: #000; font-weight: 500; }
.breadcrumb a::after { content: '/'; margin-left: 8px; color: #ccc; }
.breadcrumb span:last-child { color: #888; }

/* ===== BÖLÜM BAŞLIĞI ===== */
.bolum-baslik { text-align: center; font-size: 32px; font-weight: 800; color: #000; margin-bottom: 48px; text-transform: uppercase; letter-spacing: -0.5px; }

/* ===== ÜRÜN KARTLARI ===== */
.urun-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.urun-kart { background: #fff; overflow: hidden; display: flex; flex-direction: column; transition: all .3s; position: relative; }
.urun-kart:hover { transform: translateY(-5px); }
.urun-gorsel-wrap { aspect-ratio: 3/4; overflow: hidden; background: #f5f5f5; position: relative; margin-bottom: 16px; }
.urun-gorsel-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.urun-kart:hover .urun-gorsel-wrap img { transform: scale(1.08); }
.urun-gorsel-yok { display: flex; align-items: center; justify-content: center; font-size: 40px; color: #ddd; height: 100%; }

/* Etiketler */
.indirim-etiketi { position: absolute; top: 12px; left: 12px; background: #000; color: #fff; font-size: 11px; font-weight: 700; padding: 6px 12px; text-transform: uppercase; letter-spacing: 1px; z-index: 2; }
.yeni-etiketi { position: absolute; top: 12px; right: 12px; background: #fff; color: #000; border: 1px solid #000; font-size: 11px; font-weight: 700; padding: 5px 11px; text-transform: uppercase; letter-spacing: 1px; z-index: 2; }

/* Hover İşlemleri */
.urun-hover-aksiyon { position: absolute; bottom: -50px; left: 0; width: 100%; display: flex; justify-content: center; gap: 10px; padding: 10px; opacity: 0; transition: all .3s ease; z-index: 3; }
.urun-kart:hover .urun-hover-aksiyon { bottom: 10px; opacity: 1; }
.urun-aksiyon-btn { background: #fff; border: 1px solid #000; color: #000; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; }
.urun-aksiyon-btn:hover { background: #000; color: #fff; }
.urun-aksiyon-btn svg { width: 18px; height: 18px; }
.sepete-ekle-btn { background: #000; color: #fff; border: none; height: 40px; padding: 0 20px; font-size: 13px; font-weight: 600; text-transform: uppercase; cursor: pointer; transition: background .2s; display: flex; align-items: center; gap: 8px; }
.sepete-ekle-btn:hover { background: #333; }

.urun-bilgi { text-align: center; padding: 0 10px 10px; flex: 1; display: flex; flex-direction: column; }
.urun-kategori { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.urun-adi { font-size: 15px; font-weight: 600; color: #000; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.urun-fiyat { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px; }
.fiyat, .yeni-fiyat { font-size: 18px; font-weight: 700; color: #000; }
.eski-fiyat { font-size: 14px; color: #999; text-decoration: line-through; }

/* ===== SAYFALAMA ===== */
.sayfalama { display: flex; gap: 10px; justify-content: center; margin-top: 50px; flex-wrap: wrap; }
.sayfa-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid #eaeaea; color: #000; font-weight: 600; transition: all .2s; border-radius: 4px; }
.sayfa-btn.aktif, .sayfa-btn:hover { background: #000; border-color: #000; color: #fff; }

/* ===== FOOTER (Açık Renk Konsept) ===== */
.site-footer { background-color: #f5f4f2; color: #333; padding: 60px 0 20px; font-family: inherit; }
.footer-ust { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 60px; }

/* Bülten Alanı */
.footer-bulten { flex: 1; min-width: 300px; max-width: 500px; }
.bulten-baslik { font-size: 32px; font-weight: 300; line-height: 1.3; color: #111; margin-bottom: 40px; }
.bulten-form { display: flex; border-bottom: 1px solid #111; padding-bottom: 5px; position: relative; }
.bulten-form input { border: none; background: transparent; flex: 1; padding: 10px 0; font-size: 14px; color: #111; outline: none; }
.bulten-form button { background: transparent; border: none; color: #111; cursor: pointer; padding: 10px; display: flex; align-items: center; justify-content: center; transition: color 0.3s; }
.bulten-form button:hover { color: #555; }

/* Menü Kolonları */
.footer-menuler { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #111; margin-bottom: 20px; border-bottom: 1px solid #ddd; padding-bottom: 8px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #555; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: #111; }

/* Alt Bölüm */
.footer-alt { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid #eaeaea; font-size: 12px; color: #888; }
.telif-miranya { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; }
.miranya-copyright-btn { display: inline-flex; align-items: center; justify-content: center; background-color: #0b2239; color: #fff !important; font-weight: 500; text-decoration: none; padding: 4px 10px; border-radius: 4px; border: 1px solid #1a3a5c; font-size: 13px; }
.miranya-copyright-btn span { color: #00e5ff; font-weight: 700; margin-left: 2px; }
.sosyal-medya { display: flex; align-items: center; gap: 15px; }
.sosyal-medya span { font-weight: 500; color: #555; }
.ikonlar { display: flex; gap: 10px; }
.ikonlar a { color: #111; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.ikonlar a:hover { color: #666; }
.alt-logo { color: #111; }

@media (max-width: 768px) {
    .footer-ust { flex-direction: column; }
    .bulten-baslik { font-size: 24px; }
    .footer-menuler { gap: 30px; justify-content: space-between; width: 100%; }
    .footer-alt { flex-direction: column; gap: 20px; text-align: center; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) { 
  .urun-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } 
}
@media (max-width: 992px) { 
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } 
  .header-search { display: none; } /* Mobile will have a search icon or separate row */
  .ana-nav { display: none; position: fixed; top: 0; left: -300px; bottom: 0; width: 300px; background: #fff; flex-direction: column; align-items: flex-start; justify-content: flex-start; z-index: 1000; transition: left .3s ease; padding: 60px 20px 20px; border-right: 1px solid #eaeaea; gap: 0; overflow-y: auto; }
  .ana-nav.acik { left: 0; }
  .nav-item { width: 100%; border-bottom: 1px solid #f0f0f0; }
  .nav-item > a { padding: 16px 0; width: 100%; justify-content: space-between; }
  .nav-item > a::after { display: none; }
  .dropdown { position: static; box-shadow: none; border: none; display: none; padding: 0 0 10px 16px; background: #f9f9f9; }
  .nav-item.has-dropdown.acik .dropdown { display: block; }
  .hamburger { display: flex; }
  .header-nav-bar { display: none; }
  
  /* Mobile menu close button */
  .mobil-menu-kapat { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 24px; cursor: pointer; color: #000; }
}
@media (max-width: 768px) {
  .urun-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-alt { flex-direction: column; text-align: center; }
  .header-ikon-metin { display: none; }
  .header-inner { gap: 16px; }
}
@media (max-width: 480px) { 
  /* Mobile Bottom Nav (App-like feel) */
  body { padding-bottom: 60px; }
  .mobil-alt-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #eaeaea; z-index: 1000; padding: 10px 0; justify-content: space-around; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }
  .mobil-alt-nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #666; font-size: 10px; font-weight: 600; text-transform: uppercase; }
  .mobil-alt-nav-item.aktif { color: #000; }
  .mobil-alt-nav-item svg { width: 22px; height: 22px; stroke-width: 1.5; }
  .header-right .header-ikon-wrap.gizle-mobil { display: none; }
}
@media (min-width: 481px) {
  .mobil-alt-nav { display: none; }
}
