/* ============================================================
   Pofuduk.com.tr — Vivense tarzı tema
   ============================================================ */
:root {
  --primary: #14213d;    /* pofuduk marka lacivert (buton, fiyat, link) */
  --primary-dark: #0f1a30;
  --primary-light: #e9edf4;
  --accent: #ee6c4d;
  --accent-dark: #d8552f;
  --ink: #21343a;
  --navy: #14213d;       /* pofuduk marka lacivert (header/footer) */
  --navy-dark: #0f1a30;
  --muted: #6b7c82;
  --line: #e4e9ea;
  --bg-soft: #f6f8f8;
  --success: #1f8a4c;
  --danger: #c93b3b;
  --radius: 10px;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden; /* taşan bir öğe tüm sayfayı yatay kaydırmasın (mobil kayma fix) */
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.text-accent { color: var(--accent) !important; font-weight: 600; }

/* ---------- Üst şerit ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cdd6e6;
  font-size: .82rem;
  padding: .4rem 0;
}
.topbar a { color: #cdd6e6; }
.topbar a:hover { color: #fff; }
/* Bayi alışverişsiz ödeme — üst şeritte vurgulu buton */
.topbar a.topbar-pay {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: .12rem .7rem;
}
.topbar a.topbar-pay:hover { background: var(--accent-dark); color: #fff; }

/* ---------- Başlık (lacivert) ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .22);
}
/* Lacivert header üzerinde okunur içerik */
.site-header .mobile-menu-btn { color: #fff; }
.site-header .search-form { border-color: rgba(255, 255, 255, .4); }
.site-header .search-form input { background: #fff; }
.site-header .search-form button { background: var(--accent); }
.site-header .search-form button:hover { background: var(--accent-dark); }
.site-header .action-link { color: #e8edf5; }
.site-header .action-link:hover { color: var(--accent); }
.header-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .8rem 12px;
}
.logo {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--primary);
  white-space: nowrap;
}
.logo span { color: var(--accent); font-weight: 600; font-size: 1rem; }
.logo:hover { color: var(--primary-dark); }
.logo img { height: 44px; width: auto; display: block; }
.footer-logo img { height: 40px; }

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--ink);
  padding: .25rem;
}

.search-form {
  flex: 1;
  display: flex;
  max-width: 560px;
  border: 2px solid var(--primary);
  border-radius: 24px;
  overflow: hidden;
}
.search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: .55rem 1.1rem;
  font-size: .92rem;
}
.search-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
}
.search-form button:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }
.action-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 500;
  position: relative;
}
.action-link:hover { color: var(--primary); }
.cart-badge {
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  position: absolute;
  top: -7px;
  left: 13px;
}

/* ---------- Mega menü ---------- */
.mega-nav { border-top: 1px solid rgba(255, 255, 255, .1); }
.mega-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: .25rem;
}
.mega-list > li { position: relative; }
.mega-list > li > a {
  display: block;
  padding: .65rem .9rem;
  color: #e8edf5;
  font-size: .9rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}
.mega-list > li:hover > a {
  color: #fff;
  border-bottom-color: var(--accent);
}
.mega-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 14px 30px rgba(20, 40, 45, .12);
  z-index: 1040;
}
.has-mega:hover .mega-panel { display: block; }
.mega-panel-inner { padding: .8rem 0; display: flex; flex-direction: column; }
.mega-link {
  padding: .45rem 1.2rem;
  color: var(--ink);
  font-size: .88rem;
}
.mega-link:hover { background: var(--primary-light); color: var(--primary); }
.mega-all { color: var(--accent); font-weight: 600; margin-top: .35rem; }

