/* Products Page Specific Styles */

/* Gallery Hero Section */
.gallery-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.gallery-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-image-container {
    position: relative;
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    opacity: 0;
    transition: all 1s ease-out;
}

.hero-image.fade-in {
    transform: translateY(0);
    opacity: 1;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.hero-text {
    transform: translateX(30px);
    opacity: 0;
    transition: all 1s ease-out 0.3s;
}

.hero-text.fade-in-delay {
    transform: translateX(0);
    opacity: 1;
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.gallery-description {
    color: #555;
    line-height: 1.8;
}

.gallery-description p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Product Categories Filter */
.product-categories {
    padding: 40px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.categories-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid #ddd;
    background: transparent;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Products Grid */
.products-grid {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.product-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.product-item.fade-in-up {
    transform: translateY(0);
    opacity: 1;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.overlay-content {
    display: flex;
    gap: 15px;
}

.view-btn,
.info-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.view-btn:hover,
.info-btn:hover {
    background: #fff;
    color: #333;
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-category {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

#lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-prev {
    margin-left: -50px;
}

.lightbox-next {
    margin-right: -50px;
}

/* Product Modal Styles */
.product-modal {
    display: none;
    position: fixed;
    z-index: 9998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

#modal-body {
    padding: 40px 30px 30px;
}

/* Filter Animation */
.product-item.hide {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.product-item.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design for Products */
@media (max-width: 1024px) {
    .gallery-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .gallery-title {
        font-size: 3rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 60px 0;
        min-height: auto;
    }
    
    .gallery-title {
        font-size: 2.5rem;
    }
    
    .gallery-description p {
        font-size: 1rem;
    }
    
    .categories-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .lightbox-content {
        width: 95%;
        padding: 20px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 18px;
        padding: 12px 15px;
        margin: 0 -25px;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 2rem;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    #modal-body {
        padding: 30px 20px 20px;
    }
}

/* Loading States */
.product-image img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Category specific styles */
.product-item[data-category="modern"] .product-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-item[data-category="traditional"] .product-category {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.product-item[data-category="classic"] .product-category {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.product-item[data-category="custom"] .product-category {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
