.accessory-table-wrapper {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 12px;
}

.accessory-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    font-size: 14px;
}

.accessory-table thead th {
    text-align: left;
    padding: 10px 12px;
    color: #666;
    font-weight: 600;
}

.accessory-row {
    background: #fff;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.accessory-row:hover {
    background: #f1f3f5;
}

.accessory-row.active {
    background: #ffd84d;
}

.accessory-row td {
    padding: 12px;
    vertical-align: middle;
}

.img-col img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.model-col {
    font-weight: 600;
}

.type-col {
    color: #666;
}

.article-col {
    font-family: monospace;
}

.qty-col {
    text-align: center;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #e0e0e0;
    cursor: pointer;
    font-weight: bold;
}

.qty-btn:hover {
    background: #ccc;
}

.qty-value {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

/* METRIC TABLE */
.metric-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.metric-table tr {
    border-bottom: 1px solid #e9ecef;
}

.metric-table td {
    padding: 0.35rem 0.25rem;
    vertical-align: middle;
}

.metric-table .label {
    font-weight: 500;
    color: #296299;
}

.metric-table .unit {
    color: #296299;
    font-size: 0.8rem;
    text-align: center;
    width: 60px;
}

.metric-table .value {
    text-align: right;
    font-weight: 700;
    color: #296299;
    width: 80px;
}

.metric-table tr:hover {
    background-color: #f8f9fa;
}

.metric-table .value.active {
    color: #dc3545;
}

/* MINI CHART */
.mini-chart-card {
    background: #f2f2f2;
    border-radius: 14px;
    padding: 12px 14px;
    height: 220px;
    display: flex;
    flex-direction: column;
}

.mini-chart-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.mini-chart-unit {
    font-size: 0.7rem;
    color: #777;
    margin-bottom: 4px;
}

.mini-chart-canvas {
    flex: 1;
    position: relative;
}

.mini-chart-canvas canvas {
    width: 100% !important;
    height: 100% !important;
}

/* FLOATING ACTION BAR */
.floating-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    backdrop-filter: blur(6px);
}

.fab-inner {
    display: flex;
    justify-content: center;
}

.fab-btn {
    background: linear-gradient(135deg, #296299, #1e4f7a);
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 8px 20px rgba(41, 98, 153, 0.35);
}

.fab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(41, 98, 153, 0.45);
}

/* MOBILE */
@media (max-width: 768px) {
    .fab-btn {
        width: 90%;
        font-size: 14px;
    }
}


/* PDF BUTTON – FINAL */
/* ================================
   PDF BUTTON – RESPONSIVE FIX
================================ */

/* Genel buton görünümü */
.btn-pdf {
    background: #296299;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.btn-pdf:hover {
    background: #1f4d78;
}

/* Desktop */
.pdf-btn-wrapper {
    display: flex;
    align-items: center;
}

/* ================================
   MOBİL OPTİMİZASYON
================================ */
@media (max-width: 991.98px) {

    h2.mb-4 {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pdf-btn-wrapper {
        width: 100%;
        margin-top: 10px;
    }

    .btn-pdf {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .pdf-btn-wrapper {
        position: sticky;
        bottom: 10px;
        z-index: 20;
    }
}



/* =========================
   GLOBAL LOADING OVERLAY
========================= */
.global-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    pointer-events: all;
}

.global-loader.active {
    display: flex;
}

.loader-box {
    text-align: center;
}

.loader-text {
    margin-top: 14px;
    font-weight: 600;
    color: #296299;
    font-size: 14px;
}

/* SPINNER */
.spinner {
    width: 56px;
    height: 56px;
    border: 6px solid #dbe6ef;
    border-top: 6px solid #296299;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================= */
/* VARYASYON TOPLAM BAR */
/* ============================= */
.version-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 16px 20px;
    margin-bottom: 20px;

    background: #f8fafc;
    border: 1px solid #e3e6ea;
    border-radius: 10px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 13px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.summary-total {
    font-size: 22px;
    font-weight: 700;
    color: #0a6aa1;
}

.btn-add-to-cart {
    padding: 10px 22px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
}

.btn-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================= */
/* STICKY CART – ALWAYS VISIBLE */
/* ============================= */
#stickyCart {
    position: fixed;
    /* 🔥 KRİTİK */
    right: 20px;
    bottom: 20px;
    width: 320px;

    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e3e6ea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    z-index: 99999;
    /* 🔥 HEADER / MODAL ÜSTÜ */
    display: flex;
    flex-direction: column;

    /* 🔴 BAŞLANGIÇTA GİZLİ */
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: opacity .25s ease, transform .25s ease;
}

/* 🟢 SADECE DOLUYKEN */
#stickyCart.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cart-header {
    padding: 14px 16px;
    font-weight: 700;
    background: #0a6aa1;
    color: #fff;
    border-radius: 12px 12px 0 0;
}

.cart-body {
    padding: 12px 16px;
    max-height: 240px;
    overflow-y: auto;
    font-size: 14px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cart-footer {
    padding: 14px 16px;
    border-top: 1px solid #e3e6ea;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.cart-remove {
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.cart-remove:hover {
    color: #a71d2a;
}