/* ═══════════════════════════════════════════════════════════
   NAUTISPHERE - DISTRIBUTOR CATALOG STYLES
   Design Moderne & Professionnel - Version 2.0
   ═══════════════════════════════════════════════════════════ */

:root {
    --catalog-primary: #3b82f6;
    --catalog-primary-dark: #2563eb;
    --catalog-primary-light: #60a5fa;
    --catalog-secondary: #8b5cf6;
    --catalog-success: #10b981;
    --catalog-warning: #f59e0b;
    --catalog-danger: #ef4444;
    --catalog-gradient: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #22d3ee 100%);
    --catalog-gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --catalog-gradient-cool: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   CATALOG CONTAINER
   ═══════════════════════════════════════════════════════════ */

.catalog-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100%;
    padding: 0;
}

#distributor-catalog-content {
    padding: 24px;
    animation: fadeInUp 0.4s ease-out;
}

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

/* ═══════════════════════════════════════════════════════════
   CATALOG HEADER - Hero Style
   ═══════════════════════════════════════════════════════════ */

.catalog-header {
    background: var(--catalog-gradient);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.catalog-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.catalog-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.catalog-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.catalog-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.catalog-header-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.catalog-header-icon i {
    width: 32px;
    height: 32px;
    color: white;
}

.catalog-header-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.catalog-header-title p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.catalog-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   STATS CARDS - Glassmorphism
   ═══════════════════════════════════════════════════════════ */

.catalog-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--catalog-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.brands {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: #3b82f6;
}

.stat-icon.ranges {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    color: #8b5cf6;
}

.stat-icon.models {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: #10b981;
}

.stat-icon.published {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.05));
    color: #06b6d4;
}

