/* ══════════════════════════════════════════════
      DESIGN TOKENS  (Sepet.html'den alınan palette)
      ══════════════════════════════════════════════ */
:root {
    --bg: oklch(0.985 0.003 250);
    --panel: #ffffff;
    --ink: oklch(0.18 0.01 260);
    --ink-2: oklch(0.42 0.012 260);
    --ink-3: oklch(0.6 0.012 260);
    --line: oklch(0.92 0.006 260);
    --line-2: oklch(0.96 0.005 260);
    --accent: oklch(0.55 0.18 264);
    --accent-soft: oklch(0.96 0.03 264);
    --promo: oklch(0.62 0.16 152);
    --promo-soft: oklch(0.97 0.04 152);
    --promo-ink: oklch(0.32 0.10 152);
    --warn: oklch(0.72 0.16 70);
    --warn-soft: oklch(0.97 0.05 80);
    --danger: oklch(0.62 0.20 25);
    --gold: oklch(0.78 0.13 85);
    --shadow-sm: 0 1px 2px rgba(20, 22, 40, .04), 0 1px 1px rgba(20, 22, 40, .03);
    --shadow-md: 0 4px 16px rgba(20, 22, 40, .06), 0 1px 2px rgba(20, 22, 40, .04);
    --nkp-button-color: #000;

    /* legacy compat */
    --c-bg: #ffffff;
    --c-surface: #f8fafc;
    --c-border: oklch(0.92 0.006 260);
    --c-text: oklch(0.18 0.01 260);
    --c-muted: #64748b;
    --c-subtle: #94a3b8;
    --c-blue: oklch(0.55 0.18 264);
    --c-blue-lt: oklch(0.96 0.03 264);
    --c-blue-dk: oklch(0.48 0.18 264);
    --c-green: #16a34a;
    --c-green-lt: #f0fdf4;
    --c-red: #dc2626;
    --c-red-lt: #fef2f2;
    --c-amber: #d97706;
    --c-amber-lt: #fffbeb;
    --c-cyan: #05a2dd;
    --c-cyan-lt: #e8f6fd;
    --r: 14px;
    --r-sm: 10px;
    --r-xs: 6px;
}

*, *::before, *::after {
    box-sizing: border-box
}

/* ── Body font ── */
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

.sg-big-empty {
    width: 100%;
    margin-bottom: 20px;
}

/* ── Loading overlay ── */
.sg-loading {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: #ffffffa0;
    display: none;
    align-items: center;
    justify-content: center
}

.sg-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--line);
    border-top-color: var(--c-blue);
    border-radius: 50%;
    animation: sg-spin .7s linear infinite
}

@keyframes sg-spin {
    to {
        transform: rotate(360deg)
    }
}

/* ══════════════════════
   LAYOUT
   ══════════════════════ */
.sg-wrap {
    color: var(--ink);
    font-size: 14px
}

.sg-outer {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    padding: 0;
    align-items: flex-start;
    width: 100%
}

.sg-col-main {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
}

.sg-col-side {
    flex: 0 0 320px;
    width: 320px;
    min-width: 0;
    position: sticky;
    top: 1.25rem;
    z-index: 1049;
}

@media (max-width: 1100px) {
    .sg-col-side {
        flex: 0 0 260px;
        width: 260px
    }
}

@media (max-width: 900px) {
    .sg-outer {
        flex-direction: column
    }

    .sg-col-side {
        flex: none;
        width: 100%;
        position: static
    }
}


/* ══════════════════════
   ALERT / BANNER
   ══════════════════════ */
.sg-alert {
    padding: 12px 16px;
    border-radius: var(--r-sm);
    margin-bottom: 1rem;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px
}

.sg-alert.danger {
    background: var(--c-red-lt);
    border-left: 4px solid var(--c-red);
    color: var(--c-red)
}

.sg-alert.success {
    background: var(--c-green-lt);
    border-left: 4px solid var(--c-green);
    color: var(--c-green)
}

.sg-alert.warning {
    background: var(--c-amber-lt);
    border-left: 4px solid var(--c-amber);
    color: #92400e
}

/* ══════════════════════
   DEALER SELECT
   ══════════════════════ */
.sg-dealer-wrap {
    margin-bottom: 1rem
}

.sg-dealer-select {
    width: 100%;
    padding: 11px 40px 11px 14px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r);
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    font-family: inherit;
    transition: .15s
}

.sg-dealer-select:focus {
    border-color: var(--c-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1)
}

.select2-container {
    width: 100% !important
}

.select2-container .select2-selection--single {
    height: 44px !important;
    border: 1.5px solid var(--c-border) !important;
    border-radius: var(--r) !important;
    display: flex;
    align-items: center;
    font-family: inherit
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
    font-size: 16px;
    font-weight: 500;
    color: var(--c-text) !important;
    padding-left: 14px
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-width: 7px 6px 0 6px;
    margin-left: -14px
}

/* ══════════════════════
   CART PANEL (wraps table)
   ══════════════════════ */
