/**
 * ============================================
 * Catalog Page Styles - Modern Professional Design
 * ============================================
 * 
 * Features:
 * - Clean, modern design
 * - Smooth animations
 * - Responsive grid layout
 * - Professional filters & search
 * - Lightbox gallery
 * - Performance optimized
 */

/* ============================================
   Main Container
   ============================================ */
.catalog-main {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    direction: rtl;
    padding-bottom: 4rem;
}

.catalog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

/* ============================================
   Hero Section - Modern Design
   ============================================ */
.catalog-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e40af 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.catalog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.catalog-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.catalog-hero-content {
    text-align: center;
    color: #ffffff;
}

.catalog-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.catalog-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin: 0 0 2.5rem 0;
    color: #ffffff;
    opacity: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.catalog-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.catalog-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.catalog-stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.catalog-stat-label {
    font-size: 0.9375rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Search & Filters Section - Professional Design
   ============================================ */
.catalog-filters-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.catalog-search-wrapper {
    margin-bottom: 2.5rem;
}

.catalog-search-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.catalog-search-input {
    width: 100%;
    padding: 1.125rem 1.5rem 1.125rem 4rem;
    border: 2px solid #e5e7eb;
    border-radius: 1.5rem;
    font-size: 1rem;
    background: #ffffff;
    color: #1f2937;
    direction: rtl;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    font-weight: 500;
}

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

.catalog-search-input:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1), 0 8px 24px rgba(147, 51, 234, 0.15);
    transform: translateY(-2px);
}

.catalog-search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9333ea;
    font-size: 1.25rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.catalog-search-input:focus ~ .catalog-search-icon {
    color: #7e22ce;
}

.catalog-search-clear {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.catalog-search-clear.visible {
    display: flex;
}

.catalog-search-clear:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.catalog-filters-wrapper {
    margin-top: 2rem;
    width: 100%;
}

.catalog-filters-wrapper .catalog-filters-list {
    display: flex !important;
    flex-wrap: nowrap;
}

.catalog-filters-label {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1.25rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.catalog-filters-label::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    border-radius: 2px;
}

.catalog-filters-label::after {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    border-radius: 2px;
}

.catalog-filters-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0.5rem;
    margin: 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(147, 51, 234, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.catalog-filters-list::-webkit-scrollbar {
    height: 8px;
}

.catalog-filters-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.catalog-filters-list::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.4);
    border-radius: 10px;
}

.catalog-filters-list::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 51, 234, 0.6);
}

.catalog-filter-card {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    max-width: 150px;
    width: 150px;
    height: auto;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    text-align: center;
    flex-shrink: 0;
}

.catalog-filter-card:hover {
    border-color: #9333ea;
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 32px rgba(147, 51, 234, 0.3);
}

.catalog-filter-card.active {
    border-color: #9333ea;
    border-width: 3px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    box-shadow: 0 6px 24px rgba(147, 51, 234, 0.45), 0 3px 12px rgba(236, 72, 153, 0.35);
    transform: translateY(-2px);
}

.catalog-filter-card.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%);
    z-index: 1;
    pointer-events: none;
}

.catalog-filter-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 80%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.875rem 0.875rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-filter-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem;
}

.catalog-filter-card:hover .catalog-filter-card-image {
    transform: scale(1.12);
}

.catalog-filter-card-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 2rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.catalog-filter-card.active .catalog-filter-card-image-placeholder {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    color: #9333ea;
}

.catalog-filter-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.catalog-filter-card:hover .catalog-filter-card-overlay {
    opacity: 1;
}

.catalog-filter-card.active .catalog-filter-card-overlay {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
    opacity: 1;
}

.catalog-filter-card-info {
    padding: 1rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: #ffffff;
    min-height: 55px;
    border-top: 1px solid #f3f4f6;
}

.catalog-filter-card.active .catalog-filter-card-info {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.06) 0%, rgba(236, 72, 153, 0.06) 100%);
}

.catalog-filter-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.5;
    transition: color 0.3s ease;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.catalog-filter-card:hover .catalog-filter-card-title {
    color: #9333ea;
}

.catalog-filter-card.active .catalog-filter-card-title {
    color: #9333ea;
    font-weight: 700;
}

