/**
 * DEALERS.CSS - Стили страницы для дилеров
 */

/* Общие стили для шагов */
.step-section {
    padding: 60px 0;
    background: var(--surface-secondary, #f9f9f9);
}

.step-section:nth-child(even) {
    background: white;
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--accent-blue, #2196F3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-title-block {
    flex: 1;
}

.step-title-block .section-title {
    margin: 0 0 8px 0;
}

.step-title-block .section-description {
    margin: 0;
    color: var(--text-secondary, #666);
    font-size: 1rem;
}

.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.export-card {
    background: white;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.export-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-blue, #2196F3);
}

.export-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue-light, #e3f2fd);
    border-radius: 50%;
    color: var(--accent-blue, #2196F3);
}

.export-icon svg {
    width: 28px;
    height: 28px;
}

.export-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary, #212121);
}

.export-card p {
    color: var(--text-secondary, #666);
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.export-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* Форма заявки */
.form-card {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.dealer-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dealer-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dealer-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dealer-form .form-group label {
    font-weight: 500;
    color: var(--text-primary, #212121);
    font-size: 0.95rem;
}

.dealer-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.dealer-form .form-control:focus {
    outline: none;
    border-color: var(--accent-blue, #2196F3);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.dealer-form .form-control.error {
    border-color: var(--error-color, #e74c3c);
    animation: shake 0.3s;
}

.dealer-form .form-text {
    font-size: 0.85rem;
    color: var(--text-secondary, #666);
    margin-top: 4px;
}

.dealer-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.dealer-form .btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Прелоадер */
.upload-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.upload-loader__content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    min-width: 300px;
}

.upload-loader__spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border: 4px solid var(--border-color, #e0e0e0);
    border-top-color: var(--accent-blue, #2196F3);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.upload-loader__text {
    font-size: 1.1rem;
    color: var(--text-primary, #212121);
    font-weight: 500;
}

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

/* Кастомные алерты */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.custom-alert {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.custom-alert__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-alert--success .custom-alert__icon {
    background: #e8f5e9;
    color: #4caf50;
}

.custom-alert--error .custom-alert__icon {
    background: #ffebee;
    color: #f44336;
}

.custom-alert__content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary, #212121);
}

.custom-alert__content p {
    font-size: 1rem;
    color: var(--text-secondary, #666);
    line-height: 1.6;
    margin-bottom: 24px;
}

.custom-alert__close {
    padding: 12px 32px;
    background: var(--accent-blue, #2196F3);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-alert__close:hover {
    background: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Контрактное производство */
.contract-section {
    padding: 60px 0;
    background: var(--surface-primary, white);
}

.contract-content {
    max-width: 900px;
    margin: 32px auto 0;
}

.contract-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary, #666);
    margin-bottom: 24px;
}

.contract-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-primary, #212121);
}

.contract-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.contract-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.6;
}

.contract-list li svg {
    flex-shrink: 0;
    color: var(--success, #4caf50);
    margin-top: 2px;
}

.contract-list li span {
    color: var(--text-secondary, #666);
}

.contract-list li strong {
    color: var(--text-primary, #212121);
    font-weight: 600;
}

.contract-cta {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 100%);
    border-radius: 12px;
    border-left: 4px solid var(--accent-blue, #2196F3);
}

.contract-cta p {
    margin: 0 0 12px 0;
    font-size: 1.05rem;
}

.contract-cta p:last-of-type {
    margin-bottom: 24px;
}

.contract-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    padding: 14px 32px;
}

.contract-cta .btn svg {
    width: 18px;
    height: 18px;
}

/* Быстрые ссылки дилеров */
.dealers-quick-links {
    padding: 40px 0 20px;
    background: var(--surface-secondary, #f9f9f9);
}

.dealers-quick-links .subcategories-grid {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .export-grid {
        grid-template-columns: 1fr;
    }
    
    .step-section {
        padding: 40px 0;
    }
    
    .step-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .dealer-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .contract-section {
        padding: 40px 0;
    }
    
    .contract-cta {
        padding: 24px;
    }
    
    .dealers-quick-links {
        padding: 30px 0 10px;
    }
}

@media (max-width: 480px) {
    /* Секции - компактнее */
    .step-section {
        padding: 30px 0;
    }
    
    .dealers-quick-links {
        padding: 20px 0 10px;
    }
    
    /* Карточки выгрузок - компактные, 2 в ряд */
    .export-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 20px;
    }
    
    .export-card {
        padding: 14px 10px;
        border-radius: 8px;
    }
    
    .export-card:hover {
        transform: translateY(-2px);
    }
    
    .export-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
    }
    
    .export-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .export-card h3 {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .export-card p {
        font-size: 0.75rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .export-card .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    /* Форма - более компактная */
    .dealer-form {
        gap: 14px;
    }
    
    .dealer-form .form-group {
        gap: 6px;
    }
    
    .dealer-form .form-group label {
        font-size: 0.9rem;
    }
    
    .dealer-form .form-control {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .dealer-form textarea.form-control {
        min-height: 80px;
    }
    
    .dealer-form .form-text {
        font-size: 0.8rem;
    }
    
    .dealer-form .btn-block {
        padding: 12px;
        font-size: 0.95rem;
        margin-top: 6px;
    }
    
    /* Блок "Что мы предлагаем" - как карточки преимуществ */
    .contract-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 20px 0;
    }
    
    .contract-list li {
        flex-direction: row;
        align-items: flex-start;
        padding: 12px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 8px;
        gap: 12px;
        margin-bottom: 0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .contract-list li svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        margin-top: 0;
    }
    
    .contract-list li span {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Контрактное производство - компактнее */
    .contract-section {
        padding: 30px 0;
    }
    
    .contract-text p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    
    .contract-text h3 {
        font-size: 1.1rem;
        margin: 24px 0 12px;
    }
    
    .contract-cta {
        padding: 20px;
        margin-top: 24px;
    }
    
    .contract-cta p {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .contract-cta p:last-of-type {
        margin-bottom: 16px;
    }
    
    .contract-cta .btn {
        font-size: 1rem;
        padding: 12px 24px;
    }
    
    /* Номер шага */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .step-title-block .section-title {
        font-size: 1.3rem;
    }
    
    .step-title-block .section-description {
        font-size: 0.9rem;
    }
}

/* ========== Портал дилеров (dealers-portal.html) ========== */
.dealers-body {
  background: #f0f7f4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
}

.dealers-header {
  background: #1a5f4a;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dealers-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dealers-logo .portal-badge { background: #2ecc71; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }

.dealers-header__user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dealers-main { padding: 2rem 0; }

.dealers-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #ddd;
}

.dealers-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.dealers-tab:hover {
  color: #1a5f4a;
  background: rgba(46, 204, 113, 0.08);
}

.dealers-tab svg {
  flex-shrink: 0;
}

.dealers-tab.active {
  color: #1a5f4a;
  border-bottom-color: #2ecc71;
  font-weight: 600;
}

.dealers-content { display: none; }
.dealers-content.active { display: block; }

.dealers-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.dealers-filters .form-control { flex: 1; min-width: 200px; }

.dealers-body .catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.dealers-body .catalog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}

.dealers-body .catalog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.dealers-body .catalog-card__img {
  height: 180px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dealers-body .catalog-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.dealers-body .catalog-card__body { padding: 1rem; }

.dealers-body .catalog-card__name { font-weight: 600; margin-bottom: 0.5rem; }

.dealers-body .catalog-card__sku { font-size: 0.875rem; color: #666; margin-bottom: 0.5rem; }

.dealers-body .catalog-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a5f4a;
  margin-bottom: 0.5rem;
}

.dealers-body .catalog-card__availability { font-size: 0.875rem; color: #27ae60; margin-bottom: 1rem; }

.dealers-login-page {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #1a5f4a 0%, #2ecc71 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}

.dealers-login-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  padding: 3rem;
  width: 90%; max-width: 400px;
}

.dealers-login-page .form-control {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  box-sizing: border-box;
}

.dealers-body .btn-primary {
  color: #fff;
}

.dealers-body .btn-primary:hover:not(:disabled) {
  color: #fff;
}

.dealers-login-page .btn-login {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #1a5f4a 0%, #2ecc71 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.dealers-body .cart-table { width: 100%; border-collapse: collapse; }
.dealers-body .cart-table th, .dealers-body .cart-table td { padding: 0.75rem; border-bottom: 1px solid #eee; }
.dealers-body .cart-table th { text-align: left; background: #f8f9fa; }

.dealers-body .orders-table { width: 100%; border-collapse: collapse; }
.dealers-body .orders-table th, .dealers-body .orders-table td { padding: 0.75rem; border-bottom: 1px solid #eee; }

/* Вкладка Наличие: поиск и строка товара */
.dealers-stock-search {
  position: relative;
  max-width: 600px;
  margin-bottom: 2rem;
}

.dealers-stock-table {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 1rem;
  overflow: hidden;
}

.dealers-stock-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 70px 70px 120px 120px 160px;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.75rem 1.25rem;
  text-align: left;
}

.dealers-stock-row--header {
  background: #f8f9fa;
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dealers-stock-row--data {
  background: white;
}

.dealers-stock-row__sku { font-weight: 600; color: #333; }
.dealers-stock-row__name { color: #333; }
.dealers-stock-row__name--wrap {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.3;
  max-width: 100%;
}
.dealers-stock-row__price { font-size: 0.875rem; font-weight: 600; color: #333; white-space: nowrap; }
.dealers-stock-row__price.dealers-stock-row__block--loading { color: #999; font-weight: normal; font-style: italic; }
.dealers-stock-row__block { font-size: 0.875rem; color: #666; }
.dealers-stock-row__block--placeholder { color: #999; font-style: italic; }
.dealers-stock-row__block--loading { color: #999; font-style: italic; }
.dealers-stock-row__action { display: flex; justify-content: flex-start; align-items: center; gap: 0.5rem; }
.dealers-stock-row__action--btns { flex-wrap: wrap; }

/* Состав заказа */
.dealers-order-composition {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e0e0e0;
}

.dealers-order-composition__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.dealers-order-composition__empty {
  color: #999;
  font-size: 0.95rem;
  padding: 1rem 0;
}

.dealers-order-composition__table .dealers-stock-row {
  grid-template-columns: 100px minmax(0, 1fr) 70px 70px 120px 120px 50px 50px;
}

.btn-remove-from-order {
  min-width: 32px;
  padding: 4px 8px;
  font-size: 1.25rem;
  line-height: 1;
}

/* Блок доставки */
.dealers-delivery-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e8e8e8;
}
.dealers-delivery-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}
.dealers-delivery-checkbox input { margin: 0; }
.dealers-delivery-calc { margin-top: 0.75rem; }
.dealers-order-submit { margin-top: 1.25rem; padding-top: 1rem; }
.dealers-delivery-calc-form .dealers-modal__field { margin-bottom: 1rem; }
.dealers-delivery-calc-items {
  max-height: 120px;
  overflow-y: auto;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 0.9rem;
}
.dealers-delivery-calc-items div { margin-bottom: 0.25rem; }
.dealers-delivery-calc-result {
  padding: 0.75rem;
  background: #e8f5e9;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.dealers-city-results {
  position: absolute;
  z-index: 10;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 200px;
  overflow-y: auto;
  margin-top: 2px;
}
.dealers-city-results__item, .dealers-city-results__empty {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.dealers-city-results__item:hover { background: #f1f5f9; }
.dealers-city-results__empty { color: #94a3b8; cursor: default; }
.dealers-modal__field { position: relative; }

/* Маленькая модалка количества */
.dealers-modal__content--small {
  max-width: 360px;
  padding: 1.75rem;
}

.dealers-modal__content--wide {
  max-width: 680px;
  padding: 2rem 2.5rem;
}

.dealers-modal__text {
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.dealers-modal__error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #fef2f2;
  border-radius: 6px;
}

.dealers-cabinet__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.dealers-cabinet__field input[readonly],
.dealers-cabinet__field input:read-only {
  background: #f8fafc;
  cursor: default;
  color: #64748b;
}

.dealers-cabinet__field .form-control {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 0.625rem 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dealers-cabinet__field .form-control:focus {
  outline: none;
  border-color: #1a5f4a;
  box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.15);
}

@media (max-width: 600px) {
  .dealers-cabinet__grid {
    grid-template-columns: 1fr;
  }
}

.dealers-modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.dealers-modal__field {
  margin-bottom: 1.25rem;
}

.dealers-modal__field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #334155;
}

.dealers-modal__field .form-control {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dealers-modal__field .form-control:focus {
  outline: none;
  border-color: #1a5f4a;
  box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.15);
}

.dealers-modal__field textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.dealers-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.dealers-modal__actions .btn {
  min-width: 100px;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
}

.dealers-modal__actions .btn-primary {
  background: #1a5f4a;
  border-color: #1a5f4a;
  color: #fff;
}

.dealers-modal__actions .btn-primary:hover:not(:disabled) {
  background: #145240;
  border-color: #145240;
  color: #fff;
}

.dealers-modal__actions .btn-outline {
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.dealers-modal__actions .btn-outline:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.dealers-modal__actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dealers-stock-result { cursor: pointer; }

/* Модалка деталей товара */
.dealers-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dealers-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.dealers-modal__content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.dealers-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  transition: background 0.2s, color 0.2s;
}

.dealers-modal__close:hover {
  background: #e2e8f0;
  color: #334155;
}

.dealers-product-detail__img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  background: #f8f9fa;
}

.dealers-product-detail__name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dealers-product-detail__attrs {
  margin-top: 1rem;
}

.dealers-product-detail__attr {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.dealers-product-detail__attr-name { color: #666; }
.dealers-product-detail__attr-value { font-weight: 500; }