.sg-cart-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Campaign banner inside panel */
.sg-camp-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(90deg, var(--promo-soft) 0%, oklch(0.985 0.02 200) 100%);
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--promo-ink);
}

.sg-camp-banner-badge {
    background: #fff;
    border: 1px solid oklch(0.88 0.06 152);
    color: var(--promo-ink);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* ══════════════════════
   TABLE HEADER
   ══════════════════════ */
.sg-table {
    overflow: hidden
}

.sg-thead {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 11px 18px;
    background: oklch(0.985 0.005 260);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: .5px;
    font-weight: 600;
    color: var(--ink-3);
    text-transform: uppercase;
}

.sg-thead-prod {
    flex: 1
}

.sg-thead-qty {
    width: 110px;
    text-align: center
}

.sg-thead-total {
    width: 110px;
    text-align: right
}

.sg-thead-action {
    width: 36px
}

/* ══════════════════════
   CART ROW — main product
   ══════════════════════ */
.sg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    row-gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    transition: background .15s;
}

.sg-row:last-child {
    border-bottom: none
}

.sg-row:hover {
    background: oklch(0.993 0.002 260)
}

.sg-prod-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0
}

.sg-prod-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, oklch(0.93 0.01 260), oklch(0.87 0.02 260));
}

.sg-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 4px;
    background: #fff
}

.sg-prod-meta {
    min-width: 0;
    flex: 1;
    max-width: 500px
}

.sg-prod-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.45;
    text-decoration: none;
    display: block;
}

.sg-prod-name:hover {
    color: var(--accent)
}

.sg-prod-code {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--ink-3);
    overflow-wrap: anywhere;
}

/* badges */
.sg-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
    margin-right: 3px;
    height: 25px
}

.sg-badge.puan {
    background: var(--c-cyan-lt);
    color: var(--c-cyan);
    border: 1px solid transparent
}

.sg-badge.kampanya {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid oklch(0.88 0.06 264)
}

.sg-badge.promo {
    background: var(--promo-soft);
    color: var(--promo-ink);
    border: 1px solid oklch(0.88 0.06 152)
}

/* promo link badge on main row */
.sg-promo-link {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--promo-ink);
    font-weight: 500;
    background: var(--promo-soft);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid oklch(0.9 0.05 152);
}

.sg-option {
    font-size: 13px;
    color: var(--c-muted);
    margin-top: 2px
}

.wrapAr {
    word-break: break-word;
    white-space: normal
}

/* ── right group (qty + total + action) ── */
.sg-right-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-left: 0
}

.sg-total-cell {
    min-width: 110px;
    text-align: right
}

.sg-total-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.sg-total-val.disc {
    color: var(--c-green)
}

.sg-unit-hint {
    font-size: 11.5px;
    color: var(--ink-3);
    margin-top: 3px;
}

.sg-price-orig {
    font-size: 12px;
    color: var(--c-subtle);
    text-decoration: line-through;
    margin-bottom: 2px
}

.sg-price-badge {
    display: inline-block;
    background: var(--c-green-lt);
    color: var(--c-green);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    margin-top: 3px
}

/* ══════════════════════
   QTY CONTROL
   ══════════════════════ */
.sg-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    height: 36px;
}

.sg-qty-btn {
    width: 34px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--ink-2);
    transition: .15s;
}

.sg-qty-btn:hover {
    background: var(--accent-soft);
    color: var(--accent)
}

.sg-qty-val {
    min-width: 36px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* legacy qty plus-minus kept for CI compatibility */
.qty-plus-minus {
    display: flex !important;
    align-items: center;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    overflow: hidden;
    width: auto !important;
    padding: 0 !important;
    background: var(--c-bg) !important;
    height: 36px
}

.qty-plus-minus .ec_qtybtn {
    width: 34px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    transition: .15s;
    flex-shrink: 0;
    border: none
}

/*.qty-plus-minus .ec_qtybtn:hover{background:var(--accent-soft);color:var(--accent)}*/
.qty-plus-minus .ec_qtybtn i {
    font-size: 11px;
    color: var(--ink-2)
}

.qty-plus-minus input.qty-input {
    background: var(--c-bg);
    font-family: inherit;
    outline: none;
    border-left: 0px solid var(--line) !important;
    border-right: 0px solid var(--line) !important;
    top: 0;
    text-align: center;
    text-align-last: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background-color: #e8f2ff;
    border: none;
    border-radius: 12px;
    width: 24px !important;
    height: 24px !important;
    padding: 0;
    font-weight: 700;
    line-height: 14px;
    display: inline-block;
    font-size: 14px;
    min-height: 24px !important;
}

.btn-number {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    background: var(--c-surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-xs);
    transition: .15s;
    font-family: inherit;
    vertical-align: middle
}

.btn-number:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent)
}

.btn-number:disabled {
    background: #f4f6f9;
    color: var(--c-subtle);
    cursor: not-allowed
}

