/* Public mağaza — sabit light tema (bkz. md/webstandarts.md > "Site Tema Standardı").
   Ziyaretçinin cihaz/tarayıcı tercihinden bağımsız, marka görünümü her zaman aynıdır. */

/* Font Standardı — Roboto, self-hosted (bkz. md/softwarestandarts.md > "Font Standardı"). */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../vendor/roboto/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../vendor/roboto/roboto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Marka: koyu lacivert + modern mavi (bkz. tasarım brief'i) */
  --mp-navy: #0f2748;
  --mp-navy-2: #17335e;
  --mp-primary: #2563eb;
  --mp-primary-hover: #1d4ed8;
  --mp-primary-subtle: #e9f0fe;

  --mp-surface: #f4f6f9;
  --mp-card: #ffffff;
  --mp-text: #10192b;
  --mp-text-muted: #64748b;
  --mp-border: #e2e6ec;

  --mp-radius: 10px;
  --mp-radius-sm: 7px;
  --mp-shadow: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .05);
  --mp-shadow-hover: 0 10px 22px rgba(16, 24, 40, .12);

  --mp-space-1: 8px;
  --mp-space-2: 14px;
  --mp-space-3: 22px;
  --mp-space-4: 36px;
  --mp-space-5: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--mp-surface);
  color: var(--mp-text);
  font-family: 'Roboto', -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color .15s ease; }
h1, h2, h3 { letter-spacing: -0.015em; margin: 0; }
.container { max-width: 1240px; }

/* ---- Buton sistemi ---- */
.btn { border-radius: var(--mp-radius-sm); font-weight: 600; padding: 9px 20px; transition: all .15s ease; }
.btn-primary { background: var(--mp-primary); border-color: var(--mp-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--mp-primary-hover); border-color: var(--mp-primary-hover); }
.btn-outline-primary { color: var(--mp-primary); border-color: var(--mp-primary); }
.btn-outline-primary:hover { background: var(--mp-primary); border-color: var(--mp-primary); }
.btn-outline-secondary { color: var(--mp-text); border-color: var(--mp-border); }

/* ==== HEADER ==== */
.mp-header { position: sticky; top: 0; z-index: 900; box-shadow: 0 1px 0 rgba(16,24,40,.05); }

.mp-topbar { background: var(--mp-navy); color: #cdd8ea; font-size: 0.78rem; }
.mp-topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; gap: 16px; }
.mp-topbar-left, .mp-topbar-right { display: flex; align-items: center; gap: 18px; }
.mp-topbar a { color: #cdd8ea; display: inline-flex; align-items: center; gap: 6px; }
.mp-topbar a:hover { color: #fff; }
.mp-topbar-social { display: flex; gap: 12px; }
.mp-topbar-social a { font-size: 0.88rem; }

.mp-header-main { background: var(--mp-card); border-bottom: 1px solid var(--mp-border); }
.mp-header-row { display: flex; align-items: center; gap: 20px; padding: 13px 0; }

.mp-hamburger, .mp-icon-btn {
  background: none; border: 1px solid var(--mp-border); border-radius: var(--mp-radius-sm);
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--mp-text); flex-shrink: 0;
}
.mp-hamburger:hover, .mp-icon-btn:hover { border-color: var(--mp-primary); color: var(--mp-primary); }

.mp-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.mp-logo-icon { color: var(--mp-primary); width: 32px; height: 32px; display: block; }
.mp-logo-icon svg { width: 100%; height: 100%; }
.mp-logo-img { height: 34px; width: auto; }
.mp-brand-text { font-size: 1.12rem; font-weight: 500; color: var(--mp-navy); white-space: nowrap; }
.mp-brand-text strong { font-weight: 800; color: var(--mp-primary); }

.mp-nav { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.mp-nav-link { color: var(--mp-text); font-size: 0.9rem; font-weight: 600; padding: 4px 0; white-space: nowrap; }
.mp-nav-link:hover { color: var(--mp-primary); }

.mp-nav-dropdown { position: relative; }
.mp-nav-dropdown-toggle { display: flex; align-items: center; gap: 6px; background: none; border: none; font-family: inherit; cursor: pointer; }
.mp-nav-caret { font-size: 0.62rem; transition: transform .15s ease; padding: 4px; margin: -4px; }
.mp-nav-dropdown:hover .mp-nav-caret, .mp-nav-dropdown.open .mp-nav-caret { transform: rotate(180deg); }
.mp-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: -14px; margin-top: 13px;
  background: var(--mp-card); border: 1px solid var(--mp-border); border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow-hover);
  min-width: 260px; padding: 8px; z-index: 950; list-style: none;
}
.mp-nav-dropdown:hover .mp-dropdown-menu, .mp-nav-dropdown.open .mp-dropdown-menu { display: block; }
.mp-dropdown-menu li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--mp-radius-sm); font-size: 0.88rem; font-weight: 500; color: var(--mp-text);
}
.mp-dropdown-menu li a:hover { background: var(--mp-primary-subtle); color: var(--mp-primary); }
.mp-dropdown-menu i { color: var(--mp-primary); font-size: 0.95rem; width: 18px; text-align: center; }