.stat-icon i {
    width: 24px;
    height: 24px;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   VIEW TABS - Pill Style
   ═══════════════════════════════════════════════════════════ */

.catalog-navigation {
    margin-bottom: 24px;
}

.view-tabs {
    display: inline-flex;
    gap: 4px;
    background: white;
    padding: 6px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover:not(.active) {
    color: #374151;
    background: #f3f4f6;
}

.tab-btn.active {
    background: var(--catalog-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tab-btn i {
    width: 18px;
    height: 18px;
}

.tab-btn .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ═══════════════════════════════════════════════════════════
   DISTRIBUTOR CATALOG TABS
   ═══════════════════════════════════════════════════════════ */

.dist-catalog-tab {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dist-catalog-tab:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

.dist-catalog-tab.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   CONTENT HEADER - Search & Actions
   ═══════════════════════════════════════════════════════════ */

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.content-count {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
    width: 280px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #111827;
    background: white;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--catalog-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box input::placeholder {
    color: #9ca3af;
}

.form-select-sm {
    padding: 10px 36px 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #374151;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-select-sm:focus {
    outline: none;
    border-color: var(--catalog-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--catalog-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-outline {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.8125rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #f3f4f6;
    color: #374151;
}

.btn-icon.btn-danger:hover {
    background: #fef2f2;
    color: #ef4444;
}

.btn-icon.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.btn-icon i {
    width: 18px;
    height: 18px;
}

/* ═══════════════════════════════════════════════════════════
   CATALOG CONTENT HEADER - Search & Actions (Modern)
   ═══════════════════════════════════════════════════════════ */

.catalog-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.catalog-search-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.catalog-search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.catalog-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
}

.catalog-search-input {
    width: 100%;
    padding: 10px 40px 10px 42px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #111827;
    background: white;
    transition: all 0.2s ease;
}

.catalog-search-input:focus {
    outline: none;
    border-color: var(--catalog-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.catalog-search-input::placeholder {
    color: #9ca3af;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: #f3f4f6;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.search-clear-btn i {
    width: 14px;
    height: 14px;
}

.catalog-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-select-wrapper .filter-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

.catalog-filter-select {
    padding: 10px 36px 10px 36px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #374151;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.catalog-filter-select:focus {
    outline: none;
    border-color: var(--catalog-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Modern Buttons */
.catalog-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: var(--catalog-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.catalog-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.catalog-btn-primary i {
    width: 18px;
    height: 18px;
}

.catalog-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: #f3f4f6;
    color: #374151;
}

.catalog-btn-secondary:hover {
    background: #e5e7eb;
}

.catalog-btn-secondary i {
    width: 18px;
    height: 18px;
}

/* ═══════════════════════════════════════════════════════════
   CATALOG GRID - Modern Layout
   ═══════════════════════════════════════════════════════════ */

.catalog-grid {
    display: grid;
    gap: 20px;
}

.catalog-grid.brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.catalog-grid.ranges-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.catalog-grid.models-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ═══════════════════════════════════════════════════════════
   CATALOG CARD - Modern Design with Glow
   ═══════════════════════════════════════════════════════════ */

.catalog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.catalog-card .card-glow {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(59, 130, 246, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.catalog-card:hover .card-glow {
    opacity: 1;
}

.catalog-card.inactive {
    opacity: 0.65;
}

/* ═══════════════════════════════════════════════════════════
   BRAND CARD - Modern Style
   ═══════════════════════════════════════════════════════════ */

.brand-card .brand-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px 0;
}

.brand-card .brand-logo-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-card .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.brand-card .brand-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9ca3af;
}

.brand-card .brand-logo-placeholder i {
    width: 28px;
    height: 28px;
}

.brand-card .brand-header-info {
    flex: 1;
    min-width: 0;
}

.brand-card .brand-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.3;
}

.brand-card .brand-country {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: #6b7280;
}

.brand-card .brand-country i {
    width: 14px;
    height: 14px;
}

.brand-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.brand-status-badge .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.brand-status-badge.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.brand-status-badge.status-active .status-dot {
    background: #10b981;
}

.brand-status-badge.status-inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.brand-status-badge.status-inactive .status-dot {
    background: #9ca3af;
}

.brand-card .brand-card-body {
    padding: 16px 20px;
}

.brand-card .brand-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-card .brand-description.empty {
    font-style: italic;
    color: #9ca3af;
}

.brand-card .brand-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-stat-item .stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-stat-item .stat-icon i {
    width: 16px;
    height: 16px;
    color: #3b82f6;
}

.brand-stat-item .stat-content {
    display: flex;
    flex-direction: column;
}

.brand-stat-item .stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.brand-stat-item .stat-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.brand-card .brand-website-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: auto;
}

.brand-card .brand-website-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.brand-card .brand-website-btn i {
    width: 14px;
    height: 14px;
}

.brand-card .brand-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

/* Card Action Buttons */
.card-action-btn {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-action-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.card-action-btn.primary:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.card-action-btn.success:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.card-action-btn.warning:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.card-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.card-action-btn.featured {
    color: #d1d5db;
}

.card-action-btn.featured:hover {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.card-action-btn.featured.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.card-action-btn i {
    width: 18px;
    height: 18px;
}

.card-action-btn .action-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #1f2937;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.6875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.card-action-btn .action-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
}

.card-action-btn:hover .action-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* ═══════════════════════════════════════════════════════════
   RANGE CARD - Modern Style
   ═══════════════════════════════════════════════════════════ */

.range-card .range-card-image {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    cursor: pointer;
}

.range-card .range-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.range-card:hover .range-image-img {
    transform: scale(1.05);
}

.range-card .range-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
    gap: 8px;
}

.range-card .range-image-placeholder i {
    width: 32px;
    height: 32px;
}

.range-card .range-image-placeholder span {
    font-size: 0.8125rem;
}

.range-card .range-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.range-card .range-image-overlay i {
    width: 24px;
    height: 24px;
}

.range-card .range-image-overlay span {
    font-size: 0.875rem;
    font-weight: 500;
}

.range-card:hover .range-image-overlay {
    opacity: 1;
}

.range-card .range-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
}

.range-card .range-category-badge i {
    width: 14px;
    height: 14px;
}

.range-card .range-status-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(107, 114, 128, 0.9);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.range-card .range-status-overlay i {
    width: 14px;
    height: 14px;
}

.range-card .range-card-body {
    padding: 16px 20px;
}

.range-card .range-card-header {
    margin-bottom: 12px;
}

.range-card .range-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px;
}

.range-card .range-brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: #6b7280;
}

.range-card .range-brand-tag i {
    width: 14px;
    height: 14px;
}

.range-card .range-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.range-card .range-description.empty {
    font-style: italic;
    color: #9ca3af;
}

.range-card .range-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.range-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-stat-item .stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}

.range-stat-item .stat-icon i {
    width: 16px;
    height: 16px;
    color: #8b5cf6;
}

.range-stat-item .stat-content {
    display: flex;
    flex-direction: column;
}

.range-stat-item .stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.range-stat-item .stat-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.range-card .range-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.range-card .range-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--catalog-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.range-card .range-view-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.range-card .range-view-btn i {
    width: 16px;
    height: 16px;
}

.range-card .range-action-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════════
   MODEL CARD - Modern Style
   ═══════════════════════════════════════════════════════════ */

.model-card .model-card-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.model-card .model-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.model-card:hover .model-image-img {
    transform: scale(1.05);
}

.model-card .model-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
    gap: 8px;
}

.model-card .model-image-placeholder i {
    width: 40px;
    height: 40px;
}

.model-card .model-image-placeholder span {
    font-size: 0.8125rem;
}

.model-card .model-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.model-card .model-status-badge i {
    width: 14px;
    height: 14px;
}

.model-card .model-status-badge.status-draft {
    background: rgba(107, 114, 128, 0.9);
    color: white;
}

.model-card .model-status-badge.status-published {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.model-card .model-status-badge.status-archived {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.model-card .model-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: white;
}

.model-card .model-featured-badge i {
    width: 12px;
    height: 12px;
}

.model-card .model-card-body {
    padding: 16px 20px;
}

.model-card .model-card-header {
    margin-bottom: 12px;
}

.model-card .model-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px;
}

.model-card .model-hierarchy {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.model-card .model-brand-tag,
.model-card .model-range-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #6b7280;
}

.model-card .model-specs-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.model-card .model-spec-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: #6b7280;
}

.model-card .model-spec-item i {
    width: 14px;
    height: 14px;
    color: #9ca3af;
}

.model-card .model-spec-item .spec-value {
    font-weight: 600;
    color: #374151;
}

.model-card .model-price-row {
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

.model-card .model-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.model-card .model-price.on-request {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    font-style: italic;
}

.model-card .model-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.model-card .model-action-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE - Modern
   ═══════════════════════════════════════════════════════════ */

.catalog-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}

.catalog-empty-state .empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.catalog-empty-state .empty-state-icon i {
    width: 36px;
    height: 36px;
    color: #3b82f6;
}

.catalog-empty-state .empty-state-icon.search i {
    color: #6b7280;
}

.catalog-empty-state .empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
}

.catalog-empty-state .empty-state-text {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0 0 24px;
    max-width: 400px;
}

.catalog-empty-state .empty-state-actions {
    display: flex;
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════
   LOADING STATE - Modern
   ═══════════════════════════════════════════════════════════ */

.catalog-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.catalog-loading-state .loading-spinner-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}

.catalog-loading-state .loading-spinner {
    width: 56px;
    height: 56px;
    border: 3px solid #f3f4f6;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.catalog-loading-state .loading-spinner-ring {
    position: absolute;
    inset: -6px;
    border: 3px solid transparent;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

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

.catalog-loading-state .loading-text {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   ERROR STATE - Modern
   ═══════════════════════════════════════════════════════════ */

.catalog-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.catalog-error-state .error-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.catalog-error-state .error-state-icon i {
    width: 28px;
    height: 28px;
    color: #ef4444;
}

.catalog-error-state .error-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
}

.catalog-error-state .error-state-text {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0 0 24px;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION - Modern
   ═══════════════════════════════════════════════════════════ */

.catalog-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.catalog-pagination .pagination-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: #6b7280;
}

.catalog-pagination .pagination-range {
    font-weight: 600;
    color: #111827;
}

.catalog-pagination .pagination-total {
    font-weight: 600;
    color: #111827;
}

.catalog-pagination .pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-pagination .pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.catalog-pagination .pagination-nav-btn,
.catalog-pagination .pagination-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.catalog-pagination .pagination-nav-btn:hover:not(:disabled),
.catalog-pagination .pagination-page-btn:hover:not(.active) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.catalog-pagination .pagination-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.catalog-pagination .pagination-page-btn.active {
    background: var(--catalog-gradient);
    border-color: transparent;
    color: white;
}

.catalog-pagination .pagination-nav-btn i {
    width: 18px;
    height: 18px;
}

.catalog-pagination .pagination-ellipsis {
    padding: 0 4px;
    color: #9ca3af;
}

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB - Modern
   ═══════════════════════════════════════════════════════════ */

.catalog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.catalog-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: default;
    transition: all 0.2s ease;
}

.catalog-breadcrumb-item.clickable {
    cursor: pointer;
}

.catalog-breadcrumb-item.clickable:hover {
    background: #f3f4f6;
    color: #374151;
}

.catalog-breadcrumb-item.current {
    background: var(--catalog-gradient);
    color: white;
}

.catalog-breadcrumb-item i {
    width: 16px;
    height: 16px;
}

.catalog-breadcrumb-separator {
    width: 16px;
    height: 16px;
    color: #d1d5db;
}

/* ═══════════════════════════════════════════════════════════
   BRANDS GRID
   ═══════════════════════════════════════════════════════════ */

.distributor-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* ═══════════════════════════════════════════════════════════
   BRAND CARD - Modern Design
   ═══════════════════════════════════════════════════════════ */

.distributor-brand-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.distributor-brand-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(59, 130, 246, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.distributor-brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.distributor-brand-card:hover::before {
    opacity: 1;
}

.distributor-brand-card.inactive {
    opacity: 0.6;
}

.brand-card-header {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, white, transparent);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}

.distributor-brand-card:hover .brand-logo {
    transform: scale(1.05);
}

.brand-logo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.brand-logo-placeholder i {
    width: 36px;
    height: 36px;
}

.brand-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}

.brand-status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.brand-status-badge.inactive {
    background: rgba(107, 114, 128, 0.15);
    color: #4b5563;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.brand-card-body {
    padding: 20px;
}

.brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.3;
}

