/* ==========================================================================
   İL-KA AUTO — Uygulama katmanı (store.css üzerine)
   Masaüstünde rafine e-ticaret görünümü, telefonda mobil uygulama deneyimi:
   kompakt arama başlığı, kategori çipleri, yatay vitrinler, alt sekme çubuğu.
   ========================================================================== */

:root {
  --brand-text: #bf5200; /* beyaz zemin üzerindeki turuncu yazılar için (WCAG AA kontrast) */
  --tabbar-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --card-radius: 12px;
}

body { background: #fff; }

/* ─── Ürün kartı ─────────────────────────────────────────────────────── */
.product-card { border-color: #eceef1; border-radius: var(--card-radius); }
.product-card:hover { border-color: #e2e5e9; box-shadow: 0 10px 28px rgba(16, 24, 40, .10); }
.pc-img { border-bottom: 0; background: #fff; }
.pc-img img { padding: 12px; }
.pc-body { padding: 4px 12px 12px; }
.pc-brand { font-size: .72rem; color: var(--ink); font-weight: 700; letter-spacing: .02em; margin-bottom: 2px; }
.pc-name { font-weight: 500; color: var(--ink-2); font-size: .86rem; min-height: 2.7em; margin-bottom: 8px; }
.pc-price .price-now { color: var(--brand-600); font-weight: 800; letter-spacing: -.01em; }
.pc-actions .btn-brand { background: #fff; color: var(--brand-text); border: 1px solid var(--brand); font-weight: 700; transition: background .15s, color .15s; }
.pc-actions .btn-brand:hover, .pc-actions .btn-brand:focus { background: var(--brand-text); border-color: var(--brand-text); color: #fff; }

/* Favori (kalp) düğmesi */
.pc-fav {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(16, 24, 40, .14);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 1rem; cursor: pointer; transition: color .15s, transform .15s;
}
.pc-fav:hover { color: var(--brand); }
.pc-fav.is-on { color: var(--brand); }
.pc-fav.pop { animation: favPop .35s ease; }
@keyframes favPop { 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ─── Masaüstü başlık ────────────────────────────────────────────────── */
.site-header .search-form { border-width: 1.5px; border-radius: 10px; background: #f6f7f9; border-color: #f6f7f9; transition: border-color .15s, background .15s; }
.site-header .search-form:focus-within { border-color: var(--brand); background: #fff; }
.site-header .search-form input { background: transparent; }
.site-header .search-form button { background: transparent; color: var(--brand); }
.site-header .search-form button:hover { background: transparent; color: var(--brand-700); }
.h-action { border-radius: 8px; }
.h-action:hover { background: var(--bg-soft); }
.m-cats { display: none; }

/* ─── Bölüm başlıkları ve vitrin ─────────────────────────────────────── */
.section-head h2 { font-size: 1.3rem; font-weight: 800; }
.cat-tile { border-color: #eceef1; }
.cat-tile .cat-thumb { background: #fff; box-shadow: inset 0 0 0 1px #eceef1; }
.trust-bar { border-color: #eceef1; }

/* ─── Ürün detay galerisi ────────────────────────────────────────────── */
.pd-gallery { position: relative; }
.pd-fav { top: 12px; right: 12px; width: 42px; height: 42px; font-size: 1.15rem; }
.pd-dots { display: none; }
.mbb-price small { display: block; font-size: .7rem; color: var(--muted); line-height: 1; margin-bottom: 2px; }

/* ─── Alt sekme çubuğu (yalnızca telefonda) ──────────────────────────── */
.tabbar { display: none; }

/* ==========================================================================
   TELEFON & TABLET — uygulama görünümü
   ========================================================================== */
@media (max-width: 991.98px) {
  body { background: #f4f5f7; }
  main { min-height: 60vh; }

  /* Kompakt başlık: logo + arama tek satırda */
  .site-header { border-bottom: 0; box-shadow: 0 1px 0 #eceef1; }
  .header-main { flex-wrap: nowrap; gap: 10px; min-height: 0; padding-top: 8px; padding-bottom: 8px; }
  .header-main > .icon-btn, .header-actions { display: none !important; }
  .brand { margin-right: 0; flex-shrink: 0; }
  .brand img { height: 34px; width: auto; }
  .site-header .search-form { order: 0; flex: 1 1 auto; flex-basis: auto; margin: 0; }
  .site-header .search-form input { padding: 9px 4px 9px 12px; font-size: 16px; }
  .site-header .search-form button { order: -1; padding: 0 0 0 12px; color: var(--muted); }

  /* Kategori çipleri */
  .m-cats {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 12px 10px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  }
  .m-cats::-webkit-scrollbar { display: none; }
  .m-cats a {
    flex-shrink: 0; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px; border-radius: 999px; border: 1px solid #e3e6ea; background: #fff;
    font-size: .8rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  }
  .m-cats a i { color: var(--brand); font-size: .78rem; }
  .m-cats a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
  .m-cats a.active i { color: #fff; }

  /* Bölümler beyaz kart bloklar gibi */
  .section, .section-sm { padding: 0; margin: 8px 0; }
  .section > .container, .section-sm > .container { background: #fff; padding-top: 16px; padding-bottom: 16px; }
  .section-head { margin-bottom: 12px; align-items: center; }
  .section-head h2 { font-size: 1.05rem; }
  .section-head p { display: none; }
  .section-head .see-all { font-size: .8rem; }

  /* Vitrin (hero) */
  .hero { padding: 10px 0 0; background: #fff; }
  .hero > .container { padding-bottom: 12px; }
  .hero-slider, .hero-slider .carousel-inner, .hero-slider .carousel-item { border-radius: 14px; }
  .hero-slide { height: 190px; }
  .hero-slide-content { padding: 18px 20px; }
  .hero-slide-content .eyebrow { font-size: .62rem; padding: 3px 8px; margin-bottom: 8px; }
  .hero-slide-content h1, .hero-slide-content h2 { font-size: 1.15rem; margin-bottom: 6px; }
  .hero-slide-content p { font-size: .8rem; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-slide-content .btn-lg { padding: .45rem .9rem; font-size: .82rem; }
  .hero-slider .carousel-indicators { margin-bottom: 6px; }

  /* Güven çubuğu → yatay rozetler */
  .section-sm.pb-0 { margin-top: 0; }
  .section-sm.pb-0 > .container { padding-top: 0; padding-bottom: 14px; }
  .trust-bar { display: flex; gap: 8px; overflow-x: auto; border: 0; border-radius: 0; background: transparent; scrollbar-width: none; }
  .trust-bar::-webkit-scrollbar { display: none; }
  .trust-item { flex-shrink: 0; padding: 8px 12px; gap: 8px; border: 1px solid #eceef1 !important; border-radius: 10px; background: #fafafa; }
  .trust-item i { font-size: 1rem; width: auto; }
  .trust-item strong { font-size: .76rem; white-space: nowrap; }
  .trust-item span { display: none; }

  /* Kategoriler → yuvarlak hikâye şeridi */
  .cat-grid.cat-rail { display: flex; gap: 14px; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
  .cat-grid.cat-rail::-webkit-scrollbar { display: none; }
  .cat-rail .cat-tile { flex: 0 0 72px; border: 0; padding: 0; background: transparent; box-shadow: none; transform: none; }
  .cat-rail .cat-tile .cat-thumb { width: 64px; height: 64px; margin-bottom: 6px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-100); }
  .cat-rail .cat-tile .cat-thumb img { padding: 6px; }
  .cat-rail .cat-tile strong { font-size: .7rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cat-rail .cat-tile > span:not(.cat-thumb) { display: none; }

  /* Ürün vitrinleri → yatay kaydırma */
  .product-grid.rail {
    display: flex; gap: 10px; overflow-x: auto; margin: 0 -12px; padding: 2px 12px 6px;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .product-grid.rail::-webkit-scrollbar { display: none; }
  .product-grid.rail > .product-card { flex: 0 0 42%; scroll-snap-align: start; height: auto; }

  /* Kartlar (genel) */
  .product-grid { gap: 8px; }
  .product-card { border-radius: 10px; box-shadow: none; }
  .product-card:hover { box-shadow: none; }
  .product-card:hover .pc-img img { transform: none; }
  .pc-img img { padding: 8px; }
  .pc-body { padding: 2px 10px 10px; }
  .pc-name { font-size: .8rem; margin-bottom: 6px; }
  .pc-price { margin-bottom: 8px; }
  .pc-price .price-now { font-size: .98rem; }
  .pc-actions .btn { font-size: .76rem; padding: .4rem .3rem; border-radius: 8px; white-space: nowrap; }
  .pc-fav { width: 30px; height: 30px; font-size: .9rem; top: 6px; right: 6px; }
  .pbadge { font-size: .62rem; }

  /* Listeleme */
  .page-head { background: #fff; padding: 10px 0 12px; border-bottom: 0; }
  .page-head h1 { font-size: 1.1rem; }
  .page-head .crumbs { font-size: .74rem; }
  .listing { margin-top: 0; }
  .listing-toolbar { position: sticky; top: var(--m-head-h, 100px); z-index: 1020; margin: 0 -12px 8px; padding: 8px 12px; border-radius: 0; border: 0; border-bottom: 1px solid #eceef1; }
  .listing-toolbar .count { font-size: .78rem; }
  .listing .product-grid { padding-bottom: 8px; }

  /* Ürün detay */
  .pd { background: #fff; padding-top: 4px; }
  .page-head.py-3 { padding: 8px 0 !important; }
  .pd-grid { gap: 14px; }
  .pd-gallery { margin: 0 -12px; }
  .pd-main-img { border: 0; border-radius: 0; touch-action: pan-y; }
  .pd-main-img img { padding: 16px; transition: opacity .2s; }
  .pd-thumbs { display: none; }
  .pd-dots { display: flex; gap: 6px; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2; }
  .pd-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d1d5db; transition: width .2s, background .2s; }
  .pd-dots i.on { width: 18px; border-radius: 4px; background: var(--brand); }
  .pd-fav { top: 12px; right: 16px; }
  .pd-title { font-size: 1.1rem; font-weight: 600; }
  .pd-price-box { background: #fff; padding: 12px 14px; }
  .pd-price-box .price-now { font-size: 1.5rem; color: var(--brand-600); }
  .pd-buy .btn { min-width: 0; }
  .pd-tabs { margin-top: 20px; border-radius: 10px; }
  .pd-tabs .nav-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pd-tabs .nav-tabs .nav-link { white-space: nowrap; font-size: .82rem; }
  .pd section.mt-5 { margin-top: 24px !important; }
  .pd .product-grid.cols-5 { display: flex; overflow-x: auto; gap: 10px; margin: 0 -12px; padding: 0 12px 16px; scrollbar-width: none; }
  .pd .product-grid.cols-5 > .product-card { flex: 0 0 42%; }

  /* Sabit alt çubuklar (ürün: Sepete Ekle, sepet: Onayla) */
  .mobile-buy-bar { padding: 10px 12px calc(10px + var(--safe-b)); gap: 8px; }
  .mobile-buy-bar .mbb-price { margin-right: auto; min-width: 0; }
  .mobile-buy-bar .price-now { font-size: 1.05rem; color: var(--brand-600); font-weight: 800; white-space: nowrap; }
  .mobile-buy-bar .btn { flex: 0 0 auto; height: 44px; padding: 0 16px; font-weight: 700; border-radius: 10px; display: inline-flex; align-items: center; }
  .mobile-buy-bar .mbb-now { border-color: var(--brand); color: var(--brand-text); background: #fff; }
  .mobile-buy-bar .btn.w-100, .mobile-buy-bar .mp-buy { flex: 1 1 auto; width: auto !important; min-width: 0; justify-content: center; }
  .mobile-buy-bar .mp-buy .btn { flex: 1 1 0; }
  body.has-buy-bar { padding-bottom: calc(66px + var(--safe-b)); }

  /* Sepet */
  .cart-layout { padding-bottom: 8px; }
  .summary-card .sum-checkout-link { display: none; } /* sepette alttaki sabit çubuk var; ödeme sayfasındaki onay düğmesi görünür kalır */

  /* Alt sekme çubuğu */
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1045;
    height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #e8eaee; box-shadow: 0 -4px 16px rgba(16, 24, 40, .05);
  }
  .tabbar .tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: none; border: 0; padding: 0; color: #6b7280; font: inherit; font-size: .66rem; font-weight: 600;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar .tab > i, .tabbar .tab-ico > i { font-size: 1.2rem; line-height: 1; }
  .tabbar .tab.active { color: var(--brand); }
  .tabbar .tab:active { transform: scale(.94); }
  .tab-ico { position: relative; display: inline-flex; }
  .tab-badge {
    position: absolute; top: -6px; right: -11px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 9px; background: var(--brand); color: #fff; font-size: .6rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; font-style: normal;
  }
  .tab-badge.is-empty { display: none; }
  body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
  body.has-buy-bar .tabbar { display: none; }
  body.has-buy-bar.has-tabbar { padding-bottom: calc(66px + var(--safe-b)); }

  /* Yüzen WhatsApp düğmesi telefonda gizli (sekme çubuğunda var / menüde) */
  .wa-float { display: none; }
  .toast-stack { top: auto; bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); }
  body.has-buy-bar .toast-stack { bottom: calc(76px + var(--safe-b)); }
  .cookie-banner { bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px); }

  /* Kategoriler menüsü → tam ekran uygulama sayfası */
  .offcanvas.mobile-menu { width: 100%; border: 0; }
  .mobile-menu .offcanvas-header { padding: 12px 16px; }
  .mobile-menu .offcanvas-body { background: #f4f5f7; padding-bottom: calc(var(--tabbar-h) + 20px) !important; }
  .mm-section { background: #fff; margin-bottom: 8px; border: 0; padding: 10px 0; }
  .mm-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
  .mm-cats h6 { grid-column: 1 / -1; margin: 0 4px 2px; }
  .mm-cats a { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 14px 6px; border-radius: 12px; background: #f8f9fb; font-size: .76rem; font-weight: 600; line-height: 1.25; min-height: 92px; }
  .mm-cats a i { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-50); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }

  /* Alt bilgi: açılır bölümler */
  .site-footer { margin-top: 8px; }
  .footer-top { padding: 24px 0 8px; }
  .footer-top .row > [class*="col-"]:has(.f-acc) { flex: 0 0 100%; max-width: 100%; margin-top: 0; padding-top: 0; }
  .f-acc { margin: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .f-acc-btn { all: unset; box-sizing: border-box; display: flex; width: 100%; justify-content: space-between; align-items: center; cursor: pointer; padding: 14px 0; }
  .f-acc-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .f-acc-btn::after { content: "+"; font-weight: 400; font-size: 1.2rem; opacity: .7; }
  .open > .f-acc .f-acc-btn::after { content: "–"; }
  .f-acc + .footer-links { display: none; padding-bottom: 12px; }
  .open > .f-acc + .footer-links { display: block; }
  .footer-top .row { --bs-gutter-y: 0; }
  .footer-brand { margin-bottom: 16px; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 575.98px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .product-grid, .product-grid.cols-5, .product-grid.cols-3, .listing .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .product-grid.rail > .product-card, .pd .product-grid.cols-5 > .product-card { flex-basis: 28%; }
}

/* "Ana ekrana ekle" ile uygulama olarak açıldığında */
@media (display-mode: standalone) {
  .topbar { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-fav.pop { animation: none; }
}
.cart-badge.is-empty[data-fav-count] { display: none; }

/* ─── Arama önerileri ────────────────────────────────────────────────── */
.site-header .search-form { position: relative; overflow: visible; }
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1050;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; max-height: 70vh; overflow-y: auto;
}
.search-suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.search-suggest a:hover, .search-suggest a.is-active { background: var(--bg-soft); color: var(--ink); }
.ss-cat i { width: 34px; height: 34px; border-radius: 8px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.ss-cat span { font-weight: 600; font-size: .9rem; }
.ss-cat small { margin-left: auto; color: var(--muted); font-size: .76rem; }
.ss-prod img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; flex-shrink: 0; }
.ss-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ss-name small { font-size: .68rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.ss-name strong { font-size: .86rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-price { font-weight: 800; color: var(--brand-600); font-size: .88rem; white-space: nowrap; }
.search-suggest a.ss-all { justify-content: center; font-weight: 700; font-size: .84rem; color: var(--brand-600); border-top: 1px solid var(--line-2); border-radius: 0 0 8px 8px; margin-top: 4px; }

/* ─── İletişim formu ─────────────────────────────────────────────────── */
.contact-form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: #fff; scroll-margin-top: 120px; }
.contact-form-card h2 { font-size: 1.25rem; margin: 0 0 4px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-product { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--brand-50); font-size: .88rem; }
.cf-product i { color: var(--brand); }
.cf-product a { font-weight: 600; color: var(--brand-700); }

/* ─── Paylaş, alt bilgi firma satırı ─────────────────────────────────── */
.pd-native-share { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.pd-ask { font-weight: 600; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .08); padding: 12px 0; font-size: .76rem; color: #9ca3af; }

@media (max-width: 991.98px) {
  .search-suggest { position: fixed; top: var(--m-head-h, 100px); left: 8px; right: 8px; max-height: calc(100vh - var(--m-head-h, 100px) - var(--tabbar-h) - 20px); }
  .contact-form-card { padding: 18px 16px; }
  .footer-legal { text-align: center; }
}

/* ─── Doğrulama kodu ekranı ──────────────────────────────────────────── */
.otp-card { text-align: center; }
.otp-card .notice { text-align: left; }
.otp-icon { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: var(--brand-50); color: var(--brand); }
.otp-input { text-align: center; font-size: 1.9rem; font-weight: 800; letter-spacing: .5em; padding: 12px 0 12px .5em; font-variant-numeric: tabular-nums; }
.otp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 16px; font-size: .88rem; }
.otp-actions form { margin: 0; }
.otp-actions .btn-link { font-size: .88rem; text-decoration: none; font-weight: 600; }
.otp-actions .btn-link:disabled { color: var(--muted) !important; }

/* ─── Giriş yöntemi seçimi, şifre gücü ───────────────────────────────── */
.login-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 10px; margin-bottom: 18px; }
.login-mode a { text-align: center; padding: 8px; border-radius: 8px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.login-mode a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.pw-meter { height: 5px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.pw-meter-label { font-size: .74rem; margin-top: 3px; color: var(--muted); }

/* ─── Hesabım ────────────────────────────────────────────────────────── */
.verified-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; color: var(--success); }
.sec-score { font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.sec-score.is-low { background: var(--danger-bg); color: var(--danger); }
.sec-score.is-mid { background: var(--warning-bg); color: var(--warning); }
.sec-score.is-high { background: var(--success-bg); color: var(--success); }
.sec-list { display: grid; gap: 4px; }
.sec-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.sec-item:last-child { border-bottom: 0; }
.sec-item > i { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.sec-item strong { display: block; font-size: .9rem; }
.sec-item span { font-size: .82rem; color: var(--muted); }
.sec-item form { margin: 0; }
.panel + .panel { margin-top: 16px; }
.danger-zone { border-color: #fecaca !important; }
.danger-zone .panel-head h2 { color: var(--danger); }
.order-cards { display: grid; gap: 10px; padding: 14px; }
.order-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.oc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.oc-body { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; margin-bottom: 10px; }
.oc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.address-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.address-card.is-default { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.ac-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ac-body { font-size: .85rem; color: var(--ink-2); line-height: 1.5; flex: 1; }
.ac-actions { display: flex; gap: 14px; align-items: center; }
.ac-actions form { margin: 0; }
.ac-actions .btn-link { font-size: .82rem; text-decoration: none; }
@media (max-width: 575.98px) {
  .sec-item { grid-template-columns: 36px 1fr; }
  .sec-item > :last-child { grid-column: 2; justify-self: start; }
}

/* ─── Yıldızlar, yorumlar ────────────────────────────────────────────── */
.stars { color: #f59e0b; display: inline-flex; gap: 1px; font-size: .85em; }
.pc-rating { display: flex; align-items: center; gap: 4px; font-size: .74rem; color: var(--muted); margin: -4px 0 6px; }
.pc-ship { font-size: .7rem; font-weight: 700; color: var(--success); margin: -2px 0 6px; }
.pd-rating { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 10px; font-size: .86rem; color: var(--muted); }
.pd-rating strong { color: var(--ink); }
.pd-rating:hover span { text-decoration: underline; }
.reviews { margin-top: 40px; scroll-margin-top: 140px; }
.rv-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.rv-summary { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: calc(var(--header-h) + 60px); }
.rv-score { font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.rv-summary > .stars { font-size: 1.1rem; margin-bottom: 4px; }
.rv-bar { display: grid; grid-template-columns: 34px 1fr 24px; gap: 8px; align-items: center; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.rv-bar i.fa-star { color: #f59e0b; font-size: .7rem; }
.rv-bar > div { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.rv-bar > div > i { display: block; height: 100%; background: #f59e0b; }
.rv-write { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.rv-form > summary { list-style: none; }
.rv-form > summary::-webkit-details-marker { display: none; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-bottom: 10px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.6rem; color: #d1d5db; cursor: pointer; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f59e0b; }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.rv-list { display: grid; gap: 12px; }
.rv-item { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; }
.rv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rv-item p { margin: 0 0 8px; font-size: .92rem; color: var(--ink-2); }
.rv-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .76rem; color: var(--muted); }
.rv-verified { color: var(--success); font-weight: 600; }
.rv-reply { margin-top: 10px; background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; font-size: .86rem; }
.rv-reply strong { display: block; font-size: .78rem; color: var(--brand-700); margin-bottom: 2px; }

/* ─── Ürün sayfası: rozetler, tahmini kargo, stok bildirimi, ödeme ───── */
.pd-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pd-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.pd-badge.ok { background: var(--success-bg); border-color: #bbf7d0; color: var(--success); }
.ship-eta { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--brand-50); margin: 8px 0 4px; font-size: .88rem; }
.ship-eta > i { color: var(--brand); margin-top: 3px; }
.ship-eta small { display: block; color: var(--muted); font-size: .76rem; }
.stock-alert { border: 1px dashed var(--brand); border-radius: 12px; padding: 14px; margin: 10px 0; background: #fff; }
.sa-text { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.sa-text > i { color: var(--brand); font-size: 1.2rem; margin-top: 2px; }
.sa-text strong { display: block; color: var(--ink); font-size: .92rem; }
.sa-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sa-row .form-control { flex: 1; min-width: 180px; }
.pd-paybox { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.pp-title { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.pp-row { display: flex; gap: 12px; align-items: center; padding: 6px 0; font-size: .86rem; }
.pp-row i { width: 20px; text-align: center; color: var(--brand); }
.pp-row small { display: block; color: var(--muted); font-size: .76rem; }

/* ─── Sepet kuponu, ödeme kayıtlı adres ──────────────────────────────── */
.coupon-box { margin-bottom: 14px; }
.coupon-form { display: flex; gap: 6px; }
.coupon-form .form-control { font-size: .88rem; }
.coupon-applied { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--success-bg); border: 1px dashed #86efac; }
.coupon-applied > i { color: var(--success); font-size: 1.1rem; }
.coupon-applied > div { flex: 1; display: flex; flex-direction: column; font-size: .82rem; }
.coupon-applied strong { font-family: ui-monospace, monospace; letter-spacing: .05em; }
.coupon-applied form { margin: 0; }
.sum-row.discount span:last-child { color: var(--success); font-weight: 600; }
.saved-addr-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.saved-addr-item { flex: 0 0 auto; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: .82rem; color: var(--ink); min-width: 140px; }
.saved-addr-item span { color: var(--muted); font-size: .76rem; }
.saved-addr-item.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.saved-addr-item.add { border-style: dashed; justify-content: center; }

/* ─── Sipariş: iptal/iade ────────────────────────────────────────────── */
.req-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.req-reply { margin-top: 6px; font-size: .84rem; background: var(--bg-soft); padding: 8px 10px; border-radius: 8px; }
.req-form { margin-top: 12px; }
.req-form > summary { list-style: none; display: inline-flex; }
.req-form > summary::-webkit-details-marker { display: none; }

/* ─── Yardım merkezi ─────────────────────────────────────────────────── */
.help-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 24px; }
.help-topics a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-size: .86rem; font-weight: 600; }
.help-topics a i { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.help-topics a:hover { border-color: var(--brand); }
.help-group { margin-bottom: 28px; scroll-margin-top: 130px; }
.help-group h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.help-group h2 i { color: var(--brand); }
.help-q { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.help-q summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; font-size: .92rem; position: relative; }
.help-q summary::-webkit-details-marker { display: none; }
.help-q summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--brand); font-weight: 400; }
.help-q[open] summary::after { content: "–"; }
.help-q > div { padding: 0 16px 14px; font-size: .9rem; color: var(--ink-2); line-height: 1.6; }
.help-contact { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px; border-radius: var(--radius-lg); background: var(--bg-soft); margin-bottom: 30px; }
.help-contact strong { display: block; }
.help-contact span { font-size: .86rem; color: var(--muted); }

@media (max-width: 991.98px) {
  .rv-grid { grid-template-columns: 1fr; }
  .rv-summary { position: static; }
  .reviews { background: #fff; margin: 8px -12px 0; padding: 16px 12px; }
  .help-topics { grid-template-columns: repeat(3, 1fr); }
  .help-topics a { padding: 12px 6px; font-size: .74rem; }
}
@media (max-width: 575.98px) {
  .pd-buy .btn { white-space: nowrap; font-size: .86rem; padding-left: 10px; padding-right: 10px; }
}

/* Vitrin görseli <img> olarak (telefona küçük, masaüstüne büyük dosya) */
.hero-slide { overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-slide::before { z-index: 1; }
.hero-slide-content { z-index: 2; }

/* ─── Erişilebilirlik: kontrast ve dokunma alanları ──────────────────── */
.link-brand, .section-head .see-all, .pc-price .price-now, .pd-price-box .price-now, .mobile-buy-bar .price-now,
.ss-price, .cf-product a, .rv-reply strong, .pd-rating:hover, .search-suggest a.ss-all, .eyebrow-dark { color: var(--brand-text); }
.link-brand:hover, .section-head .see-all:hover { color: var(--brand-700); }
@media (min-width: 992px) { .f-acc-btn { all: unset; cursor: default; } .f-acc-btn::after { content: none; } }
.cb-title { font-size: .98rem; font-weight: 700; margin: 0 0 6px; }
.site-header .search-form button { min-width: 44px; min-height: 40px; }
.hero-slider .carousel-indicators [data-bs-target] { box-sizing: content-box; width: 9px; height: 9px; padding: 0; border: 8px solid transparent; background-clip: padding-box; margin: 0 1px; }

/* Alt bilgi başlıkları (h2 — başlık sırası için), görünüm eskisi gibi */
.site-footer h2.f-acc { color: #fff; font-size: .95rem; margin: 0 0 14px; font-weight: 700; }
@media (max-width: 991.98px) { .site-footer h2.f-acc { margin: 0; } }

/* Vitrin yan kartları başlıkları h2 (başlık sırası), görünüm h3 ile aynı */
.promo-card h2.promo-title { font-size: 1.2rem; margin: 0 0 6px; }
.promo-dark h2.promo-title { color: #fff; }