.input-number {
    width: 64px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--c-bg);
    color: var(--ink);
    vertical-align: middle;
    outline: none;
    display: inline-block;
    font-family: inherit
}

.sepetname {
    font-size: 10px;
    color: var(--c-muted);
    margin-top: 3px
}

.sepetstokyok, .sg-no-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--c-red-lt);
    color: var(--c-red);
    border: 1px solid #fca5a5;
    border-radius: var(--r-xs);
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700
}

.updatebtnnew {
    display: none;
    margin-top: 6px
}

.updatebtnnew a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--c-red);
    color: #fff !important;
    border-radius: var(--r-xs);
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: .15s
}

.updatebtnnew a:hover {
    background: #b91c1c
}

/* ══════════════════════
   ACTION BUTTONS
   ══════════════════════ */
.sg-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

a.btn-delete, .sg-del-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: oklch(0.97 0.03 25);
    color: var(--danger) !important;
    border: 1px solid oklch(0.9 0.04 25);
    border-radius: 10px !important;
    transition: .15s;
    text-decoration: none;
    cursor: pointer;
    min-width: 36px;
}

a.btn-delete:hover, .sg-del-btn:hover {
    background: #fee2e2;
    border-color: var(--danger)
}

a.btn-green, .sg-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    border: 1px solid oklch(0.88 0.06 264) !important;
    border-radius: 10px !important;
    transition: .15s;
    text-decoration: none;
    cursor: pointer;
    padding: 0 !important;
    margin-left: 6px;
    min-width: 36px;
}

a.btn-green:hover, .sg-edit-btn:hover {
    background: #dbeafe !important;
    border-color: var(--accent) !important
}

/* ══════════════════════
   PROMO ROW (green card)
   ══════════════════════ */
.sg-promo-shell {
    position: relative;
    background: linear-gradient(180deg, oklch(0.91 0.05 90.35) 0%, oklch(0.84 0.09 64.47) 100%);
    border: 1px solid oklch(0.76 0.14 52.97);
    border-radius: 14px;
    padding: 14px 16px 14px 18px;
    margin: 15px 15px 15px 58px;
}

/* connector dashed curve */
.sg-promo-connector {
    position: absolute;
    left: -34px;
    top: -22px;
    width: 40px;
    height: 50px;
    pointer-events: none;
}

.dealer_spt_box {
    margin-bottom: 30px;
}

.sg-promo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.sg-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f59758;
    color: #fff;
    padding: 4px 10px 4px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .2px;
    box-shadow: 0 2px 8px -2px oklch(0.76 0.14 52.97);
    height: 25px;
}

.sg-promo-campaign-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--promo-ink)
}

.sg-promo-product-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    row-gap: 12px;
}

.sg-promo-product-meta {
    min-width: 0;
    flex: 1 1 220px
}

.sg-promo-product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
    text-decoration: none;
    display: block
}

.sg-promo-product-name:hover {
    color: var(--accent)
}

.sg-promo-product-code {
    font-size: 11.5px;
    color: var(--ink-3);
    overflow-wrap: anywhere
}

.sg-promo-savings-tag {
    display: inline-block;
    background: #fff;
    border: 1px dashed oklch(0.76 0.14 52.97);
    color: oklch(0.76 0.14 52.97);
    padding: 2px 6px;
    font-size: 10.5px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 4px;
}

.sg-promo-free-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    color: #f59758;
    border: 1px solid #f59758;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

.sg-promo-price-right {
    text-align: right;
    min-width: 110px
}

.sg-promo-price-old {
    font-size: 12px;
    color: var(--ink-3);
    text-decoration: line-through;
}

.sg-promo-price-new {
    font-size: 16px;
    font-weight: 700;
    color: var(--promo-ink);
    margin-top: 2px
}

/* usage bar */
.sg-promo-usage-bar {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed oklch(0.76 0.14 52.97);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    overflow: hidden;
}

.sg-promo-usage-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.sg-promo-dot {
    width: 18px;
    height: 4px;
    border-radius: 4px;
    transition: background .2s
}

.sg-promo-dot.filled {
    background: oklch(0.76 0.14 52.97)
}

.sg-promo-dot.empty {
    background: #fff
}

.sg-promo-usage-text {
    font-size: 12.5px;
    color: var(--ink-2)
}

/* info box on promo (yellow rule box) */
.sg-promo-info-box {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
    border-left: 3px solid #f59e0b;
    border-radius: 8px;
    padding: 8px 11px;
    margin-top: 7px;
    font-size: 12px;
    color: #78350f;
    line-height: 1.7;
}

.sg-promo-right-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    margin-left: auto
}

/* ══════════════════════
   MOBILE CARDS
   ══════════════════════ */
.sg-mobile-cards {
    display: none
}

@media (max-width: 767px) {
    .sg-cart-panel {
        border-radius: 12px
    }

    .sg-table {
        display: none
    }

    .sg-mobile-cards {
        display: block
    }
}

