/* shop-header.css — Mağaza / Hesabım üst çubuğu (js/store-shell.js). Portal menüsü yok; e-ticaret düzeni: logo · arama · hesap · sepet.
   Sepet artık çubuğun İÇİNDE (eskiden .site-header'ın backdrop-filter'ı yüzünden dışarıda yüzen düğmeydi); bu çubukta backdrop-filter YOK. */
.shop-header { position: sticky; top: 0; z-index: 50; background: var(--surface-solid, var(--bg)); border-bottom: 1px solid var(--border); }
.shop-header-inner { display: flex; align-items: center; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 10px 16px; min-height: 66px; }

.sh-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text); text-decoration: none !important; }
.sh-brand img { width: 38px; height: 38px; display: block; border-radius: 50%; box-shadow: 0 0 0 1px var(--border-strong); }
.sh-brand .brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.sh-brand .brand-name span { background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sh-brand-tag { padding: 2px 9px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; }

.sh-search { flex: 1 1 auto; display: flex; align-items: center; min-width: 0; max-width: 640px; margin-inline: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; }
.sh-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.sh-search-input { flex: 1; min-width: 0; padding: 11px 14px; font: inherit; font-size: .95rem; color: var(--text); background: transparent; border: 0; outline: none; }
.sh-search-input::placeholder { color: var(--muted); }
.sh-search-go { display: grid; place-items: center; width: 46px; align-self: stretch; color: #fff; background: var(--accent-3); border: 0; cursor: pointer; }
.sh-search-go:hover { background: color-mix(in srgb, var(--accent-3) 82%, #000); }
.sh-ico { display: inline-grid; place-items: center; }
.sh-ico svg { width: 20px; height: 20px; }

.sh-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.sh-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--muted); background: none; border: 1px solid transparent; border-radius: 12px; cursor: pointer; }
.sh-icon-btn:hover { color: var(--text); background: var(--surface-2); }
.sh-icon-btn svg { width: 19px; height: 19px; }
.sh-bell { display: inline-flex; }

/* Hesabım */
.sh-dd { position: relative; }
.sh-acct { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font: inherit; color: var(--text); background: none; border: 1px solid transparent; border-radius: 12px; cursor: pointer; text-align: left; }
.sh-acct:hover, .sh-dd.open > .sh-acct { background: var(--surface-2); border-color: var(--border); }
.sh-acct-label { display: grid; line-height: 1.15; }
.sh-acct-label small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.sh-acct-label strong { font-size: .88rem; font-weight: 750; white-space: nowrap; }
.sh-acct .sh-ico:last-child svg { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.sh-dd.open .sh-acct .sh-ico:last-child svg { transform: rotate(180deg); }
.sh-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: none; flex-direction: column; gap: 2px; min-width: 250px; padding: 8px; background: var(--surface-solid, var(--bg)); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); }
.sh-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }   /* düğme ile menü arasındaki boşluğu köprüler: fare aşağı inerken menü kapanmasın */
.sh-dd.open > .sh-menu { display: flex; animation: pop .15s ease-out; }
@media (hover: hover) and (min-width: 900px) { .sh-dd:hover > .sh-menu { display: flex; } }   /* fareyle üstüne gelince de açılır (Hepsiburada/Trendyol gibi) */
.sh-menu-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.sh-menu-head div { display: grid; min-width: 0; }
.sh-menu-head small { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.sh-menu-head strong { overflow-wrap: anywhere; }
.sh-item { display: block; width: 100%; padding: 10px 12px; font: inherit; font-weight: 650; font-size: .92rem; color: var(--text); text-align: left; text-decoration: none !important; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.sh-item:hover { background: var(--surface-2); }
.sh-primary { color: #fff; text-align: center; background: var(--accent-3); }
.sh-primary:hover { background: color-mix(in srgb, var(--accent-3) 82%, #000); }
.sh-home { color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); text-align: center; }
.sh-out { color: var(--danger); }
.sh-sep { width: 100%; margin: 6px 0; border: 0; border-top: 1px solid var(--border); }

/* Sepetim */
.sh-cart { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; font: inherit; font-weight: 750; font-size: .9rem; color: #fff; text-decoration: none !important; background: var(--accent-3); border: 0; border-radius: 12px; cursor: pointer; }
.sh-cart:hover { background: color-mix(in srgb, var(--accent-3) 82%, #000); color: #fff; }
.sh-cart .cart-count { position: static; display: inline-grid; min-width: 20px; height: 20px; padding: 0 6px; font-size: .74rem; color: var(--accent-3); background: #fff; }
.sh-cart .cart-count[hidden] { display: none; }

@media (max-width: 899px) {
  .sh-acct-label, .sh-acct .sh-ico:last-child { display: none; }
  .sh-acct { padding: 8px; }
  .sh-brand-tag { display: none; }
}
/* Dar ekran: ikinci satırda tam genişlik arama */
@media (max-width: 640px) {
  .shop-header-inner { flex-wrap: wrap; gap: 8px 10px; padding: 8px 12px; min-height: 0; }
  .sh-brand { order: 1; }
  .sh-actions { order: 2; margin-left: auto; }
  .sh-search { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
  .sh-cart { padding: 0 10px; }
  .sh-cart-label { display: none; }
  .sh-menu { min-width: 0; width: min(290px, calc(100vw - 24px)); }
}
@media print { .shop-header { display: none !important; } }
