/* Karmin Lastik — panel tarafı (giriş ekranı; yönetim/bayi/plasiyer panelleri Faz 1+ ile genişler) */
body.auth { background: var(--g-50); }

.login { min-height: 100vh; min-height: 100dvh; display: grid; }
@media (min-width: 1024px) { .login { grid-template-columns: minmax(420px, 1fr) minmax(480px, 1.1fr); } }

/* Sol tanıtım paneli */
.login__side { display: none; position: relative; overflow: hidden; isolation: isolate; color: #fff;
    background: radial-gradient(120% 90% at 0% 0%, #2a2d34 0%, var(--asphalt) 45%, #08090b 100%); }
@media (min-width: 1024px) { .login__side { display: flex; align-items: center; } }
.login__side::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6;
    background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 22px); }
.login__side::after { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; left: -520px; bottom: -560px; border-radius: 50%;
    border: 12px solid transparent; border-right-color: var(--red); border-top-color: rgba(227, 20, 27, .45); rotate: 20deg; }
.login__side-in { padding: 64px clamp(40px, 6vw, 88px); max-width: 640px; }
.login__kl { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--red);
    font: 800 italic 26px/1 var(--display); letter-spacing: -.02em; box-shadow: 0 16px 40px -12px rgba(227, 20, 27, .8); }
.login__side h2 { margin: 28px 0 34px; color: #fff; font: 800 clamp(34px, 3.4vw, 48px)/1.05 var(--display); }
.login__side h2 em { font-style: italic; color: #FF4B51; }
.login__feats { display: grid; gap: 18px; }
.login__feats li { display: flex; gap: 14px; align-items: flex-start; }
.login__feats li > span { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #FF5A5F; }
.login__feats b { display: block; font-size: 15px; }
.login__feats small { display: block; color: #9AA0A9; font-size: 13.5px; margin-top: 2px; }
.login__tire { position: absolute; z-index: -1; right: -180px; top: -160px; width: 520px; height: 520px; color: rgba(255, 255, 255, .06); animation: spin 60s linear infinite; }

/* Sağ form */
.login__main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px 24px; gap: 24px; }
.login__card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--g-200); border-radius: var(--r-xl); padding: 28px 22px; box-shadow: var(--sh-2); display: grid; gap: 22px; }
@media (min-width: 480px) { .login__card { padding: 40px 38px; } }
.login__logo { justify-self: center; }
.login__logo img { width: 210px; height: auto; }
.login__head { text-align: center; }
.login__head h1 { font: 800 32px/1.1 var(--display); }
.login__head p { color: var(--g-600); margin-top: 4px; }
.login__form { display: grid; gap: 16px; }
.field__row { display: flex; justify-content: space-between; align-items: center; }
.field__row a { font-weight: 600; color: var(--red); letter-spacing: 0; }
.field__row a:hover { text-decoration: underline; }

.input-ic { position: relative; }
.input-ic > .ic { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--g-400); pointer-events: none; transition: color .2s; }
.input-ic input { padding-left: 44px; min-height: 52px; }
.input-ic:focus-within > .ic { color: var(--red); }
.input-ic__btn { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--g-500); }
.input-ic__btn:hover { background: var(--g-100); color: var(--ink); }
.input-ic__btn .ic { width: 18px; height: 18px; }
.input-ic:has(.input-ic__btn) input { padding-right: 52px; }