.sg-mobile-card {
    background: var(--c-bg);
    border-radius: var(--r);
    border: 1px solid var(--line);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm)
}

.sg-mobile-top {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.sg-mobile-img {
    width: 66px;
    height: 66px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 10px;
    border: 1px solid var(--line);
    overflow: hidden
}

.sg-mobile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.sg-mobile-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
    gap: 8px
}

.sg-mobile-price {
    text-align: right;
    margin-left: auto
}

/* promo mobile */
.sg-mobile-card.promo {
    background: linear-gradient(135deg, var(--promo-soft), oklch(0.99 0.015 152));
    border-left: 3px solid var(--promo);
    margin-left: 16px;
}

.sg-mobile-promo-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin: -14px -14px 12px;
    background: linear-gradient(135deg, var(--promo-soft), oklch(0.94 0.06 152));
    border-bottom: 1px solid oklch(0.88 0.06 152);
    border-radius: var(--r) var(--r) 0 0;
}

.sg-mobile-promo-head span {
    font-size: 11px;
    font-weight: 700;
    color: var(--promo-ink)
}

.sg-mobile-promo-stem-line {
    width: 2px;
    height: 28px;
    background: linear-gradient(180deg, var(--promo), oklch(0.55 0.14 175));
    border-radius: 0 0 2px 2px;
    flex-shrink: 0;
    margin-left: 6px
}

.sg-mobile-promo-stem-arrow {
    width: 0;
    height: 0;
    align-self: flex-end;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--promo);
    margin-left: 2px;
    flex-shrink: 0
}

/* legacy compat */
.product_inf_area a {
    font-size: 15px !important;
    font-weight: 600;
    color: var(--ink) !important;
    text-decoration: none
}

.product_inf_area a:hover {
    color: var(--accent) !important
}

.product_kod_inf {
    font-size: 11px !important;
    color: var(--c-muted);
    margin-bottom: 2px
}

/* ══════════════════════
   EMPTY STATE
   ══════════════════════ */
.sg-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--c-bg);
    border-radius: var(--r);
    box-shadow: var(--shadow-md)
}

.sg-empty svg {
    color: var(--c-subtle);
    margin-bottom: 1rem
}

.sg-empty h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px
}

.sg-empty p {
    font-size: 16px;
    color: var(--c-muted)
}

/* ══════════════════════
   MODAL SYSTEM
   ══════════════════════ */
.sg-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 17, 23, .55);
    z-index: 1030;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(2px)
}

.sg-modal-overlay.open {
    display: flex
}

.sg-modal {
    background: var(--c-bg);
    border-radius: 18px;
    width: 100%;
    max-width: 530px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .22), 0 4px 16px rgba(0, 0, 0, .10);
    overflow: hidden;
    animation: sg-modal-in .22s cubic-bezier(.34, 1.3, .64, 1)
}

@keyframes sg-modal-in {
    from {
        opacity: 0;
        transform: scale(.93) translateY(12px)
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0)
    }
}

.sg-modal-head {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px
}

.sg-modal-head-txt h5 {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 4px
}

.sg-modal-head-txt p {
    font-size: 15px;
    color: var(--c-muted);
    margin: 0;
    line-height: 1.5
}

.sg-modal-head-txt p code {
    background: var(--c-red-lt);
    color: var(--c-red);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 11px
}

.sg-modal-head-txt p b {
    color: var(--c-red)
}

.sg-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 25px;
    color: var(--c-subtle);
    line-height: 1;
    padding: 2px;
    flex-shrink: 0;
    transition: .15s
}

.sg-modal-close:hover {
    color: var(--ink)
}

.sg-modal-body {
    padding: 1.25rem 1.5rem
}

.sg-modal-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    margin: 0 0 6px;
    display: block
}

.sg-modal-input-wrap {
    position: relative;
    margin-bottom: 1.1rem
}

.sg-modal-input-wrap .prefix {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--c-muted);
    pointer-events: none
}

.sg-modal-input, .sg-modal-disc-input {
    width: 100%;
    padding: 10px 12px 10px 32px !important;
    font-size: 22px;
    font-weight: 800;
    font-family: monospace;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    outline: none;
    color: var(--ink);
    background: var(--c-bg);
    transition: border-color .15s
}

.sg-modal-disc-input {
    font-size: 18px;
    padding-left: 14px
}

.sg-modal-input:focus, .sg-modal-disc-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px oklch(0.96 0.03 264)
}

.sg-modal-ops {
    display: flex;
    gap: 6px;
    margin-bottom: 1.1rem
}

.sg-op-btn {
    flex: 1;
    padding: 9px 4px;
    font-size: 17px;
    font-weight: 700;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--c-surface);
    cursor: pointer;
    transition: .15s;
    font-family: inherit
}

.sg-op-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent)
}

.sg-op-btn.clr {
    font-size: 13px;
    font-weight: 700;
    border-color: #fca5a5;
    background: var(--c-red-lt);
    color: var(--c-red)
}

.sg-op-btn.clr:hover {
    background: #fee2e2
}

