/* =========================================================
   Glorya Teknoloji - Mağaza: sepet, üyelik, sipariş
   ========================================================= */
.header-icons { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; color: var(--navy); font-weight: 600; font-size: .95rem; }
.icon-btn i { font-size: 1.35rem; }
.icon-btn:hover { background: var(--soft); color: var(--brand); }
.cart-count { position: absolute; top: 2px; left: 26px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--gradient); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.cart-btn { padding-left: 12px; }
.cart-btn .d-xl-inline { margin-left: 4px; }
@media (max-width: 991px) {
    .icon-btn { padding: 8px; }
}
@media (max-width: 420px) {
    .brand-text { font-size: 1.05rem; }
    .brand-mark { width: 36px; height: 36px; font-size: 1.15rem; }
    .brand { gap: 8px; }
    .brand-logo { height: 34px; max-width: 150px; }
}
.flash-area { padding-top: 16px; }
.flash-area .alert { border-radius: 14px; margin-bottom: 8px; }

.badge-out { background: #64748b; }

.stock-warn { color: #ea580c; font-weight: 600; margin: -10px 0 12px; }
.buy-box { display: flex; gap: 10px; margin-bottom: 14px; }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; flex-shrink: 0; }
.qty-input button { border: 0; background: transparent; width: 42px; height: 48px; font-size: 1.1rem; color: var(--navy); }
.qty-input button:hover { background: var(--soft); }
.qty-input input { width: 46px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input input:focus { outline: none; }
.qty-sm button { width: 32px; height: 38px; }
.qty-sm input { width: 36px; }

.checkout-steps { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.checkout-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; font-weight: 600; }
.checkout-steps li span { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: .8rem; }
.checkout-steps li.current { color: var(--brand); border-color: var(--brand); }
.checkout-steps li.current span { background: var(--gradient); color: #fff; }
.checkout-steps li.done { color: #16a34a; }
.checkout-steps li.done span { background: #dcfce7; }

.cart-box, .form-card, .summary-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.form-card { padding: 24px; }
.form-card h5, .summary-box h5 { font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.step-no { width: 28px; height: 28px; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto auto auto; align-items: center; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
/* Sepetten çıkarılan satır: sağa kayarak kapanır */
.cart-item { transition: opacity .3s, transform .3s, max-height .35s .1s, padding .35s .1s, border-width .35s .1s; }
.cart-item.is-removing { opacity: 0; transform: translateX(32px); max-height: 0 !important; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; overflow: hidden; pointer-events: none; }
.cart-img { width: 88px; height: 88px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; }
.cart-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-name { display: block; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.cart-name:hover { color: var(--brand); }
.cart-line { font-weight: 800; color: var(--navy); min-width: 110px; text-align: right; white-space: nowrap; }
.mini-item strong, .sum-row strong { white-space: nowrap; }
.cart-remove { border: 0; background: transparent; color: #94a3b8; font-size: 1.1rem; width: 36px; height: 36px; border-radius: 10px; }
.cart-remove:hover { background: #fef2f2; color: #dc2626; }
@media (max-width: 767px) {
    .cart-item { grid-template-columns: 72px auto 1fr auto; gap: 10px 12px; padding: 14px; }
    .cart-img { width: 72px; height: 72px; grid-row: span 2; }
    .cart-info { grid-column: 2 / 5; }
    .cart-line { min-width: 0; text-align: right; }
}

.summary-box { padding: 22px; }
.col-lg-4 > .summary-box:last-of-type, .col-lg-4 > #cartTotals { position: sticky; top: 100px; }
#cartForm .cart-line { transition: opacity .15s; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.sum-row strong { color: var(--navy); }
.sum-total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.2rem; color: var(--navy); }
.sum-total strong { font-size: 1.4rem; font-weight: 800; }
.free-ship { background: #ecfdf5; color: #047857; border-radius: 12px; padding: 10px 14px; font-size: .88rem; margin: 6px 0; }
.mini-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.mini-item:last-of-type { border-bottom: 0; }
.mini-item img { width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: #fff; }
.mini-item small { display: block; color: var(--muted); }
.mini-item a { color: var(--navy); font-weight: 600; }

.pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pay-option { cursor: pointer; position: relative; }
.pay-option input { position: absolute; opacity: 0; }
.pay-body { display: block; border: 2px solid var(--line); border-radius: 14px; padding: 18px; transition: all .2s; height: 100%; }
.pay-body i { font-size: 1.6rem; color: var(--brand); display: block; margin-bottom: 6px; }
.pay-body strong { display: block; color: var(--navy); }
.pay-body small { color: var(--muted); }
.pay-option input:checked + .pay-body { border-color: var(--brand); background: rgba(37, 99, 235, .05); box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
.pay-option input:focus-visible + .pay-body { outline: 2px solid var(--brand); }

.success-box { display: flex; gap: 18px; align-items: center; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: var(--radius); padding: 24px; }
.success-box > i { font-size: 3rem; color: #10b981; }
.success-box h2 { font-size: 1.4rem; color: #065f46; margin-bottom: 4px; }
.success-box p { margin: 0; color: #047857; }
.bank-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 22px; }
.pay-mini-cards { display: flex; gap: 5px; margin-top: 8px; }
.pay-mini-cards img { width: 38px; height: 24px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }
.checkout-secure { margin-top: 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-secure > span { font-size: .9rem; color: var(--muted); }
.checkout-secure > span i { color: #16a34a; margin-right: 4px; }
.paytr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; overflow: hidden; }
.paytr-box iframe { display: block; width: 100%; min-height: 600px; border: 0; }
.bank-info { background: #fff; border-radius: 10px; padding: 14px; margin: 0; font-family: inherit; font-size: 1rem; font-weight: 600; white-space: pre-wrap; color: var(--navy); }

.auth-section { background: linear-gradient(180deg, var(--soft), #fff); min-height: 70vh; }
.auth-box { max-width: 480px; margin: 0 auto; background: #fff; border-radius: 22px; padding: 40px 36px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-icon, .empty-icon { width: 68px; height: 68px; border-radius: 20px; background: var(--gradient); color: #fff; display: grid; place-items: center; font-size: 1.9rem; margin: 0 auto 16px; box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .7); }
.empty-icon { width: 84px; height: 84px; font-size: 2.3rem; border-radius: 50%; }
@media (max-width: 575px) { .auth-box { padding: 28px 20px; } }

.filter-list .no-badge { background: none !important; padding: 0 !important; font-size: inherit !important; color: inherit !important; }
.filter-logout { width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 12px; border-radius: 10px; color: #dc2626; }
.filter-logout:hover { background: #fef2f2; }
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-row { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1fr 1.1fr 20px; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; color: var(--text); transition: all .2s; }
.order-row:hover { box-shadow: var(--shadow); border-color: transparent; }
.order-row small { display: block; color: var(--muted); font-size: .75rem; }
@media (max-width: 767px) { .order-row { grid-template-columns: 1fr 1fr; } .order-row > i { display: none; } }
.legal-text { line-height: 1.8; }

/* Ödeme: fatura tipi, banka seçimi, IBAN kartı */
.seg-toggle { display: inline-flex; background: var(--soft, #f1f5f9); border-radius: 12px; padding: 4px; gap: 4px; }
.seg-toggle label { cursor: pointer; position: relative; }
.seg-toggle input { position: absolute; opacity: 0; }
.seg-toggle span { display: block; padding: 8px 18px; border-radius: 9px; font-weight: 600; color: var(--muted); transition: all .2s; }
.seg-toggle input:checked + span { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.seg-toggle input:focus-visible + span { outline: 2px solid var(--brand); }
fieldset[hidden] { display: none !important; }
.bank-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.bank-option { cursor: pointer; position: relative; }
.bank-option input { position: absolute; opacity: 0; }
.bank-option-body { display: block; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; height: 100%; transition: all .2s; }
.bank-option-body strong { display: block; color: var(--navy); }
.bank-option-body small { display: block; color: var(--muted); }
.bank-option input:checked + .bank-option-body { border-color: var(--brand); background: rgba(37, 99, 235, .05); box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
.bank-option input:focus-visible + .bank-option-body { outline: 2px solid var(--brand); }
.bank-iban { display: block; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92rem; letter-spacing: .02em; color: var(--navy); margin-top: 4px; word-break: break-all; }
.bank-card { background: #fff; border-radius: 12px; padding: 16px 18px; }
.bank-card-name { font-weight: 800; color: var(--navy); font-size: 1.05rem; margin-bottom: 8px; }
.bank-card-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.bank-card-row > span { color: var(--muted); min-width: 52px; }
.bank-card-row .bank-iban { margin: 0; font-size: 1rem; }

/* Renk / beden seçimi */
.variant-picker { margin: -6px 0 18px; }
.vp-group + .vp-group { margin-top: 14px; }
.vp-label { font-size: .92rem; color: var(--muted); margin-bottom: 8px; }
.vp-label strong { color: var(--navy); font-weight: 600; }
.vp-options { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-opt { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font-size: .92rem; font-weight: 500; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.vp-opt:hover { border-color: #94a3b8; }
.vp-opt.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); color: var(--navy); font-weight: 600; }
.vp-opt.is-out { color: #94a3b8; background: var(--soft); text-decoration: line-through; }
.vp-opt.is-out .color-dot { opacity: .45; }
.vp-size { min-width: 48px; justify-content: center; }
.vp-hint { margin: 10px 0 0; font-size: .88rem; color: #dc2626; font-weight: 500; }
.color-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(15, 23, 42, .2); flex-shrink: 0; }
.variant-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--text); background: var(--soft); border-radius: 6px; padding: 1px 8px; margin: 2px 0 4px; }
.variant-chip .color-dot { width: 12px; height: 12px; }
.buy-box .is-waiting { opacity: .75; }
.shake { animation: vp-shake .35s; }
@keyframes vp-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
