/* Gallery Hero */
.gallery-hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.gallery-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.gallery-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Filter Section */
.filter-section {
    margin: 3rem 0 2rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #10b981;
    background: white;
    color: #10b981;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.2);
}

.product-card.hidden {
    display: none;
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f0fdf4;
    color: #059669;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-view {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-etsy {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #10b981;
    text-decoration: none;
    border: 2px solid #10b981;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-etsy:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 4rem 0;
    font-size: 1.2rem;
    color: #666;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state h2 {
    color: #111;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #666;
    font-size: 1.1rem;
}

/* Product Detail Page */
.product-detail {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f0fdf4 0%, white 100%);
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-detail-image {
    position: sticky;
    top: 2rem;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.back-to-gallery {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    padding: 0.5rem 0;
}

.back-to-gallery:hover {
    color: #059669;
    transform: translateX(-4px);
}

.product-detail-info h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.product-detail-info .product-description {
    color: #444;
    line-height: 1.7;
}

.product-detail-info .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    margin-top: 1rem;
    align-self: flex-start;
}

.product-detail-info .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .product-detail-image {
        position: relative;
        top: 0;
    }

    .product-detail-info h1 {
        font-size: 1.5rem;
    }
}
