/**
 * B2B Product List - Modern Card View
 */

/* ============================================================
   HIDE DEFAULT PS CATEGORY HEADER & SORT (replaced by B2B toolbar)
   ============================================================ */
.b2b-products-card-view ~ #js-product-list-bottom,
#js-product-list-header,
#js-product-list-top {
    display: none !important;
}

/* ============================================================
   TOOLBAR
   ============================================================ */
.b2b-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px 10px 0 0;
    flex-wrap: wrap;
}

.b2b-toolbar__left { flex-shrink: 0; }
.b2b-toolbar__center { flex: 1; min-width: 200px; }
.b2b-toolbar__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.b2b-product-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}
.b2b-product-count i { font-size: 20px; color: #9ca3af; }
.b2b-product-count strong { color: #111827; font-size: 15px; }

.b2b-search-wrapper {
    position: relative;
    max-width: 420px;
    width: 100%;
}
.b2b-search-wrapper > i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #9ca3af; font-size: 20px; pointer-events: none;
}
.b2b-search-wrapper input {
    width: 100%; padding: 9px 16px 9px 44px;
    border: 1px solid #e5e7eb; border-radius: 8px;
    font-size: 14px; background: #f9fafb;
    transition: all 0.2s;
}
.b2b-search-wrapper input:focus {
    outline: none; border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
    background: #fff;
}

.b2b-perpage-wrapper, .b2b-sort-wrapper {
    display: flex; align-items: center; gap: 8px;
}
.b2b-perpage-wrapper label, .b2b-sort-wrapper label {
    margin: 0; font-size: 13px; color: #6b7280; white-space: nowrap;
}
.b2b-perpage-wrapper select, .b2b-sort-wrapper select {
    padding: 7px 10px; border: 1px solid #e5e7eb; border-radius: 6px;
    font-size: 13px; background: #fff; min-width: 80px;
}

/* --- Toggle all packs --- */
.b2b-toggle-all-packs {
    display: flex; align-items: center; gap: 8px;
    margin-top: 8px;
}
.b2b-toggle-all-packs input[type="checkbox"] {
    width: 16px; height: 16px; cursor: pointer;
    accent-color: var(--b2b-main-color, #b12704);
}
.b2b-toggle-all-packs label {
    margin: 0; font-size: 13px; color: #6b7280;
    cursor: pointer; display: flex; align-items: center; gap: 4px;
    user-select: none;
}
.b2b-toggle-all-packs label i { font-size: 18px; color: #3b82f6; }

/* ============================================================
   LIST HEADER (column labels)
   ============================================================ */
.b2b-list-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-top: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}
.b2b-lh__image { width: 90px; flex-shrink: 0; }
.b2b-lh__info { flex: 1; }
.b2b-lh__stock { width: 90px; text-align: center; flex-shrink: 0; }
.b2b-lh__prices { width: 160px; text-align: right; flex-shrink: 0; }
.b2b-lh__actions { width: 180px; text-align: center; flex-shrink: 0; }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.b2b-cards-container {
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    background: #fff;
}

.b2b-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s, box-shadow 0.15s;
    gap: 16px;
}
.b2b-card:last-child { border-bottom: none; }
.b2b-card:hover { background: #f8fafc; }

/* Selected (qty > 0) */
.b2b-card.b2b-has-qty {
    background: #ecfdf5 !important;
    border-left: 3px solid #10b981;
}

/* --- Image --- */
.b2b-card__image {
    width: 80px; height: 80px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; overflow: hidden;
    border: 1px solid #f3f4f6; background: #fff;
}
.b2b-card__image img {
    width: 100%; height: 100%; object-fit: contain;
}
.b2b-card__image a { display: flex; width: 100%; height: 100%; }
.b2b-card__no-img {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; background: #f9fafb;
}
.b2b-card__no-img i { font-size: 32px; color: #d1d5db; }

/* --- Info --- */
.b2b-card__info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 4px;
}
.b2b-card__name {
    font-size: 14px; font-weight: 600; color: #111827;
    text-decoration: none; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
a.b2b-card__name:hover { color: var(--b2b-main-color, #4f46e5); }
span.b2b-card__name { cursor: default; }
.b2b-card__meta {
    display: flex; align-items: center; gap: 12px;
    font-size: 12px; color: #9ca3af;
}
.b2b-card__ref { font-family: monospace; color: #6b7280; }

/* --- Badges (composition, datasheet, packs) --- */
.b2b-card__badges {
    display: flex; align-items: center; gap: 6px; margin-top: 4px;
    flex-wrap: wrap;
}
.b2b-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 600;
    border: none; cursor: pointer;
    transition: all 0.15s; text-decoration: none;
}
.b2b-badge i { font-size: 15px; pointer-events: none; }
.b2b-badge span { white-space: nowrap; pointer-events: none; }

.b2b-badge--info {
    background: #e0f2fe; color: #0369a1;
}
.b2b-badge--info:hover { background: #bae6fd; color: #075985; }

.b2b-badge--gray {
    background: #f3f4f6; color: #4b5563;
}
.b2b-badge--gray:hover { background: #e5e7eb; color: #1f2937; text-decoration: none; }

.b2b-badge--pack {
    background: #dbeafe; color: #1d4ed8;
}
.b2b-badge--pack:hover { background: #bfdbfe; color: #1e40af; }
.b2b-badge__chevron {
    font-size: 16px !important; margin-left: -2px;
    transition: transform 0.2s;
}
.b2b-badge--pack.active .b2b-badge__chevron {
    transform: rotate(180deg);
}

/* --- Stock --- */
.b2b-card__stock {
    width: 90px; flex-shrink: 0;
    display: flex; justify-content: center;
}
.b2b-stock {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
    white-space: nowrap;
}
.b2b-stock i { font-size: 16px; }

.b2b-stock--high { background: #dcfce7; color: #15803d; }
.b2b-stock--high i { color: #16a34a; }
.b2b-stock--low { background: #fef3c7; color: #92400e; }
.b2b-stock--low i { color: #d97706; }
.b2b-stock--none { background: #fee2e2; color: #991b1b; }
.b2b-stock--none i { color: #dc2626; }

/* --- Prices --- */
.b2b-card__prices {
    width: 160px; flex-shrink: 0;
    display: flex; flex-direction: column; align-items: flex-end;
    gap: 2px;
}
.b2b-card__price-main { display: flex; align-items: baseline; gap: 6px; }
.b2b-card__price-net {
    font-size: 16px; font-weight: 700; color: #111827;
}
.b2b-card__price-net small { font-weight: 400; color: #9ca3af; font-size: 11px; }
.b2b-card__price-label {
    font-size: 10px; font-weight: 600; color: #9ca3af;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.b2b-card__price-secondary { display: flex; align-items: baseline; gap: 6px; }
.b2b-card__price-gross {
    font-size: 13px; font-weight: 500; color: #6b7280;
}
.b2b-card__price-gross small { font-weight: 400; color: #9ca3af; font-size: 11px; }
.b2b-card__rsp {
    font-size: 11px; color: #a855f7; font-weight: 500;
    margin-top: 2px;
}

/* --- Actions (qty + cart) --- */
.b2b-card__actions {
    width: 180px; flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center;
    gap: 8px;
}
.b2b-card__qty-row {
    display: flex; align-items: center; gap: 6px;
}

/* Quantity input */
.b2b-qty-compact {
    display: inline-flex; align-items: center;
    border: 1px solid #e5e7eb; border-radius: 8px;
    overflow: hidden; background: #fff;
}
.b2b-qty-btn {
    width: 32px; height: 34px; border: none;
    background: #f9fafb; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; color: #6b7280;
}
.b2b-qty-btn i { font-size: 18px; pointer-events: none; }
.b2b-qty-btn:hover { background: #e5e7eb; color: #111827; }
.b2b-qty-btn:active { background: #d1d5db; }

.b2b-quantity-input,
.b2b-pack-qty-input {
    width: 44px; height: 34px; text-align: center;
    border: none; border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb;
    font-size: 14px; font-weight: 600; color: #111827;
    -moz-appearance: textfield; background: #fff;
}
.b2b-quantity-input::-webkit-outer-spin-button,
.b2b-quantity-input::-webkit-inner-spin-button,
.b2b-pack-qty-input::-webkit-outer-spin-button,
.b2b-pack-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}

/* Unit selector */
.b2b-unit-select-compact {
    padding: 6px 8px; border: 1px solid #e5e7eb; border-radius: 6px;
    font-size: 12px; background: #fff; color: #374151;
    max-width: 80px;
}

/* Cart button */
.b2b-card__cart-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px;
    background: var(--b2b-main-color, #b12704); color: #fff;
    border: none; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
    white-space: nowrap;
}
.b2b-card__cart-btn i { font-size: 18px; pointer-events: none; }
.b2b-card__cart-btn:hover { background: color-mix(in srgb, var(--b2b-main-color, #b12704) 85%, #000); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(177,39,4,0.3); }
.b2b-card__cart-btn:active { transform: translateY(0); }

/* ============================================================
   PACKS EXPANSION
   ============================================================ */
.b2b-card__packs {
    background: #f0f9ff;
    border-bottom: 1px solid #e0f2fe;
    animation: b2b-slideDown 0.2s ease;
}

@keyframes b2b-slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 600px; }
}

.b2b-packs-inner {
    padding: 16px 20px 16px 116px;
    border-left: 4px solid #3b82f6;
}

.b2b-packs-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: #1e40af;
    margin-bottom: 12px;
}
.b2b-packs-title i { font-size: 20px; color: #3b82f6; }

.b2b-packs-grid {
    display: flex; flex-direction: column; gap: 8px;
}

.b2b-pack-card {
    display: flex; align-items: center; gap: 16px;
    padding: 10px 14px; background: #fff;
    border-radius: 8px; border: 1px solid #e0f2fe;
    transition: border-color 0.15s;
}
.b2b-pack-card:hover { border-color: #93c5fd; }

.b2b-pack-card__info { flex: 1; min-width: 0; }
.b2b-pack-card__name {
    font-size: 13px; font-weight: 600; color: #1e3a5f;
    display: block;
}
.b2b-pack-card__qty {
    font-size: 12px; color: #6b7280;
    display: flex; align-items: center; gap: 4px;
}

.b2b-pack-card__prices {
    display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
    flex-shrink: 0;
}
.b2b-pack-card__net { font-size: 14px; font-weight: 700; color: #111827; }
.b2b-pack-card__net small { font-weight: 400; color: #9ca3af; font-size: 10px; }
.b2b-pack-card__gross { font-size: 12px; color: #6b7280; }
.b2b-pack-card__gross small { color: #9ca3af; font-size: 10px; }
.b2b-pack-card__perpc {
    display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
    flex-shrink: 0; padding-left: 12px;
    border-left: 1px solid #e0f2fe;
}
.b2b-pack-card__perpc-label {
    font-size: 9px; font-weight: 600; color: #9ca3af;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.b2b-pack-card__perpc-net {
    font-size: 13px; font-weight: 700; color: #16a34a;
}
.b2b-pack-card__perpc-net small { font-weight: 400; color: #9ca3af; font-size: 10px; }
.b2b-pack-card__perpc-gross {
    font-size: 11px; color: #6b7280;
}
.b2b-pack-card__perpc-gross small { color: #9ca3af; font-size: 10px; }

.b2b-pack-card__actions {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.b2b-pack-card__cart {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; background: var(--b2b-main-color, #b12704); color: #fff;
    border: none; cursor: pointer; transition: all 0.15s;
}
.b2b-pack-card__cart i { font-size: 18px; pointer-events: none; }
.b2b-pack-card__cart:hover { background: color-mix(in srgb, var(--b2b-main-color, #b12704) 85%, #000); }

/* ============================================================
   BULK ADD BAR (sticky)
   ============================================================ */
.b2b-bulk-bar {
    position: sticky; bottom: 0; z-index: 50;
    display: flex; align-items: center; justify-content: flex-end;
    gap: 20px; padding: 12px 20px;
    background: var(--b2b-main-color, #b12704);
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
    margin-left: auto;
    width: 35%;
    margin-bottom: 10px;
    margin-right: 10px;
}
.b2b-bulk-bar__info {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.85); font-size: 14px;
}
.b2b-bulk-bar__info i { font-size: 22px; color: rgba(255,255,255,0.6); }
.b2b-bulk-bar__info strong { color: #fff; font-size: 20px; }

.b2b-bulk-bar__btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 28px; border-radius: 10px;
    background: #fff; color: var(--b2b-main-color, #b12704);
    border: none; font-size: 15px;
    cursor: pointer; transition: all 0.2s;
}
.b2b-bulk-bar__btn i { font-size: 22px; }
.b2b-bulk-bar__btn:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.b2b-pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 16px; padding: 14px 20px;
    background: #f9fafb; border: 1px solid #e5e7eb;
    border-top: none;
}
.b2b-pagination button {
    display: inline-flex; align-items: center; gap: 5px;
}
.b2b-pagination button i { font-size: 18px; }
.b2b-page-info { font-size: 14px; color: #6b7280; }
.b2b-page-info strong { color: #111827; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.b2b-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 60px 20px; text-align: center;
    background: #fff; border: 1px solid #e5e7eb;
    border-top: none; border-radius: 0 0 10px 10px;
}
.b2b-empty i { font-size: 48px; color: #d1d5db; margin-bottom: 12px; }
.b2b-empty p { font-size: 15px; color: #6b7280; margin: 0; }

/* ============================================================
   LOGIN NOTICE
   ============================================================ */
.b2b-login-notice {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px; margin-top: 16px;
    background: #eff6ff; border: 1px solid #bfdbfe;
    border-radius: 10px;
}
.b2b-login-notice > i { font-size: 28px; color: #3b82f6; flex-shrink: 0; }
.b2b-login-notice strong { font-size: 14px; color: #1e40af; display: block; }
.b2b-login-notice p { font-size: 13px; color: #3b82f6; margin: 4px 0 0; }
.b2b-login-notice__btn {
    margin-left: auto; padding: 10px 24px;
    background: #3b82f6; color: #fff;
    border-radius: 8px; font-weight: 600;
    font-size: 14px; text-decoration: none;
    transition: background 0.15s;
}
.b2b-login-notice__btn:hover {
    background: #2563eb; color: #fff; text-decoration: none;
}

/* ============================================================
   MODAL
   ============================================================ */
.b2b-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.b2b-modal-content {
    background: #fff; border-radius: 12px;
    max-width: 600px; width: 90%; max-height: 80vh;
    overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.b2b-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 24px; border-bottom: 1px solid #f3f4f6;
}
.b2b-modal-header h3 {
    margin: 0; font-size: 17px; font-weight: 700; color: #111827;
}
.b2b-modal-close {
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    color: #6b7280; transition: all 0.15s;
}
.b2b-modal-close:hover { background: #f3f4f6; color: #111827; }
.b2b-modal-close i { font-size: 22px; pointer-events: none; }
.b2b-modal-body {
    padding: 24px; overflow-y: auto; line-height: 1.7;
    font-size: 14px; color: #374151;
}

/* --- Composition table styling --- */
.b2b-modal-body table {
    width: 100% !important; border-collapse: separate !important;
    border-spacing: 0 !important; border-radius: 8px !important;
    overflow: hidden; border: 1px solid #e5e7eb !important;
    font-size: 13px;
}
.b2b-modal-body thead tr {
    background: #f1f5f9 !important;
}
.b2b-modal-body thead th {
    border: none !important; border-bottom: 2px solid #e2e8f0 !important;
    padding: 10px 14px !important; font-size: 12px !important;
    font-weight: 700 !important; text-transform: uppercase !important;
    letter-spacing: 0.04em !important; color: #475569 !important;
}
.b2b-modal-body tbody td {
    border: none !important; border-bottom: 1px solid #f1f5f9 !important;
    padding: 9px 14px !important; color: #374151 !important;
}
.b2b-modal-body tbody tr:nth-child(even) {
    background: #f8fafc !important;
}
.b2b-modal-body tbody tr:nth-child(odd) {
    background: #fff !important;
}
.b2b-modal-body tbody tr:hover {
    background: #eef2ff !important;
}
.b2b-modal-body tbody tr:last-child td {
    border-bottom: none !important;
}
.b2b-modal-body p {
    margin-top: 14px; font-size: 13px; color: #6b7280; line-height: 1.6;
}

/* ============================================================
   LOADING / SUCCESS
   ============================================================ */
.b2b-loading { opacity: 0.5; pointer-events: none; }
.b2b-success { animation: b2b-pulse 0.4s ease; }
@keyframes b2b-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ============================================================
   HIGHLIGHT ROW (qty > 0)  - keep old class name for JS
   ============================================================ */
.b2b-product-row.b2b-has-qty {
    background: #ecfdf5 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .b2b-card__prices { width: 130px; }
    .b2b-card__actions { width: 150px; }
    .b2b-card__image { width: 64px; height: 64px; }
    .b2b-packs-inner { padding-left: 80px; }
}

@media (max-width: 991px) {
    .b2b-toolbar { flex-direction: column; align-items: stretch; }
    .b2b-toolbar__right { flex-wrap: wrap; }
    .b2b-search-wrapper { max-width: none; }
    .b2b-list-header { display: none; }

    .b2b-card {
        flex-wrap: wrap; gap: 12px; padding: 14px 16px;
    }
    .b2b-card__image { width: 60px; height: 60px; }
    .b2b-card__info { flex: 1 1 calc(100% - 80px); }
    .b2b-card__stock { width: auto; order: 10; }
    .b2b-card__prices {
        width: auto; flex-direction: row; gap: 16px;
        align-items: baseline; order: 11;
    }
    .b2b-card__actions {
        width: 100%; flex-direction: row; justify-content: flex-end;
        order: 12;
    }
    .b2b-packs-inner { padding-left: 16px; }
}

@media (max-width: 600px) {
    .b2b-card {
        flex-direction: column; align-items: flex-start;
    }
    .b2b-card__image { width: 100%; height: 120px; }
    .b2b-card__info { width: 100%; }
    .b2b-card__stock { align-self: flex-start; }
    .b2b-card__prices { width: 100%; flex-direction: column; align-items: flex-start; }
    .b2b-card__actions { width: 100%; flex-direction: column; align-items: stretch; }
    .b2b-card__cart-btn { justify-content: center; }
    .b2b-bulk-bar { flex-direction: column; gap: 10px; width: 100%; margin-right: 0; }
    .b2b-bulk-bar__btn { width: 100%; justify-content: center; }
    .b2b-pack-card { flex-direction: column; align-items: flex-start; }
    .b2b-pack-card__prices { align-items: flex-start; }
    .b2b-pack-card__actions { width: 100%; justify-content: flex-end; }
}

/* ============================================================
   ADMIN TAB
   ============================================================ */
#b2b-product-tab .panel { margin-bottom: 10px; }
#b2b-product-tab h4 {
    border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 20px;
}

/* ============================================================
   CART MODAL (keep for PS native modal override)
   ============================================================ */
.b2b-cart-modal .modal-dialog { max-width: 500px; margin: 100px auto; }
.b2b-cart-modal .modal-content { border-radius: 12px; border: none; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.b2b-cart-modal .modal-header { background: #10b981; color: #fff; border-radius: 12px 12px 0 0; padding: 16px 24px; }
.b2b-cart-modal .modal-header .close { color: #fff; opacity: 0.8; font-size: 28px; font-weight: normal; }
.b2b-cart-modal .modal-header .close:hover { opacity: 1; }
.b2b-cart-modal .modal-title { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.b2b-cart-modal .modal-title i { font-size: 24px; }
.b2b-cart-modal .modal-body { padding: 24px; }
.b2b-cart-modal .cart-content { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f3f4f6; }
.b2b-cart-modal .cart-product-info { display: flex; gap: 16px; align-items: flex-start; }
.b2b-cart-modal .product-image { width: 80px; height: 80px; object-fit: contain; border: 1px solid #f3f4f6; border-radius: 8px; }
.b2b-cart-modal .product-details { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.b2b-cart-modal .product-name { font-weight: 600; font-size: 15px; color: #111827; }
.b2b-cart-modal .product-attributes { font-size: 13px; color: #6b7280; }
.b2b-cart-modal .product-quantity { font-size: 14px; color: #374151; }
.b2b-cart-modal .product-price { font-weight: 700; font-size: 16px; color: #4f46e5; }
.b2b-cart-modal .cart-summary { background: #f9fafb; padding: 16px; border-radius: 8px; }
.b2b-cart-modal .cart-totals { display: flex; justify-content: space-between; align-items: center; }
.b2b-cart-modal .cart-products-count { font-size: 14px; color: #6b7280; }
.b2b-cart-modal .cart-total { font-weight: 700; font-size: 18px; color: #111827; }
.b2b-cart-modal .modal-footer { padding: 16px 24px; border-top: 1px solid #f3f4f6; display: flex; justify-content: space-between; gap: 10px; }
.b2b-cart-modal .modal-footer .btn { flex: 1; padding: 12px 20px; font-weight: 600; border-radius: 8px; }
.b2b-cart-modal .modal-footer .btn-secondary { background: #6b7280; border-color: #6b7280; }
.b2b-cart-modal .modal-footer .btn-primary { background: #4f46e5; border-color: #4f46e5; }
.b2b-cart-modal .modal-footer .btn-primary:hover { background: #4338ca; border-color: #4338ca; }
.modal-backdrop.show { opacity: 0.4; }
.modal.show { display: block !important; }

/* ============================================================
   Wishlist heart button on product / pack rows
   (restored from wishlist-sidebar feature)
   ============================================================ */
.b2b-card__btn-row {
    display: flex; align-items: center; gap: 6px;
}

/* --- Wishlist heart button --- */
.b2b-wishlist-btn {
    position: relative;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 6px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
}
.b2b-wishlist-btn i {
    font-size: 22px;
    color: #d1d5db;
    transition: color 0.15s;
    pointer-events: none;
}
.b2b-wishlist-btn:hover i {
    color: #f87171;
}
.b2b-wishlist-btn--active i {
    color: #ef4444;
}
.b2b-wishlist-btn--active:hover i {
    color: #dc2626;
}

/* Wishlist picker dropdown */
.b2b-wishlist-picker {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 100;
    overflow: hidden;
}
.b2b-wishlist-picker__title {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #f3f4f6;
}
.b2b-wishlist-picker__item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    color: #111827;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.1s;
}
.b2b-wishlist-picker__item:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Wishlist toast notification */
.b2b-wishlist-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}
.b2b-wishlist-toast i {
    font-size: 18px;
    color: #ef4444;
}
.b2b-wishlist-toast--remove i {
    color: #9ca3af;
}
.b2b-wishlist-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
