/* ========================================
   E-Ticaret Frontend — Woodmart-inspired
   ======================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* NOT: yatay tasmaya karsi "html, body { overflow-x: hidden }" EKLENMEDI.
   O kural sticky ust bari (.site-header) bozabiliyor: body overflow'u
   gorunur olmaktan cikinca kaydirma kabi degisiyor ve baslik yapismiyor.
   Tasmanin kaynagi izgara sutunlariydi; minmax(0, 1fr) ile duzeltildi. */
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ====== MARKA RENGI ======
   Tek ayardan (PM > E-Ticaret > Ayarlar > Site Rengi) yonetilir. Buradaki
   degerler VARSAYILAN; ayar doluysa header.php sayfa basinda ayni degiskenleri
   yeniden tanimlar (dinamik deger, tek yer). Yeni kural yazarken marka rengini
   duz hex olarak GOMME, bu degiskenleri kullan. */
:root {
    --marka: #6c5ce7;          /* ana renk: dugme, vurgu, baglanti */
    --marka-koyu: #5b4fcf;     /* hover/basili hal */
    --marka-yumusak: #a29bfe;  /* anasayfa tanitim alani gecisi */
    --marka-acik: #f5f3ff;     /* acik zemin (ikon kutusu, liste hover) */
    --marka-cok-acik: #f8f7ff; /* en acik zemin */
    --marka-rgb: 108, 92, 231; /* golgelerdeki rgba() icin */
}