@media (max-width: 768px) {
    .catalog-filters-section {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .catalog-search-wrapper {
        margin-bottom: 2rem;
    }
    
    .catalog-search-box {
        max-width: 100%;
    }
    
    .catalog-search-input {
        padding: 1rem 3.5rem 1rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .catalog-filters-list {
        gap: 0.875rem;
        padding: 0.75rem 0.5rem;
    }
    
    .catalog-filter-card {
        min-width: 130px;
        max-width: 130px;
        width: 130px;
    }
    
    .catalog-filter-card-info {
        padding: 0.875rem 0.625rem;
        min-height: 50px;
    }
    
    .catalog-filter-card-title {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .catalog-filters-list {
        gap: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
    
    .catalog-filter-card {
        min-width: 120px;
        max-width: 120px;
        width: 120px;
    }
    
    .catalog-filter-card-image-wrapper {
        padding-bottom: 75%;
    }
    
    .catalog-filter-card-image-placeholder {
        font-size: 1.5rem;
    }
    
    .catalog-filter-card-info {
        padding: 0.75rem 0.5rem;
        min-height: 48px;
    }
    
    .catalog-filter-card-title {
        font-size: 0.75rem;
    }
    
    .catalog-filters-label {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }
}

/* ============================================
   Catalog Grid - Professional Clean Design
   ============================================ */
.catalog-grid-section {
    padding: 2rem 0 4rem;
    width: 100%;
    overflow: hidden;
}

.catalog-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    box-sizing: border-box;
}

#catalogGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 3rem 2.5rem;
    width: 100%;
    margin: 0;
    padding: 3rem 0;
    list-style: none;
    box-sizing: border-box;
    align-items: start;
    isolation: isolate;
}

/* Responsive grid columns */
@media (min-width: 1400px) {
    #catalogGrid {
        grid-template-columns: repeat(5, 1fr);
        gap: 3.5rem 3rem;
    }
}

@media (max-width: 1024px) {
    #catalogGrid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    #catalogGrid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    #catalogGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1.25rem;
    }
}

.catalog-section-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 0 2rem;
    margin-top: 5rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid #e5e7eb;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.catalog-section-header:first-child {
    margin-top: 0;
}

.catalog-section-title {
    font-size: 2rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.catalog-section-count {
    font-size: 0.9375rem;
    color: #6b7280;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 0.625rem 1.25rem;
    border-radius: 1.5rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


.catalog-item {
    background: #ffffff;
    border-radius: 28px;
    overflow: visible;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: auto;
    margin: 0;
    padding: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    width: 100%;
    cursor: pointer;
    isolation: isolate;
    z-index: 1;
}

.catalog-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(236, 72, 153, 0.2));
    -webkit-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.5s ease;
    pointer-events: none;
    z-index: 1;
}

.catalog-item:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 32px 64px rgba(147, 51, 234, 0.16), 0 12px 24px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.catalog-item:hover::after {
    opacity: 1;
}

.catalog-item.hidden {
    display: none;
}

.catalog-item-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 28px;
}

.catalog-item-link {
    text-decoration: none;
    display: block;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    aspect-ratio: 1;
}

.catalog-item-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 28px 28px 0 0;
}

.catalog-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

.catalog-item:hover .catalog-item-image {
    transform: scale(1.15) rotate(2deg);
}

.catalog-item-overlay {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.catalog-item:hover .catalog-item-overlay {
    opacity: 1;
    transform: scale(1.15) rotate(10deg);
}

.catalog-item-overlay-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.catalog-item-overlay-content .catalog-item-icon {
    color: #9333ea;
    font-size: 1.125rem;
    margin: 0;
    padding: 0;
}

.catalog-item-overlay-content .catalog-item-action {
    display: none;
}

.catalog-item-icon {
    font-size: 1.125rem;
}

.catalog-item-info {
    padding: 2rem 1.5rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    border-radius: 0 0 28px 28px;
}

.catalog-item-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.5;
    margin: 0;
    text-align: center;
    word-break: break-word;
    display: block;
    transition: all 0.4s ease;
    letter-spacing: -0.01em;
}

.catalog-item:hover .catalog-item-title {
    color: #9333ea;
    transform: translateY(-2px);
}

.catalog-item-meta {
    display: none;
}

.catalog-item-category {
    display: none;
}

.catalog-item-link-btn {
    display: none;
}

/* ============================================
   Empty States
   ============================================ */
.catalog-empty-state,
#catalogNoResults {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 1.5rem;
    margin: 2rem 0;
}

.catalog-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9ca3af;
}

.catalog-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.catalog-empty-text {
    font-size: 1rem;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   Info Cards Section
   ============================================ */
.catalog-info-section {
    background: #ffffff;
    padding: 4rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.catalog-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.catalog-info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.catalog-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.catalog-info-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.catalog-info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.catalog-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalog-info-list li {
    padding: 0.75rem 0;
    color: #4b5563;
    line-height: 1.7;
    position: relative;
    padding-right: 1.5rem;
}

.catalog-info-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #3b82f6;
    font-weight: 700;
}

.catalog-info-list li:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

/* ============================================
   Lightbox Modal - Modern Design
   ============================================ */
.catalog-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
}

.catalog-lightbox.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.catalog-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    animation: fadeIn 0.4s ease;
}

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

