.account-area { position: relative; float: right; margin-top: 6px; }
.account-button { display:flex; align-items:center; padding:8px 12px; background:#e53935; color:#fff; border:none; border-radius:20px; cursor:pointer; font-size:14px; box-shadow:0 2px 10px rgba(0,0,0,0.12); }
.account-button:hover { background:#d32f2f; }
.account-grid { position:absolute; right:0; margin-top:8px; background:#fff; border:1px solid #e5e7eb; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,0.12); padding:10px; display:none; width:260px; grid-template-columns:1fr 1fr; gap:8px; z-index:4000; }
.account-grid .grid-item { display:flex; align-items:center; justify-content:center; padding:12px; border:1px solid #eee; border-radius:10px; background:#fafafa; font-size:14px; color:#333; text-decoration:none; cursor:pointer; }
.account-grid .grid-item:hover { background:#f0f0f0; }
.account-grid .grid-item.danger { background:#fff5f5; color:#b71c1c; border-color:#f5c2c7; }
.account-grid .grid-item.danger:hover { background:#ffe3e3; }

header { overflow: visible; z-index: 3500; }

/* Header konteyneri için relative pozisyon, menüyü sabitlemek için */
header > .container { position: relative; }
/* Açılır hesap ızgarasının header dışına taşmasına izin ver */
header > .container { overflow: visible; }
header .container { overflow: visible; }

.product-head { position: relative; z-index: 1; }

.account-page .page-container { max-width: 980px; margin: 24px auto; padding: 0 16px; min-height: 60vh; }
.account-page .page-title { font-size: 1.6rem; margin: 0 0 14px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.account-tabs { display: flex; gap: 10px; margin: 12px 0 18px; }
.account-tab { flex: 1; text-align: center; padding: 12px 10px; border: 1px solid #eee; border-radius: 12px; text-decoration: none; color: #111; background: #fff; font-weight: 800; }
.account-tab.active { background: #111; color: #fff; border-color: #111; }
.account-page .form-section { background: #fff; border-radius: 12px; }
.account-page .form-section h3 { margin-top: 0; }

@media (max-width: 640px) {
  .account-grid { width: 220px; grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #accountArea { display: flex !important; }
  .account-button #accountName { display: none; }
  .account-button .fa-chevron-down { display: none; }
  .account-button .fa-user { margin-right: 0 !important; }

  body.account-page { padding-top: 60px; }
  body.account-page .top-band { display: none; }
  body.account-page header { position: fixed; top: 0; left: 0; right: 0; height: 60px; min-height: 60px; z-index: 3500; padding: 0; }
  body.account-page header .container { width: 100%; height: 60px; margin: 0; padding: 0 10px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
  body.account-page header nav { display: none; }
  body.account-page .mobile-nav-toggle { display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff; background: none; border: 0; cursor: pointer; padding: 0; }
  body.account-page header h1 { margin: 0; display: flex; justify-content: center; grid-column: 2; }
  body.account-page header h1 a { display: inline-flex; align-items: center; justify-content: center; }
  body.account-page header h1 a.site-logo-link img { height: 28px; width: auto; }
  body.account-page #mobileMenuBtn { grid-column: 1; justify-self: start; width: 44px; height: 44px; padding: 0; line-height: 1; }
  body.account-page .account-area { grid-column: 3; float: none; margin-top: 0; justify-self: end; }
  body.account-page .account-button { width: 44px; height: 44px; border-radius: 999px; padding: 0; justify-content: center; box-shadow: none; }
  body.account-page .page-container { margin: 0 auto; padding-top: 14px; }
  body.account-page .page-title { font-size: 1.35rem; }
  .account-tabs { gap: 8px; }
  .account-tab { padding: 11px 8px; font-size: 13px; }
  body.account-page .form-section { padding: 16px; }

  body.account-page .mobile-menu { display: none; position: fixed; top: 60px; left: 0; right: 0; background: #111; padding: 14px 12px; z-index: 3490; border-top: 1px solid rgba(255,255,255,0.12); }
  body.account-page .mobile-menu.active { display: block; }
  body.account-page .mobile-menu ul { list-style: none; padding: 0; margin: 0; }
  body.account-page .mobile-menu li { margin: 0; }
  body.account-page .mobile-menu a { display: block; padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,0.08); text-decoration: none; color: #fff; font-weight: 800; text-transform: none; }
  body.account-page .mobile-menu li:last-child a { border-bottom: 0; }
}

@media (min-width: 769px) {
  body.account-page .mobile-menu { display: none !important; }
  body.account-page .mobile-nav-toggle { display: none !important; }
}