.brand-country {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 16px;
}

.brand-country i {
    width: 14px;
    height: 14px;
}

.brand-stats {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.brand-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.brand-stat-icon i {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.brand-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.brand-stat-label {
    font-size: 0.75rem;
    color: #9ca3af;
}

.brand-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.brand-actions {
    display: flex;
    gap: 4px;
}

/* ═══════════════════════════════════════════════════════════
   RANGES GRID
   ═══════════════════════════════════════════════════════════ */

.distributor-ranges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ═══════════════════════════════════════════════════════════
   RANGE CARD
   ═══════════════════════════════════════════════════════════ */

.distributor-range-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.distributor-range-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.distributor-range-card.inactive {
    opacity: 0.6;
}

.range-card-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    overflow: hidden;
}

.range-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.distributor-range-card:hover .range-card-image img {
    transform: scale(1.08);
}

.range-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.range-image-placeholder i {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.range-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.range-category-badge i {
    width: 14px;
    height: 14px;
    color: var(--catalog-primary);
}

.range-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.range-status-badge.inactive {
    background: rgba(107, 114, 128, 0.9);
    color: white;
}

.range-card-body {
    padding: 20px;
}

.range-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.range-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.range-brand i {
    width: 14px;
    height: 14px;
}

.range-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.range-stats {
    display: flex;
    gap: 16px;
}

.range-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: #6b7280;
}

.range-stat i {
    width: 16px;
    height: 16px;
    color: var(--catalog-primary);
}

.range-stat-value {
    font-weight: 700;
    color: #111827;
}

.range-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.range-actions {
    display: flex;
    gap: 4px;
}

/* ═══════════════════════════════════════════════════════════
   MODELS GRID
   ═══════════════════════════════════════════════════════════ */

.distributor-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ═══════════════════════════════════════════════════════════
   MODEL CARD
   ═══════════════════════════════════════════════════════════ */

.distributor-model-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.distributor-model-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.distributor-model-card.draft {
    border-left: 4px solid #9ca3af;
}

.distributor-model-card.published {
    border-left: 4px solid #10b981;
}

.distributor-model-card.archived {
    opacity: 0.6;
    border-left: 4px solid #f59e0b;
}

.model-card-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    overflow: hidden;
}