.catalog-lightbox-container {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 95vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-lightbox-content {
    background: #ffffff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 100%;
    animation: lightboxSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes lightboxSlideIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.catalog-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    transition: transform 0.3s ease;
}

.catalog-lightbox-image.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.catalog-lightbox-image:not(.zoomed) {
    cursor: zoom-in;
}

.catalog-lightbox-info {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-top: 2px solid #e5e7eb;
}

.catalog-lightbox-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
    text-align: center;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.catalog-lightbox-close,
.catalog-lightbox-prev,
.catalog-lightbox-next {
    position: absolute;
    width: 56px;
    height: 56px;
    border: none;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 50%;
    color: #1f2937;
    font-size: 1.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.catalog-lightbox-close:hover,
.catalog-lightbox-prev:hover,
.catalog-lightbox-next:hover {
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    color: #ffffff;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 32px rgba(147, 51, 234, 0.4), 0 4px 12px rgba(236, 72, 153, 0.3);
}

.catalog-lightbox-close {
    top: 1.5rem;
    left: 1.5rem;
}

.catalog-lightbox-close:hover {
    transform: scale(1.15) rotate(90deg);
}

.catalog-lightbox-prev {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.catalog-lightbox-prev:hover {
    transform: translateY(-50%) scale(1.15) translateX(-5px);
}

.catalog-lightbox-next {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.catalog-lightbox-next:hover {
    transform: translateY(-50%) scale(1.15) translateX(5px);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .catalog-hero {
        padding: 4rem 0 3rem;
    }
    
    .catalog-hero-stats {
        gap: 2rem;
    }
    
    #catalogGrid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
    
    .catalog-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .catalog-hero {
        padding: 3rem 0 2.5rem;
        margin-bottom: 2rem;
    }
    
    .catalog-hero-title {
        font-size: 2rem;
    }
    
    .catalog-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .catalog-hero-stats {
        gap: 1.5rem;
    }
    
    .catalog-stat-number {
        font-size: 2rem;
    }
    
    .catalog-filters-section {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .catalog-search-input {
        padding: 0.875rem 3rem 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .catalog-filters-list {
        gap: 0.5rem;
    }
    
    .catalog-filter-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    #catalogGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
        padding: 2rem 0;
    }
    
    .catalog-item {
        border-radius: 20px;
    }
    
    .catalog-item-inner {
        border-radius: 20px;
    }
    
    .catalog-item-image-wrapper {
        padding: 0;
        border-radius: 20px 20px 0 0;
    }
    
    .catalog-item-overlay {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }
    
    .catalog-item-overlay-content .catalog-item-icon {
        font-size: 0.9375rem;
    }
    
    .catalog-item-info {
        padding: 1.5rem 1.25rem;
    }
    
    .catalog-item-title {
        font-size: 0.9375rem;
    }
    
    .catalog-section-header {
        padding: 2.5rem 0 1.5rem;
        margin-top: 4rem;
        margin-bottom: 1.5rem;
    }
    
    .catalog-section-title {
        font-size: 1.5rem;
    }
    
    .catalog-info-section {
        padding: 3rem 0;
    }
    
    .catalog-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .catalog-info-card {
        padding: 1.5rem;
    }
    
    .catalog-lightbox {
        padding: 1rem;
    }
    
    .catalog-lightbox-close,
    .catalog-lightbox-prev,
    .catalog-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .catalog-container {
        padding: 0 var(--spacing-md);
    }
    
    .catalog-hero {
        padding: 2.5rem 0 2rem;
    }
    
    .catalog-hero-title {
        font-size: 1.75rem;
    }
    
    .catalog-hero-stats {
        gap: 1rem;
        flex-direction: column;
    }
    
    #catalogGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem 1.5rem;
        padding: 1.5rem 0;
    }
    
    .catalog-section-header {
        padding: 2rem 0 1.25rem;
        margin-top: 3rem;
        margin-bottom: 1.25rem;
    }
    
    .catalog-section-title {
        font-size: 1.25rem;
    }
    
    .catalog-section-count {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }
    
    .catalog-item {
        border-radius: 16px;
    }
    
    .catalog-item-inner {
        border-radius: 16px;
    }
    
    .catalog-item-image-wrapper {
        padding: 0;
        border-radius: 16px 16px 0 0;
    }
    
    .catalog-item-overlay {
        top: 0.875rem;
        right: 0.875rem;
        width: 32px;
        height: 32px;
    }
    
    .catalog-item-overlay-content .catalog-item-icon {
        font-size: 0.875rem;
    }
    
    .catalog-item-info {
        padding: 1.25rem 1rem;
    }
    
    .catalog-item-title {
        font-size: 0.875rem;
    }
    
    .catalog-grid-section {
        padding: 1.5rem 0 3rem;
    }
}