.sg-modal-preview {
    background: var(--c-surface);
    border-radius: var(--r-sm);
    padding: 11px 14px;
    margin-bottom: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--line)
}

.sg-modal-preview span:first-child {
    font-size: 14px;
    color: var(--c-muted)
}

#sg-disc-badge, #sg-bulk-info {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-green)
}

.sg-modal-warn {
    background: var(--c-amber-lt);
    border: 1px solid #fcd34d;
    border-radius: var(--r-xs);
    padding: 9px 12px;
    margin-bottom: 1rem;
    font-size: 13px;
    color: #78350f;
    line-height: 1.5
}

.sg-modal-footer {
    display: flex;
    gap: 8px
}

.sg-modal-cancel {
    flex: 1;
    padding: 11px;
    font-size: 13px;
    font-weight: 700;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: none;
    color: var(--c-muted);
    cursor: pointer;
    font-family: inherit;
    transition: .15s
}

.sg-modal-cancel:hover {
    background: var(--c-surface)
}

.sg-modal-save {
    flex: 2;
    padding: 11px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--accent), var(--c-blue-dk));
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: .15s
}

.sg-modal-save:hover {
    filter: brightness(.9)
}

#create_save_cart {
    background: #103b96;
    color: #fff !important;
    border: 1px solid #103b96;
    border-radius: 6px !important;
    height: 40px;
    padding: 7px 16px;
}

#create_save_cart:hover {
    background: #fff;
    color: #103b96 !important
}

/* footer clear btn */
.sg-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: transparent;
    color: var(--danger);
    border: 1px solid oklch(0.9 0.04 25);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: .15s;
}

.sg-clear-btn:hover {
    background: oklch(0.97 0.03 25)
}

@media (max-width: 767px) {
    .qty-plus-minus input.qty-input {
        width: 36px !important
    }
}

.kp-bar.open {
    border-radius: 14px 14px 0px 0px;
}

.btn-number.disabled,
.ec_qtybtn.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

/* ─── Kart Wrapper ─── */
.nkp-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e6ed;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
}

.nkp-card.done {
    border-color: #a5d6a7;
}

/* ─── BANNER ─── */
.nkp-banner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, #fff8f2 0%, #fff3e6 60%, #fdebd0 100%);
    padding: 18px 20px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #fde8c8;
    cursor: pointer;
}

.nkp-banner.done {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 60%, #bbf7d0 100%);
    border-bottom-color: #a5d6a7;
}

.nkp-banner::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 230, 138, .25) 0%, transparent 70%);
    pointer-events: none;
}

