/* Catalog Page Styles */

/* Catalog Hero Section */
.catalog-hero {
    min-height: 50vh;
    background: var(--primary-white);
    display: flex;
    align-items: center;
    padding: calc(60px + var(--space-2xl)) 0 var(--space-2xl) 0;
    position: relative;
}

.catalog-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    width: 100%;
}

.breadcrumb {
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.breadcrumb a {
    color: var(--primary-black);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--gray-600);
}

.breadcrumb span {
    margin: 0 var(--space-sm);
}

.catalog-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    color: var(--primary-black);
    margin-bottom: var(--space-sm);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.catalog-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 300;
    max-width: 600px;
    margin-bottom: var(--space-xs);
}

/* Product Grid Section */
.product-grid-section {
    padding: var(--space-2xl) 0;
    background: var(--primary-white);
}

.product-filters {
    margin-bottom: var(--space-2xl);
    display: flex;
    justify-content: center;
}

.filter-group {
    display: flex;
    gap: var(--space-sm);
    background: var(--gray-100);
    padding: var(--space-xs);
    border-radius: 50px;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-600);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-black);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--primary-white);
    transform: translateY(-1px);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.product-card {
    background: var(--primary-white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid var(--gray-200);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }
.product-card:nth-child(10) { animation-delay: 1.0s; }
.product-card:nth-child(11) { animation-delay: 1.1s; }
.product-card:nth-child(12) { animation-delay: 1.2s; }

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

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-black);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--gray-50);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-product-btn {
    background: var(--primary-white);
    color: var(--primary-black);
    border: none;
    padding: var(--space-md) var(--space-xl);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transform: translateY(10px);
    opacity: 0;
}

.product-card:hover .view-product-btn {
    transform: translateY(0);
    opacity: 1;
}

.view-product-btn:hover {
    background: var(--primary-black);
    color: var(--primary-white);
    transform: translateY(-2px);
}

.product-info {
    padding: var(--space-lg);
}

.product-name {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.product-category {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.product-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--primary-white);
    border-radius: 20px;
    max-width: 1400px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--primary-black);
    font-size: 1.125rem;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-black);
    color: var(--primary-white);
    transform: scale(1.1);
}

/* Product Detail Container */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
}

/* Product Gallery */
.product-gallery {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.main-image-container {
    position: relative;
    height: 500px;
    background: var(--gray-50);
    border-radius: 16px;
    overflow: hidden;
    cursor: zoom-in;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.image-zoom-overlay.active {
    display: flex;
}

.zoom-controls {
    display: flex;
    gap: var(--space-sm);
}

.zoom-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-white);
    border: none;
    border-radius: 50%;
    color: var(--primary-black);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: var(--primary-black);
    color: var(--primary-white);
    transform: scale(1.1);
}

.thumbnail-gallery {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding: var(--space-sm) 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnail-gallery::-webkit-scrollbar {
    display: none;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary-black);
    transform: scale(1.05);
}

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

/* Product Details */
.product-details {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    overflow-y: auto;
}

.product-header {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: var(--space-lg);
}

.product-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    color: var(--primary-black);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.product-category-badge {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-description h3,
.product-features h3,
.product-applications h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: var(--space-md);
}

.product-description p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
}

.product-features ul,
.product-applications ul {
    list-style: none;
    padding: 0;
}

.product-features li,
.product-applications li {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
    padding-left: var(--space-lg);
    position: relative;
}

.product-features li::before,
.product-applications li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-black);
    font-weight: bold;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.contact-btn-primary,
.download-btn {
    padding: var(--space-md) var(--space-xl);
    border-radius: 50px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    border: 1px solid var(--primary-black);
}

.contact-btn-primary {
    background: var(--primary-black);
    color: var(--primary-white);
}

.contact-btn-primary:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.download-btn {
    background: transparent;
    color: var(--primary-black);
}

.download-btn:hover {
    background: var(--primary-black);
    color: var(--primary-white);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .product-gallery {
        padding: var(--space-xl);
    }
    
    .product-details {
        padding: var(--space-xl);
    }
    
    .main-image-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--space-xl);
        padding: 0 var(--space-md);
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-info {
        padding: var(--space-lg);
    }
    
    .product-name {
        font-size: 1.125rem;
    }
    
    .modal-content {
        margin: var(--space-md);
        border-radius: 16px;
    }
    
    .product-gallery {
        padding: var(--space-md);
    }
    
    .product-details {
        padding: var(--space-md);
    }
    
    .main-image-container {
        height: 300px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .contact-btn-primary,
    .download-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .catalog-hero {
        padding: calc(60px + var(--space-xl)) 0 var(--space-xl) 0;
    }
    
    .catalog-hero-content {
        padding: 0 var(--space-md);
    }
    
    .catalog-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .filter-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-md);
    }
    
    .modal-content {
        margin: var(--space-sm);
        border-radius: 12px;
    }
    
    .product-gallery {
        padding: var(--space-sm);
    }
    
    .product-details {
        padding: var(--space-sm);
    }
    
    .main-image-container {
        height: 250px;
    }
    
    .thumbnail-gallery {
        gap: var(--space-xs);
    }
    
    .thumbnail-item {
        width: 50px;
        height: 50px;
    }
}

/* Loading States */
.product-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.product-card.loading .product-image {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Smooth scrolling for modal */
.product-modal {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.filter-btn:focus,
.view-product-btn:focus,
.modal-close:focus,
.zoom-btn:focus,
.contact-btn-primary:focus,
.download-btn:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .product-card {
        border: 2px solid var(--primary-black);
    }
    
    .filter-btn.active {
        background: var(--primary-black);
        color: var(--primary-white);
    }
}

