/* ============================================
   КНОПКА "ПОДЕЛИТЬСЯ КОРЗИНОЙ"
   ============================================ */
.btn-share-cart {
    padding: 10px 20px;
    border-radius: 8px;
    justify-content: center;
    border: 2px solid #0d6efd;
    background: #fff;
    color: #0d6efd;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-share-cart:hover {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-share-cart:active {
    transform: scale(0.98);
}

/* ============================================
   КНОПКА "СОЗДАТЬ СМЕТУ"
   ============================================ */
.btn-estimate-from-cart {
    padding: 10px 20px;
    border-radius: 8px;
    justify-content: center;
    border: 2px solid #28a745;
    background: #fff;
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-estimate-from-cart:hover {
    background: #28a745;
    color: #fff;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-estimate-from-cart:active {
    transform: scale(0.98);
}

/* ============================================
   ИНДИКАТОР ЗАГРУЗКИ КОРЗИНЫ ДЛЯ ГОСТЕЙ
   ============================================ */
.cart-loading-state {
    display: block;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-loading-state .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

.cart-loading-state .text-muted {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cart-loading-state .small {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================
   СТИЛИ КОРЗИНЫ (КАРТОЧНАЯ СЕТКА)
   ============================================ */

/* Шапка */
.cart-page-header {
    background: linear-gradient(135deg, #006FF9 0%, #0052cc 100%);
    padding: 20px 0;
    margin-bottom: 20px;
}

.cart-page-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.cart-header-actions {
    display: flex;
    gap: 10px;
}

.btn-select-all,
.btn-deselect-all {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-select-all:hover,
.btn-deselect-all:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Контент */
.cart-content-wrapper {
    padding-bottom: 30px;
}

/* Список товаров */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-product-card {
    display: grid;
    grid-template-columns: 40px 80px 1fr 120px 140px 120px 40px;
    grid-template-areas:
        "checkbox image info price qty total remove";
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.cart-product-card:hover {
    border-color: #006FF9;
    box-shadow: 0 5px 20px rgba(0, 111, 249, 0.1);
}

.cart-product-card.is-selected {
    border-color: #e9ecef;
    background: #ffffff;
}

.cart-product-card.is-overstock {
    border-left: 4px solid #ffc107;
}

.cart-card-checkbox { grid-area: checkbox; }
.cart-card-image { grid-area: image; }
.cart-card-info { grid-area: info; }
.cart-card-price { grid-area: price; }
.cart-card-qty { grid-area: qty; }
.cart-card-total { grid-area: total; }
.cart-card-remove { grid-area: remove; }

/* Чекбокс */
.cart-item-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #006FF9;
}

/* Изображение */
.cart-card-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}
.cart-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}
.cart-item-badges {
    position: absolute;
    top: 2px;
    left: 2px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 2;
}

.cart-item-badges .badge {
    font-size: 0.55rem;
    padding: 2px 4px;
}

/* Название */
.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-name a {
    color: #2c3e50;
    text-decoration: none;
}

.cart-item-name a:hover {
    color: #006FF9;
}

.cart-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cart-item-sku {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #95a5a6;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    white-space: nowrap;
}

.cart-item-sku:hover {
    color: #006FF9;
    background: #e8f0fe;
}

.copy-tooltip-mini {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.copy-tooltip-mini.show {
    opacity: 1;
}

.cart-delivery-time {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Цена */
.price-old-cart {
    font-size: 0.75rem;
    color: #95a5a6;
    text-decoration: line-through;
}

.price-current-cart {
    font-weight: 700;
    color: #006FF9;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Количество */
.qty-control-cart {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.qty-control-cart .btn-qty {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.2s;
}

.qty-control-cart .btn-qty:hover:not(:disabled) {
    background: #006FF9;
    color: #fff;
}

.qty-control-cart .qty-input-cart {
    width: 70px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 0.85rem;
}
.btn-add-to-cart-share {
    background: #006FF9;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: background 0.2s;
    cursor: pointer;
}
.btn-add-to-cart-share:hover { background: #005ce6; color: #fff; }
.btn-add-to-cart-share:disabled { background: #93c5fd; cursor: not-allowed; }
.btn-add-to-cart-share.is-added {
    background: #10b981;
    cursor: default;
}
/* Анимация удаления товара */
.cart-product-card,
.cart-items-table tbody tr {
    transition: all 0.3s ease;
}

.cart-product-card.removing,
.cart-items-table tbody tr.removing {
    opacity: 0;
    transform: translateX(50px);
}
/* Кнопка удаления */
.btn-remove-cart {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    transition: all 0.3s;
}

.btn-remove-cart:hover {
    background: #dc3545;
    color: #fff;
}

/* Предупреждения */
.stock-warning-cart {
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stock-warning-cart.low-stock {
    background: #fff3cd;
    color: #856404;
}

.stock-warning-cart.overstock {
    background: #f8d7da;
    color: #721c24;
}

/* Сводка */
.checkout-summary-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.cart-summary-sticky {
    position: sticky;
    top: 90px;
}

.checkout-summary-body {
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-count-badge {
    font-weight: 700;
    color: #006FF9;
    background: #f0f6ff;
    padding: 4px 12px;
    border-radius: 20px;
}

.summary-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #006FF9;
}

.prepayment-note {
    text-align: center;
    color: #6c757d;
    font-size: 0.85rem;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 15px;
}

.cart-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-direction: column;
}

/* Кнопки */
.btn-checkout-step2,
.btn-clear-cart-mini,
.btn-print-cart-mini,
.btn-checkout-final {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
}

.btn-checkout-step2 {
    background: linear-gradient(135deg, #006FF9, #0052cc);
    color: #fff;
    font-size: 1rem;
    padding: 15px;
}

.btn-checkout-step2:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 111, 249, 0.4);
}

.btn-checkout-step2:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-clear-cart-mini {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-clear-cart-mini:hover {
    background: #dc3545;
    color: #fff;
}

.btn-print-cart-mini {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-print-cart-mini:hover {
    background: #e9ecef;
}

.btn-checkout-final {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
    font-size: 1rem;
    padding: 15px;
}

.btn-checkout-final:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Страница оформления */
.checkout-page-header {
    padding: 12px 0;
    color: #fff;
    background: linear-gradient(135deg, #006FF9 0%, #0052cc 100%);
}
h2.checkout-page-title{
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}
.btn-back-to-cart {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.checkout-section {
    background: #f8f9fa;
    padding: 20px 0;
}

.checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
}

.checkout-form-card {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    overflow: hidden;
}

.checkout-form-header {
    background: #f8f9fa;
    padding: 15px 20px;
    font-weight: 700;
    border-bottom: 1px solid #e9ecef;
}

.checkout-form-body {
    padding: 20px;
}

.form-control-cart {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: 10px 12px;
}

.customer-type-toggle {
    display: flex;
    gap: 10px;
}

.customer-type-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
}

.customer-type-btn.active {
    border-color: #006FF9;
    background: #f0f6ff;
    color: #006FF9;
}

.form-check-cart {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 8px;
    cursor: pointer;
}

.form-check-cart:has(input:checked) {
    border-color: #006FF9;
    background: #f0f6ff;
}

/* Пустая корзина */
.empty-cart-state {
    text-align: center;
    padding: 40px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn-catalog {
    padding: 12px 30px;
    border-radius: 12px;
    background: #006FF9;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .cart-product-card {
        grid-template-columns: 40px 70px 1fr 100px 130px 100px 40px;
        gap: 8px;
    }
}

@media (max-width: 992px) {
    .cart-product-card {
        grid-template-columns: 40px 70px 1fr 40px;
        grid-template-areas:
            "checkbox image info remove"
            ". . price qty"
            ". . total qty";
        gap: 6px;
    }
    .cart-summary-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-product-card {
        grid-template-columns: 32px 60px 1fr 32px;
        grid-template-areas:
            "checkbox image info remove"
            ". price price ."
            ". qty total .";
        gap: 4px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .cart-product-card {
        grid-template-columns: 28px 50px 1fr 28px;
        gap: 3px;
        padding: 8px;
    }
}

/* Печать */
@media print {
    body * { visibility: hidden; }
    .print-area, .print-area * { visibility: visible; }
    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
    }
    .print-table { width: 100%; border-collapse: collapse; }
    .print-table th, .print-table td {
        padding: 8px;
        border: 1px solid #ddd;
        font-size: 12px;
    }
    .print-total {
        text-align: right;
        font-size: 16px;
        font-weight: bold;
        margin-top: 15px;
    }
}
/* Анимация при копировании */
.cart-item-sku.copied {
    animation: sku-copied-pulse 0.5s ease;
}

@keyframes sku-copied-pulse {
    0% {
        transform: scale(1);
        background: #e8f0fe;
    }
    50% {
        transform: scale(1.05);
        background: #d1e7ff;
    }
    100% {
        transform: scale(1);
        background: #f8f9fa;
    }
}

/* Тултип */
.cart-item-sku {
    position: relative;
}

.copy-tooltip-mini {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
    z-index: 10;
}

.copy-tooltip-mini.show {
    opacity: 1;
}
/* Информация о доступном количестве */
.stock-available-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    margin-top: 5px;
    font-weight: 500;
}

.stock-available-info.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-available-info.medium-stock {
    background: #fff3cd;
    color: #856404;
}

.stock-available-info.low-stock {
    color: #d63031;
    font-weight: 600;
}

.stock-available-info.out-of-stock {
    color: #721c24;
    font-weight: 600;
}

.stock-available-info strong {
    font-weight: 700;
}

.stock-available-info .text-danger {
    color: #dc3545 !important;
    font-size: 0.7rem;
}
.btn-back-to-cart-summary {
    width: 100%;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.btn-back-to-cart-summary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.customer-type-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s;
}

.customer-type-btn:hover {
    border-color: #006FF9;
    color: #006FF9;
}

.customer-type-btn.active {
    border-color: #006FF9;
    background: #f0f6ff;
    color: #006FF9;
}

.customer-type-btn i {
    margin-right: 8px;
}

.form-check-cart {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex !important;
    gap: 10px;
}

.form-check-cart:hover {
    border-color: #006FF9;
    background: #f8f9fa;
}

.form-check-cart:has(input:checked) {
    border-color: #006FF9;
    background: #f0f6ff;
}

.form-check-cart input[type="radio"] {
    margin-right: 8px;
    accent-color: #006FF9;
}

.checkout-form-card {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.checkout-form-header {
    background: #f8f9fa;
    padding: 15px 20px;
    font-weight: 700;
    border-bottom: 1px solid #e9ecef;
    color: #2c3e50;
}

.checkout-form-body {
    padding: 20px;
}

.form-control-cart {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: 10px 12px;
    transition: all 0.3s;
}

.form-control-cart:focus {
    border-color: #006FF9;
    box-shadow: 0 0 0 0.2rem rgba(0, 111, 249, 0.1);
}

.form-control-cart.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.1);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.form-check-label a {
    color: #006FF9;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}
.form-check-label{
    justify-content: left;
}
.cart-product-card.is-out-of-stock {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
}

.cart-product-card.is-overstock {
    border-left: 4px solid #ffc107;
    background: #fffbf0;
}

.btn-checkout-step2:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-checkout-step2 {
    transition: all 0.3s;
}
/* Стили для печати */
@media print {
    body * {
        visibility: hidden;
    }

    #printArea, #printArea * {
        visibility: visible;
    }

    #printArea {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        padding: 40px;
        background: white;
        font-family: Arial, sans-serif;
        font-size: 12px;
    }

    #printArea .print-header {
        text-align: center;
        border-bottom: 2px solid #333;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    #printArea .print-header h2 {
        margin: 0;
        font-size: 20px;
    }

    #printArea .print-company {
        margin: 5px 0;
        color: #555;
    }

    #printArea table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
    }

    #printArea table th,
    #printArea table td {
        border: 1px solid #ddd;
        padding: 8px 12px;
        text-align: left;
    }

    #printArea table th {
        background: #f5f5f5;
        font-weight: bold;
    }

    #printArea .print-totals {
        margin-top: 20px;
        text-align: right;
        font-size: 14px;
    }

    #printArea .print-totals .total {
        font-size: 18px;
        font-weight: bold;
    }

    #printArea .print-footer {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #ddd;
        font-size: 11px;
        color: #666;
    }

    #printArea .print-signatures {
        margin-top: 40px;
        display: flex;
        justify-content: space-between;
    }

    #printArea .print-signatures .signature-line {
        margin-top: 30px;
        border-bottom: 1px solid #333;
        width: 200px;
    }

    .no-print {
        display: none !important;
    }
}
.btn-print-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    min-width: 120px;
}