.mp-search { display: flex; flex: 1 1 auto; max-width: 420px; }
.mp-search-input {
  flex: 1 1 auto; min-width: 0; border: 1px solid var(--mp-border); border-right: none;
  border-radius: var(--mp-radius-sm) 0 0 var(--mp-radius-sm);
  padding: 0 12px; height: 40px; font-size: 0.85rem; background: var(--mp-surface); color: var(--mp-text);
}
.mp-search-input:focus { outline: none; border-color: var(--mp-primary); background: #fff; }
.mp-search-btn {
  border: none; background: var(--mp-primary); color: #fff; width: 44px; height: 40px;
  border-radius: 0 var(--mp-radius-sm) var(--mp-radius-sm) 0; flex-shrink: 0;
}
.mp-search-btn:hover { background: var(--mp-primary-hover); }

.mp-header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.mp-cart-link {
  display: flex; align-items: center; gap: 8px; font-weight: 700;
  background: var(--mp-primary); color: #fff;
  padding: 9px 16px; border-radius: var(--mp-radius-sm); font-size: 0.88rem;
}
.mp-cart-link:hover { background: var(--mp-primary-hover); color: #fff; }
.mp-cart-link .badge { font-size: 0.68rem; background: #fff !important; color: var(--mp-primary) !important; }

.mp-search-mobile-wrap { background: var(--mp-card); border-bottom: 1px solid var(--mp-border); padding: 10px 0; }

.mp-mobile-nav { background: var(--mp-card); border-bottom: 1px solid var(--mp-border); padding: 12px 0 16px; }
.mp-mobile-nav-heading { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mp-text-muted); margin-bottom: 6px; }
.mp-mobile-nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 4px; font-size: 0.92rem; border-bottom: 1px solid var(--mp-surface); }
.mp-mobile-nav-link i { color: var(--mp-primary); width: 18px; }
.mp-mobile-nav hr { border-color: var(--mp-border); margin: 10px 0; }

.mp-main { max-width: 1240px; margin: 0 auto; padding: var(--mp-space-4) 16px; }

/* ==== SECTION SİSTEMİ ==== */
.mp-section { padding: var(--mp-space-4) 0; }
.mp-section-alt { background: var(--mp-surface); }
.mp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: var(--mp-space-3); }
.mp-section-head .mp-block-baslik { margin-bottom: 4px; }
.mp-section-more { font-size: 0.85rem; font-weight: 700; color: var(--mp-primary); white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.mp-section-more:hover { color: var(--mp-primary-hover); }

/* ==== FOOTER ==== */
.mp-footer { background: var(--mp-navy); color: #b7c2d6; margin-top: var(--mp-space-5); padding-top: 44px; }
.mp-footer .container { max-width: 1240px; }
.mp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 30px;
}
.mp-footer-heading { color: #fff; font-weight: 700; font-size: 0.92rem; margin-bottom: 12px; }
.mp-footer-grid a, .mp-footer-grid span { display: block; color: #b7c2d6; font-size: 0.86rem; margin-bottom: 9px; }
.mp-footer-grid a:hover { color: #fff; }
.mp-footer-brand-text { font-size: 1.1rem; font-weight: 700; color: #fff; }
.mp-footer-brand-text strong { color: #6fa1ff; }
.mp-footer-social { display: flex; gap: 12px; margin-top: 10px; font-size: 1.05rem; }
.mp-footer-social a { color: #b7c2d6; }
.mp-footer-social a:hover { color: #fff; }
.mp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 15px 0;
  font-size: 0.8rem;
  color: #8b98b0;
  text-align: center;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px;
}
.mp-footer-legal { display: flex; gap: 16px; }
.mp-footer-legal a { color: #8b98b0; }
.mp-footer-legal a:hover { color: #fff; }

.mp-breadcrumb { font-size: 0.83rem; color: var(--mp-text-muted); margin-bottom: 16px; }
.mp-breadcrumb a { color: var(--mp-text-muted); }
.mp-breadcrumb a:hover { color: var(--mp-primary); }

/* ---- Kategori kutucukları ---- */
.mp-kategori-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.mp-category-tile {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 20px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--mp-shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mp-category-tile i { font-size: 1.5rem; color: var(--mp-primary); width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--mp-primary-subtle); border-radius: 50%; }
.mp-category-tile:hover { border-color: var(--mp-primary); box-shadow: var(--mp-shadow-hover); transform: translateY(-3px); text-decoration: none; }

/* ---- Ürün kartları ---- */
.mp-product-card {
  display: flex; flex-direction: column;
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--mp-shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mp-product-card:hover { border-color: var(--mp-primary); box-shadow: var(--mp-shadow-hover); transform: translateY(-3px); text-decoration: none; }
.mp-product-card-img-wrap { display: block; position: relative; width: 100%; aspect-ratio: 1 / 1; background: #fbfbfc; overflow: hidden; }
.mp-product-card-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .2s ease; }
.mp-product-card:hover .mp-product-card-img-wrap img { transform: scale(1.04); }
.mp-product-card-noimg {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--mp-border); font-size: 2.2rem;
}
.mp-product-card-ozellikler {
  display: flex; flex-direction: column; gap: 1px; padding: 10px 12px 0; height: 42px;
  font-size: 0.76rem; font-weight: 700; color: var(--mp-text); text-align: center;
}
.mp-product-card-ozellikler span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-product-card-body { padding: 12px 14px 15px; display: flex; flex-direction: column; flex: 1 1 auto; }
.mp-product-card-kategori { font-size: 0.68rem; color: var(--mp-text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.mp-product-card-ad {
  font-weight: 600; font-size: 0.88rem; line-height: 1.35; color: var(--mp-text); text-align: center;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em;
  display: -webkit-box;
}
.mp-product-card-ad:hover { color: var(--mp-primary); }
.mp-product-card-fiyat { color: var(--mp-navy); font-weight: 800; font-size: 1.02rem; margin-top: auto; }
.mp-product-card-fiyat small { color: var(--mp-text-muted); font-weight: 500; font-size: 0.72rem; }

.mp-product-card-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.mp-card-btn {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 8px; border-radius: var(--mp-radius-sm); font-size: 0.78rem; font-weight: 700;
  border: none; cursor: pointer;
}
.mp-card-btn-katalog { background: var(--mp-navy); color: #fff; }
.mp-card-btn-katalog:hover { background: var(--mp-navy-2); color: #fff; }
.mp-card-btn-katalog.disabled { background: var(--mp-border); color: var(--mp-text-muted); cursor: not-allowed; pointer-events: none; }
.mp-card-btn-siparis { background: #16a34a; color: #fff; }
.mp-card-btn-siparis:hover { background: #128a3e; }

.mp-filter-panel {
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 18px;
}

.mp-detay-ana-gorsel {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
}
.mp-detay-thumb {
  width: 62px; height: 62px; object-fit: cover; border-radius: var(--mp-radius-sm);
  border: 1px solid var(--mp-border); cursor: pointer;
}
.mp-detay-thumb:hover { border-color: var(--mp-primary); }
.mp-detay-fiyat { font-size: 1.65rem; font-weight: 800; color: var(--mp-navy); }

/* ---- Boş durum ---- */
.mp-empty-state { text-align: center; padding: 48px 16px; color: var(--mp-text-muted); background: var(--mp-card); border: 1px dashed var(--mp-border); border-radius: var(--mp-radius); }
.mp-empty-state i { font-size: 2rem; color: var(--mp-border); display: block; margin-bottom: 10px; }

/* ---- Filtre çipleri ---- */
.mp-urunler-filtre { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-filtre-chip {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--mp-border);
  background: var(--mp-card); font-size: 0.83rem; font-weight: 600; color: var(--mp-text);
}
.mp-filtre-chip:hover { border-color: var(--mp-primary); color: var(--mp-primary); }
.mp-filtre-chip.active { background: var(--mp-primary); border-color: var(--mp-primary); color: #fff; }

/* ==== Sayfa Blok Sistemi (bkz. md/webstandarts.md > "Sayfa Blok Sistemi") ==== */
.mp-block-baslik { font-size: 1.4rem; font-weight: 800; color: var(--mp-navy); }

/* Hero — iki kolonlu, dekoratif panel ile */
.mp-block-hero {
  background: linear-gradient(160deg, var(--mp-navy) 0%, var(--mp-navy-2) 100%);
  border-radius: var(--mp-radius);
  overflow: hidden;
  margin-bottom: var(--mp-space-4);
}
.mp-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 32px; padding: 52px 44px; }
.mp-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1); color: #bcd0f5;
  font-size: 0.75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 16px;
}
.mp-block-hero-baslik { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; margin-bottom: 12px; color: #fff; line-height: 1.15; }
.mp-block-hero-alt { color: #c3d1ea; font-size: 1.02rem; margin-bottom: 24px; line-height: 1.55; max-width: 480px; }
.mp-block-hero-btn { padding: 11px 26px; font-weight: 700; }
.mp-hero-visual { display: flex; align-items: center; justify-content: center; }
.mp-hero-visual svg { width: 100%; max-width: 280px; height: auto; }
@media (max-width: 850px) {
  .mp-hero-grid { grid-template-columns: 1fr; padding: 40px 24px; text-align: center; }
  .mp-block-hero-alt { margin-left: auto; margin-right: auto; }
  .mp-hero-visual { display: none; }
}

/* Ürün / içerik vitrini */
.mp-block-vitrin { padding: 0; margin-bottom: var(--mp-space-4); }

.mp-block-metin-gorsel { padding: var(--mp-space-4) 0; }
.mp-block-gorsel { width: 100%; border-radius: var(--mp-radius); border: 1px solid var(--mp-border); }
.mp-block-metin { color: var(--mp-text); line-height: 1.75; }

.mp-block-ozellikler { background: var(--mp-card); border: 1px solid var(--mp-border); border-radius: var(--mp-radius); padding: 34px 28px; margin-bottom: var(--mp-space-4); }
.mp-block-ozellik-item { padding: 8px; text-align: center; }
.mp-block-ozellik-item i {
  font-size: 1.4rem; color: var(--mp-primary); margin-bottom: 12px;
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  background: var(--mp-primary-subtle); border-radius: 50%; margin-left: auto; margin-right: auto;
}
.mp-block-ozellik-item h3 { font-size: 0.94rem; font-weight: 700; margin-bottom: 4px; }
.mp-block-ozellik-item p { font-size: 0.82rem; color: var(--mp-text-muted); margin: 0; }

/* Site Ayarları > Genel: WhatsApp sabit ikon + KVKK çerez banner'ı */
.mp-whatsapp-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 1050;
  width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.mp-whatsapp-btn:hover { color: #fff; opacity: 0.92; }
.mp-cerez-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060;
  background: var(--mp-navy); color: #fff;
}

@media (max-width: 900px) {
  .mp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .mp-footer-grid { grid-template-columns: 1fr; }
  .mp-hero-grid { padding: 32px 20px; }
}