/* ====== TOP BAR ====== */
.topbar {
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #777;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
}
.topbar-text { font-weight: 500; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { color: #555; font-weight: 500; transition: color .15s; }
.topbar-links a:hover { color: var(--marka); }

/* ====== HEADER ====== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 72px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1a1a2e;
    white-space: nowrap;
    letter-spacing: -.03em;
    flex-shrink: 0;
}
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: #333; }

/* Header Search */
.header-search {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s;
    background: #fff;
}
.header-search:focus-within { border-color: var(--marka); }
.header-search input {
    flex: 1; border: none; padding: 12px 16px;
    font-size: 14px; outline: none; background: transparent;
    min-width: 0;
}
.header-search button {
    border: none; background: var(--marka); color: #fff;
    padding: 10px 18px; cursor: pointer;
    display: flex; align-items: center;
    transition: background .2s;
}
.header-search button:hover { background: var(--marka-koyu); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bayi-giris-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px;
    background: var(--marka); color: #fff; font-size: 13px; font-weight: 600;
    text-decoration: none; white-space: nowrap; transition: all .2s;
}
.bayi-giris-btn:hover { background: var(--marka-koyu); box-shadow: 0 4px 12px rgba(var(--marka-rgb),.3); }
.action-icon {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    color: #333; transition: all .2s;
}
.action-icon:hover { background: var(--marka-acik); color: var(--marka); }
.action-badge {
    position: absolute; top: 2px; right: 0;
    background: var(--marka); color: #fff;
    font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px; display: flex;
    align-items: center; justify-content: center;
    padding: 0 4px; line-height: 1;
}

/* ====== MOBILE MENU ====== */
/* Mobil menu: masaustunde hic basilmaz, dar ekranda ekran DISINDA bekler ve
   .open ile iceri kayar. ONCEDEN taban kural display:none idi ve .open yalniz
   left'i degistiriyordu -> menu hicbir zaman gorunmuyordu (kategoriler telefonda
   hic acilmiyordu). Acilis/kapanis yalniz .open sinifiyla yonetilir. */
.mobile-menu {
    display: none; position: fixed; top: 0; left: -300px;
    width: 300px; max-width: 86vw; height: 100%; background: #fff;
    z-index: 1200; box-shadow: 4px 0 20px rgba(0,0,0,.15);
    transition: left .3s ease; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { left: 0; }
/* Menu acikken arka plani karart; dokununca kapanir (mobile-menu-btn ile ayni JS) */
.mobile-menu-perde {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 1100;
}
.mobile-menu-perde.open { display: block; }
.mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid #eee;
    font-weight: 700; font-size: 16px;
}
.mobile-menu-header button { background: none; border: none; font-size: 28px; cursor: pointer; color: #999; }
.mobile-search { display: flex; margin: 12px 16px; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.mobile-search input { flex: 1; border: none; padding: 10px 14px; font-size: 14px; outline: none; }
.mobile-search button { border: none; background: var(--marka); color: #fff; padding: 10px 16px; font-weight: 600; cursor: pointer; }
.mobile-nav a { display: block; padding: 12px 20px; border-bottom: 1px solid #f5f5f5; font-size: 14px; font-weight: 500; color: #333; }
.mobile-nav a:hover { background: var(--marka-cok-acik); color: var(--marka); }
.mobile-nav .mobile-nav-parent { font-weight: 600; }
.mobile-nav .mobile-nav-child { font-weight: 400; font-size: 13px; color: #666; padding-left: 32px; border-bottom-color: #fafafa; }

/* ====== BREADCRUMB ====== */
.breadcrumb { background: #fafafa; border-bottom: 1px solid #f0f0f0; padding: 10px 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #999; }
.breadcrumb li::after { content: '/'; margin-left: 6px; color: #ddd; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--marka); transition: color .15s; }
.breadcrumb a:hover { color: var(--marka-koyu); text-decoration: underline; }
.breadcrumb .active { color: #333; font-weight: 500; }

/* ====== HOME HERO (3-Column) ====== */
.home-hero { padding: 20px 0; }
.home-hero-grid {
    display: grid;
    /* minmax(0, 1fr) SART: duz "1fr" asgari olcusu AUTO demektir, yani sutun
       icindeki tasan icerik (mobildeki yatay kategori seridi) sutunu ve tum
       sayfayi genisletir. Telefonda ust bar sikisiyor, bolum zeminleri sayfanin
       tamamini ortmuyordu. */
    grid-template-columns: 260px minmax(0, 1fr) 280px;
    gap: 20px;
    min-height: 480px;
}

/* Home Sidebar */
.home-sidebar {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex; flex-direction: column;
    min-width: 0;   /* izgara ogesi icerigi kadar genisleyip sayfayi tasirmasin */
}
/* Kategori listesi SABIT bir max-height ile degil, hero satirinin boyuyla
   sinirlanir: sag sutun (yeni urunler) uzayinca burasi da uzar ve kategoriler
   sigdigi surece kaydirma cubugu cikmaz. min-height:0 olmadan flex cocugu
   kuculemez ve tasar. */
.home-cat-list { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.home-cat-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 20px; font-size: 14px; font-weight: 500;
    color: #333; border-bottom: 1px solid #f5f5f5;
    transition: all .15s;
}
/* Her satir artik .home-cat-row ile sarili (mega menu paneli icin) -> item
   kendi sarmalayicisinin tek cocugu; :last-child'a bakan eski kural TUM
   cizgileri siliyordu. Kontrol listenin son SATIRINA tasindi. */
.home-cat-list > .home-cat-row:last-child .home-cat-item { border-bottom: none; }
.home-cat-item:hover { background: var(--marka-cok-acik); color: var(--marka); padding-left: 24px; }
.home-cat-item img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.home-cat-icon {
    width: 28px; height: 28px; display: flex;
    align-items: center; justify-content: center;
    background: var(--marka-acik); border-radius: 6px; color: var(--marka); flex-shrink: 0;
}

/* Home Sidebar: Ana / Alt Kategori Ayrımı */
.home-cat-parent { font-weight: 600; }
.home-cat-parent .home-cat-arrow { color: #bbb; margin-left: auto; flex-shrink: 0; transition: transform .2s; }
.home-cat-child {
    padding: 8px 20px 8px 46px;
    font-size: 13px; font-weight: 400;
    color: #666;
    border-bottom-color: #fafafa;
}
.home-cat-child:hover { color: var(--marka); padding-left: 50px; }
.home-cat-child::before {
    content: ''; display: inline-block;
    width: 5px; height: 5px; border-radius: 50%;
    background: #ddd; margin-right: 10px; flex-shrink: 0;
}

/* Home Banner */
.home-banner {
    border-radius: 12px;
    position: relative; overflow: hidden;
    min-height: 100%;
    /* Icerik satirin TAMAMINI kaplasin: oncesinde banner kutusu sabit 380px
       kalip yan sutunlardan kisa duruyordu. */
    display: flex; flex-direction: column;
}
.home-banner > .home-banner-content,
.home-banner > .banner-slider { flex: 1 1 auto; }
/* Fallback (no banners) */
.home-banner-content {
    background: linear-gradient(135deg, var(--marka) 0%, var(--marka-yumusak) 50%, #dfe6e9 100%);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    text-align: center; padding: 40px;
    min-height: 440px; position: relative; z-index: 1;
    border-radius: 12px;
}
.home-banner-content h1 {
    font-size: 2rem; font-weight: 900; color: #fff;
    margin-bottom: 8px; letter-spacing: -.02em;
}
.home-banner-content p {
    font-size: 1rem; color: rgba(255,255,255,.85);
    margin-bottom: 24px;
}
.home-banner-search {
    display: flex; max-width: 440px; margin: 0 auto;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.home-banner-search input {
    flex: 1; border: none; padding: 14px 18px;
    font-size: 14px; outline: none;
}
.home-banner-search button {
    border: none; background: #fff; color: var(--marka);
    padding: 14px 18px; cursor: pointer;
    display: flex; align-items: center;
    transition: background .2s;
}
.home-banner-search button:hover { background: #f0f0f0; }

/* Banner Slider */
.banner-slider { position: relative; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; }
.banner-slider-track { position: relative; width: 100%; height: 100%; min-height: 440px; }
.banner-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity .5s ease;
    pointer-events: none;
}
.banner-slide.active { opacity: 1; pointer-events: auto; position: relative; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.banner-slide a { display: block; width: 100%; height: 100%; }
.banner-slide-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    color: #fff; padding: 30px 24px 18px; font-size: 16px; font-weight: 600;
    border-radius: 0 0 12px 12px;
}
.banner-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.85); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #333; z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: all .2s; opacity: 0;
}
.banner-slider:hover .banner-arrow { opacity: 1; }
.banner-arrow:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 2;
}
.banner-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.5); cursor: pointer;
    transition: all .2s; border: 2px solid rgba(255,255,255,.8);
}
.banner-dot.active { background: #fff; transform: scale(1.2); }

/* Home Widget (Right Column) */
.home-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}
.home-widget-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.home-widget-header h3 { font-size: 15px; font-weight: 700; color: #333; }
.home-widget-list { display: flex; flex-direction: column; }
.home-widget-item {
    display: flex; gap: 14px; padding: 14px 20px;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    transition: background .15s;
}
.home-widget-item:last-child { border-bottom: none; }
.home-widget-item:hover { background: #fafafa; }
.home-widget-img { width: 70px; height: 70px; flex-shrink: 0; }
.home-widget-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; background: #f8f8f8; }
.home-widget-img-ph {
    width: 70px; height: 70px; display: flex;
    align-items: center; justify-content: center;
    background: #f5f5f5; border-radius: 8px; color: #ccc;
}
.home-widget-info { flex: 1; min-width: 0; }
.home-widget-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; font-size: 13px; font-weight: 600; color: #333;
    line-height: 1.4; margin-bottom: 4px;
}
.home-widget-price { font-size: 15px; font-weight: 700; color: #e74c3c; }

/* ====== SECTIONS ====== */
.section { padding: 40px 0; }
.section-alt { background: #fafafa; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-title { font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; color: #1a1a2e; }
.section-link { font-size: 13px; font-weight: 600; color: var(--marka); transition: color .15s; }
.section-link:hover { color: var(--marka-koyu); }

/* ====== PRODUCT GRID ====== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all .25s ease;
}
.product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    transform: translateY(-3px);
}
.product-card-img {
    display: block; position: relative;
    aspect-ratio: 1; background: #f8f8f8; overflow: hidden;
}
.product-card-img img {
    width: 100%; height: 100%; object-fit: contain;
    padding: 12px; transition: transform .3s;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #ddd; background: #f8f8f8;
}
.badge-featured {
    position: absolute; top: 10px; left: 10px;
    background: var(--marka); color: #fff;
    padding: 3px 10px; border-radius: 4px;
    font-size: 11px; font-weight: 600;
}
.product-card-body { padding: 14px 16px 18px; }
.product-card-cat { font-size: 11px; color: #999; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.product-card-title { display: block; }
.product-card-title h3 {
    font-size: 14px; font-weight: 600; line-height: 1.35; color: #333;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    transition: color .15s;
}
.product-card-title:hover h3 { color: var(--marka); }
.product-card-price {
    font-size: 16px; font-weight: 700; color: #e74c3c; margin-top: 8px;
}

/* ====== CATEGORY PAGE ====== */
.category-header {
    margin-bottom: 24px;
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px;
}
.category-header h1 { font-size: 1.5rem; font-weight: 700; }
.category-desc { color: #777; font-size: 14px; flex-basis: 100%; }
.category-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; gap:12px; flex-wrap:wrap; }
.result-count { font-size: 13px; color: #999; }
.sort-dropdown { display:flex; align-items:center; gap:8px; margin-left:auto; }
.sort-dropdown label { font-size:13px; color:#888; white-space:nowrap; }
.sort-dropdown select { padding:7px 12px; border:1px solid #e0e0e0; border-radius:8px; font-size:13px; background:#fff; color:#333; cursor:pointer; outline:none; }
.sort-dropdown select:focus { border-color:var(--marka); }
.subcategory-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.subcategory-tag {
    padding: 6px 16px; border-radius: 20px;
    background: #fff; border: 1px solid #e8e8e8;
    font-size: 13px; font-weight: 500; color: #555;
    transition: all .2s;
}
.subcategory-tag:hover { border-color: var(--marka); color: var(--marka); background: var(--marka-cok-acik); }

/* ====== PRODUCT DETAIL ====== */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; align-items: start;
}
.gallery-main {
    border-radius: 12px; overflow: hidden;
    background: #f8f8f8; border: 1px solid #eee;
    aspect-ratio: 1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.product-placeholder-lg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f8f8f8; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.thumb {
    width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
    cursor: pointer; border: 2px solid transparent; background: none;
    padding: 0; flex-shrink: 0; transition: border-color .15s;
}
.thumb:hover, .thumb.active { border-color: var(--marka); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; color: #333; }
.product-cat { margin-bottom: 12px; }
.product-cat a { color: var(--marka); font-size: 13px; font-weight: 500; }
.product-cat a:hover { text-decoration: underline; }
.product-price { font-size: 1.75rem; font-weight: 800; color: #e74c3c; margin-bottom: 16px; }
.product-stock { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 20px; }
.in-stock { background: #d4edda; color: #155724; }
.out-of-stock { background: #f8d7da; color: #721c24; }

/* Variants */
.product-variants { margin-bottom: 20px; }
.variant-group { margin-bottom: 12px; }
.variant-group label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 6px; }
.variant-option { padding: 6px 14px; border-radius: 6px; border: 1px solid #e8e8e8; font-size: 13px; background: #fff; cursor: default; }
.variant-btn { cursor: pointer; padding: 6px 16px; border: 2px solid #ddd; border-radius: 6px; background: #fff; font-size: 14px; transition: all .2s; }
.variant-btn:hover { border-color: var(--marka); color: var(--marka); }
.variant-btn.active { border-color: var(--marka); background: var(--marka); color: #fff; }

/* Add to cart */
.add-to-cart { display: flex; align-items: center; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.qty-selector { display: inline-flex; align-items: center; border: 2px solid #ddd; border-radius: 8px; overflow: hidden; }
.qty-selector button { width: 40px; height: 42px; border: none; background: #f8f8f8; cursor: pointer; font-size: 18px; font-weight: 600; color: #333; display: flex; align-items: center; justify-content: center; }
.qty-selector button:hover { background: #eee; }
.qty-selector input { width: 50px; height: 42px; border: none; text-align: center; font-size: 15px; font-weight: 600; -moz-appearance: textfield; }
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-add-cart {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 32px; background: var(--marka); color: #fff;
    border: none; border-radius: 8px; font-size: 15px;
    font-weight: 600; cursor: pointer; transition: all .2s;
}
.btn-add-cart:hover { background: var(--marka-koyu); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(var(--marka-rgb),.35); }
.btn-add-cart:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-add-cart svg { flex-shrink: 0; }

/* Product Specs */
.product-specs {
    margin-top: 24px; background: #fafafa;
    border-radius: 10px; padding: 20px 24px; border: 1px solid #eee;
}
.product-specs h2 { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: #333; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.spec-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #eee; font-size: 13px; }
.spec-item:nth-last-child(-n+2) { border-bottom: none; }
.specs-grid > .spec-item:nth-child(odd) { border-right: 1px solid #eee; }
.spec-label { color: #888; font-weight: 500; }
.spec-value { color: #333; font-weight: 600; text-align: right; }

/* Product Description */
.product-desc { margin-top: 30px; padding: 24px 30px; border-top: 1px solid #f0f0f0; background: #fafafa; border-radius: 8px; }
.product-desc h2 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.product-desc div { font-size: 14px; color: #555; line-height: 1.7; word-wrap: break-word; overflow-wrap: break-word; }

/* Variant Table */
.product-variant-table { margin-top: 24px; padding-top: 24px; border-top: 1px solid #f0f0f0; }
.product-variant-table h2 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.product-variant-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.product-variant-table th { text-align: left; padding: 8px 12px; background: #fafafa; font-weight: 600; color: #555; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid #eee; }
.product-variant-table td { padding: 8px 12px; border-bottom: 1px solid #f5f5f5; }

/* ====== SEARCH PAGE ====== */
.search-page-header { text-align: center; margin-bottom: 32px; }
.search-page-header h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.search-page-form {
    display: flex; max-width: 520px; margin: 0 auto;
    border-radius: 10px; overflow: hidden;
    border: 2px solid #e8e8e8; background: #fff; transition: border-color .2s;
}
.search-page-form:focus-within { border-color: var(--marka); }
.search-page-form input { flex: 1; border: none; padding: 14px 18px; outline: none; font-size: 1rem; }
.search-page-form button { border: none; background: var(--marka); color: #fff; padding: 14px 28px; font-weight: 600; cursor: pointer; transition: background .2s; }
.search-page-form button:hover { background: var(--marka-koyu); }

/* ====== PAGINATION ====== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: 8px; border: 1px solid #e8e8e8;
    background: #fff; font-size: 14px; font-weight: 500; color: #555;
    transition: all .2s;
}
.page-link:hover { border-color: var(--marka); color: var(--marka); }
.page-link.active { background: var(--marka); border-color: var(--marka); color: #fff; }

/* ====== EMPTY / NOT FOUND ====== */
.empty-state, .not-found { text-align: center; padding: 60px 20px; }
.empty-state svg, .not-found svg { margin: 0 auto 16px; }
.empty-state p, .not-found p { font-size: 1rem; color: #999; margin-bottom: 20px; }
.not-found h1 { font-size: 1.5rem; margin-bottom: 8px; }
.btn-primary {
    display: inline-block; padding: 12px 28px;
    background: var(--marka); color: #fff;
    border-radius: 8px; font-weight: 600; transition: all .2s;
}
.btn-primary:hover { background: var(--marka-koyu); }

/* ====== FOOTER ====== */
.site-footer { background: #1a1a2e; color: #a0aec0; padding: 48px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.footer-col p { font-size: 14px; line-height: 1.6; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0; margin-top: 36px;
    text-align: center; font-size: 13px;
}

/* ====== CART PAGE ====== */
.page-title { font-size: 1.5rem; font-weight: 700; color: #333; margin-bottom: 24px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty svg { margin-bottom: 16px; }
.cart-empty p { color: #888; font-size: 1rem; margin-bottom: 20px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: #fff; border: 1px solid #eee; border-radius: 10px; transition: box-shadow .2s; }
.cart-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.cart-item-img { width: 80px; height: 80px; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.cart-item-placeholder { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; border-radius: 6px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { display: block; font-weight: 600; color: #333; font-size: 14px; margin-bottom: 4px; }
.cart-item-title:hover { color: var(--marka); }
.cart-item-variant { display: block; font-size: 12px; color: #999; margin-bottom: 4px; }
.cart-item-price { font-size: 13px; color: #777; }
.cart-item-qty { flex-shrink: 0; }
.cart-item-total { flex-shrink: 0; min-width: 100px; text-align: right; font-size: 15px; font-weight: 700; color: #333; }
.cart-item-remove { background: none; border: none; cursor: pointer; color: #ccc; padding: 4px; transition: color .2s; }
.cart-item-remove:hover { color: #e74c3c; }
.cart-summary { background: #fff; border: 2px solid #eee; border-radius: 12px; padding: 24px; position: sticky; top: 120px; }
.cart-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: #333; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.cart-summary-total { display: flex; justify-content: space-between; padding: 14px 0; font-size: 18px; font-weight: 700; color: #e74c3c; border-top: 2px solid #eee; margin-top: 8px; }
.btn-block { display: block; width: 100%; text-align: center; box-sizing: border-box; }
.btn-secondary { display: inline-block; padding: 10px 24px; background: #f8f8f8; color: #555; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s; margin-top: 8px; }
.btn-secondary:hover { background: #eee; color: #333; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ====== CHECKOUT STEPS ====== */
.checkout-steps { display:flex; justify-content:center; gap:8px; margin-bottom:32px; }
.checkout-step { display:flex; align-items:center; gap:8px; padding:10px 20px; border-radius:8px; background:#f0f0f0; color:#888; font-size:14px; font-weight:500; }
.checkout-step .step-num { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:#ddd; color:#888; font-weight:700; font-size:13px; }
.checkout-step.active { background:var(--marka); color:#fff; }
.checkout-step.active .step-num { background:rgba(255,255,255,.25); color:#fff; }
.checkout-step.done { background:#e8f5e9; color:#28a745; }
.checkout-step.done .step-num { background:#28a745; color:#fff; font-size:16px; }

/* ====== CHECKOUT ====== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.checkout-form { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 28px; }
.checkout-form h2 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: #333; }
.checkout-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-form .form-group { margin-bottom: 16px; }
.checkout-form label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.checkout-form input, .checkout-form textarea { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; box-sizing: border-box; transition: border-color .2s; }
.checkout-form input:focus, .checkout-form textarea:focus { outline: none; border-color: var(--marka); box-shadow: 0 0 0 3px rgba(var(--marka-rgb),.1); }
.checkout-form textarea { resize: vertical; }
.checkout-summary { background: #fff; border: 2px solid #eee; border-radius: 12px; padding: 24px; position: sticky; top: 120px; }
.checkout-summary h2 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: #333; }
.checkout-items { max-height: 350px; overflow-y: auto; }
.checkout-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; align-items: center; }
.checkout-item:last-child { border-bottom: none; }
.checkout-item-img { width: 50px; height: 50px; flex-shrink: 0; }
.checkout-item-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-name { display: block; font-size: 13px; font-weight: 600; color: #333; }
.checkout-item-info small { display: block; font-size: 12px; color: #999; }
.checkout-item-qty { display: block; font-size: 12px; color: #777; margin-top: 2px; }
.checkout-item-total { flex-shrink: 0; font-weight: 600; font-size: 14px; color: #333; }
.checkout-total { display: flex; justify-content: space-between; padding: 16px 0 12px; border-top: 2px solid #eee; margin-top: 8px; font-size: 18px; }
.checkout-total strong { color: #e74c3c; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.order-success { text-align: center; padding: 60px 20px; }
.order-success h1 { font-size: 1.5rem; font-weight: 800; color: #333; margin: 16px 0 8px; }
.order-success p { color: #555; font-size: 1rem; margin-bottom: 8px; }
.order-success .order-email-note { color: #888; font-size: 14px; margin: 16px 0 24px; }

/* ====== CONTACT PAGE ====== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.contact-info-card { background: #fafafa; border-radius: 12px; padding: 32px; border: 1px solid #eee; }
.contact-info-card h1 { font-size: 1.5rem; font-weight: 700; color: #333; margin-bottom: 8px; }
.contact-subtitle { font-size: 14px; color: #888; line-height: 1.6; margin-bottom: 24px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--marka); border-radius: 8px; color: #fff; }
.contact-detail-item strong { display: block; font-size: 12px; color: #999; font-weight: 500; margin-bottom: 2px; }
.contact-detail-item span, .contact-detail-item a { font-size: 14px; color: #333; font-weight: 600; }
.contact-detail-item a:hover { color: var(--marka); }
.contact-legal { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e5e5e5; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-legal-item { display: flex; flex-direction: column; gap: 2px; }
.contact-legal-label { font-size: 11px; color: #bbb; font-weight: 500; }
.contact-legal-value { font-size: 13px; color: #555; font-weight: 600; }
.contact-form-card { background: #fff; border-radius: 12px; padding: 32px; border: 1px solid #eee; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.contact-form-card h2 { font-size: 1.25rem; font-weight: 700; color: #333; margin-bottom: 20px; }
.contact-form-card .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form-card .form-group { margin-bottom: 14px; }
.contact-form-card .form-row .form-group { margin-bottom: 0; }
.contact-form-card label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 4px; }
.contact-form-card input, .contact-form-card textarea {
    width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 14px; transition: border-color .15s; box-sizing: border-box;
}
.contact-form-card input:focus, .contact-form-card textarea:focus { border-color: var(--marka); outline: none; box-shadow: 0 0 0 3px rgba(var(--marka-rgb),.1); }
.contact-form-card textarea { resize: vertical; min-height: 100px; }
.contact-alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.contact-alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.contact-alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ====== CMS PAGE ====== */
.page-content { max-width: 800px; margin: 0 auto; }
.page-content h1 { font-size: 1.5rem; font-weight: 700; color: #333; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #f0f0f0; }
.page-body { font-size: 14px; line-height: 1.8; color: #555; }
.page-body h2 { font-size: 1.25rem; font-weight: 700; margin-top: 28px; margin-bottom: 12px; color: #333; }
.page-body h3 { font-size: 1.1rem; font-weight: 600; margin-top: 24px; margin-bottom: 10px; color: #333; }
.page-body p { margin-bottom: 14px; }
.page-body ul, .page-body ol { margin-bottom: 14px; padding-left: 24px; }
.page-body li { margin-bottom: 6px; }
.page-body a { color: var(--marka); }
.page-body a:hover { text-decoration: underline; }

/* ====== CART ICON (legacy compat) ====== */
.cart-icon { position: relative; display: flex; align-items: center; color: #333; }
.cart-icon:hover { color: var(--marka); }
.cart-badge { position: absolute; top: -8px; right: -10px; background: var(--marka); color: #fff; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .home-hero-grid { grid-template-columns: 220px minmax(0, 1fr); }
    .home-widget { display: none; }
}
@media (max-width: 768px) {
    .topbar { display: none; }
    .header-inner { height: 60px; gap: 12px; }
    .header-search { flex: 1; }
    .header-search input { padding: 10px 14px; }
    .bayi-giris-btn { display: none; }
    .mobile-menu-btn { display: flex; }
    /* Panel dar ekranda AKISA girer (display:block); gorunurlugu .open belirler */
    .mobile-menu { display: block; }

    .home-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: auto; }
    /* Kategoriler telefonda da gorunsun: sol ray gizlenmek yerine yatay
       kaydirilan bir serit olur (ayni isaretleme, ayni veri). */
    .home-sidebar { border: none; background: transparent; overflow: visible; }
    .home-cat-list {
        flex-direction: row; overflow-x: auto; overflow-y: hidden;
        gap: 8px; padding-bottom: 4px; -webkit-overflow-scrolling: touch;
    }
    .home-cat-list { align-items: stretch; }
    .home-cat-list > .home-cat-row { flex: 0 0 auto; display: flex; }
    .home-cat-list > .home-cat-row:last-child .home-cat-item,
    .home-cat-item {
        flex-direction: column; justify-content: flex-start; gap: 6px;
        text-align: center; width: 84px; padding: 10px 4px;
        border: 1px solid #eee; border-radius: 10px; background: #fff;
        font-size: 11.5px; line-height: 1.2;
    }
    /* Kartlar ayni boyda dursun: uzun adlar iki satira kirpilir */
    .home-cat-item > span {
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        overflow: hidden; min-height: 2.4em;
    }
    .home-cat-item:hover { padding-left: 4px; }
    .home-cat-arrow { display: none; }
    .home-banner { min-height: auto; }
    .banner-slider-track { min-height: 220px; }
    .home-banner-content { min-height: 220px; padding: 24px; }
    .home-banner-content h1 { font-size: 1.5rem; }
    .banner-arrow { width: 30px; height: 30px; }
    .banner-prev { left: 6px; }
    .banner-next { right: 6px; }
    .section { padding: 24px 0; }
    .section-title { font-size: 1.125rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .product-card-body { padding: 10px 12px 14px; }
    .product-card-title h3 { font-size: 13px; }
    .product-card-price { font-size: 14px; }
    .product-layout { grid-template-columns: 1fr; gap: 24px; }
    .product-info h1 { font-size: 1.25rem; }
    .product-price { font-size: 1.375rem; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-item { flex-wrap: wrap; }
    .cart-item-total { width: 100%; text-align: left; margin-top: 8px; }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-form .form-row { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 20px; }
    .contact-info-card, .contact-form-card { padding: 20px; }
    .contact-form-card .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form-card .form-row .form-group { margin-bottom: 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .search-page-form { flex-direction: column; }
    .header-actions { gap: 8px; }
}
/* ==================== Cart Drawer ==================== */
.cart-drawer-overlay { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:9998; opacity:0; visibility:hidden; transition:opacity .3s, visibility .3s; }
.cart-drawer-overlay.open { opacity:1; visibility:visible; }
.cart-drawer { position:fixed; top:0; right:0; bottom:0; width:400px; max-width:90vw; background:#fff; z-index:9999; display:flex; flex-direction:column; transform:translateX(100%); transition:transform .3s ease; box-shadow:-4px 0 24px rgba(0,0,0,.12); }
.cart-drawer.open { transform:translateX(0); }
.cart-drawer-header { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid #eee; flex-shrink:0; }
.cart-drawer-header h3 { margin:0; font-size:16px; display:flex; align-items:center; gap:8px; color:#333; }
.cart-drawer-header h3 span { font-weight:400; color:#868e96; font-size:14px; }
.cart-drawer-close { background:none; border:none; font-size:28px; cursor:pointer; color:#999; line-height:1; padding:0 4px; }
.cart-drawer-close:hover { color:#333; }
.cart-drawer-body { flex:1; overflow-y:auto; padding:12px 20px; }
.cart-drawer-loading { text-align:center; color:#adb5bd; padding:40px 0; font-size:14px; }
.cart-drawer-empty { text-align:center; padding:60px 20px; color:#adb5bd; }
.cart-drawer-empty svg { margin-bottom:12px; }
.cart-drawer-empty p { margin:0; font-size:14px; }
.cart-drawer-item { display:flex; gap:12px; padding:12px 0; border-bottom:1px solid #f1f3f5; align-items:flex-start; position:relative; }
.cart-drawer-item:last-child { border-bottom:none; }
.cart-drawer-item-img { width:64px; height:64px; border-radius:8px; overflow:hidden; flex-shrink:0; background:#f8f9fa; }
.cart-drawer-item-img img { width:100%; height:100%; object-fit:cover; }
.cart-drawer-item-ph { width:64px; height:64px; display:flex; align-items:center; justify-content:center; }
.cart-drawer-item-info { flex:1; min-width:0; }
.cart-drawer-item-name { display:block; font-size:13px; font-weight:600; color:#333; text-decoration:none; line-height:1.3; margin-bottom:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cart-drawer-item-name:hover { color:var(--marka); }
.cart-drawer-item-variant { display:block; font-size:11px; color:#868e96; margin-bottom:4px; }
.cart-drawer-item-meta { display:flex; align-items:center; justify-content:space-between; font-size:13px; color:#555; }
.cart-drawer-item-meta strong { color:#e74c3c; }
.cart-drawer-item-remove { position:absolute; top:10px; right:0; background:none; border:none; font-size:20px; color:#ccc; cursor:pointer; padding:0 2px; line-height:1; }
.cart-drawer-item-remove:hover { color:#e74c3c; }
.cart-drawer-footer { border-top:1px solid #eee; padding:16px 20px; flex-shrink:0; }
.cart-drawer-total { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; font-size:15px; }
.cart-drawer-total strong { font-size:18px; color:#e74c3c; }
.cart-drawer-btn-view { display:block; text-align:center; padding:10px; border:2px solid var(--marka); border-radius:8px; color:var(--marka); font-weight:600; font-size:14px; text-decoration:none; margin-bottom:8px; transition:background .2s, color .2s; }
.cart-drawer-btn-view:hover { background:var(--marka); color:#fff; }
.cart-drawer-btn-checkout { display:block; text-align:center; padding:10px; background:var(--marka); border-radius:8px; color:#fff; font-weight:600; font-size:14px; text-decoration:none; transition:background .2s; }
.cart-drawer-btn-checkout:hover { background:#5a4bd1; }

/* ==================== Payment Methods ==================== */
.payment-methods { display:flex; flex-direction:column; gap:10px; }
.payment-method { cursor:pointer; }
.payment-method input[type="radio"] { display:none; }
.payment-method-body { display:flex; align-items:center; gap:14px; padding:14px 18px; border:2px solid #e9ecef; border-radius:10px; transition:border-color .2s, background .2s; }
.payment-method input:checked + .payment-method-body { border-color:var(--marka); background:var(--marka-cok-acik); }
.payment-method-body svg { flex-shrink:0; color:var(--marka); }
.payment-method-body div { flex:1; }
.payment-method-body strong { display:block; font-size:14px; color:#333; }
.payment-method-body small { font-size:12px; color:#868e96; }
.form-select { width:100%; padding:10px 14px; border:1.5px solid #dee2e6; border-radius:8px; font-size:14px; font-family:inherit; background:#fff; }
.form-select:focus { outline:none; border-color:var(--marka); }

/* ====== TAKSIT SECENEKLERI ====== */
.taksit-container { max-width:640px; margin:0 auto; }
.taksit-info { margin-bottom:20px; }
.taksit-tutar-box { background:#f8f9fa; border:1px solid #e9ecef; border-radius:10px; padding:16px 20px; display:flex; justify-content:space-between; align-items:center; }
.taksit-tutar-box span { font-size:14px; color:#555; }
.taksit-tutar-box strong { font-size:20px; color:#333; }
.taksit-list { display:flex; flex-direction:column; gap:8px; }
.taksit-option { cursor:pointer; }
.taksit-option input[type="radio"] { display:none; }
.taksit-option-body { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border:2px solid #e9ecef; border-radius:10px; transition:border-color .2s, background .2s; }
.taksit-option input:checked + .taksit-option-body { border-color:var(--marka); background:var(--marka-cok-acik); }
.taksit-option-left { display:flex; flex-direction:column; gap:2px; }
.taksit-option-left strong { font-size:14px; color:#333; }
.taksit-komisyon { font-size:11px; color:#868e96; }
.taksit-komisyon-yok { font-size:11px; color:#28a745; font-weight:600; }
.taksit-option-right { text-align:right; display:flex; flex-direction:column; gap:2px; }
.taksit-aylik { font-size:12px; color:#868e96; }
.taksit-toplam { font-size:15px; color:#333; }

/* ====== HAVALE BILGILERI ====== */
.havale-container { max-width:640px; margin:0 auto; }
.havale-tutar-box { background:#f8f9fa; border:1px solid #e9ecef; border-radius:10px; padding:16px 20px; display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.havale-tutar-box span { font-size:14px; color:#555; }
.havale-tutar-box strong { font-size:20px; color:#333; }
.havale-bilgi-box { background:#fff; border:2px solid #e9ecef; border-radius:12px; padding:24px; text-align:center; }
.havale-bilgi-icon { margin-bottom:16px; }
.havale-tablo { width:100%; text-align:left; border-collapse:collapse; }
.havale-tablo td { padding:10px 12px; border-bottom:1px solid #f0f0f0; font-size:14px; }
.havale-tablo td:first-child { color:#868e96; width:130px; font-size:13px; }
.havale-tablo tr:last-child td { border-bottom:none; }
.havale-iban { font-family:monospace; letter-spacing:1px; }
.havale-uyari { background:#fff3cd; border:1px solid #ffc107; border-radius:8px; padding:12px 16px; margin-top:16px; font-size:13px; color:#856404; display:flex; align-items:flex-start; gap:8px; }
.havale-uyari svg { flex-shrink:0; margin-top:1px; }

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .specs-grid { grid-template-columns: 1fr; }
    .specs-grid > .spec-item:nth-child(odd) { border-right: none; }
    .spec-item:last-child { border-bottom: none; }
    .spec-item:nth-last-child(2) { border-bottom: 1px solid #eee; }
}

/* ==================== Site Logo (PM > E-Ticaret > Ayarlar > Site Ayarlari) ====================
   Logo yuklenmediginde bu class'lar hic basilmaz, metin gorunume donulur. */
.logo.logo-img { display: flex; align-items: center; }
.logo.logo-img img {
    display: block;
    height: 48px; max-height: 48px;
    max-width: 240px; width: auto;
    object-fit: contain;
}
.mobile-menu-logo { display: block; height: 34px; max-width: 180px; width: auto; object-fit: contain; }
.home-banner-content h1.home-banner-logo { margin-bottom: 16px; }
.home-banner-content h1.home-banner-logo img {
    display: block;
    max-height: 110px; max-width: 100%; width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.18));
}
.footer-col h4.footer-logo { margin-bottom: 16px; }
.footer-col h4.footer-logo img {
    display: block;
    max-height: 52px; max-width: 200px; width: auto;
    object-fit: contain;
    background: #fff; border-radius: 8px; padding: 8px;
}

@media (max-width: 900px) {
    .logo.logo-img img { height: 38px; max-height: 38px; max-width: 170px; }
    .home-banner-content h1.home-banner-logo img { max-height: 80px; }
}
@media (max-width: 600px) {
    /* Logo 140px iken 375px'lik ekranda arama kutusuna ~110px kaliyordu
       ("Urun a" diye kirpiliyordu). */
    .logo.logo-img img { height: 30px; max-height: 30px; max-width: 96px; }
    .header-inner { gap: 8px; }
    .container { padding: 0 12px; }
    .home-banner-content h1.home-banner-logo img { max-height: 64px; }
}

/* ==================== Odeme kart logolari (footer) ====================
   Logolar farkli zeminlerde geliyor (visa/mastercard kart gorseli, troy beyaz
   zemin) -> hepsi ayni beyaz yuvarlak plakaya oturtulur, koyu footer'da
   tutarli gorunsun. */
.footer-odeme {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 10px 14px;
    padding-top: 28px; margin-top: 8px;
}
.footer-odeme-etiket {
    font-size: 12px; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: #8c98ac;
}
.footer-odeme-logolar { display: flex; align-items: center; gap: 8px; }
.footer-odeme-logolar img {
    display: block; height: 28px; width: auto;
    background: #fff; border-radius: 4px; padding: 3px 5px;
}
.footer-odeme + .footer-bottom { margin-top: 16px; }

@media (max-width: 600px) {
    .footer-odeme { padding-top: 20px; }
    .footer-odeme-logolar img { height: 24px; }
}

/* ==================== Kategori mega menusu (anasayfa sol rayi) ====================
   Panel position:fixed. SEBEP: .home-sidebar overflow:hidden ve .home-cat-list
   overflow-y:auto -> absolute konumlu bir panel KIRPILIR. fixed, ustunde
   transform/filter/will-change olmayan bir agacta overflow'dan etkilenmez;
   konumu (top/left/width) mouseenter'da JS hesaplar. */
.home-cat-row { position: relative; }
.home-cat-row.has-mega .home-cat-arrow { transform: rotate(-90deg); }
.home-cat-row.acik .home-cat-item { background: var(--marka-cok-acik); color: var(--marka); }

.home-cat-mega {
    display: none;
    position: fixed; top: 0; left: 0; z-index: 200;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 18px 40px rgba(26,26,46,.14);
    padding: 20px 22px;
    overflow-y: auto;
}
.home-cat-row.acik .home-cat-mega { display: block; }
.home-cat-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px 24px;
    align-items: start;
}
.home-cat-mega-baslik {
    display: block; margin-bottom: 8px;
    font-size: 13.5px; font-weight: 700; line-height: 1.3;
    color: var(--marka);
}
.home-cat-mega-baslik:hover { text-decoration: underline; }
.home-cat-mega-liste { display: flex; flex-direction: column; gap: 6px; }
.home-cat-mega-liste a { font-size: 13px; line-height: 1.35; color: #555; transition: color .15s; }
.home-cat-mega-liste a:hover { color: var(--marka); }
.home-cat-mega-tumu {
    display: inline-block; margin-top: 16px;
    font-size: 12.5px; font-weight: 600; color: var(--marka);
}
.home-cat-mega-tumu:hover { text-decoration: underline; }

/* Dokunmatik/dar ekranda hover yok; kategoriler zaten tiklanabilir kaliyor */
@media (max-width: 1024px) {
    .home-cat-mega { display: none !important; }
}

/* ==================== Icerik sayfasi duzeni (yan menu + metin) ==================== */
.cms-duzen { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
/* Tek sutuna dusen genislikte .page-content'in auto margin'i ortalamayi geri alir */
.cms-duzen > .page-content { max-width: 800px; margin: 0; }

.cms-yan { position: sticky; top: 20px; }
.cms-yan-blok { margin-bottom: 20px; }
.cms-yan-baslik {
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #868e96; margin-bottom: 10px; padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.cms-yan-liste { display: flex; flex-direction: column; gap: 2px; }
.cms-yan-liste a {
    display: block; padding: 8px 12px; border-radius: 8px;
    font-size: 13.5px; line-height: 1.4; color: #555;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.cms-yan-liste a:hover { background: var(--marka-cok-acik); color: var(--marka); }
.cms-yan-liste a.aktif {
    background: var(--marka-acik); color: var(--marka);
    font-weight: 600; border-left-color: var(--marka);
}
.cms-yan-ek { margin-top: 4px; padding-top: 12px; border-top: 1px solid #eee; }

@media (max-width: 860px) {
    .cms-duzen { grid-template-columns: 1fr; gap: 20px; }
    .cms-yan { position: static; }
    .cms-yan-liste { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .cms-yan-liste a { border-left: none; border: 1px solid #eee; padding: 6px 12px; }
    .cms-yan-liste a.aktif { border-color: var(--marka); }
    .cms-yan-ek { border-top: none; padding-top: 0; }
}


/* ==================== Urun paylas dugmesi ==================== */
.urun-paylas { position: relative; margin: 14px 0 4px; }
.urun-paylas-dugme {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; min-height: 40px;
    background: #fff; color: #444;
    border: 1px solid #ddd; border-radius: 8px;
    font-family: inherit; font-size: 13.5px; font-weight: 600;
    cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.urun-paylas-dugme:hover { border-color: var(--marka); color: var(--marka); background: var(--marka-cok-acik); }
/* hidden OZNITELIGI TEK BASINA YETMEZ: tarayicinin [hidden]{display:none}
   kurali tek sinif secicisi kadar guclu degil, asagidaki display:flex onu
   eziyordu -> liste sayfa acilir acilmaz gorunuyor ve kapanmiyordu.
   Ozniteligi sinifla birlestiren bu kural daha ozel oldugu icin kazanir. */
.urun-paylas-liste[hidden] { display: none; }
.urun-paylas-liste {
    position: absolute; z-index: 60; top: calc(100% + 6px); left: 0;
    min-width: 200px; padding: 6px;
    background: #fff; border: 1px solid #eee; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(26,26,46,.14);
    display: flex; flex-direction: column; gap: 2px;
}
.urun-paylas-liste a,
.urun-paylas-liste button {
    display: block; width: 100%; text-align: left;
    padding: 10px 12px; border: none; border-radius: 6px;
    background: none; color: #444;
    font-family: inherit; font-size: 13.5px; line-height: 1.2;
    cursor: pointer; transition: background .15s, color .15s;
}
.urun-paylas-liste a:hover,
.urun-paylas-liste button:hover { background: var(--marka-cok-acik); color: var(--marka); }
.urun-paylas-kopyala { border-top: 1px solid #f0f0f0 !important; border-radius: 0 0 6px 6px !important; font-weight: 600; }

@media (max-width: 600px) {
    /* Telefonda dokunma hedefi tam genislik; liste zaten cogu cihazda
       acilmaz (isletim sisteminin paylasim penceresi devreye girer). */
    .urun-paylas-dugme { width: 100%; justify-content: center; min-height: 44px; }
    .urun-paylas-liste { left: 0; right: 0; min-width: 0; }
}

/* ==================== Urun eylemleri: paylas / favori / soru ==================== */
.urun-eylemler { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 4px; }
.urun-eylemler .urun-paylas { margin: 0; }

.urun-favori,
.urun-soru-ac {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; min-height: 40px;
    background: #fff; color: #444;
    border: 1px solid #ddd; border-radius: 8px;
    font-family: inherit; font-size: 13.5px; font-weight: 600;
    cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.urun-favori:hover,
.urun-soru-ac:hover { border-color: var(--marka); color: var(--marka); background: var(--marka-cok-acik); }
/* Favoride: kalp dolu ve kirmizi */
.urun-favori.dolu { border-color: #e74c3c; color: #e74c3c; background: #fff5f4; }
.urun-favori.dolu svg { fill: #e74c3c; }
.urun-favori[data-mesgul="1"] { opacity: .6; pointer-events: none; }

/* ---- Soru formu ---- */
.urun-soru[hidden] { display: none; }
.urun-soru {
    margin-top: 14px; padding: 16px;
    background: #fafafa; border: 1px solid #eee; border-radius: 10px;
}
.urun-soru-baslik { font-size: 13.5px; font-weight: 600; color: #333; margin-bottom: 10px; }
.urun-soru-satir { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.urun-soru input[type="text"],
.urun-soru input[type="email"],
.urun-soru textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid #ddd; border-radius: 8px;
    font-family: inherit; font-size: 13.5px; background: #fff;
}
.urun-soru textarea { resize: vertical; margin-bottom: 10px; }
.urun-soru input:focus, .urun-soru textarea:focus { outline: none; border-color: var(--marka); }
.urun-soru .btn-primary { padding: 10px 22px; font-size: 14px; }
/* Bot tuzagi: ekranda gorunmez ama ekran okuyucuya da sunulmaz */
.urun-soru-tuzak { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.urun-soru-bilgi { padding: 10px 12px; border-radius: 8px; font-size: 13.5px; margin-bottom: 10px; }
.urun-soru-bilgi.basarili { background: #eaf7ef; color: #1e7e46; border: 1px solid #c7e7d3; }
.urun-soru-bilgi.hata { background: #fff5f5; color: #c0392b; border: 1px solid #f5cccc; }

/* ---- Hesap ekranlari (giris / favorilerim) ---- */
.hesap-kart { max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 28px; }
.hesap-kart h1 { font-size: 1.375rem; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.hesap-aciklama { font-size: 13px; line-height: 1.6; color: #666; margin-bottom: 18px; }
.hesap-alan { margin-bottom: 14px; }
.hesap-alan label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.hesap-alan input { width: 100%; padding: 11px 14px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 14px; }
.hesap-alan input:focus { outline: none; border-color: var(--marka); }
.hesap-dugme { width: 100%; margin-top: 4px; }
.hesap-hata { background: #fff5f5; color: #c0392b; border: 1px solid #f5cccc; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; margin-bottom: 14px; }
.hesap-not { font-size: 12.5px; color: #868e96; margin-top: 16px; line-height: 1.6; }
.hesap-not a { color: var(--marka); }

@media (max-width: 600px) {
    .urun-eylemler { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .urun-favori, .urun-soru-ac { width: 100%; justify-content: center; min-height: 44px; }
    .urun-soru-satir { grid-template-columns: minmax(0, 1fr); }
    .hesap-kart { padding: 20px; }
}

/* Hesap ekranlari: ek baglantilar */
.hesap-satir { display: flex; justify-content: flex-end; margin: -6px 0 14px; }
.hesap-satir a { font-size: 12.5px; color: var(--marka); }
.hesap-satir a:hover { text-decoration: underline; }
.hesap-ayrac { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; color: #adb5bd; font-size: 12px; }
.hesap-ayrac::before, .hesap-ayrac::after { content: ''; flex: 1; height: 1px; background: #eee; }
.hesap-ikincil-dugme {
    display: block; width: 100%; text-align: center;
    padding: 12px 16px; border-radius: 8px;
    border: 1px solid var(--marka); color: var(--marka); background: #fff;
    font-size: 14px; font-weight: 600; transition: background .15s;
}
.hesap-ikincil-dugme:hover { background: var(--marka-cok-acik); }
.hesap-bilgi { background: #eaf7ef; color: #1e7e46; border: 1px solid #c7e7d3; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; margin-bottom: 14px; line-height: 1.5; }
