/* ===============================
   1. CSS VARIABLES (Theme tokens)
   2. BASE (Global reset & helpers)
   3. PRODUCT CARD – CORE
   4. PRODUCT CARD – ELEMENTS
   5. PRODUCT CARD – STATES
   6. ACTIONS & BUTTONS
   7. BADGES
   8. TOUCHSPIN (Miktar)
   9. IMAGE / ZOOM
   10. DATATABLE OVERRIDES
   11. RESPONSIVE (Mobile)
================================ */

/* 1. CSS VARIABLES (Theme tokens) */
:root {
    --color-bg: #ffffff;
    --color-muted: #6b7280;
    --color-text: #111827;

    --color-success: #16a34a;
    --color-danger: #dc2626;
    --color-warning: #f97316;
    --color-primary: #111827;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow-sm: 0 4px 14px rgba(0, 0, 0, .06);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, .10);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #eef2f5;
    color: var(--color-text);
}

.product-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    /* önemli */
    transition: box-shadow .25s ease, transform .2s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.product-card:before {
    border-radius: var(--radius-lg);
}

.product-card__image {
    width: 84px;
    min-width: 84px;
    height: 84px;
    border-radius: 14px;
    border: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6px;
    flex: 1;
}

.product-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    alignment-baseline: middle;
}

.product-card__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
    margin-bottom: 4px;
}

.product-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--color-muted);
    margin-bottom: 6px;
}

.product-card__meta i {
    font-size: 11px;
    opacity: .6;
}

.product-card__price {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.price-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-success);
}

.price-discount {
    font-size: 11px;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239, 68, 68, .08);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.price-call {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-danger);
    width: 100%;
    padding: 6px;
}