/* Banner üst satır */
.nkp-banner-top {
    display: grid;
    grid-template-columns: .8fr 1.21fr 0.2fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.nkp-left-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    /* İkon */

    .nkp-icon {
        width: 48px;
        height: 48px;
        border-radius: 13px;
        background: linear-gradient(135deg, #ff8c42, #f97316);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(249, 115, 22, .3);
    }

    .nkp-icon.done {
        background: linear-gradient(135deg, #22c55e, #16a34a);
        box-shadow: 0 4px 12px rgba(22, 163, 74, .3);
    }

    .nkp-icon svg {
        width: 24px;
        height: 24px;
    }

    /* Başlık */

    .nkp-title-block {
        flex-shrink: 0;

        .nkp-titleAndTotal {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            flex-wrap: wrap;
            gap: 10px;

            * {
                margin: 0;
            }

            h2 {
                font-size: 19px;
                font-weight: 700;
                color: #1a2e5a;
                line-height: 1.2;
                max-width: 125px;
            }
        }

        p {
            font-size: 13px;
            color: #7a8499;
            margin: 0;
            max-width: 210px;
            line-height: 1.45;
        }

        .nkp-firsat-badge {
            display: inline-flex;
            align-items: center;
            font-size: 12px;
            font-weight: 500;
            padding: 3px 10px;
            border-radius: 20px;
            white-space: nowrap;
            margin-bottom: .3rem !important;
            animation: firsat-pulse 1.8s ease-in-out infinite;
            --pulse-color: transparent;
        }

        .nkp-firsat-badge--kritik {
            background: #E24B4A;
            color: #fff;
            --pulse-color: rgba(226, 75, 74, 0.4);
        }

        .nkp-firsat-badge--az {
            background: #FAEEDA;
            border: 1px solid #FAC775;
            color: #633806;
            --pulse-color: rgba(250, 199, 117, 0.5);
        }

        .nkp-firsat-badge--normal {
            background: #EAF3DE;
            border: 1px solid #C0DD97;
            color: #27500A;
            animation: none;
        }
    }

}

@keyframes firsat-pulse {
    0% {
        box-shadow: 0 0 0 0 var(--pulse-color);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
}


/* Progress + süre */
.nkp-prog-block {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.nkp-prog-label {
    font-size: 12px;
    font-weight: 500;
    color: #7a8499;
    margin: 0;
}

.nkp-prog-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nkp-prog-track {
    flex: 1;
    height: 7px;
    border-radius: 99px;
    background: #dfe7f1;
    overflow: hidden;
}

.nkp-prog-track.done {
    background: #a5d6a7;
}

.nkp-prog-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #f97316, #ff6b00);
    transition: width .5s cubic-bezier(.4, 0, .2, 1);
}

.nkp-prog-fill.done {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.nkp-prog-pct {
    font-size: 14px;
    font-weight: 700;
    color: #f97316;
    flex-shrink: 0;
    min-width: 32px;
    text-align: right;
}

.nkp-prog-pct.done {
    color: #16a34a;
}

.nkp-prog-top-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .3rem;
}

/* Süre pill */
.nkp-sure-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #fbd38d;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #c05621;
    box-shadow: 0 1px 4px rgba(249, 115, 22, .1);
    margin: 0;
}

.nkp-sure-pill.done {
    border-color: #a5d6a7;
    color: #15803d;
    background: #f0fdf4;
}

.nkp-sure-pill .tarih {
    font-size: 11px;
    font-weight: 400;
    color: #a16207;
    margin-left: 6px;
    padding-left: 6px;
    border-left: 1px solid #dfe7f1;
}

.nkp-sure-pill.done .tarih {
    color: #15803d;
    border-left-color: #a5d6a7;
}

/* İllüstrasyon */
.nkp-illus {
    flex-shrink: 0;
    width: 130px;
    align-self: flex-end;
}

/* ─── Adımlar ─── */
.nkp-steps {
    display: flex;
    align-items: center;
    margin: 10px 0 16px;
    position: relative;
    z-index: 1;
}

.nkp-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.nkp-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.nkp-step-num.active {
    background: var(--theme-deafult, #7c3aed);
    color: #fff;
}

.nkp-step-num.done {
    background: #16a34a;
    color: #fff;
}

.nkp-step-num.todo {
    background: #ede9fe;
    color: var(--theme-deafult, #7c3aed);
}

.nkp-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e2e6ed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.nkp-step-icon svg {
    width: 16px;
    height: 16px;
}

.nkp-step-icon.active svg {
    stroke: var(--theme-deafult, #7c3aed);
}

.nkp-step-icon.dim svg {
    stroke: #b8c0d0;
}

.nkp-step-icon.done-step svg {
    stroke: #16a34a;
}

.nkp-step-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1a2e5a;
    margin: 0;
}

.nkp-step-text p {
    font-size: 13px;
    color: #7a8499;
    font-weight: 600;
    margin: 2px 0 0;
    line-height: 1.3;
}

.nkp-step-text.dim h4 {
    color: #9aa3b2;
}

.nkp-step-arrow {
    font-size: 14px;
    color: #d4a7f0;
    flex-shrink: 0;
    margin: 0 10px;
}


.nkp-footer-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #ede9fe;
    font-family: inherit;
    transition: background .15s;
    width: 100%;

    /* ─── Toggle Btn ─── */

    .nkp-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: max-content;
        min-width: 220px;
        padding: 11px 16px;
        font-size: 13px;
        font-weight: 700;
        color: var(--nkp-button-color, #7c3aed);
        background: transparent;
        border: none;
        cursor: pointer;
        margin: 4px 0;
        position: relative;
        transition: all 0.2s ease;
        z-index: 1;

        &::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: var(--page-button-border-radius, 4px);
            background: var(--nkp-button-color, #7c3aed);
            border: 1px solid var(--nkp-button-color, #7c3aed);
            transform: scale(0.75);
            opacity: 0;
            z-index: -1;
        }

        &:hover {
            color: var(--theme-deafult, #124789);
        }
    }

    .nkp-toggle-btn.done {
        color: #15803d;
        border-top-color: #a5d6a7;
    }

    .nkp-toggle-btn.done:hover {
        background: #f0fdf4;
    }

    .nkp-toggle-btn .chev {
        transition: transform .25s;
        display: inline-block;
    }

    .nkp-toggle-btn.open .chev {
        transform: rotate(180deg);
    }

}


/* ─── DETAY ALANI ─── */
.nkp-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
    border-top: 0;
}

.nkp-detail.open {
    max-height: 2000px;
}

.nkp-detail-body {
    padding: 18px 20px 0;
}

.nkp-divider {
    height: 1px;
    background: #e2e6ed;
    margin: 14px 0;
}

.nkp-lbl {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    color: #7a8499;
    text-transform: uppercase;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Marka Kartları */
.nkp-marka-grid, .nkp-attp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 4px;
}

.nkp-marka-card {
    background: #ffff;
    border: 1px solid #fbd38d;
    border-radius: 10px;
    padding: 12px 14px;
}

.nkp-marka-card.ok, .nkp-cat-pill.done {
    background: #f0fdf4;
    border-color: #a5d6a7;

    .nkp-marka-name span {
        color: #16a34a;
    }
}

.nkp-marka-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.nkp-marka-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a2e5a;
}

.nkp-marka-name span {
    color: #f97316;
}

.nkp-marka-adet {
    font-size: 13px;
    font-weight: 700;
}

.nkp-marka-adet.warn {
    color: #f97316;
}

.nkp-marka-adet.ok {
    color: #16a34a;
}

.nkp-marka-bar-bg {
    height: 5px;
    border-radius: 99px;
    background: #dfe7f1;
    overflow: hidden;
    margin: 4px 0 7px;
}

.nkp-marka-bar-bg.ok {
    background: #a5d6a7;
}

.nkp-marka-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #f97316, #fbbf24);
}

.nkp-marka-bar-fill.ok {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.nkp-marka-desc {
    margin: 0;
    font-size: 11px;
    color: #7a8499;
    font-weight: 600    ;
}

.nkp-marka-min {
    font-size: 11px;
    font-weight: 700;
    color: #c05621;
    margin-top: 3px;
}

.nkp-marka-min.ok {
    color: #15803d;
}

/* Marka-only satır */
.nkp-brand-only-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nkp-brand-only-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    background: #ffff;
    border: 1px solid #fbd38d;
    border-radius: 10px;
    transition: border-color .15s;
}

.nkp-brand-only-row.ok {
    background: #f0fdf4;
    border-color: #a5d6a7;
}

.nkp-brand-only-lbl {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #1a2e5a;
}

.nkp-brand-only-val.ok {
    color: #16a34a;
    font-weight: 700;
    font-size: 12px;
}

.nkp-brand-only-val.none {
    color: #f97316;
    font-weight: 700;
    font-size: 12px;
}

/* Attr/adet kuralları */
.nkp-rule-row {
    background: #ffff;
    border: 1px solid #fbd38d;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
}

.nkp-rule-row.ok {
    background: #f0fdf4;
    border-color: #a5d6a7;
    .nkp-rule-name {
        color: #16a34a;
    }
}

.nkp-rule-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 7px;
}

.nkp-rule-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #f97316;
}

