/* Ürünler Page Styles - 3E Makina - Modern Design */

.urunler-container {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.urunler-layout {
    max-width: 1400px;
    margin: 80px auto 0 auto;
    padding: 0 20px;
}

/* ============================================
   CATEGORY FILTER - TOP
   ============================================ */
.category-filter-top {
    background: white;
    padding: 30px 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid rgba(33, 45, 85, 0.1);
}

.category-filter-top h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 14px 28px;
    background: #f5f7fa;
    color: var(--text-dark);
    border: 2px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: rgba(33, 45, 85);
    transition: width 0.3s ease;
}

.category-btn:hover {
    background: rgba(33, 45, 85, 0.05);
    color: rgba(33, 45, 85);
    border-color: rgba(33, 45, 85, 0.2);
}

.category-btn:hover::before {
    width: 100%;
}

.category-btn.active {
    background: rgba(33, 45, 85);
    color: white;
    border-color: rgba(33, 45, 85);
    box-shadow: 0 4px 15px rgba(33, 45, 85, 0.3);
}

.category-btn.active::before {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
}

/* ============================================
   PRODUCTS AREA
   ============================================ */
.products-area {
    background: white;
    padding: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    min-height: 700px;
}

.products-section {
    display: none;
}

.products-section.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

.products-section h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2.3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.products-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
}

/* ============================================
   PRODUCTS GRID - MODERN CARDS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
}

.product-card.show {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(33, 45, 85, 0.3);
}

.product-card-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-bottom: 2px solid #f0f0f0;
    /* CLS optimization - prevent layout shift */
    aspect-ratio: 16 / 9;
}

/* Image Placeholder - Shimmer Effect */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        #e0e0e0 0%, 
        #f0f0f0 50%, 
        #e0e0e0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
    /* CLS optimization - prevent layout shift */
    aspect-ratio: 16 / 9;
}

.image-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

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

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    position: relative;
    z-index: 2;
    /* CLS optimization - prevent layout shift */
    aspect-ratio: 16 / 9;
    display: block;
}

/* Lazy loading image states */
.product-card-image img.lazy-image {
    opacity: 0;
}

.product-card-image img.lazy-image:not([src]),
.product-card-image img.lazy-image[src=""] {
    opacity: 0;
}

.product-card-image img.loaded {
    opacity: 1;
}

.product-card-image img:not(.lazy-image) {
    opacity: 1;
}

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

.specs-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(33, 45, 85, 0.95), rgba(33, 45, 85, 0.95));
    color: white;
    padding: 8px 16px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.image-count-badge {
    position: absolute;
    top: 60px;
    right: 15px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.95), rgba(251, 192, 45, 0.95));
    color: white;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.video-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.95), rgba(211, 47, 47, 0.95));
    color: white;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.product-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--secondary-color);
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 60px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.view-details {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.product-card:hover .view-details {
    color: var(--accent-color);
}

.arrow-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.product-card:hover .arrow-icon {
    transform: translateX(8px);
    color: var(--accent-color);
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.loading-state {
    text-align: center;
    padding: 100px 20px;
}

.loading-state .loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-state-icon {
    font-size: 6rem;
    margin-bottom: 20px;
    opacity: 0.2;
}

.empty-state h3 {
    color: var(--text-dark);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.empty-state p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ============================================
   PRODUCT MODAL - MODERN DESIGN
   ============================================ */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 0;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: linear-gradient(135deg, #c62828, #e53935);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 50px;
}

/* Image Gallery in Modal */
.modal-image-gallery {
    margin: -50px -50px 30px -50px;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
    border-radius: 0;
    overflow: hidden;
}

.modal-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.image-thumbnails {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fc 0%, #f0f4ff 100%);
    overflow-x: auto;
    border-top: 3px solid #e0e7ff;
}

.thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(33, 45, 85, 0.3);
}

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

/* Legacy single image (fallback) */
.modal-image-container {
    margin: -50px -50px 40px -50px;
    border-radius: 0;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

/* Clickable Image Hint */
.clickable-image {
    cursor: pointer;
}

.image-zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 0;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.main-image-container:hover .image-zoom-hint,
.modal-image-container:hover .image-zoom-hint {
    opacity: 1;
}

/* Modal Media Container - Image + Video Button Side by Side */
.modal-media-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

/* Modal Video Button - Next to Image */
.modal-video-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 35px;
    margin: 20px auto 30px auto;
    width: fit-content;
    background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.3);
}

.modal-video-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.5);
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
}