.btn-print-order:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-print-order:active {
    transform: translateY(0);
}

.btn-print-order.loading {
    opacity: 0.7;
    cursor: wait;
}

.btn-print-order i {
    font-size: 1.1rem;
}

@media print {
    .btn-print-order {
        display: none !important;
    }
}
.btn-restore-deleted {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #ced4da;
    background: #fff;
    color: #495057;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all .15s;
}
.btn-restore-deleted:hover {
    background: #f8f9fa;
    border-color: #006FF9;
    color: #006FF9;
}

.deleted-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #006FF9;
    color: #fff;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.deleted-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.deleted-item-row:last-child { border-bottom: none; }

.deleted-item-image {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.deleted-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.deleted-item-info { flex: 1; min-width: 0; }
.deleted-item-name {
    display: -webkit-box;
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.deleted-item-name:hover { color: #006FF9; }

.deleted-item-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 4px;
}
.deleted-item-date { color: #95a5a6; }

.deleted-item-qty {
    font-size: 0.85rem;
    color: #495057;
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
}

.deleted-item-price {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: right;
    min-width: 90px;
}
.deleted-item-price .price-old-cart {
    font-size: 0.75rem;
    color: #95a5a6;
    text-decoration: line-through;
    font-weight: 400;
}

.deleted-item-actions { flex-shrink: 0; }

.btn-restore-item {
    padding: 6px 12px;
    background: #006FF9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background .15s;
}
.btn-restore-item:hover:not(:disabled) { background: #0056c7; }
.btn-restore-item:disabled { opacity: .6; cursor: not-allowed; }

@media (max-width: 576px) {
    .deleted-item-row { flex-wrap: wrap; }
    .deleted-item-qty,
    .deleted-item-price { min-width: auto; }
    .deleted-item-actions { width: 100%; }
    .btn-restore-item { width: 100%; }
}
button#showDeletedBtn {
    justify-content: center;
}
.btn-add-to-cart-share {
    background: #006FF9;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: background 0.2s;
    cursor: pointer;
}
.btn-add-to-cart-share:hover {
    background: #005ce6;
    color: #fff;
}
.btn-add-to-cart-share:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}
.cart-search-wrapper {
    flex-grow: 1;
    max-width: 400px;
}
@media (max-width: 768px) {
    .cart-header-actions {
        flex-wrap: wrap;
    }
    .cart-search-wrapper {
        max-width: 100%;
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
}