.product-card__actions {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-card__actions a,
.product-card__actions button {
    flex: 1;
    padding: 6px 0;
    border-radius: 6px;
    height: 40px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    font-weight: 600;
}

.bootstrap-touchspin {
    height: 100% !important;
}

.bootstrap-touchspin-down {
    left: 0px !important;
    right: auto !important;
    margin: 0px !important;
    border-radius: 6px 0px 0px 6px !important;
}

.bootstrap-touchspin-up {
    left: auto !important;
    right: 0px !important;
    margin: 0px !important;
    border-radius: 0px 6px 6px 0px !important;
}

.product-badge {
    top: -6px;
    left: auto;
    font-size: 9.5px;
    padding: 2px 6px;
    opacity: .95;
    right: auto;
    border-radius: 999px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    position: absolute;
}

.product-badge--out {
    background: #ef4444;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.product-badge--stock {
    background: var(--color-success);
}

.product-badge--out {
    background: var(--color-danger);
}

.product-card--campaign-stock {
    border: 1px solid #fecaca;
    animation: campaign-border-blink 2.8s infinite;
}

@keyframes campaign-border-blink {
    0% {
        box-shadow: 0 0 0 1px rgba(239, 68, 68, .25);
    }

    50% {
        box-shadow: 0 0 0 2px rgba(239, 68, 68, .6);
    }

    100% {
        box-shadow: 0 0 0 1px rgba(239, 68, 68, .25);
    }
}

.tableMiktarContainer {
    flex: 0 0 auto;
}

.tableMiktarSpin,
.tableMiktar {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 16px;
    text-align: center;
}

.bootstrap-touchspin .bootstrap-touchspin-vertical-button-wrapper {
    width: 100%;
    border: none;
}

.mobile-balance-bar {
    background: linear-gradient(180deg, #1f2937, #111827);
    color: #ffffff;
}

#imageZoomModal img {
    border-radius: var(--radius-md);
    max-height: 80vh;
}

.mobile-balance-bar {
    background: linear-gradient(180deg, #111827, #0f172a);
}

.mobile-balance-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    /* ortala */
    padding: 4px 10px;
}

.mobileHeaderMusteriOnizleme {
    background: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10.5px;
    /* 11px → 10.5px */
    font-weight: 500;
}

.mobile-header__balance {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-weight: 600;
    font-size: 11px;
}

/* Ana bakiye */
.balance-main {
    color: #a7f3d0;
    /* yeşilimsi */
}

/* Borç / Alacak */
.balance-type {
    opacity: .85;
}

/* Ayırıcı */
.balance-sep {
    opacity: .5;
    margin: 0 2px;
}

/* Gecikme bilgisi */
.balance-delay {
    color: #fde68a;
}

/* Gecikmiş bakiye */
.balance-overdue {
    color: #fca5a5;
}

.product-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-main {
    display: flex;
    flex-direction: column;
}

.price-kdv {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.btn-orange {
    background-color: #ff6600;
    border-color: #ff6600;
    color: #ffffff;
}

.tableUrunlerListMiktar .bootstrap-touchspin .bootstrap-touchspin-vertical-button-wrapper {
    width: 100% !important;
    border: none;
    z-index: 999;
    height: auto;

}

.bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-down {
    bottom: auto !important;
}



.view-btn {
    color: #ffffff !important;
}

.price-table-vertical {
    display: grid;
    gap: 4px;
    margin-top: 6px;
    width: 100%;
}

/* Üst başlıklar */
.price-table-header {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    font-size: 10px;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

/* Alt değerler */
.price-table-values {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
}

/* Vurgular */
.price-main {
    font-size: 14px;
    font-weight: 700;
    color: #16a34a;
}

.price-net {
    font-weight: 700;
}

.urunler-list-arama .hizli-islemler {
    margin-top: 0px !important;
}

.banner-container .home-block {
    margin: 0px !important;
}

.bootstrap-touchspin .input-group-btn-vertical>.btn {
    height: 32px !important;
}

.sepete-ekle-btn-color {
    border-radius: 5px;
}

.sepete-ekle-btn-color:hover {
    color: #ffffff !important;
    background-color: #0069d9;
    border-color: #0062cc
}

.table-list .view-btn {
    border-radius: 5px;
}

.table-list .view-btn:hover {
    color: #fff;
    background-color: #218838;
    border-color: #1e7e34
}

.tableMiktarSpin {
    color: #fff;
    background-color: #141a1a;
    border: 1px solid #192123;
    border-radius: 4px;
    font-size: 14px !important;
    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

/* Hover */
.tableMiktarSpin:hover {
    background-color: #1b2222;
    border-color: #2a3a3d;
}

/* Focus (özellikle input için önemli) */
.tableMiktarSpin:focus,
.tableMiktarSpin:focus-visible {
    outline: none;
    background-color: #1b2222;
    border-color: #3aa6a6;
    box-shadow: 0 0 0 2px rgba(58, 166, 166, 0.25);
}

/* Disabled */
.tableMiktarSpin:disabled,
.tableMiktarSpin.disabled {
    background-color: #0f1414;
    border-color: #1a1f1f;
    color: #7a7a7a;
    cursor: not-allowed;
    opacity: .8;
}

/* Eğer bootstrap-touchspin kullanıyorsan */
.tableMiktarSpin+.bootstrap-touchspin-vertical-button-wrapper button {
    background-color: #192123;
    color: #fff;
    border-color: #192123;
}

.tableMiktarSpin+.bootstrap-touchspin-vertical-button-wrapper button:hover {
    background-color: #243030;
}

@media (max-width: 992px) {

    input,
    select,
    textarea,
    button {
        font-size: 16px !important;
    }

    table.dataTable {
        display: none !important;
    }

    .dt-card-view {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0px;
    }

    .urunler-list-arama .hizli-islemler {
        margin-top: 0px;
    }

    .page-header__title h3 {
        margin-bottom: 0px;
        font-size: 18px;
        font-weight: 500;
    }

    #catalogList {
        display: none !important;
    }

    .site-content-wrapper .container {
        padding-top: 15px;
    }

    .ms-options-wrap {
        width: 100% !important;
    }

    .urunler-list-arama .hizli-islemler .islem label {
        font-size: 12px;
    }

    .bootstrap-touchspin .input-group-btn-vertical .btn {
        font-weight: 400;
        font-size: 21px;
        line-height: 1;
    }

    .filter-input {
        padding: 0px !important;
    }

    .ms-options-wrap>.ms-options {
        width: 100% !important;
    }

    .ms-options-wrap>.ms-options>.ms-search input {
        padding: 8px 10px;
    }

    .ms-options-wrap>.ms-options>.ms-selectall.global {
        font-size: 13px;
        width: 100%;
        padding: 10px 5px;
        text-align: center;
        text-transform: none;
        border-bottom: 1px groove rgb(238, 238, 238);
        margin: 0px !important;
    }

    .ms-options-wrap>.ms-options>ul label {
        display: flex;
        align-items: center;
        padding: 10px 10px 10px 10px;
    }

    .ms-options-wrap>.ms-options>ul input[type=checkbox] {
        margin: 0 11px 0 0;
        position: static;
    }
}

@media (max-width: 768px) {
    .urun-mobil-slider {
        margin-bottom: 30px !important;
    }

    .bootstrap-touchspin .input-group-btn-vertical>.btn {
        height: 40px !important;
    }
}