.model-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.distributor-model-card:hover .model-card-image img {
    transform: scale(1.08);
}

.model-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.model-image-placeholder i {
    width: 48px;
    height: 48px;
}

.model-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}

.model-status-badge i {
    width: 12px;
    height: 12px;
}

.model-status-badge.status-draft {
    background: rgba(156, 163, 175, 0.9);
    color: white;
}

.model-status-badge.status-published {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.model-status-badge.status-archived {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.model-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.model-featured-badge i {
    width: 18px;
    height: 18px;
}

.model-card-body {
    padding: 20px;
}

.model-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.model-hierarchy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    color: #6b7280;
}

.model-hierarchy span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.model-hierarchy span::after {
    content: '›';
    margin-left: 8px;
    color: #d1d5db;
}

.model-hierarchy span:last-child::after {
    display: none;
}

.model-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.model-specs .spec {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #374151;
}

.model-specs .spec i {
    width: 14px;
    height: 14px;
    color: var(--catalog-primary);
}

.model-price {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--catalog-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.model-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.model-actions-left,
.model-actions-right {
    display: flex;
    gap: 4px;
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE - Modern Design
   ═══════════════════════════════════════════════════════════ */

.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 20px;
    border: 2px dashed #e5e7eb;
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.empty-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed #e5e7eb;
    animation: rotate 30s linear infinite;
}

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

.empty-icon i {
    width: 48px;
    height: 48px;
    color: #9ca3af;
}

.empty-state h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.empty-state p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0 0 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════
   LOADING STATE
   ═══════════════════════════════════════════════════════════ */

.loading-state {
    text-align: center;
    padding: 80px 40px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border: 3px solid #f3f4f6;
    border-top-color: var(--catalog-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-state p {
    font-size: 0.9375rem;
    color: #6b7280;
}

/* ═══════════════════════════════════════════════════════════
   ERROR STATE
   ═══════════════════════════════════════════════════════════ */

.error-state {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 20px;
    border: 1px solid #fecaca;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon i {
    width: 40px;
    height: 40px;
    color: #ef4444;
}

.error-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #991b1b;
    margin: 0 0 8px;
}

.error-state p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0 0 24px;
}

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════════ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
}

button.breadcrumb-item {
    background: transparent;
    border: none;
    cursor: pointer;
}

button.breadcrumb-item:hover {
    background: #f3f4f6;
    color: #374151;
}

.breadcrumb-item.current {
    background: var(--catalog-gradient);
    color: white;
}

.breadcrumb-item i {
    width: 16px;
    height: 16px;
}

.breadcrumb-separator {
    width: 16px;
    height: 16px;
    color: #d1d5db;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════ */

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pagination-info {
    font-size: 0.875rem;
    color: #6b7280;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    background: #f3f4f6;
}

.pagination-btn.active {
    background: var(--catalog-gradient);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn i {
    width: 16px;
    height: 16px;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #9ca3af;
}

/* ═══════════════════════════════════════════════════════════
   MODAL STYLES
   ═══════════════════════════════════════════════════════════ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-container.modal-lg {
    max-width: 900px;
}

.modal-header {
    position: relative;
    padding: 24px;
    background: var(--catalog-gradient);
    color: white;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.modal-close i {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════
   MODAL TABS
   ═══════════════════════════════════════════════════════════ */

.modal-tabs {
    display: flex;
    gap: 2px;
    padding: 0 24px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

.modal-tab:hover:not(.active) {
    color: #374151;
}

.modal-tab.active {
    color: var(--catalog-primary);
    border-bottom-color: var(--catalog-primary);
}

.modal-tab i {
    width: 18px;
    height: 18px;
}

.form-tab-content {
    display: none;
}

.form-tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

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

/* ═══════════════════════════════════════════════════════════
   FORM STYLES
   ═══════════════════════════════════════════════════════════ */

.form-section {
    margin-bottom: 28px;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.form-section-title i {
    width: 18px;
    height: 18px;
    color: var(--catalog-primary);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group label .required {
    color: #ef4444;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

.form-group.flex-2 {
    grid-column: span 2;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #111827;
    background: white;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--catalog-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error,
.form-select.error {
    border-color: #ef4444;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 4px;
}

.form-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    font-size: 0.8125rem;
    color: #4b5563;
}

.form-info-box i {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--catalog-primary);
    margin-top: 1px;
}

/* Toggle Switch */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
}

.toggle-label input {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: #e5e7eb;
    border-radius: 13px;
    transition: all 0.2s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

input:checked + .toggle-switch {
    background: var(--catalog-gradient);
}

input:checked + .toggle-switch::after {
    transform: translateX(22px);
}

/* ═══════════════════════════════════════════════════════════
   IMAGE UPLOAD
   ═══════════════════════════════════════════════════════════ */

.image-preview {
    width: 100%;
    height: 200px;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.image-preview:hover {
    border-color: var(--catalog-primary);
    background: rgba(59, 130, 246, 0.02);
}

.image-preview.has-image {
    border-style: solid;
    border-color: #e5e7eb;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview i {
    width: 40px;
    height: 40px;
    color: #9ca3af;
}

.image-preview span {
    font-size: 0.875rem;
    color: #6b7280;
}

.image-preview.large {
    height: 280px;
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */

.gallery-upload-zone {
    padding: 16px;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.gallery-upload-zone.drag-over {
    border-color: var(--catalog-primary);
    background: rgba(59, 130, 246, 0.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item.pending {
    border: 2px dashed var(--catalog-primary);
}

.gallery-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-remove {
    opacity: 1;
}

.gallery-remove i {
    width: 14px;
    height: 14px;
}

.gallery-add {
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-add:hover {
    border-color: var(--catalog-primary);
    color: var(--catalog-primary);
}

.gallery-add i {
    width: 24px;
    height: 24px;
}

.gallery-add span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .catalog-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #distributor-catalog-content {
        padding: 16px;
    }

    .catalog-header {
        padding: 20px;
        border-radius: 16px;
    }

    .catalog-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .catalog-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        padding: 16px;
    }

    .content-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-right {
        flex-wrap: wrap;
    }

    .search-box {
        width: 100%;
    }

    .distributor-brands-grid,
    .distributor-ranges-grid,
    .distributor-models-grid {
        grid-template-columns: 1fr;
    }

    .form-row,
    .form-row-3,
    .form-row-4 {
        grid-template-columns: 1fr;
    }

    .form-group.flex-2 {
        grid-column: span 1;
    }

    .modal-tabs {
        padding: 0 16px;
    }

    .modal-tab span {
        display: none;
    }

    .modal-tab {
        padding: 12px;
    }

    .pagination {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .catalog-header-icon {
        width: 48px;
        height: 48px;
    }

    .catalog-header-icon i {
        width: 24px;
        height: 24px;
    }

    .catalog-header-title h1 {
        font-size: 1.375rem;
    }

    .catalog-stats {
        grid-template-columns: 1fr;
    }

    .view-tabs {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
    }

    .tab-btn span {
        display: none;
    }

    .empty-state {
        padding: 60px 24px;
    }

    .empty-icon {
        width: 100px;
        height: 100px;
    }

    .empty-icon i {
        width: 40px;
        height: 40px;
    }
}