.modal-video-button .video-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.modal-video-button:hover .video-icon {
    transform: scale(1.1);
}

/* Image Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
    line-height: 1;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    font-size: 3rem;
}

.lightbox-next {
    right: 20px;
    font-size: 3rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: white;
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Video Lightbox */
.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-lightbox.active {
    opacity: 1;
}

.video-lightbox-content {
    position: relative;
    width: 90vw;
    max-width: 1200px;
}

.video-lightbox-content video,
.video-lightbox-content iframe {
    width: 100%;
    max-height: 80vh;
    min-height: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.modal-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    flex: 1;
}

.category-badge {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(33, 45, 85, 0.15);
}

.modal-section {
    margin-bottom: 40px;
}

.modal-section h3 {
    color: var(--secondary-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e0e7ff;
}

.modal-text {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Specs Table - Modern Design */
.specs-table-wrapper {
    margin-top: 25px;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 1rem;
}

.specs-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.specs-table thead th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
}

.specs-table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.specs-table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.specs-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e8e8e8;
}

.specs-table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fc 0%, #f5f7fa 100%);
}

.specs-table tbody tr:nth-child(odd) {
    background: white;
}

.specs-table tbody tr:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #e3f2fd 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(33, 45, 85, 0.15);
}

.specs-table tbody tr:last-child {
    border-bottom: none;
}

.specs-table tbody td {
    padding: 16px 20px;
    color: var(--text-dark);
    font-size: 1rem;
}

.specs-table .spec-name {
    font-weight: 600;
    color: var(--primary-color);
    width: 45%;
}

.specs-table .spec-value {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
    width: 35%;
}

.specs-table .spec-unit {
    color: var(--text-light);
    font-style: italic;
    width: 20%;
}

/* Model-Based Specs Styling */
.models-specs-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 25px;
}

.model-specs-section {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #e0e7ff;
}

.model-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.model-specs-section .specs-table-wrapper {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Additional Images - Original Size Display */
.additional-images-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.additional-image-item {
    width: 100%;
    margin-bottom: 10px;
}

.additional-image-item img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Section in Modal */
.modal-contact-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 35px;
    border-radius: 0;
    text-align: center;
    margin-top: 50px;
}

.modal-contact-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    border: none;
    padding: 0;
}

