/* TNC Quick Price Editor v1.3.0 - style.css */
*, *::before, *::after { box-sizing: border-box; }

/* ── Login ─────────────────────────────────────── */
.tncqp-login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 340px;
    padding: 40px 16px;
}
.tncqp-login-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.tncqp-login-logo { font-size: 48px; margin-bottom: 12px; }
.tncqp-login-box h2 { margin: 0 0 6px; font-size: 20px; color: #1e293b; }
.tncqp-login-box p  { margin: 0 0 24px; color: #64748b; font-size: 14px; }
.tncqp-login-form .tncqp-input-group { display: flex; gap: 8px; }
.tncqp-pw-input {
    flex: 1;
    padding: 10px 14px !important;
    height: auto !important;
    min-height: 40px !important;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    box-shadow: none !important;
    transition: border-color .2s;
}
.tncqp-pw-input:focus { border-color: #3b82f6; }
.tncqp-btn-login {
    padding: 10px 20px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.tncqp-btn-login:hover { background: #2563eb; }

/* ── Alerts ────────────────────────────────────── */
.tncqp-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}
.tncqp-alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.tncqp-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.tncqp-alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Wrap ──────────────────────────────────────── */
.tncqp-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    color: #1e293b;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Header ────────────────────────────────────── */
.tncqp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}
.tncqp-title { margin: 0; font-size: 20px; color: #1e293b; }
.tncqp-logout {
    padding: 7px 16px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s;
}
.tncqp-logout:hover { background: #e2e8f0; color: #1e293b; }

/* ── Toolbar ───────────────────────────────────── */
.tncqp-toolbar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.tncqp-filter-form  { margin-bottom: 8px; }
.tncqp-filter-row   { display: flex; flex-wrap: nowrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.tncqp-row-search   { /* search full width */ }
.tncqp-row-search .tncqp-field { flex: 1; }
.tncqp-row-cat      { /* danh mục + nút lọc luôn cùng hàng */ }
.tncqp-row-cat .tncqp-field { flex: 1; min-width: 0; }
.tncqp-field-sort { flex: 0 0 160px !important; min-width: 0; }
.tncqp-field        { flex: 1; min-width: 0; }

/* Hàng per-page + summary */
.tncqp-summary-row {
    display: table;
    width: auto;
    margin-top: 8px;
    border-spacing: 12px 0;
}
.tncqp-perpage-form {
    display: table-cell;
    vertical-align: middle;
}
.tncqp-select-per {
    width: auto;
    min-width: 110px;
    padding: 6px 10px;
    font-size: 13px;
    height: auto !important;
    min-height: unset !important;
    box-shadow: none !important;
    display: block;
}
.tncqp-summary {
    display: table-cell;
    vertical-align: middle;
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    padding-left: 4px;
}

.tncqp-input {
    width: 100%;
    padding: 8px 12px !important;
    height: auto !important;
    min-height: 36px !important;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 14px;
    background: #fff;
    outline: none;
    box-shadow: none !important;
    transition: border-color .2s;
}
.tncqp-input:focus { border-color: #3b82f6; }
.tncqp-select {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color .2s;
}
.tncqp-input:focus,
.tncqp-select:focus { border-color: #3b82f6; }

.tncqp-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 18px;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, opacity .2s;
    white-space: nowrap;
}
.tncqp-btn-primary            { background: #3b82f6; color: #fff; padding: 9px 18px !important; height: auto !important; min-height: unset !important; line-height: 1 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; vertical-align: middle !important; box-sizing: border-box !important; }
.tncqp-btn-primary:hover      { background: #2563eb; }
.tncqp-btn-secondary          { background: #64748b; color: #fff; padding: 9px 18px !important; height: auto !important; min-height: unset !important; line-height: 1 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; vertical-align: middle !important; box-sizing: border-box !important; margin-bottom: 13px; }
.tncqp-btn-secondary:hover    { background: #475569; }
.tncqp-btn-save               { background: #10b981; color: #fff; padding: 1px 6px; font-size: 13px; }
.tncqp-btn-save:hover         { background: #059669; }
.tncqp-btn-save:disabled      { opacity: .5; cursor: not-allowed; }
.tncqp-btn-save.saved         { background: #6366f1; }

.tncqp-btn-trash {
    background: none;
    color: #cbd5e1;
    border: 1px solid #e2e8f0;
    padding: 7px 9px;
    font-size: 14px;
    border-radius: 7px;
    cursor: pointer;
    transition: color .2s, background .2s, border-color .2s;
    margin-left: 4px;
    vertical-align: middle;
}
.tncqp-btn-trash:hover { color: #ef4444; background: #fef2f2; border-color: #fecaca; }

.tncqp-btn-view {
    background: none;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    padding: 7px 9px;
    font-size: 14px;
    border-radius: 7px;
    text-decoration: none;
    margin-left: 4px;
    transition: color .2s, background .2s, border-color .2s;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}
.tncqp-btn-view:hover { color: #3b82f6; background: #eff6ff; border-color: #bfdbfe; }

/* ── Table ─────────────────────────────────────── */
.tncqp-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.tncqp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.tncqp-table thead th {
    background: #f1f5f9;
    padding: 11px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.tncqp-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}
.tncqp-table tbody tr:last-child { border-bottom: none; }
.tncqp-table tbody tr:hover      { background: #f8fafc; }
.tncqp-table td { padding: 4px 14px; vertical-align: middle; }

/* Cột */
.col-thumb  { width: 64px; padding-left: 10px !important; padding-right: 6px !important; }
.col-name   { min-width: 160px; max-width: 340px; }
.col-price,
.col-sale   { width: 110px; }

/* Bỏ spinner — đã đặt trong block .tncqp-price-input bên dưới */
.col-actions { width: 150px; text-align: center; white-space: nowrap; }

/* ── Confirm xóa ───────────────────────────────── */
.tncqp-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.tncqp-confirm-overlay.show { display: flex; }
.tncqp-confirm-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    animation: tncqp-pop .18s ease;
}
@keyframes tncqp-pop {
    from { transform: scale(.92); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.tncqp-confirm-box .tncqp-confirm-icon { font-size: 38px; margin-bottom: 10px; }
.tncqp-confirm-box h3 { margin: 0 0 8px; font-size: 17px; color: #1e293b; }
.tncqp-confirm-box p  { margin: 0 0 22px; font-size: 13px; color: #64748b; line-height: 1.6; }
.tncqp-confirm-actions { display: flex; gap: 10px; justify-content: center; }
.tncqp-btn-confirm-yes {
    background: #ef4444; color: #fff;
    border: none; border-radius: 8px;
    padding: 9px 24px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background .2s;
}
.tncqp-btn-confirm-yes:hover { background: #dc2626; }
.tncqp-btn-confirm-no {
    background: #f1f5f9; color: #475569;
    border: none; border-radius: 8px;
    padding: 9px 24px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background .2s;
}
.tncqp-btn-confirm-no:hover { background: #e2e8f0; }

/* Ảnh */
.tncqp-thumb {
    width: 48px; height: 48px;
    min-width: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: block;
}
.tncqp-thumb-placeholder {
    width: 48px; height: 48px;
    min-width: 48px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

/* ── Name display ──────────────────────────────── */
.tncqp-name-display {
    display: flex;
    align-items: center;
    gap: 0;
}
.tncqp-name-text {
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    display: inline-block;
    vertical-align: middle;
}
.tncqp-name-meta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
    flex-shrink: 0;
}
.tncqp-btn-edit-name {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 3px 5px;
    border-radius: 4px;
    opacity: .45;
    transition: opacity .2s, background .2s;
    line-height: 1;
}
.tncqp-btn-edit-name:hover { opacity: 1; background: #f1f5f9; }

.tncqp-product-ext {
    color: #94a3b8;
    text-decoration: none;
    font-size: 12px;
    padding: 3px 4px;
    border-radius: 4px;
    transition: color .2s, background .2s;
    line-height: 1;
}
.tncqp-product-ext:hover { color: #3b82f6; background: #eff6ff; }

/* Badge */
.tncqp-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
    flex-shrink: 0;
}
.tncqp-badge-out { background: #fef2f2; color: #ef4444; }

/* ── Edit panel xổ xuống ───────────────────────── */
.tncqp-edit-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .25s ease;
    overflow: hidden;
}
.tncqp-edit-panel.open {
    grid-template-rows: 1fr;
}
.tncqp-edit-panel-inner {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    transition: padding .25s ease;
}
.tncqp-edit-panel.open .tncqp-edit-panel-inner {
    padding: 10px 0 4px;
}

.tncqp-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 6px;
}
.tncqp-label:first-child { margin-top: 0; }

.tncqp-name-input {
    width: 100%;
    padding: 7px 10px !important;
    height: auto !important;
    min-height: 34px !important;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    box-shadow: none !important;
    transition: border-color .2s;
    color: #1e293b;
}
.tncqp-name-input:focus   { border-color: #3b82f6; }
.tncqp-name-input.changed  { border-color: #f59e0b; background: #fffbeb; }
.tncqp-name-input.saved-ok { border-color: #10b981; background: #f0fdf4; }

.tncqp-cat-select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color .2s;
}
.tncqp-cat-select:focus    { border-color: #3b82f6; }
.tncqp-cat-select.changed  { border-color: #f59e0b; background: #fffbeb; }
.tncqp-cat-select.saved-ok { border-color: #10b981; background: #f0fdf4; }

.tncqp-panel-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}
.tncqp-btn-panel-ok {
    background: #10b981; color: #fff;
    padding: 6px 14px; font-size: 12px;
}
.tncqp-btn-panel-ok:hover { background: #059669; }
.tncqp-btn-panel-cancel {
    background: #f1f5f9; color: #64748b;
    padding: 6px 14px; font-size: 12px;
}
.tncqp-btn-panel-cancel:hover { background: #e2e8f0; }

/* ── Price inputs ──────────────────────────────── */
.tncqp-price-input {
    width: 100%;
    padding: 2px 8px !important;
    height: 28px !important;
    min-height: unset !important;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    text-align: right;
    outline: none;
    transition: border-color .2s;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    box-shadow: none !important;
}
.tncqp-wrap .tncqp-price-input::-webkit-outer-spin-button,
.tncqp-wrap .tncqp-price-input::-webkit-inner-spin-button,
#tncqp-app .tncqp-price-input::-webkit-outer-spin-button,
#tncqp-app .tncqp-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
}
.tncqp-price-input:focus   { border-color: #3b82f6; }
.tncqp-price-input.changed  { border-color: #f59e0b; background: #fffbeb; }
.tncqp-price-input.saved-ok { border-color: #10b981; background: #f0fdf4; }

.tncqp-price-preview {
    font-size: 11px;
    color: #94a3b8;
    text-align: right;
    margin-top: 2px;
    min-height: 14px;
    line-height: 1;
}

/* ── Row highlight ─────────────────────────────── */
.tncqp-row.row-saving { opacity: .6; }
.tncqp-row.row-saved  { background: #f0fdf4 !important; }
.tncqp-row.row-error  { background: #fef2f2 !important; }

/* ── Empty ─────────────────────────────────────── */
.tncqp-empty { padding: 48px; text-align: center; color: #94a3b8; font-size: 16px; }

/* ── Pagination ────────────────────────────────── */
.tncqp-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
    padding-bottom: 20px;
}
.tncqp-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    text-decoration: none;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    transition: all .2s;
}
.tncqp-page-btn:hover  { background: #f1f5f9; border-color: #cbd5e1; }
.tncqp-page-active     { background: #3b82f6 !important; color: #fff !important; border-color: #3b82f6 !important; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    /* Header: title + logout cùng hàng, logout không xuống dòng */
    .tncqp-title { font-size: 16px; }

    /* Search full width */
    .tncqp-row-search { flex-wrap: nowrap; }

    /* Danh mục + Lọc: luôn cùng hàng (đã đúng, không override) */

    /* Tên sản phẩm truncate ngắn hơn */
    .tncqp-name-text { max-width: 140px; }
}

/* ════════════════════════════════════════════════
   TNC Product List — [tnc_product_list]
   ════════════════════════════════════════════════ */
.tncpl-wrap { margin: 0 auto; max-width: 1400px; }

/* Desktop: hiện table, ẩn list */
.tncpl-table-wrap { display: block; overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 10px; }
.tncpl-list { display: none; }

/* Table */
.tncpl-table { width: 100%; border-collapse: collapse; background: #fff; }
.tncpl-table thead tr { background: #3b82f6; }
.tncpl-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.tncpl-table tbody tr { border-bottom: 1px solid #f1f5f9; transition: background .15s; }
.tncpl-table tbody tr:last-child { border-bottom: none; }
.tncpl-table tbody tr:hover { background: #f8fafc; }
.tncpl-table tbody tr.tncpl-out-of-stock { opacity: .65; }
.tncpl-table td { padding: 8px 14px; vertical-align: middle; }
.tncpl-th-img  { width: 50px; }
.tncpl-th-qty  { width: 100px; }
.tncpl-th-btn  { width: 150px; }
.tncpl-th-price { width: 160px; }
.tncpl-td-img { padding: 6px 10px !important; }

@media (max-width: 768px) {
    /* Mobile: ẩn table, hiện list */
    .tncpl-table-wrap { display: none; }
}

/* ── List (mobile) ─────────────────────────────── */
.tncpl-list {
    display: none;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.tncpl-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}
.tncpl-item:last-child { border-bottom: none; }
.tncpl-item:hover { background: #f8fafc; }
.tncpl-item.tncpl-out-of-stock { opacity: .65; }

/* Hình */
.tncpl-img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    border: 1px solid #e2e8f0;
}
.tncpl-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tncpl-badge-sale {
    position: absolute;
    top: 4px; left: 4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1.2;
}

/* Thông tin */
.tncpl-info {
    flex: 1;
    min-width: 0;
}
.tncpl-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.tncpl-name:hover { color: #3b82f6; }
.tncpl-price-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tncpl-price-sale {
    font-size: 15px;
    font-weight: 700;
    color: #ef4444;
}
.tncpl-price-old {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}
.tncpl-price-contact {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

/* Giỏ hàng */
.tncpl-cart-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
/* Mobile: nút và qty full width */
.tncpl-cart-wrap .tncpl-qty-group,
.tncpl-cart-wrap .tncpl-btn-atc {
    align-self: stretch;
    width: 100%;
    justify-content: center;
}
/* Desktop: 1 hàng ngang */
@media (min-width: 769px) {
    .tncpl-cart-wrap {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .tncpl-cart-wrap .tncpl-qty-group,
    .tncpl-cart-wrap .tncpl-btn-atc {
        align-self: auto;
        width: auto;
        justify-content: flex-start;
    }
}
.tncpl-qty-group {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    height: 30px;
    width: fit-content;
}
.tncpl-qty-btn {
    background: #f8fafc;
    border: none !important;
    width: 30px !important;
    height: 30px !important;
    min-height: unset !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer;
    color: #475569;
    transition: background .15s;
    padding: 0 !important;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    margin-right: 1px;
    margin-bottom: 1px;
}
.tncpl-qty-btn:hover { background: #e2e8f0; color: #1e293b; }
.tncpl-qty-input {
    width: 40px !important;
    height: 30px !important;
    min-height: unset !important;
    border: none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #1e293b !important;
    line-height: 30px !important;
    margin-bottom: 1px;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}
.tncpl-qty-input::-webkit-outer-spin-button,
.tncpl-qty-input::-webkit-inner-spin-button { -webkit-appearance: none !important; margin: 0 !important; display: none !important; }

.tncpl-btn-atc {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, opacity .2s;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tncpl-btn-atc::before {
    font-family: "WooCommerce", "FontAwesome", sans-serif;
    content: "\f217";
    font-size: 13px;
    line-height: 1;
}
.tncpl-btn-atc.added::before { content: "✓"; }
.tncpl-btn-atc:hover    { background: #2563eb; }
.tncpl-btn-atc:disabled { opacity: .5; cursor: not-allowed; }
.tncpl-btn-atc.added    { background: #10b981; }

.tncpl-outstock-label {
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
    padding: 5px 10px;
    background: #fef2f2;
    border-radius: 6px;
}

/* Toast */
.tncpl-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
    z-index: 99999;
    white-space: nowrap;
}
.tncpl-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    .tncpl-list { display: flex; flex-direction: column; }
}
@media (max-width: 480px) {
    .tncpl-item { gap: 10px; padding: 8px 10px; }
    .tncpl-img-wrap { width: 52px; height: 52px; }
    .tncpl-name { font-size: 13px; }
    .tncpl-btn-atc { font-size: 11px; padding: 4px 8px; }
    .tncpl-cart-wrap { gap: 4px; }
}
/* ── v2.0: Variable product styles ─────────────────────── */

/* Dòng header sản phẩm cha (quick price editor) */
.tncqp-row-parent {
    background: #f0f7ff;
    border-top: 2px solid #bfdbfe;
}
.tncqp-row-parent td {
    padding: 10px 10px 8px;
    vertical-align: middle;
}
.tncqp-parent-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tncqp-badge-variable {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}
/* Dòng biến thể con */
.tncqp-row-variation {
    background: #fafbff;
}
.tncqp-row-variation:hover {
    background: #f0f4ff;
}
.tncqp-row-variation td {
    padding-top: 6px;
    padding-bottom: 6px;
}
.tncqp-var-label {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tncqp-var-indent {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}
.tncqp-var-name {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}
.tncqp-thumb-var {
    opacity: 0.85;
    width: 36px !important;
    height: 36px !important;
    margin-left: 6px;
}

/* Product list: dòng header cha */
.tncpl-tr-parent {
    background: #f0f7ff;
    border-top: 2px solid #bfdbfe;
}
.tncpl-tr-parent td {
    padding: 10px 12px 8px;
    vertical-align: middle;
}
.tncpl-tr-parent .tncpl-name {
    font-weight: 700;
    font-size: 15px;
}
.tncpl-badge-variable {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 8px;
    white-space: nowrap;
}

/* Dòng biến thể trong product list */
.tncpl-tr-variation {
    background: #fafbff;
}
.tncpl-tr-variation:hover {
    background: #f0f4ff;
}
.tncpl-tr-variation td {
    padding-top: 7px;
    padding-bottom: 7px;
}
.tncpl-var-indent-list {
    color: #94a3b8;
    font-size: 15px;
    margin-right: 4px;
}
.tncpl-var-name-link {
    font-size: 13px !important;
    color: #374151 !important;
    font-weight: 500 !important;
}
.tncpl-img-var {
    width: 38px !important;
    height: 38px !important;
    object-fit: cover;
    border-radius: 5px;
    opacity: 0.9;
}

/* Mobile card biến thể */
.tncpl-item-variation {
    background: #fafbff;
    border-left: 3px solid #bfdbfe !important;
    padding-left: 12px !important;
}
.tncpl-item-variation .tncpl-name {
    font-size: 13px !important;
    color: #374151 !important;
}
