/* Account pages for the active storefront. */
.hb-account { background: #f8f8f8; color: #374151; min-height: 540px; padding: 20px 0 56px; }
.hb-account-content { width: 100%; min-width: 0; display: grid; gap: 26px; }
.hb-account-sidebar { background: #fff; border-radius: 16px; padding: 14px 0 0; overflow: hidden; box-shadow: 0 8px 18px -14px #0002; }
.hb-account-profile { margin: 0 14px 8px; padding: 16px 10px; border-radius: 14px; text-align: center; background: #f8f8f8; }
.hb-account-avatar { display: flex; width: 90px; height: 90px; margin: 0 auto 14px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; font-size: 36px; font-weight: 400; }
.hb-account-name { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.hb-account-email { font-size: 10px; color: #ff6900; overflow-wrap: anywhere; }
.hb-account-home { display: inline-flex; justify-content: center; align-items: center; min-height: 28px; padding: 4px 22px; margin-top: 9px; background: #ff6900; color: #fff; font-size: 11px; font-weight: 600; border-radius: 30px; }
.hb-account-nav > a { min-height: 74px; display: flex; align-items: center; gap: 10px; padding: 12px 15px; font-size: 11px; line-height: 1.35; text-transform: uppercase; border-bottom: 1px solid #f5f5f5; transition: background .15s; }
.hb-account-nav > a:hover, .hb-account-nav > a[aria-current] { background: #fff8f2; color: #d65500; }
.hb-account-nav-icon { display: flex; width: 42px; height: 42px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; background: #f8f8f8; color: #ff6900; font-size: 22px; }
.hb-account-nav > .hb-account-logout { min-height: 52px; justify-content: center; border: 0; }
.hb-account-logout > i { font-size: 22px; }
.hb-account-dashboard { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; }
.hb-account-track, .hb-account-tile { min-height: 111px; border-radius: 14px; background: #fff; box-shadow: 0 8px 18px -14px #0002; }
.hb-account-track { grid-column: span 3; padding: 16px 18px; }
/* Hesap menüsü (page builder 'Kaydırırken sabit kalsın') */
@media (min-width: 601px) { .hb-account-sticky { position: sticky; top: 7.5rem; } }
.hb-account-track > label { display: block; margin-bottom: 14px; font-size: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.hb-account-track-input { display: flex; border: 1px solid #ededed; border-radius: 14px; height: 39px; }
.hb-account-track-input:focus-within { border-color: #ff6900; }
.hb-account-track-input input { min-width: 0; width: 100%; background: transparent; border: 0; padding: 0 14px; font-size: 12px; border-radius: 15px; }
.hb-account-track-input input:focus { outline: none; box-shadow: none; }
.hb-account-track-input button { padding: 0 14px; border-radius: 14px; background: #ff6900; color: #fff; font-size: 11px; font-weight: 600; }
.hb-account-tile { position: relative; display: flex; flex-direction: column; gap: 17px; align-items: center; justify-content: center; padding: 18px 9px; text-align: center; text-transform: uppercase; font-size: 11px; line-height: 1.4; letter-spacing: .15px; transition: box-shadow .15s, transform .15s; }
.hb-account-tile:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px #0003; }
.hb-account-tile-icon { display: flex; height: 42px; width: 42px; align-items: center; justify-content: center; color: #ff6900; font-size: 23px; background: #f8f8f8; border-radius: 50%; }
.hb-account-personal { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.hb-account-stack { display: grid; gap: 26px; }
.hb-account-panel { padding: 30px 27px 27px; background: #fff; border-radius: 16px; box-shadow: 0 8px 18px -14px #0002; min-width: 0; }
.hb-account-panel-narrow { max-width: 540px; }
.hb-account-panel-title { position: relative; border-bottom: 1px solid #eee; padding-bottom: 16px; margin-bottom: 15px; font-size: 13px; line-height: 18px; font-weight: 650; }
.hb-account-panel-title::after { content: ''; position: absolute; bottom: -1px; left: 0; height: 2px; width: 66px; background: #ff6900; }
.hb-account-form { display: grid; gap: 20px; }
.hb-account-field { position: relative; min-width: 0; }
.hb-account-field > label { position: absolute; top: -8px; left: 12px; z-index: 1; background: #fff; padding: 0 5px; font-size: 11px; font-weight: 400; color: #6b7280; }
.hb-account-field > label > span { color: #ed3535; }
.hb-account-field > input, .hb-account-field > select, .hb-account-field > textarea { width: 100%; min-height: 45px; border: 1px solid #eaeaea; border-radius: 14px; background: #fff; padding: 12px 14px; color: #374151; font-size: 12px; line-height: 1.5; transition: border-color .15s; }
.hb-account-field > textarea { resize: vertical; min-height: 85px; }
.hb-account-field > select { padding-right: 28px; }
.hb-account-field > input:focus, .hb-account-field > select:focus, .hb-account-field > textarea:focus { outline: none; border-color: #ff6900; box-shadow: 0 0 0 3px #ff690010; }
.hb-account-field > .border-red-400 { border-color: #f87171; }
.hb-account-field > [data-hb-error] { margin: 6px 3px 0; }
.hb-account-password > input { padding-right: 54px; }
.hb-account-password > button { position: absolute; right: 1px; top: 1px; width: 46px; height: 43px; border-left: 1px solid #eee; border-radius: 0 13px 13px 0; background: #f8f8f8; color: #77818d; font-size: 18px; }
.hb-account-password-help { font-size: 11px; color: #6b7280; margin-top: -5px; }
.hb-account-password-help summary { cursor: pointer; }
.hb-account-password-help ul { display: grid; gap: 6px; padding-top: 10px; }
.hb-account-button { display: inline-flex; justify-content: center; align-items: center; gap: 4px; padding: 10px 15px; min-height: 38px; border-radius: 13px; font-size: 12px; font-weight: 600; line-height: 1.4; text-align: center; transition: filter .15s; }
.hb-account-button:hover, .hb-account-home:hover { filter: brightness(.96); }
.hb-account-button-primary { background: #ff6900; color: #fff; min-height: 44px; width: 100%; text-transform: uppercase; font-size: 14px; }
.hb-account-button-primary:disabled { opacity: .6; cursor: wait; }
.hb-account-button-muted { background: #ececec; color: #374151; }
.hb-account-button-dark { background: #2c2a29; color: #fff; }
.hb-account-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.7; cursor: pointer; }
.hb-account-check input[type=checkbox] { accent-color: #ff6900; margin-top: 4px; flex-shrink: 0; width: 14px; height: 14px; }
.hb-account-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
/* Sayfa başlığı: turuncu ikon dairesi + başlıktan sağdaki düğmeye (yoksa satır sonuna) uzanan turuncu çizgi (ödeme sayfası başlıklarıyla aynı) */
.hb-account-heading h1 { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 650; }
.hb-account-heading h1::after { content: ''; flex: 1; min-width: 24px; height: 1px; margin-left: 6px; background: #ff6900; }
.hb-account-heading h1 > i { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #ff6900; color: #fff; font-size: 22px; }
.hb-account-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 26px 0 14px; font-size: 12px; }
.hb-account-addresses { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.hb-account-address { background: #fff; border-radius: 16px; box-shadow: 0 8px 18px -14px #0002; overflow: hidden; }
.hb-account-address-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #eee; }
.hb-account-address-head h2 { font-size: 12px; overflow-wrap: anywhere; }
.hb-account-address-actions { display: flex; gap: 7px; flex-shrink: 0; }
.hb-account-address-actions .hb-account-button { padding: 6px 10px; min-height: 30px; font-size: 11px; }
.hb-account-address-body { padding: 18px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.hb-account-default { display: inline-flex; gap: 4px; margin-top: 12px; font-size: 11px; color: #cc5200; }
.hb-account-address-form { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 28px; }
.hb-account-field-wide { grid-column: 1 / -1; }
.hb-account-field-wide:empty { display: none; }
.hb-account-orders { display: grid; gap: 14px; }
.hb-account-order { display: grid; grid-template-columns: 28px 1.1fr 1fr 1.5fr 1.2fr auto; align-items: center; gap: 13px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 8px 18px -14px #0002; font-size: 11px; }
.hb-account-order > div { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.hb-account-order-number { display: flex; width: 28px; height: 28px; border: 1px solid #eee; border-radius: 50%; align-items: center; justify-content: center; }
.hb-account-order-label { font-weight: 650; margin-bottom: 2px; }
.hb-account-order-status { color: #348241; }
.hb-account-order-total { color: #ef6500; }
.hb-account-order > .hb-account-button { min-height: 32px; padding: 7px 10px; font-size: 11px; }
.hb-account-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; }
.hb-account-empty { background: #fff; border-radius: 16px; padding: 55px 20px; text-align: center; font-size: 13px; color: #6b7280; }
.hb-account-empty > i { display: block; margin-bottom: 12px; font-size: 40px; color: #ff6900; }
.hb-account a:focus-visible, .hb-account button:focus-visible, .hb-account summary:focus-visible { outline: 2px solid #ff6900; outline-offset: 3px; }
/* Personal-details reference: compact consent rows and labels inside password fields. */
.hb-account-personal .hb-account-form { gap: 14px; }
.hb-account-personal .hb-account-button-primary { min-height: 51px; }
.hb-account-password > label { top: 13px; left: 9px; background: transparent; color: #374151; font-size: 12px; line-height: 18px; pointer-events: none; }
.hb-account-password:has(> input:focus) > label,
.hb-account-password:has(> input:not(:placeholder-shown)) > label { opacity: 0; }
#form-password .hb-account-password-help { display: none; }
#form-password:focus-within .hb-account-password-help { display: block; }
.hb-account-consent .hb-account-check { display: block; font-size: 10px; line-height: 16px; }
.hb-account-consent .hb-account-check input[type=checkbox] { display: inline-block; width: 12px; height: 12px; margin: 0 4px 0 0; vertical-align: -2px; }
.hb-account-consent .hb-account-check a { color: inherit; text-decoration: underline; font-weight: 600; }
.hb-account-personal .hb-account-consent .hb-account-button-primary { min-height: 38px; padding: 8px 15px; }
.hb-account-membership textarea[name=address] { min-height: 135px; }
.hb-profile-identity > input { padding-right: 150px; }
.hb-profile-identity > input:disabled { color: #9ca3af; background: #fafafa; }
.hb-profile-identity > .hb-profile-nationality { top: 0; right: 13px; left: auto; height: 45px; display: flex; align-items: center; gap: 7px; background: transparent; color: #374151; font-size: 9px; padding: 0; cursor: pointer; }
.hb-profile-nationality > input { width: 12px; height: 12px; accent-color: #ff6900; }
.hb-profile-phone > label { left: 47px; }
.hb-profile-phone > input { padding-left: 49px; }
.hb-profile-country { position: absolute; left: 1px; top: 1px; width: 36px; height: 43px; display: flex; align-items: center; justify-content: center; background: #f8f8f8; border-right: 1px solid #eee; border-radius: 13px 0 0 13px; font-size: 17px; }
@media (max-width: 1100px) {
    .hb-account-dashboard { gap: 18px; }
  .hb-account-panel { padding: 25px 20px; }
  .hb-account-personal { gap: 20px; }
  .hb-account-order { grid-template-columns: 24px 1fr 1fr; gap: 12px; }
  .hb-account-order > .hb-account-button { grid-column: 3; }
  .hb-account-order > div:nth-child(4) { grid-column: 2; }
  .hb-account-addresses { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .hb-account-personal { grid-template-columns: 1fr; }
  .hb-account-dashboard { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .hb-account-track { grid-column: span 2; }
  .hb-account-nav > a { padding: 12px 10px; gap: 6px; font-size: 10px; }
  .hb-account-nav-icon { width: 34px; height: 34px; }
}
@media (max-width: 600px) {
  .hb-account { padding-top: 12px; }
      .hb-account-profile { display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 6px; padding: 12px; }
  .hb-account-avatar { width: 60px; height: 60px; margin: 0; flex-shrink: 0; font-size: 28px; }
  .hb-account-home { margin-top: 5px; min-height: 26px; }
  .hb-account-nav { display: grid; grid-template-columns: 1.15fr 1fr .75fr; }
  .hb-account-nav > a { min-height: 60px; justify-content: center; padding: 8px 6px; border-top: 1px solid #f5f5f5; border-bottom: 0; }
  .hb-account-nav > .hb-account-logout { min-height: 60px; border-top: 1px solid #f5f5f5; }
  .hb-account-nav-icon { width: 28px; height: 32px; font-size: 20px; }
  .hb-account-heading h1 { font-size: 18px; }
  .hb-account-heading h1 > i { width: 32px; height: 32px; font-size: 20px; }
  .hb-account-address-form { grid-template-columns: 1fr; }
  .hb-account-toolbar { align-items: flex-start; flex-direction: column; }
  .hb-account-panel { padding: 25px 20px; }
  .hb-account-address-head { flex-wrap: wrap; }
  .hb-account-order { gap: 10px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-account * { transition: none; }
  .hb-account-tile:not(:disabled):hover { transform: none; }
}

/* Address billing details use the same floating-field layout as membership. */
.hb-account-business-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.hb-account-identity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.hb-account-address-form [hidden] { display: none !important; }
@media (max-width: 575px) {
  .hb-account-business-fields, .hb-account-identity-row { grid-template-columns: 1fr; }
}
/* Ongoing orders: full-width delivery timeline. */
.hb-order-progress { display: grid; gap: 20px; min-width: 0; margin-top: 8px; }
.hb-order-progress > h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 650; }
.hb-order-progress > h2::before { content: ''; flex-shrink: 0; width: 4px; height: 20px; border-radius: 4px; background: #ff6900; }
.hb-progress-card { background: #fff; border-radius: 16px; padding: 25px; box-shadow: 0 8px 18px -14px #0002; min-width: 0; }
.hb-progress-header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hb-progress-header > div { margin-right: auto; }
.hb-progress-header h3 { font-size: 15px; font-weight: 650; }
.hb-progress-header p { font-size: 11px; color: #78818e; margin-top: 5px; }
.hb-progress-status { color: #c95000; background: #fff3e9; border-radius: 20px; padding: 6px 12px; font-size: 11px; }
.hb-progress-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 22px 0 28px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.hb-progress-product { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px; border: 1px solid #f0f0f0; border-radius: 12px; background: #fff; }
.hb-progress-product img, .hb-progress-product-icon { width: 56px; height: 56px; aspect-ratio: 1; border-radius: 8px; flex-shrink: 0; object-fit: contain; background: #fff; border: 1px solid #f3f3f3; }
.hb-progress-product-icon { display: grid; place-items: center; font-size: 24px; color: #ff6900; background: #fafafa; }
/* Sipariş detayı: ürün satırındaki kare küçük görsel (account/order_info.twig) */
.hb-order-thumb { flex-shrink: 0; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #f0f0f0; border-radius: 10px; background: #fff; overflow: hidden; color: #ff6900; font-size: 24px; }
.hb-order-thumb img { width: 100%; height: 100%; object-fit: contain; }
.hb-progress-product > div { display: grid; gap: 5px; min-width: 0; }
.hb-progress-product strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.hb-progress-product span:not(.hb-progress-product-icon) { color: #7a818b; font-size: 11px; }
.hb-progress-steps { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); list-style: none; padding: 0; margin: 0 0 26px; }
.hb-progress-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; padding: 0 5px; color: #8a919a; min-width: 0; }
.hb-progress-steps li:not(:last-child)::after { content: ''; position: absolute; top: 21px; left: calc(50% + 23px); width: calc(100% - 46px); height: 2px; background: #e9edf0; }
.hb-progress-steps li.is-done::after { background: #ff6900; }
.hb-progress-step-icon { display: grid; place-items: center; border-radius: 50%; width: 44px; height: 44px; background: #f5f6f7; font-size: 21px; margin-bottom: 5px; }
.hb-progress-steps .is-done .hb-progress-step-icon { background: #fff0e5; color: #ff6900; }
.hb-progress-steps .is-current .hb-progress-step-icon { color: #fff; background: #ff6900; box-shadow: 0 0 0 5px #fff2e8; }
.hb-progress-steps strong { font-size: 10px; font-weight: 550; line-height: 1.5; }
.hb-progress-steps .is-current strong, .hb-progress-steps .is-done strong { color: #374151; }
.hb-progress-here { color: #d85800; font-size: 9px; font-weight: 600; }
.hb-progress-steps time { font-size: 9px; color: #848b94; }
.hb-progress-shipment { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; padding: 18px; border-radius: 12px; background: #fafafa; }
.hb-progress-shipment > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hb-progress-shipment > div > i { font-size: 24px; color: #ff6900; }
.hb-progress-shipment > div > div { display: grid; gap: 3px; min-width: 0; }
.hb-progress-shipment span, .hb-progress-shipment small { font-size: 10px; color: #7a818b; }
.hb-progress-shipment strong { font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.hb-progress-shipment > a { width: auto; margin-left: auto; min-height: 36px; font-size: 11px; text-transform: none; }
@media (max-width: 800px) {
  .hb-progress-card { padding: 20px; }
  .hb-progress-steps { grid-template-columns: 1fr; gap: 0; }
  .hb-progress-steps li { display: grid; grid-template-columns: 44px minmax(0,1fr); text-align: left; align-items: center; column-gap: 16px; padding: 0 0 22px; }
  .hb-progress-step-icon { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .hb-progress-steps strong, .hb-progress-here, .hb-progress-steps time { grid-column: 2; }
  .hb-progress-steps strong { font-size: 12px; }
  .hb-progress-steps li:not(:last-child)::after { left: 21px; top: 47px; width: 2px; height: calc(100% - 50px); }
  .hb-progress-header { gap: 12px; }
  .hb-progress-shipment > a { margin-left: 0; }
}

/* Hediye çeklerim (account/gift) */
.hb-gift { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; border-left: 4px solid #ff6900; }
.hb-gift-value { font-size: 26px; font-weight: 700; line-height: 1.1; color: #ff6900; }
.hb-gift-name { margin-top: 4px; font-size: 14px; font-weight: 600; color: #1f2937; }
.hb-gift-meta { margin-top: 8px; display: grid; gap: 2px; font-size: 12px; color: #6b7280; }
.hb-gift-side { display: grid; justify-items: end; gap: 8px; }
.hb-gift-code { padding: 6px 12px; border: 1px dashed #ff6900; border-radius: 8px; background: #fff7ed; font: 600 14px/1 ui-monospace, monospace; letter-spacing: .08em; }
.hb-gift-state { font-size: 11px; font-weight: 600; color: #16a34a; }
.hb-gift-used { opacity: .55; border-left-color: #9ca3af; }
.hb-gift-used .hb-gift-value { color: #6b7280; }
.hb-gift-used .hb-gift-state { color: #6b7280; }
@media (max-width: 600px) {
  .hb-gift { grid-template-columns: minmax(0, 1fr); }
  .hb-gift-side { justify-items: start; }
}

/* Havale bildirimi (account/transfer) */
.hb-transfer-bank { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #f8f8f8; font-size: 13px; line-height: 1.6; white-space: pre-line; color: #4b5563; }
.hb-transfer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hb-transfer-state { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #fff7ed; color: #c2410c; }
.hb-transfer-approved { background: #f0fdf4; color: #15803d; }
.hb-transfer-rejected { background: #fef2f2; color: #b91c1c; }
@media (max-width: 600px) { .hb-transfer-grid { grid-template-columns: minmax(0, 1fr); } }