.modal-contact-section p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.contact-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(33, 45, 85, 0.25);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(33, 45, 85, 0.35);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .specs-table {
        font-size: 0.95rem;
    }
    
    .specs-table thead th {
        padding: 16px 18px;
        font-size: 1rem;
    }
    
    .specs-table tbody td {
        padding: 14px 18px;
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .category-filter-top {
        padding: 25px 30px;
    }
    
    .category-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .products-area {
        padding: 40px 35px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .urunler-container {
        padding-top: 80px;
    }
    
    .category-filter-top {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .category-filter-top h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .category-buttons {
        gap: 10px;
    }
    
    .category-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .products-area {
        padding: 30px 20px;
    }
    
    .products-section h2 {
        font-size: 1.9rem;
        margin-bottom: 30px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card-image {
        height: 200px;
    }
    
    .modal-body {
        padding: 35px 25px;
    }
    
    .modal-image-gallery {
        margin: -35px -25px 25px -25px;
    }
    
    .main-image-container {
        height: 350px;
    }
    
    .image-thumbnails {
        padding: 15px;
        gap: 10px;
    }
    
    .thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .modal-image-container {
        margin: -35px -25px 30px -25px;
    }
    
    .modal-image {
        height: 280px;
    }
    
    .modal-video-button {
        font-size: 1rem;
        padding: 14px 28px;
        margin: 15px auto 25px auto;
    }
    
    .modal-video-button .video-icon {
        width: 24px;
        height: 24px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 2.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .modal-header-section {
        flex-direction: column;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    /* Responsive Table for Mobile */
    .specs-table {
        font-size: 0.9rem;
    }
    
    .specs-table thead th {
        padding: 14px 12px;
        font-size: 0.9rem;
    }
    
    .specs-table tbody td {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .specs-table .spec-name {
        font-size: 0.9rem;
    }
    
    .specs-table .spec-value {
        font-size: 1rem;
    }
    
    .modal-contact-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .category-filter-top {
        padding: 15px 10px;
    }
    
    .category-filter-top h3 {
        font-size: 1.1rem;
    }
    
    .category-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .category-btn {
        width: 100%;
        padding: 12px 15px;
    }
    
    .products-area {
        padding: 25px 15px;
    }
    
    .products-section h2 {
        font-size: 1.6rem;
    }
    
    .product-card-content {
        padding: 20px;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
    
    .product-card-image {
        height: 180px;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .modal-image-gallery {
        margin: -25px -20px 20px -20px;
    }
    
    .main-image-container {
        height: 280px;
    }
    
    .image-thumbnails {
        padding: 12px;
        gap: 8px;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .modal-image-container {
        margin: -25px -20px 25px -20px;
    }
    
    .modal-video-button {
        font-size: 0.95rem;
        padding: 12px 24px;
        margin: 12px auto 20px auto;
        gap: 10px;
    }
    
    .modal-video-button .video-icon {
        width: 22px;
        height: 22px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 10px;
        right: 10px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .lightbox-counter {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .video-lightbox-content {
        width: 95vw;
    }
    
    .video-lightbox-content iframe {
        min-height: 300px;
    }
    
    .modal-title {
        font-size: 1.7rem;
    }
    
    /* Extra small table adjustments */
    .specs-table thead th {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    
    .specs-table tbody td {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .specs-table .spec-value {
        font-size: 0.95rem;
    }
    
    .contact-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ============================================
   TAG FILTER STYLES
   ============================================ */
.tag-filter-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tag-filter-section h3 {
    margin: 0 0 24px 0;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.tag-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.tag-filter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.3s ease;
    z-index: 0;
}

.tag-filter-item:hover::before {
    width: 100%;
}

.tag-filter-item:hover {
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.25);
}

.tag-filter-item:hover .tag-filter-icon,
.tag-filter-item:hover .tag-filter-name,
.tag-filter-item:hover .tag-filter-count {
    position: relative;
    z-index: 1;
    color: white;
}

.tag-filter-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.3);
    transform: translateY(-2px);
}

.tag-filter-item.active::before {
    width: 100%;
}

.tag-filter-item.active .tag-filter-icon,
.tag-filter-item.active .tag-filter-name,
.tag-filter-item.active .tag-filter-count {
    position: relative;
    z-index: 1;
    color: white;
}

.tag-filter-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.tag-filter-item:hover .tag-filter-icon {
    transform: rotate(20deg) scale(1.1);
}

.tag-filter-name {
    position: relative;
    z-index: 1;
}

.tag-filter-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.tag-filter-item.active .tag-filter-count {
    background: rgba(255, 255, 255, 0.25);
}

.clear-tag-filter {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff5252 0%, #ff1744 100%);
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
}

.clear-tag-filter.visible {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.clear-tag-filter:hover {
    background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.4);
}

.clear-tag-filter:active {
    transform: translateY(-1px);
}

.no-tags-message {
    color: #999;
    font-size: 0.95rem;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .tag-filter-section {
        padding: 20px 15px;
    }
    
    .tag-filter-section h3 {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }
    
    .tag-filter-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 12px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.1);
    }
    
    .tag-filter-container::-webkit-scrollbar {
        height: 6px;
    }
    
    .tag-filter-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 3px;
    }
    
    .tag-filter-container::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
    
    .tag-filter-container::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-color);
    }
    
    .tag-filter-item {
        padding: 10px 16px;
        font-size: 0.9rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .clear-tag-filter {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 15px;
    }
}

/* Product Tags in Cards */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 8px 0;
    min-height: 28px;
}

.product-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #1a237e;
    color: white;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.product-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.4);
}

.product-tag.more-tags {
    background: #555;
    box-shadow: 0 2px 8px rgba(85, 85, 85, 0.3);
}