.nkp-rule-val {
    font-size: 13px;
    font-weight: 700;
}

.nkp-rule-val.ok {
    color: #16a34a;
}

.nkp-rule-val.warn {
    color: #f97316;
}

.nkp-rule-bar-wrap {
    position: relative;
    height: 5px;
    background: #dfe7f1;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 7px;
}

.nkp-rule-bar-wrap.ok {
    background: #a5d6a7;
}

.nkp-rule-fill-gecmis {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg,#16a34a,#22c55e);
    border-radius: 99px 0 0 99px;
}

.nkp-rule-fill-sepet {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 0 99px 99px 0;
}

.nkp-rule-fill-sepet.ok {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.nkp-rule-fill-sepet.progress {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.nkp-rule-sub {
    font-size: 11px;
    font-weight: 700;
    color: #c05621;
    line-height: 1.5;

    &.ok {
        color: rgb(22, 163, 74);
    }
}

.nkp-rule-gecmis-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #666;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 99px;
    padding: 2px 8px;
    width: fit-content;
}

/* Grid: Min Adet / Tutar */
.nkp-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 4px;
}

.nkp-stat-cell {
    background: #f8f9fb;
    border: 1px solid #e2e6ed;
    border-radius: 10px;
    padding: 11px 13px;
}

.nkp-stat-cell.ok {
    background: #f0fdf4;
    border-color: #a5d6a7;
}

.nkp-stat-cell-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nkp-stat-val {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
}

.nkp-stat-val.ok {
    color: #16a34a;
}

.nkp-stat-val.warn {
    color: #f97316;
}

.nkp-stat-bar {
    height: 5px;
    background: #e2e6ed;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 6px;
}

.nkp-stat-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #f97316, #fbbf24);
}

.nkp-stat-fill.ok {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.nkp-stat-sub {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}

/* Kategori pilleri */
.nkp-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nkp-cat-pill {
    background: #fff;
    border: 1px solid var(--nkp-button-color);
    color: var(--nkp-button-color);
    border-radius: 8px;
    padding: 4px 11px;
    font-size: 11.5px;
    font-weight: 600;
}

.nkp-cat-pill.exclude {
    border-color: #fca5a5;
    color: #dc2626;
    background: #fff5f5;
}

.nkp-product-pills {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    gap: 6px;
}

.nkp-product-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 0.5px solid var(--nkp-button-color);
    background: #f9fafb;
    font-size: 12px;
    color: var(--nkp-button-color);
    max-width: 180px;
}

.nkp-product-pill--done {
    border-color: #4CAF50;
    background: #f0fdf4;
    color: #166534;
}

.nkp-product-pill__icon--done {
    font-size: 10px;
    color: #4CAF50;
}

.nkp-product-pill__icon--todo {
    font-size: 10px;
    color: var(--nkp-button-color);
}

.nkp-product-pill__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    display: inline-block;
    vertical-align: middle;
}

/* Info / Hint kutusu */
.nkp-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.6;
}

.nkp-hint.warn {
    background: #fffbeb;
    border: 1px solid #dfe7f1;
    color: #78350f;
}