/* ---------- Mobil menü ---------- */
.mobile-nav { list-style: none; padding: 0; margin: 0; }
.mobile-nav > li > a {
  display: block;
  padding: .55rem 0;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav ul { list-style: none; padding-left: 1rem; }
.mobile-nav ul a { display: block; padding: .4rem 0; color: var(--muted); font-size: .9rem; }

/* ---------- Toast ---------- */
.toast-area {
  position: fixed;
  top: 90px;
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.app-toast {
  padding: .8rem 1.2rem;
  border-radius: var(--radius);
  color: #fff;
  font-size: .9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  animation: toast-in .25s ease, toast-out .4s ease 4s forwards;
  max-width: 340px;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } }
@keyframes toast-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Hero / banner ---------- */
.hero-link { display: block; }
/* Slider görselleri metin/CTA'yı üzerinde barındırır; kendi en-boy oranında tam gösterilir. */
.hero-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1799 / 692;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}
.hero-caption {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 520px;
  text-align: left;
}
.hero-caption h2 { font-size: 2.4rem; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.hero-caption p { font-size: 1.05rem; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.carousel-indicators [data-bs-target] { border-radius: 50%; width: 10px; height: 10px; }

/* ---------- Avantaj şeridi ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.6rem 0;
}
.perk {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
}
.perk .icon { font-size: 1.6rem; }
.perk b { display: block; font-size: .9rem; }
.perk small { color: var(--muted); }

/* ---------- Bölüm başlıkları ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2.2rem 0 1.1rem;
}
.section-head h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
  position: relative;
  padding-bottom: .45rem;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.section-head a { font-size: .9rem; font-weight: 600; }

/* ---------- Kategori vitrinleri ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.cat-card img { width: 100%; height: 130px; object-fit: cover; transition: transform .3s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(10, 35, 40, .75));
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  padding: 1.4rem .8rem .55rem;
}

/* ---------- Ürün kartı ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 1.1rem;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover {
  box-shadow: 0 10px 28px rgba(20, 40, 45, .12);
  transform: translateY(-3px);
}
.product-card .img-wrap { position: relative; display: block; }
.product-card .img-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-soft);
}
.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e3001b;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  border-radius: 6px;
  padding: .28rem .55rem;
  box-shadow: 0 2px 8px rgba(227, 0, 27, .35);
}
.badge-out {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--muted);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 6px;
  padding: .25rem .5rem;
}
.badge-dealer {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #0d5c63, #1b9aa6);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 6px;
  padding: .25rem .5rem;
  box-shadow: 0 2px 6px rgba(13, 92, 99, .3);
}
.badge-dealer.position-static { box-shadow: none; }

/* Havale/EFT fiyatı — ürün kartında belirgin kırmızı */
.havale-line {
  margin-top: .4rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.havale-line .havale-tag {
  background: #e3001b;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .3px;
  border-radius: 5px;
  padding: .12rem .38rem;
}
.havale-line .havale-price {
  color: #e3001b;
  font-weight: 800;
  font-size: 1.05rem;
}

/* Havale/EFT fiyatı — ürün detayında büyük, kırmızı, gösterişli kutu */
.detail-havale {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #fff0f1, #ffe1e4);
  border: 1.5px dashed #e3001b;
  border-radius: 12px;
  padding: .7rem 1.05rem;
  margin-top: .6rem;
}
.detail-havale .havale-tag {
  background: #e3001b;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .3px;
  border-radius: 7px;
  padding: .3rem .6rem;
  white-space: nowrap;
}
.detail-havale .havale-big {
  color: #e3001b;
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
}
.detail-havale small { color: #b3121f; font-weight: 600; }

/* Ürün detayında kampanya kodu kutusu */
.campaign-box {
  border: 1px dashed var(--accent);
  background: #fff6f2;
  border-radius: var(--radius);
  padding: .7rem .9rem;
  margin: .8rem 0;
}
.campaign-row { font-size: .9rem; color: var(--ink); }
.campaign-row + .campaign-row { margin-top: .35rem; }

/* Bayi bilgi şeridi (vitrin üstü) */
.dealer-bar {
  background: linear-gradient(135deg, #0d5c63, #1b9aa6);
  color: #fff;
  font-size: .86rem;
  padding: .55rem 0;
}
.dealer-bar a { color: #ffe7c2; font-weight: 600; }
.dealer-bar a:hover { color: #fff; }
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, border-color .15s;
}
.fav-btn:hover { color: var(--accent); border-color: var(--accent); }
.fav-btn.active { color: var(--accent); }
.fav-btn.active svg { fill: var(--accent); stroke: var(--accent); }

.product-card .body { padding: .85rem .95rem 1rem; display: flex; flex-direction: column; flex: 1; }
.product-card .brand { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.product-card .name {
  font-size: .94rem;
  font-weight: 600;
  color: var(--ink);
  margin: .15rem 0 .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-card .name:hover { color: var(--primary); }
.price-row { margin-top: auto; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.price-now { color: var(--primary); font-weight: 800; font-size: 1.08rem; }
.add-cart-btn {
  margin-top: .7rem;
  width: 100%;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  font-size: .88rem;
  border-radius: 8px;
  padding: .5rem;
  transition: background .15s, color .15s;
}
.add-cart-btn:hover:not(:disabled) { background: var(--primary); color: #fff; }
.add-cart-btn:disabled { opacity: .55; border-color: var(--muted); color: var(--muted); }

/* ---------- Listeleme / filtreler ---------- */
.filter-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 1rem;
  background: #fff;
}
.filter-card h6 {
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: .7rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.filter-card ul { list-style: none; padding: 0; margin: 0; }
.filter-card li a {
  display: block;
  padding: .3rem 0;
  color: var(--ink);
  font-size: .9rem;
}
.filter-card li a:hover { color: var(--primary); }
.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.breadcrumbs { font-size: .85rem; color: var(--muted); margin: 1rem 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }

.pagination .page-link { color: var(--primary); }
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* ---------- Ürün detay ---------- */
.detail-gallery .main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.thumb-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .7rem; }
.thumb-row img {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;      /* çok görselde ezilip/kaymak yerine sabit kalıp satır atlar */
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.thumb-row img.active, .thumb-row img:hover { border-color: var(--primary); }
/* Mobilde küçük thumb'lar tek satıra daha çok sığsın */
@media (max-width: 576px) {
  .thumb-row { gap: .45rem; }
  .thumb-row img { width: 58px; height: 58px; }
}
.detail-title { font-size: 1.55rem; font-weight: 800; }
.detail-price .price-now { font-size: 1.9rem; }
.detail-price .price-old { font-size: 1.1rem; }
.stock-ok { color: var(--success); font-weight: 600; font-size: .9rem; }
.stock-no { color: var(--danger); font-weight: 600; font-size: .9rem; }
.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.qty-box button {
  width: 40px;
  height: 44px;
  background: var(--bg-soft);
  border: none;
  font-size: 1.2rem;
  color: var(--ink);
}
.qty-box input {
  width: 56px;
  height: 44px;
  text-align: center;
  border: none;
  outline: none;
  font-weight: 600;
}
.spec-table td:first-child { font-weight: 600; width: 38%; color: var(--muted); }
.rating-stars { color: #f0a500; letter-spacing: 2px; }

.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: .8rem;
}

/* ---------- Sepet / checkout ---------- */
.cart-table img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  background: var(--bg-soft);
  position: sticky;
  top: 130px;
}
.summary-card .row-line {
  display: flex;
  justify-content: space-between;
  padding: .35rem 0;
  font-size: .94rem;
}
.summary-card .total-line {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: .6rem;
  padding-top: .8rem;
  font-weight: 800;
  font-size: 1.15rem;
}
.free-ship-note {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 8px;
  font-size: .85rem;
  padding: .6rem .8rem;
  margin-bottom: .8rem;
}
.address-option {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  margin-bottom: .7rem;
  cursor: pointer;
  display: block;
}
.address-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.card-form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

/* ---------- Hesabım ---------- */
.account-nav {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.account-nav a {
  display: block;
  padding: .8rem 1.1rem;
  color: var(--ink);
  font-size: .92rem;
  border-bottom: 1px solid var(--line);
}
.account-nav a:last-child { border-bottom: none; }
.account-nav a:hover { background: var(--bg-soft); }
.account-nav a.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.order-status {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  border-radius: 6px;
  padding: .3rem .6rem;
}
.status-0 { background: #fff3cd; color: #7a5c00; }
.status-1 { background: #d7f5e2; color: #176237; }
.status-2 { background: #d8ecf8; color: #1d5e85; }
.status-3 { background: #e4e0fa; color: #4733a8; }
.status-4 { background: #d7f5e2; color: #176237; }
.status-5 { background: #fde2e2; color: #8f2424; }
.status-6 { background: #eee; color: #555; }

/* ---------- Auth sayfaları ---------- */
.auth-card {
  max-width: 460px;
  margin: 3rem auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(20, 40, 45, .06);
}
.auth-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.4rem; }
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  margin: 1rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--line);
}
.auth-divider span { padding: 0 .8rem; }
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: #fff;
  border: 1px solid #dadce0;
  color: #3c4043;
  font-weight: 600;
}
.btn-google:hover { background: #f7f8f8; border-color: #c6c9cd; color: #3c4043; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c8d0de;
  margin-top: 3.5rem;
  padding: 2.8rem 0 0;
  font-size: .9rem;
}
.footer-logo { color: #fff; }
.footer-logo span { color: var(--accent); }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul a {
  display: block;
  color: #c8dcde;
  padding: .22rem 0;
}
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 2rem;
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .84rem;
}

/* ---------- Genel ---------- */
.page-title { font-size: 1.6rem; font-weight: 800; margin: 1.4rem 0 1.2rem; }
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}
.empty-state .big { font-size: 3rem; }

/* ============================================================
   Mobil arama çubuğu (header altında, yalnızca < md)
   ============================================================ */
.mobile-search {
  padding: .6rem 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mobile-search .search-form { max-width: none; width: 100%; }

/* ============================================================
   Mobil alt navigasyon (Vivense tarzı tab bar, < lg)
   ============================================================ */
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(20, 40, 45, .07);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bottom-nav a,
.mobile-bottom-nav button {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: .5rem 0 .55rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  position: relative;
  text-decoration: none;
}
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:active { color: var(--primary); }
.mobile-bottom-nav .mini-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(16px);
  background: var(--accent);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ============================================================
   Mobilde tablo → kart dizilimi (.table-stack)
   ============================================================ */
@media (max-width: 640px) {
  .table-stack thead { display: none; }
  .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .6rem .9rem;
    margin-bottom: .8rem;
  }
  .table-stack td {
    border: none;
    padding: .35rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: right;
  }
  .table-stack td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    text-align: left;
    flex-shrink: 0;
  }
  .table-stack td:empty { display: none; }
}

/* ============================================================
   Bayi fiyat listesi — responsive kart ızgarası
   ============================================================ */
.dealer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.1rem;
}
.dealer-toolbar .tools { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dealer-count { color: var(--muted); font-size: .88rem; }

.dealer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.dealer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.dealer-card:hover {
  box-shadow: 0 10px 26px rgba(20, 33, 61, .10);
  border-color: #d3dade;
  transform: translateY(-2px);
}

.dealer-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}
.dealer-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dealer-card__rate {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #0d5c63, #1b9aa6);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 6px;
  padding: .22rem .5rem;
  box-shadow: 0 2px 6px rgba(13, 92, 99, .3);
}
.dealer-card__soldout {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .62);
  color: var(--primary);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
}

.dealer-card__body {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: .8rem .85rem .9rem;
  flex: 1;
}
.dealer-card__cat {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.dealer-card__name {
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dealer-card__name:hover { color: var(--primary); }

.dealer-card__prices {
  margin-top: auto;
  padding-top: .5rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
}
.dealer-card__list {
  color: var(--muted);
  text-decoration: line-through;
  font-size: .85rem;
}
.dealer-card__final {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.15rem;
}
.dealer-card__foot { padding: 0 .85rem .85rem; }

@media (max-width: 480px) {
  .dealer-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .dealer-card__body { padding: .6rem .6rem .7rem; }
  .dealer-card__name { font-size: .85rem; }
  .dealer-card__final { font-size: 1rem; }
  .dealer-card__list { font-size: .78rem; }
  .dealer-card__foot { padding: 0 .6rem .6rem; }
}

/* Sipariş notu — başarı / dekont ekranlarında */
.order-note {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: .55rem .7rem;
  font-size: .88rem;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.order-note b { color: var(--primary); }

/* Sepet/özet satırlarında küçük indirim rozeti ("Bayi %20", "İndirim %15") */
.save-badge {
  display: inline-block;
  background: #e9f7ef;
  color: #176237;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 4px;
  padding: .05rem .35rem;
  margin-left: .25rem;
}
/* Özet satırında üstü çizili tutar sağa hizalı kalsın */
.summary-card .row-line .price-old { font-size: .9rem; }

/* ============================================================
   Bayilerimiz — public sayfa + anasayfa CTA
   ============================================================ */
.dealers-hero { margin: 1.4rem 0 1rem; }
.dealers-filter { margin-bottom: 1rem; }

.dealers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.dealer-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.dealer-item__body { padding: 1rem 1.1rem .75rem; }
.dealer-item__head { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.dealer-item__logo { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.dealer-item__name { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--primary); }
.dealer-item__city { font-size: .82rem; color: var(--muted); }
.dealer-item__addr { font-size: .9rem; color: var(--ink); margin: .3rem 0 .5rem; }
.dealer-item__contact { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.dealer-item__contact a { font-size: .9rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.dealer-item__contact a:hover { text-decoration: underline; }
.dealer-item__map { margin-top: auto; position: relative; }
.dealer-item__map iframe { width: 100%; height: 180px; border: 0; display: block; border-top: 1px solid var(--line); }
.dealer-item__maplink {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(255,255,255,.94); color: var(--primary);
  font-size: .78rem; font-weight: 700; text-decoration: none;
  padding: .25rem .55rem; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.dealers-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin: 2rem 0; text-decoration: none;
}
.dealers-cta__text h2 { color: #fff; margin: 0 0 .25rem; font-size: 1.4rem; }
.dealers-cta__text p { margin: 0; color: #dbe3f0; font-size: .95rem; }
.dealers-cta__btn {
  background: var(--accent); color: #fff; font-weight: 700;
  padding: .6rem 1.2rem; border-radius: 999px; white-space: nowrap;
}
.dealers-cta:hover .dealers-cta__btn { background: var(--accent-dark); }

@media (max-width: 480px) {
  .dealers-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Sepet — kart tabanlı responsive satır
   ============================================================ */
.cart-items { border-top: 1px solid var(--line); }
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem .25rem;
  border-bottom: 1px solid var(--line);
}
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cart-line .name { font-weight: 600; color: var(--ink); display: block; }
.cart-line .unit { color: var(--muted); font-size: .85rem; }
.cart-line .line-total { font-weight: 800; white-space: nowrap; }
.cart-line .remove-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  width: 36px;
  height: 36px;
}
.cart-line .remove-btn:hover { color: var(--danger); border-color: var(--danger); }

@media (max-width: 640px) {
  .cart-line {
    grid-template-columns: 70px 1fr auto;
    grid-template-areas:
      "img info remove"
      "img qty total";
    row-gap: .55rem;
    column-gap: .8rem;
  }
  .cart-line img { width: 70px; height: 70px; grid-area: img; align-self: start; }
  .cart-line .cart-line-info { grid-area: info; }
  .cart-line .cart-line-qty { grid-area: qty; }
  .cart-line .cart-line-total { grid-area: total; align-self: center; text-align: right; }
  .cart-line .cart-line-remove { grid-area: remove; justify-self: end; }
}

/* ============================================================
   Responsive kırılım noktaları
   ============================================================ */

/* Tablet ve altı */
@media (max-width: 992px) {
  html { font-size: 13.5px; }
  .hero-caption h2 { font-size: 1.7rem; }
  .hero-caption p { font-size: .95rem; }
  .header-row { gap: .6rem; }
  .summary-card { position: static; top: auto; }
  /* Alt nav için içerik altına boşluk */
  body { padding-bottom: 64px; }
  .site-footer { margin-bottom: 0; }
}

/* Telefon (yatay) ve altı */
@media (max-width: 768px) {
  .header-row { padding: .65rem 12px; }
  .header-actions { gap: .85rem; }
  .breadcrumbs { font-size: .8rem; }
  .section-head { margin: 1.6rem 0 .9rem; }
  .section-head h2 { font-size: 1.25rem; }
  .detail-title { font-size: 1.3rem; }
  .detail-price .price-now { font-size: 1.55rem; }
  .page-title { font-size: 1.35rem; }
  .summary-card { margin-top: 1rem; }
  /* Sticky header sepet/checkout butonlarını kapatmasın */
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* Telefon (dikey) */
@media (max-width: 576px) {
  .hero-slide img { border-radius: 8px; }
  .hero-caption { left: 5%; max-width: 80%; }
  .hero-caption h2 { font-size: 1.25rem; }
  .hero-caption p { font-size: .82rem; margin-bottom: .5rem; }
  .hero-caption .btn { padding: .4rem .9rem; font-size: .85rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .product-card .name { font-size: .85rem; min-height: 2.4em; }
  .price-now { font-size: 1rem; }
  .add-cart-btn { font-size: .82rem; padding: .45rem; }
  .logo { font-size: 1.3rem; }
  .logo span { font-size: .8rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .cat-card img { height: 110px; }
  .perks { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .perk { padding: .7rem .8rem; }
  .perk .icon { font-size: 1.3rem; }
  .perk small { font-size: .72rem; }
  /* Ürün detay aksiyon satırı taşmasın */
  .detail-actions { gap: .6rem !important; }
  .detail-actions .btn-lg { flex: 1; padding-left: 0; padding-right: 0; }
  .toast-area { left: 12px; right: 12px; top: auto; bottom: 78px; }
  .app-toast { max-width: none; }
  .auth-card { margin: 1.5rem auto; padding: 1.4rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Çok küçük ekran */
@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.blog-card:hover { box-shadow: 0 12px 26px rgba(20, 33, 61, .1); transform: translateY(-3px); }
.blog-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--primary-light); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.blog-date, .blog-meta { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.blog-card-title { font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.blog-card-title:hover { color: var(--primary); }
.blog-excerpt { font-size: .9rem; color: #5b6673; margin: 0; }
.blog-more { font-weight: 600; color: var(--primary); font-size: .88rem; margin-top: auto; }

.blog-detail-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.2rem; }
.blog-content { font-size: 1.02rem; line-height: 1.75; color: #2c3742; }
.blog-content h2, .blog-content h3 { margin: 1.6rem 0 .7rem; color: var(--ink); font-weight: 700; }
.blog-content p { margin-bottom: 1rem; }
.blog-content img { max-width: 100%; height: auto; border-radius: 8px; margin: .6rem 0; }
.blog-content ul, .blog-content ol { margin: 0 0 1rem 1.2rem; }

.blog-sidebar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.blog-side-item { display: flex; gap: .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.blog-side-item:last-child { border-bottom: none; }
.blog-side-item img { width: 62px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.blog-side-title { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.blog-side-item:hover .blog-side-title { color: var(--primary); }
.blog-side-date { font-size: .74rem; color: var(--muted); }

.pagination-row { display: flex; gap: .4rem; justify-content: center; }
.page-btn {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-weight: 600; padding: 0 .6rem;
}
.page-btn.active, .page-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* İçerik sayfaları (Hakkımızda vb.) + harita */
.static-content { font-size: 1.02rem; line-height: 1.75; color: #2c3742; }
.static-content p { margin-bottom: 1rem; }
.static-content h2, .static-content h3 { margin: 1.4rem 0 .6rem; color: var(--ink); font-weight: 700; }
.map-embed iframe, .map-embed { width: 100%; }
.map-embed iframe { height: 280px; border: 0; border-radius: var(--radius); display: block; }
.blog-thumb.is-placeholder { background: var(--navy); }
.blog-thumb.is-placeholder img { object-fit: contain; padding: 20% 22%; }

/* ---------- Ödeme yöntemleri (footer) ---------- */
.footer-payments { text-align: center; padding: 1.3rem 0 .3rem; }
.footer-payments img {
  height: 40px; width: auto; max-width: 100%;
  background: #fff; border-radius: 8px; padding: 7px 16px;
}

/* ---------- Mükemmel uykunun sırrını keşfedin ---------- */
.sleep-secret { margin: 2.2rem 0 2.6rem; }
.sleep-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.sleep-card { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ink); }
.sleep-word {
  font-family: 'Dancing Script', 'Segoe Script', 'Brush Script MT', cursive;
  font-size: 2.15rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: .5rem;
}
.sleep-thumb { display: block; width: 100%; border-radius: var(--radius); overflow: hidden; }
.sleep-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; transition: transform .25s; }
.sleep-card:hover .sleep-thumb img { transform: scale(1.04); }

/* ---------- Sosyal medya — bizi takip edin ---------- */
.social-follow { margin: 2rem 0 2.8rem; text-align: center; }
.social-follow-head h2 { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin-bottom: .2rem; }
.social-follow-head span { color: var(--muted); font-size: .95rem; }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.1rem; }
.social-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .68rem 1.3rem;
  border-radius: 30px; color: #fff; font-weight: 600; font-size: .95rem;
  transition: transform .15s, box-shadow .15s;
}
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); color: #fff; }
.social-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.fb { background: #1877f2; }
.social-btn.yt { background: #ff0000; }
.social-btn.wa { background: #25d366; }
.sleep-label { margin-top: .7rem; font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.sleep-card:hover .sleep-label { color: var(--primary); }
@media (max-width: 760px) {
  .sleep-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .sleep-word { font-size: 1.7rem; }
}

/* ---------- Taksit seçenekleri (tahsilat ödeme) ---------- */
.installment-list { display: flex; flex-direction: column; gap: .5rem; }
.installment-opt {
  display: flex; align-items: center; gap: .7rem;
  border: 1.5px solid var(--line); border-radius: 10px; padding: .7rem .9rem; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.installment-opt:hover { border-color: var(--primary); }
.installment-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.installment-opt input { width: 18px; height: 18px; accent-color: var(--primary); }
.installment-opt .inst-name { font-weight: 700; min-width: 78px; }
.installment-opt .inst-detail { margin-left: auto; display: flex; gap: .5rem; align-items: baseline; }