.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; cursor: pointer; user-select: none; justify-self: start; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--g-300); display: grid; place-items: center; transition: all .2s; }
.check__box .ic { width: 14px; height: 14px; stroke-width: 3.2; color: #fff; opacity: 0; transform: scale(.6); transition: all .2s var(--ease); }
.check input:checked + .check__box { background: var(--red); border-color: var(--red); }
.check input:checked + .check__box .ic { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { box-shadow: var(--ring); }

.login__alt { display: grid; justify-items: center; gap: 4px; padding-top: 18px; border-top: 1px solid var(--g-100); font-size: 14px; color: var(--g-600); }
.login__foot { display: flex; gap: 18px; font-size: 13px; color: var(--g-500); }
.login__foot a:hover { color: var(--ink); }

/* Yakında sayfası */
.soon { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
    background: radial-gradient(80% 60% at 50% 0%, var(--red-50), var(--g-50) 70%); }
.soon__card { max-width: 560px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.soon__card img { width: 260px; height: auto; margin-bottom: 18px; }
.soon__card h1 { font: 800 clamp(32px, 6vw, 48px)/1.05 var(--display); }
.soon__card p { color: var(--g-600); margin-bottom: 10px; }

/* Tek giriş sayfası: site düzeni (header/footer) içinde gömülü sürüm */
.login--embedded { min-height: 0; margin: 28px 0 56px; border-radius: 28px; overflow: hidden; border: 1px solid var(--g-200); background: var(--g-50); }
.login--embedded .login__main { padding: 40px 16px; }
.login--embedded .login__card { box-shadow: none; }
.login--embedded .login__side::after { left: auto; right: -520px; rotate: 160deg; }
@media (min-width: 1024px) { .login--embedded { grid-template-columns: 1.1fr 1fr; } }
@media (max-width: 1023px) {
    .login--embedded { margin: 12px 0 28px; border: 0; background: transparent; }
    .login--embedded .login__main { padding: 0; }
    .login--embedded .login__card { padding: 24px 18px; }
}
.login__or { display: flex; align-items: center; gap: 12px; color: var(--g-400); font-size: 13px; font-weight: 600; margin: -6px 0; }
.login__or::before, .login__or::after { content: ""; flex: 1; height: 1px; background: var(--g-200); }
.login__alt-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }

/* Sade giriş sayfası (/giris): ortalanmış tek kart */
.signin { display: grid; place-items: center; padding: 56px 16px 72px; background: radial-gradient(60% 50% at 50% 0%, var(--red-50), transparent 70%); }
.signin__card { width: 100%; max-width: 420px; display: grid; gap: 20px; padding: 36px 32px 28px; background: #fff; border: 1px solid var(--g-200); border-radius: 24px; box-shadow: 0 24px 60px -30px rgba(14, 15, 18, .3); }
.signin__logo { justify-self: center; width: 180px; height: auto; margin-bottom: 4px; }
.signin h1 { text-align: center; font: 800 28px/1.1 var(--display); }
.signin__form { display: grid; gap: 16px; }
.signin__sms { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--r); border: 1.5px solid var(--g-200); font-weight: 600; color: var(--g-900); transition: border-color .2s; }
.signin__sms:hover { border-color: var(--ink); }
.signin__sms .ic { width: 18px; height: 18px; color: var(--red); }
.signin__foot { text-align: center; font-size: 14px; color: var(--g-600); padding-top: 4px; }
.signin__foot a { font-weight: 600; color: var(--red); }
.signin__foot a:hover { text-decoration: underline; }
@media (max-width: 1023px) {
    .signin { padding: 20px 12px 32px; background: none; }
    .signin__card { padding: 28px 20px 22px; border-radius: 22px; box-shadow: none; }
}

/* =========================================================
   PANEL (yönetim / bayi / plasiyer / hesabım)
   ========================================================= */
body.pnl { background: var(--g-50); }
.imp-bar { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px;
    padding: 10px 16px; background: var(--red); color: #fff; font-size: 14px; }
.imp-bar .ic { width: 18px; height: 18px; vertical-align: -4px; }
.imp-bar .btn { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.pnl__shell { display: grid; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 1024px) { .pnl__shell { grid-template-columns: 250px 1fr; } }

.pnl__side { position: fixed; inset: 0 auto 0 0; z-index: 70; width: 260px; display: flex; flex-direction: column; gap: 6px;
    padding: 22px 14px; background: #0B0C0E; color: #C9CDD3; transform: translateX(-100%); transition: transform .3s var(--ease); }
.pnl__side.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(14, 15, 18, .45); }
@media (min-width: 1024px) { .pnl__side { position: sticky; top: 0; height: 100vh; transform: none; width: auto; } }
.pnl__logo img { width: 150px; height: auto; margin: 0 8px 4px; }
.pnl__area { margin: 0 10px 14px; font: 700 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #FF5A5F; }
.pnl__nav { display: grid; gap: 2px; }
.pnl__nav a, .pnl__shop { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; }
.pnl__nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.pnl__nav a.is-active { background: var(--red); color: #fff; }
.pnl__nav .ic, .pnl__shop .ic { width: 19px; height: 19px; }
.pnl__shop { margin-top: auto; color: #8B919B; }
.pnl__shop:hover { color: #fff; }

.pnl__main { min-width: 0; display: flex; flex-direction: column; }
.pnl__top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 16px;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--g-200); }
.imp-bar ~ .pnl__shell .pnl__top { top: 54px; }
.pnl__top h1 { font: 800 22px/1.1 var(--display); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1024px) { .pnl__burger { display: none; } .pnl__top { padding: 0 28px; } .pnl__top h1 { font-size: 26px; } }
.pnl__user { display: flex; align-items: center; gap: 8px; }
.pnl__avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
.pnl__name { font-weight: 600; font-size: 14px; }
@media (max-width: 600px) { .pnl__name { display: none; } }
.pnl__content { padding: 18px 16px 48px; display: grid; gap: 18px; align-content: start; }
@media (min-width: 1024px) { .pnl__content { padding: 28px; } }

.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.kpi { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--g-200); border-radius: 18px; }
.kpi > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--red-50); color: var(--red); }
.kpi--warn > span { background: #FFF6E5; color: var(--warn); }
.kpi small { display: block; color: var(--g-500); font-size: 13px; font-weight: 600; }
.kpi b { font: 800 28px/1.1 var(--display); color: var(--ink); }

.pgrid { display: grid; gap: 18px; }
@media (min-width: 1200px) { .pgrid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.card { background: #fff; border: 1px solid var(--g-200); border-radius: 18px; overflow: hidden; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--g-100); }
.card__head h2 { font: 800 20px/1.1 var(--display); }
.muted { color: var(--g-500); font-size: 13.5px; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 10px 18px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--g-500); background: var(--g-50); white-space: nowrap; }
.tbl td { padding: 12px 18px; border-top: 1px solid var(--g-100); white-space: nowrap; }
.tbl tr:hover td { background: var(--g-50); }
.ta-r { text-align: right; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.tag { display: inline-flex; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--g-100); }
.tag--approved { background: #E7F8F1; color: var(--ok); }
.tag--pending { background: #FFF6E5; color: var(--warn); }
.tag--suspended { background: var(--red-50); color: var(--red-700); }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn--sm .ic { width: 16px; height: 16px; }
.empty-sm { display: grid; justify-items: center; gap: 10px; padding: 36px 20px; text-align: center; color: var(--g-500); }
.empty-sm .ic { width: 34px; height: 34px; color: var(--g-300); }
.feed { padding: 6px 18px; }
.feed li { display: grid; padding: 10px 0; border-bottom: 1px solid var(--g-100); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed small { color: var(--g-500); font-size: 12.5px; }
.note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 18px; background: var(--g-50); font-size: 13px; color: var(--g-600); }
.note .ic { width: 16px; height: 16px; color: var(--ok); }
.hero-card { padding: 24px; border-radius: 20px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #3a0c0f 0%, var(--ink) 60%); }
.hero-card h2 { color: #fff; font: 800 30px/1.1 var(--display); margin: 8px 0 6px; }
.hero-card p { color: #B9BEC6; }

/* =========================================================
   BAYİ PANELİ — katalog, ürün kartı, sepet, sipariş, cari
   ========================================================= */
.alert--ok { background: #E7F8F1; color: #0B7A40; border-color: #BDEBD5; }
.alert--warn { background: #FFF6E5; color: #8A5300; border-color: #FBE3B5; }
.small { font-size: 12.5px; }
.ic--flip { transform: rotate(180deg); }

.qs { padding: 20px; border-radius: 20px; background: radial-gradient(120% 140% at 100% 0%, #3a0c0f 0%, var(--ink) 60%); color: #fff; }
.qs__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; }
.qs__head h2 { color: #fff; font: 800 24px/1 var(--display); }
.qs__head .muted { color: #B9BEC6; }
.qs__form { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); align-items: end; }
.qs__form .field > span { color: #C9CDD3; }
.qs__form .btn { grid-column: 1 / -1; }
@media (min-width: 900px) { .qs__form { grid-template-columns: repeat(4, 1fr) auto; } .qs__form .btn { grid-column: auto; } }

.cat-tabs { display: flex; gap: 6px; padding: 4px; background: #fff; border: 1px solid var(--g-200); border-radius: 14px; width: fit-content; }
.cat-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-weight: 700; color: var(--g-600); }
.cat-tabs a .ic { width: 18px; height: 18px; }
.cat-tabs a.is-active { background: var(--ink); color: #fff; }

.fbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; background: #fff; border: 1px solid var(--g-200); border-radius: 16px; }
.fbar select, .fbar__q input { height: 42px; border: 1.5px solid var(--g-200); border-radius: 10px; padding: 0 12px; background: #fff; font-weight: 600; font-size: 14px; }
.fbar select:focus, .fbar__q input:focus { outline: none; border-color: var(--red); }
.fbar__q { position: relative; flex: 1 1 240px; }
.fbar__q .ic { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--g-400); }
.fbar__q input { width: 100%; padding-left: 38px; }
.fbar__chk { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; border: 1.5px solid var(--g-200); border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.fbar .btn { min-height: 42px; }
@media (max-width: 700px) { .fbar select { flex: 1 1 45%; } .fbar .btn { flex: 1 1 100%; } }

.res-head { display: flex; align-items: center; justify-content: space-between; color: var(--g-600); }
.view-switch { display: flex; gap: 4px; }
.view-switch button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--g-500); }
.view-switch .is-active { background: var(--ink); color: #fff; }

.pgrid-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--g-200); border-radius: 18px; overflow: hidden; transition: box-shadow .2s, transform .2s var(--ease); }
.pc:hover { box-shadow: var(--sh-2); }
.pc__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--g-50); }
.pc__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; }
.pc__tags { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 99px; background: #fff; box-shadow: var(--sh-1); font: 700 11.5px/1 var(--font); color: var(--g-700); }
.chip .ic { width: 13px; height: 13px; }
.chip--dot { background: var(--ink); color: #fff; }
.chip--sun .ic { color: var(--sun); } .chip--snow .ic { color: var(--snow); } .chip--all .ic { color: var(--all); }
.pc__body { padding: 12px 14px 4px; display: grid; gap: 4px; position: relative; }
.pc__brand { font: 800 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.pc__name { font-weight: 700; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc__stock { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 8px; margin-top: 4px; border-radius: 8px; background: #E7F8F1; color: #0B7A40; font-size: 13px; }
.pc__stock .ic { width: 15px; height: 15px; }
.pc__stockpop { position: absolute; z-index: 5; left: 14px; right: 14px; top: 100%; padding: 10px 12px; background: var(--ink); color: #fff; border-radius: 12px; box-shadow: var(--sh-3); font-size: 13px; }
.pc__stockpop li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.pc__price { padding: 8px 14px; margin-top: auto; }
.pc__retail { width: 100%; display: flex; align-items: baseline; gap: 8px; text-align: left; }
.pc__retail small { color: var(--g-500); font-size: 12px; font-weight: 600; }
.pc__retail b { font: 800 24px/1 var(--display); color: var(--red); }
.pc__retail .ic { margin-left: auto; color: var(--g-400); transition: transform .2s; }
.pc__retail.is-open .ic { transform: rotate(180deg); }
.pc__dealer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.pr { display: grid; gap: 2px; padding: 6px 8px; border-radius: 10px; text-align: center; }
.pr small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.pr b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pr--account { background: var(--g-100); color: var(--ink); }
.pr--cash { background: #E7F8F1; color: #0B7A40; }
.pr--card { background: #E6F0FE; color: #1D4ED8; }
.pc__camp { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--red); }
.pc__camp .ic { width: 14px; height: 14px; }
.pc__add { display: flex; gap: 8px; padding: 10px 14px 14px; }
.pc__add .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--g-200); border-radius: 10px; overflow: hidden; height: 36px; }
.qty button { width: 30px; height: 100%; font-weight: 800; color: var(--g-600); }
.qty button:hover { background: var(--g-100); }
.qty input { width: 40px; height: 100%; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pgrid-cards.is-list { grid-template-columns: 1fr; }
.pgrid-cards.is-list .pc { display: grid; grid-template-columns: 110px 1fr auto auto; align-items: center; }
.pgrid-cards.is-list .pc__img { aspect-ratio: 1; }
.pgrid-cards.is-list .pc__price { margin: 0; min-width: 260px; }
@media (max-width: 800px) { .pgrid-cards.is-list .pc { grid-template-columns: 90px 1fr; } .pgrid-cards.is-list .pc__price, .pgrid-cards.is-list .pc__add { grid-column: 1 / -1; } }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px; }
.pager a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--g-200); font-weight: 700; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--g-500); }
.crumbs .ic { width: 14px; height: 14px; }
.pd { display: grid; gap: 18px; }
@media (min-width: 1000px) { .pd { grid-template-columns: 1fr 1.1fr 340px; align-items: start; } }
.pd__img { background: #fff; border: 1px solid var(--g-200); border-radius: 20px; aspect-ratio: 1; display: grid; place-items: center; padding: 20px; }
.pd__img img { max-height: 100%; object-fit: contain; }
.pd__info h2 { font: 800 28px/1.15 var(--display); margin: 6px 0 14px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.spec div { padding: 10px 12px; background: #fff; border: 1px solid var(--g-200); border-radius: 12px; }
.spec dt { font-size: 12px; color: var(--g-500); font-weight: 600; } .spec dd { margin: 2px 0 0; font-weight: 700; }
.stockbox { margin-top: 14px; padding: 14px; background: #fff; border: 1px solid var(--g-200); border-radius: 14px; }
.stockbox h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; } .stockbox .ic { width: 18px; height: 18px; color: var(--ok); }
.stockbox li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--g-100); }
.buybox { position: sticky; top: 80px; display: grid; gap: 10px; padding: 20px; background: #fff; border: 1px solid var(--g-200); border-radius: 20px; box-shadow: var(--sh-2); }
.buybox small { color: var(--g-500); font-weight: 600; }
.buybox__retail { font: 800 36px/1 var(--display); color: var(--red); }
.buybox__rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.buybox .pc__add { padding: 4px 0 0; }

.checkout { display: grid; gap: 18px; }
@media (min-width: 1100px) { .checkout { grid-template-columns: 1fr 380px; align-items: start; } .checkout__side { position: sticky; top: 80px; } }
.cl { display: grid; grid-template-columns: 64px 1fr auto auto; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--g-100); }
.cl img { width: 64px; height: 64px; object-fit: contain; background: var(--g-50); border-radius: 12px; }
.cl__info { display: grid; gap: 2px; min-width: 0; } .cl__info a { font-weight: 700; } .cl__info small { color: var(--g-500); }
.cl__total { min-width: 100px; text-align: right; }
@media (max-width: 640px) { .cl { grid-template-columns: 56px 1fr; } .cl .qty, .cl__total { grid-column: 2; justify-self: start; } }
.cart-lines__foot { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--g-100); }
.co-body { display: grid; gap: 14px; padding: 16px 18px 18px; }
.opts { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.opts legend { font: 700 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--g-500); margin-bottom: 8px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--g-200); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.opt input { accent-color: var(--red); width: 18px; height: 18px; }
.opt span { display: grid; } .opt small { color: var(--g-500); font-size: 12.5px; }
.opt:has(input:checked) { border-color: var(--ink); background: var(--g-50); }
.opt.is-disabled { opacity: .5; cursor: not-allowed; }
.field textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--g-200); border-radius: var(--r); resize: vertical; }
.totals { display: grid; gap: 6px; margin: 0; padding-top: 10px; border-top: 1px dashed var(--g-200); }
.totals div { display: flex; justify-content: space-between; } .totals dt { color: var(--g-600); } .totals dd { margin: 0; font-weight: 700; }
.totals__grand { padding-top: 8px; border-top: 1px solid var(--g-200); font-size: 18px; } .totals__grand dd { color: var(--red); font: 800 24px/1 var(--display); }
.totals--inline { padding: 12px 18px 16px; }

.order-head { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding: 16px 18px; }
.order-head small { display: block; color: var(--g-500); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.order-head .big { font: 800 24px/1 var(--display); color: var(--red); }
.addr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 18px; }
.addr-pair small { display: block; color: var(--g-500); font-weight: 600; font-size: 12px; } .addr-pair p { color: var(--g-700); font-size: 14px; }
.tag--processing, .tag--shipped { background: #E6F0FE; color: #1D4ED8; } .tag--completed { background: #E7F8F1; color: var(--ok); } .tag--cancelled, .tag--returned { background: var(--red-50); color: var(--red-700); }
tr[data-href] { cursor: pointer; }

.stmt-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.stmt-filter .field input { min-height: 38px; font-size: 14px; }
.tbl--stmt .neg { color: var(--red-700); } .tbl--stmt .pos { color: var(--ok); }
.tbl__muted td { background: var(--g-50); color: var(--g-600); }

.addr-list { display: grid; gap: 12px; align-content: start; }
.addr { padding: 16px 18px; display: grid; gap: 8px; }
.addr__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.addr p { color: var(--g-700); font-size: 14px; }
.addr form { justify-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pnl__cart .badge { top: 2px; left: 22px; }
.price-in { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px; border: 1.5px solid var(--g-200); border-radius: 10px; }
.price-in input { width: 90px; border: 0; outline: 0; text-align: right; font-weight: 700; }
.price-in:focus-within { border-color: var(--red); }
.cl:has(.price-in) { grid-template-columns: 64px 1fr auto auto; }
.order-head__act { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
/* Favori + çoklu seçim */
.pc { position: relative; }
.pc__acts { position: absolute; z-index: 2; right: 8px; top: 8px; display: flex; gap: 6px; }
.pc__fav, .pc__pick span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--g-500); box-shadow: 0 1px 4px rgba(0,0,0,.12); cursor: pointer; border: 0; }
.pc__fav .ic, .pc__pick .ic { width: 18px; height: 18px; }
.pc__fav.is-on { color: var(--red); } .pc__fav.is-on .ic { fill: currentColor; }
.pc__pick input { position: absolute; opacity: 0; pointer-events: none; }
.pc__pick span .ic { opacity: .25; }
.pc__pick input:checked + span { background: var(--red); color: #fff; } .pc__pick input:checked + span .ic { opacity: 1; }
.pc__pick input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.pc.is-picked { box-shadow: 0 0 0 2px var(--red); }
.pc__tags { right: 90px; }
.pc__fav--inline { width: auto; height: 32px; padding: 0 12px; border-radius: 999px; gap: 6px; display: inline-flex; align-items: center; box-shadow: none; border: 1.5px solid var(--g-200); font-weight: 600; font-size: 13px; }
.pd__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pickbar { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: #111; color: #fff; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.25); white-space: nowrap; }
.pickbar .btn--ghost { color: #fff; border-color: rgba(255,255,255,.25); }
@media (max-width: 800px) { .pickbar { bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* Ödeme Yap */
.pay-ways { display: grid; gap: 16px; grid-template-columns: 1fr 1.6fr 1fr; align-items: start; margin: 16px 0; }
@media (max-width: 1100px) { .pay-ways { grid-template-columns: 1fr; } .pay-ways #havale { order: -1; } }
.pay-way .card__head h2 { display: flex; align-items: center; gap: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.banks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.banks li { display: grid; gap: 2px; padding: 12px 14px; background: var(--g-50); border-radius: 12px; }
.banks small { color: var(--g-500); }
.iban { justify-self: start; margin-top: 4px; padding: 4px 8px; border: 1px dashed var(--g-300, #cbd5e1); border-radius: 8px; background: #fff; font-size: 13px; cursor: copy; }
.iban.is-copied { border-color: var(--ok); color: var(--ok); }
.plain-list { list-style: none; margin: 0; padding: 8px 18px 16px; display: grid; gap: 8px; }
.plain-list .pc { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; }
.ret-form { padding: 16px 18px; display: grid; gap: 12px; }
.ret-lines { display: grid; gap: 8px; }
.ret-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.ret-line input { width: 70px; height: 36px; text-align: center; border: 1.5px solid var(--g-200); border-radius: 10px; }
.ret-list { list-style: none; margin: 0; padding: 0 18px 16px; display: grid; gap: 8px; }
.ret-list li { padding: 12px 14px; background: var(--g-50); border-radius: 12px; display: grid; gap: 4px; }
/* Yönetim menüsü: gruplar + arama */
.pnl__grp { display: block; padding: 14px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6B7280; }
.pnl__find { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 0 12px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); color: #9CA3AF; }
.pnl__find input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font-size: 14px; }
.pnl__find .ic { width: 17px; height: 17px; }
.pnl__nav.is-searching .pnl__grp { display: none; }
/* Yönetim: araç çubuğu, sekmeler, yapılacaklar, satır işlemleri */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.seg { display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--g-200); border-radius: 12px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg a { padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 13.5px; white-space: nowrap; color: var(--g-600); }
.seg a b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--g-100); font-size: 11.5px; }
.seg a.is-active { background: var(--ink, #111); color: #fff; } .seg a.is-active b { background: rgba(255,255,255,.2); }
.tb-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin-left: auto; background: #fff; border: 1.5px solid var(--g-200); border-radius: 12px; min-width: 240px; }
.tb-search input { flex: 1; border: 0; outline: 0; min-width: 0; }
.tb-search .ic { width: 17px; height: 17px; color: var(--g-500); }
@media (max-width: 700px) { .tb-search { margin-left: 0; width: 100%; min-width: 0; } }
.tb-inline select { height: 34px; border: 1.5px solid var(--g-200); border-radius: 10px; padding: 0 8px; max-width: 220px; }
.todo { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 16px 0; }
.todo__i { display: grid; gap: 2px; padding: 14px 16px; background: #fff; border: 1px solid var(--g-200); border-radius: 14px; color: var(--g-600); }
.todo__i b { font: 800 24px/1 var(--display); color: var(--g-400, #9ca3af); }
.todo__i.is-hot { border-color: #FCD9A8; background: #FFFBF3; } .todo__i.is-hot b { color: var(--warn); }
.pgrid--side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 1000px) { .pgrid--side { grid-template-columns: 1fr; } }
.actbar { margin-bottom: 16px; }
.actbar__f, .inline-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actbar__f { padding: 12px 16px; }
.actbar__f input, .inline-act input { flex: 1; min-width: 160px; height: 34px; padding: 0 10px; border: 1.5px solid var(--g-200); border-radius: 10px; }
.inline-act input.w-num { flex: 0 0 110px; min-width: 0; text-align: right; }
.btn--danger { background: var(--red-50); color: var(--red-700); border: 1px solid #FBD5D5; }
.tbl tr.is-off td { opacity: .45; text-decoration: line-through; }
.ret-cards { display: grid; gap: 14px; }
ul.plain { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; }
a.alert { text-decoration: none; }
.notif { list-style: none; margin: 0; padding: 0; }
.notif a { display: grid; gap: 2px; padding: 12px 18px; border-top: 1px solid var(--g-100); }
.notif li.is-new a { background: #FFF8F8; box-shadow: inset 3px 0 0 var(--red); }
.notif span { color: var(--g-600); font-size: 14px; } .notif small { color: var(--g-500); font-size: 12px; }
.ic--flip { transform: scaleX(-1); }
/* Bayi detayı */
.seg--tabs { margin: 0 0 14px; }
.toolbar--sub { margin-top: -6px; gap: 14px; }
.stack { display: grid; gap: 16px; }
.tbl td.neg b { color: var(--red-700); }
.tbl tr.is-dim td { color: var(--g-500); }
.tag--btn { border: 0; cursor: pointer; font: inherit; }
code.pw { padding: 4px 8px; background: #FFF8E6; border: 1px dashed var(--warn); border-radius: 8px; font-size: 13px; }
input.inp { height: 34px; padding: 0 10px; border: 1.5px solid var(--g-200); border-radius: 10px; text-align: right; width: 110px; }
.sw { position: relative; display: inline-block; width: 40px; height: 22px; }
.sw input { position: absolute; opacity: 0; }
.sw span { position: absolute; inset: 0; border-radius: 999px; background: var(--g-200); transition: background .2s; cursor: pointer; }
.sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sw input:checked + span { background: var(--ok, #16a34a); } .sw input:checked + span::after { transform: translateX(18px); }
.sw input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
/* Ayarlar, onay kutuları */
.settings { display: grid; gap: 16px; }
.field--sw { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; }
.field--sw > span:last-child { display: grid; gap: 2px; }
.field small.muted { display: block; margin-top: 4px; font-size: 12px; }
.savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border: 1px solid var(--g-200); border-radius: 14px; }
@media (max-width: 800px) { .savebar { bottom: calc(64px + env(safe-area-inset-bottom)); } }
.chk-row, .roles-f { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; white-space: nowrap; }
.chk input { width: 16px; height: 16px; accent-color: var(--red); }
.card.is-dim { opacity: .65; }
.tbl--wrap td { white-space: normal; }
.tbl--wrap td small.mono { word-break: break-all; }
/* Tedarikçi + eşleştirme */
.mq { display: grid; gap: 12px; }
.mq__i .card__head h2 { font-size: 15px; }
.mq__f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.mq__f select, .mq__f input { height: 34px; padding: 0 10px; border: 1.5px solid var(--g-200); border-radius: 10px; max-width: 200px; }
input.inp--text { text-align: left; width: 220px; }
.tbl td.wrap { white-space: normal; min-width: 200px; }
/* Ürünler */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; margin-bottom: 14px; }
.filters select { height: 40px; border: 1.5px solid var(--g-200); border-radius: 12px; padding: 0 10px; max-width: 170px; }
.filters .tb-search { margin-left: 0; flex: 1 1 260px; }
.pc__pick--row { position: relative; display: inline-block; }
.pc__pick--row span { width: 28px; height: 28px; box-shadow: none; border: 1.5px solid var(--g-200); }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 90px; padding: 12px 18px 16px; }
.spark span { flex: 1; min-width: 3px; background: var(--red); border-radius: 3px 3px 0 0; opacity: .8; }
.blist { list-style: none; margin: 0; padding: 6px 18px; display: grid; gap: 6px; }
.blist li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: var(--g-50); border-radius: 10px; }
ol.blist { counter-reset: b; } ol.blist li::before { counter-increment: b; content: counter(b); font-weight: 800; color: var(--red); min-width: 20px; }
ol.blist li b { flex: 1; }
.dlg { border: 0; border-radius: 18px; padding: 0; width: min(640px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dlg::backdrop { background: rgba(0,0,0,.4); }
.dlg h2 { margin: 0 0 4px; }
/* Hesap ayarları / 2FA */
.pnl__me { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; border-radius: 999px; }
a.pnl__me:hover .pnl__name { text-decoration: underline; }
.twofa { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.twofa__qr { width: 200px; height: 200px; padding: 8px; background: #fff; border: 1px solid var(--g-200); border-radius: 14px; }
.twofa__qr svg { width: 100%; height: 100%; }
.steps-list { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 4px; color: var(--g-600); }
input.otp { letter-spacing: .4em; font-size: 20px; font-weight: 700; text-align: center; }
.actbar-sm { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.signin__card--wide { max-width: 680px; } @media (max-width: 560px) { .signin__card--wide .form-grid { grid-template-columns: 1fr; } }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; } .rte-bar button { height: 30px; padding: 0 10px; border: 1px solid var(--g-200); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 700; } textarea.mono { font-size: 13px; line-height: 1.5; }
.done__ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #E7F8F1; color: var(--ok); margin: 0 auto; } .done__ic .ic { width: 30px; height: 30px; }
/* Bayi ağı */
.ul-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.tbl .ul-cover { width: 56px; height: 56px; border-radius: 10px; }
.ul-cover--empty { display: grid; place-items: center; background: var(--g-50); color: var(--g-400); min-height: 56px; }
.ul-thumbs { display: flex; gap: 8px; flex-wrap: wrap; } .ul-thumbs img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.map { height: 320px; border-radius: 14px; margin-top: 6px; border: 1px solid var(--g-200); z-index: 0; }
.svc { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--g-100); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ph-grid figure { margin: 0; } .ph-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.vitrin-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--g-100); }
.vitrin-row input:not([type=checkbox]):not([type=file]) { height: 34px; padding: 0 8px; border: 1.5px solid var(--g-200); border-radius: 8px; min-width: 110px; flex: 1; }
.vitrin-row img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.vitrin-row--new { background: var(--g-50); padding: 8px; border-radius: 12px; }

/* Bayi ana sayfa banner'ı + yönetim önizleme */
.dash-banner { margin: 0 0 1rem; border-radius: var(--radius, 12px); overflow: hidden; background: var(--surface-2, #f3f4f6); }
.dash-banner img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; }
.dash-banner a { display: block; }
.banner-prev { display: block; max-width: 100%; max-height: 140px; border-radius: 8px; margin: .25rem 0 .5rem; object-fit: contain; background: var(--surface-2, #f3f4f6); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--red); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
