/* Product Gallery Template Styles */

.product-gallery {
    /* padding-top: 8rem; */
    /* background: #133237; */
    min-height: 100vh;
}

.product-gallery .parent{
    background: #133237;
    padding-top: 10rem;
    /*border-radius: 0 0 70px 70px;*/
    margin-bottom: 220px;
}

.product-gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-gallery-empty p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-gallery-empty a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
}

.product-gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.product-gallery-breadcrumb {
    font-size: 0.9rem;
    color: #f5f0e6;
    margin-bottom: 1rem;
}

.product-gallery-breadcrumb a {
    color: #f5f0e6;
    text-decoration: none;
}

.product-gallery-breadcrumb a:hover {
    color: #d4af37;
}

.product-gallery-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #f5f0e6;
    margin: 0;
    letter-spacing: 0.02em;
    font-family: "Arches", serif;
}

.product-gallery-meta {
    color: #888;
    font-size: 1rem;
    margin: 0.5rem 0 0;
}

.product-gallery-content {
    margin-bottom: 3rem;
}

.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-image img {
    transform: scale(1.05);
}

.gallery-item-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 ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-view {
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.gallery-item-info {
    padding: 1.5rem;
}

.gallery-item-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
}

.gallery-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: "Arches", serif;
}

.gallery-item-title a:hover {
    color: #133237;
}

.gallery-item-collection {
    color: #133237;
    font-family: "Rota", serif;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.gallery-item-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.gallery-item-specs {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.spec-item {
    font-size: 0.85rem;
    color: #777;
}

.spec-item strong {
    color: #555;
}

.product-gallery-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #d4af37;
    color: white;
}

.btn-primary:hover {
    background: #b8941f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #f5f0e6;
    border-color: #ddd;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.gallery-empty p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

.gallery-empty a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-gallery-container {
        padding: 0 1rem;
    }
    
    .product-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .product-gallery-title {
        font-size: 2rem;
    }
    
    .gallery-item-info {
        padding: 1rem;
    }
    
    .product-gallery-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .product-gallery-title {
        font-size: 1.5rem;
    }
    .gallery-item-title a{
        font-size: 1rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(n+7) { animation-delay: 0.7s; }