/* ==========================================================================
   MAĞAZA — Hesabım, zaman çizelgesi, mesajlaşma, bildirim, kimlik sayfaları.
   ========================================================================== */

/* ===== Hesabım ========================================================== */
.k-account-nav { border: 1px solid var(--k-line); border-radius: var(--k-radius); background: #fff; overflow: hidden; position: sticky; top: calc(var(--k-header-h) + 16px); }
.k-account-nav a { display: flex; align-items: center; gap: .7rem; padding: .72rem 1.05rem; font-size: 14px; color: var(--k-ink-2); border-bottom: 1px solid var(--k-line); }
.k-account-nav a:last-child { border-bottom: 0; }
.k-account-nav a i { width: 17px; text-align: center; font-size: 13px; color: var(--k-muted); }
.k-account-nav a:hover { background: var(--k-surface-2); color: var(--k-ink); }
.k-account-nav a.active { background: var(--k-ink); color: #fff; font-weight: 500; }
.k-account-nav a.active i { color: #fff; }

.k-stat { border: 1px solid var(--k-line); border-radius: var(--k-radius); background: #fff; padding: 1.15rem; height: 100%; }
.k-stat strong { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.k-stat span { font-size: 13px; color: var(--k-muted); }

.k-order-card { border: 1px solid var(--k-line); border-radius: var(--k-radius); background: #fff; overflow: hidden; }
.k-order-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding: .95rem 1.15rem; background: var(--k-surface-2); border-bottom: 1px solid var(--k-line); }
.k-order-thumbs img { width: 54px; height: 68px; object-fit: cover; border-radius: 4px; background: var(--k-surface-2); }

/* Zaman çizelgesi */
.k-timeline { list-style: none; padding: 0; margin: 0; }
.k-timeline li { position: relative; padding: 0 0 1.4rem 1.9rem; }
.k-timeline li::before {
  content: ''; position: absolute; left: 4px; top: 4px; width: 11px; height: 11px;
  border-radius: 50%; background: #fff; border: 2px solid var(--k-line-2);
}
.k-timeline li::after { content: ''; position: absolute; left: 9px; top: 17px; bottom: 0; width: 1px; background: var(--k-line); }
.k-timeline li:last-child::after { display: none; }
.k-timeline li.done::before { background: var(--k-ink); border-color: var(--k-ink); }
.k-timeline li.done::after { background: var(--k-ink); opacity: .18; }
.k-timeline strong { display: block; font-size: 14px; font-weight: 500; }
.k-timeline small { color: var(--k-muted); font-size: 12.5px; }

/* Mesajlaşma */
.k-msg { max-width: 78%; padding: .75rem 1rem; border-radius: var(--k-radius); font-size: 13.5px; }
.k-msg-store { background: var(--k-surface-2); }
.k-msg-customer { background: var(--k-ink); color: #fff; margin-left: auto; }
.k-msg small { display: block; font-size: 11.5px; opacity: .65; margin-top: .35rem; }

/* Bildirim */
.k-notif { display: flex; gap: .95rem; padding: 1.05rem 1.15rem; border-bottom: 1px solid var(--k-line); }
.k-notif:last-child { border-bottom: 0; }
.k-notif.unread { background: var(--k-highlight); }
.k-notif.unread .k-notif-icon { background: var(--k-ink); color: #fff; }
.k-notif-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--k-surface-2); color: var(--k-ink-2); display: flex; align-items: center; justify-content: center; flex: 0 0 36px; font-size: 14px; }

/* ===== Kimlik sayfaları ================================================ */
.k-auth { max-width: 440px; margin: 0 auto; }
.k-auth-card { background: #fff; border: 1px solid var(--k-line); border-radius: var(--k-radius-lg); padding: clamp(1.6rem, 4vw, 2.5rem); box-shadow: var(--k-shadow); }
/* Google / Facebook ile giriş düğmeleri ve formla aralarındaki "veya" ayıracı (inc/components/b2c_social_login.php) */
.k-social-btn { display: flex; align-items: center; justify-content: center; }
.k-auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--k-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.k-auth-divider::before, .k-auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--k-line); }
.k-divider { display: flex; align-items: center; gap: .85rem; color: var(--k-muted); font-size: 12.5px; margin: 1.3rem 0; }
.k-divider::before, .k-divider::after { content: ''; flex: 1; height: 1px; background: var(--k-line); }
.btn-google { background: #fff; border: 1px solid var(--k-line-2); color: var(--k-ink); width: 100%; display: flex; align-items: center; justify-content: center; gap: .6rem; }
.btn-google:hover { background: var(--k-surface-2); }
.k-strength { height: 4px; background: var(--k-surface-2); border-radius: 99px; overflow: hidden; margin-top: .5rem; }
.k-strength > span { display: block; height: 100%; width: 0; transition: width .3s ease, background .3s ease; }
.k-strength > span[data-score="0"] { background: var(--k-line); }
.k-strength > span[data-score="1"] { width: 25%; background: var(--k-sale); }
.k-strength > span[data-score="2"] { width: 50%; background: var(--k-warning); }
.k-strength > span[data-score="3"] { width: 75%; background: var(--k-info); }
.k-strength > span[data-score="4"] { width: 100%; background: var(--k-success); }

/* Durum ikonu (e-posta doğrulama, şifre sıfırlama) */
.k-status-icon { width: 70px; height: 70px; border-radius: 50%; font-size: 26px; }
.k-status-icon.is-success { background: color-mix(in srgb, var(--k-success) 10%, transparent); color: var(--k-success); }
.k-status-icon.is-warning { background: color-mix(in srgb, var(--k-warning) 12%, transparent); color: var(--k-warning); }
.k-status-icon.is-sale { background: color-mix(in srgb, var(--k-sale) 10%, transparent); color: var(--k-sale); }

/* Siparişlerim: önizlemeye sığmayan ürün sayısı; iade fotoğrafı */
.k-thumb-more { width: 54px; height: 68px; border: 1px dashed var(--k-line-2); border-radius: 4px; font-size: 12.5px; }
.k-return-image { width: 80px; height: 80px; border-radius: var(--k-radius-sm); background: var(--k-surface-2); }
.k-return-image img { width: 100%; height: 100%; object-fit: cover; }