.nkp-hint.success {
    background: #f0fdf4;
    border: 1px solid #a5d6a7;
    color: #15803d;
}

.nkp-hint.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.nkp-hint svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Çoklu ödül */
.nkp-multi-wrap {
    background: #fdf4ff;
    border: 0.5px solid #e5e7eb;
    border-radius: 0 0 12px;
    padding: 14px 16px;
}

.nkp-multi-lbl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.nkp-multi-lbl-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #6d28d9;
}

.nkp-multi-lbl-right {
    font-size: 13px;
    font-weight: 500;
    color: #7c3aed;
}

.nkp-multi-sub {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 14px;
}

.nkp-multi-steps {
    display: flex;
    align-items: center;
    overflow-x: auto;
}

.nkp-multi-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nkp-multi-conn {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    min-width: 12px;
    margin-bottom: 35px;
}

.nkp-multi-conn.filled {
    background: #4CAF50;
}

.nkp-multi-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nkp-multi-box.filled {
    background: #4CAF50;
    border-color: #4CAF50;
}

.nkp-multi-box.active {
    background: #ede9fe;
    border-color: #a855f7;
}

.nkp-multi-num {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.nkp-multi-status {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.nkp-multi-status.filled {
    color: #4CAF50;
}

.nkp-multi-status.active {
    color: #7c3aed;
}

.nkp-multi-status.todo {
    color: #9ca3af;
}

.nkp-multi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 0.5px solid #e5e7eb;
}

.nkp-multi-footer-left {
    font-size: 12px;
    color: #7c3aed;
    font-weight: 600;
}

.nkp-multi-footer-right {
    font-size: 12px;
    font-weight: 500;
    color: #7c3aed;
}

/* Footer */
.nkp-footer {
    border-top: 1px solid #e2e6ed;
    padding: 11px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    background: #f8f9fb;
    margin-top: 16px;
}

.nkp-hak-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f4f5f7;
    color: #4a5568;
    border: 1px solid #e2e6ed;
}

.nkp-hak-pill.ok {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.nkp-hak-pill.used {
    background: #fff5f5;
    color: #dc2626;
    border-color: #fca5a5;
}

.nkp-btn-row {
    display: flex;
    gap: 8px;
}

.nkp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    color: #1a2e5a;
    border: 1px solid #b8c0d0;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

.nkp-btn-outline:hover {
    background: #e8edf5;
}

.nkp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a2e5a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

.nkp-btn-primary:hover {
    background: #152448;
}

.nkp-btn-primary.done {
    background: #16a34a;
}

.nkp-btn-primary.done:hover {
    background: #15803d;
}

/* Confetti */
.nkp-confetti-piece {
    position: absolute;
    border-radius: 2px;
    pointer-events: none;
    animation: nkpCf 1.4s ease-out forwards;
}

.sg-vat-wrap {
    display: inline-flex;
    align-items: center;
}



@keyframes nkpCf {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0)
    }
    100% {
        opacity: 0;
        transform: translateY(60px) rotate(360deg)
    }
}

.basket-clean-button-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

/*@Media Queries*/
@media (max-width: 1600px) {
    .nkp-firsat-badge {
        position: absolute;
        top: -12px;
        right: -15px;
    }
    .nkp-prog-label {
        flex: 1;
    }
}
@media (max-width: 1025px) {
    .nkp-banner-top {
        grid-template-columns: auto 1fr;
        row-gap: 0;

        .nkp-progress-wrapper {
            order: 3;
            grid-column: 1 / 3;

            .nkp-prog-top-wrap {
                flex-direction: column-reverse;
                align-items: flex-start;
            }

        }

        .nkp-illus {
            width: 100%;
            margin-top: 1rem;

            svg {
                height: 90px;
                width: 90px;
            }
        }
    }
    .product_inf_area a {
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: 300px;
    }

    .nkp-steps {
        flex-direction: column;
        gap: 5px;

        .nkp-step {
            width: 100%;
        }

        .nkp-step-arrow {
            transform: rotateZ(90deg);
        }
    }
    .sg-wrap {
        padding:.5rem;
    }
    .nkp-left-wrapper {
        .nkp-icon {
            height: 45px;
            width: 45px;
        }

        .nkp-title-block p {
            max-width: 180px;
        }
    }

    .basket-clean-button-wrap {
        margin-bottom: .7rem;
    }
}

@media (min-width: 768px) and (max-width: 1025px) {


    .nkp-steps {
        flex-direction: column;
        gap: 5px;

        .nkp-step {
            width: 100%;
        }

        .nkp-step-arrow {
            transform: rotateZ(90deg);
        }
    }

    .nkp-left-wrapper {
        .nkp-icon {
            height: 50px;
            width: 50px;
        }

        .nkp-title-block p {
            max-width: 100%;
        }
    }

    .nkp-prog-top-wrap {
       flex-direction: unset !important;
    }


    .nkp-illus {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

}