/* ==========================================================================
   Kwiaciarnia Agi - Gallery pages (shared)
   --------------------------------------------------------------------------
   Wspólne style podstron galerii: hero, breadcrumb, siatka kart produktów
   i lightbox. Ładowane po app.css na każdej podstronie kategorii.
   ========================================================================== */

/* Gallery Hero Section */
.gallery-hero {
    padding: clamp(60px, 8vw, 120px) 0 clamp(40px, 5vw, 80px);
    text-align: center;
    background: #C5E8CE;
}

.gallery-hero h1 {
    margin-bottom: 16px;
}

.gallery-hero p {
    max-width: 700px;
    margin: 0 auto 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: clamp(14px, 1vw, 16px);
    color: #849B8B;
}

.breadcrumb a {
    color: #849B8B;
    transition: color 0.3s;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #395541;
}

.breadcrumb-separator {
    color: #849B8B;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(24px, 2vw, 40px);
}

@media (max-width: 1199px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(20px, 2vw, 32px);
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(16px, 3vw, 24px);
    }
}

/* Product Card */
.product-card {
    border-radius: 15px;
    overflow: hidden;
    background: #DDF9E5;
    box-shadow: 0 4px 12px rgba(57, 85, 65, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(57, 85, 65, 0.15);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

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

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(57, 85, 65, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

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

.product-overlay i {
    font-size: clamp(32px, 3vw, 48px);
    color: #FAFEFB;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(57, 85, 65, 0.75);
    backdrop-filter: blur(10px);
}

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

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

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(221, 249, 229, 0.9);
    border: none;
    border-radius: 50%;
    width: clamp(40px, 4vw, 60px);
    height: clamp(40px, 4vw, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #849B8B;
}

.lightbox-close:hover i,
.lightbox-prev:hover i,
.lightbox-next:hover i {
    color: #FAFEFB;
}

.lightbox-close i,
.lightbox-prev i,
.lightbox-next i {
    font-size: clamp(18px, 2vw, 24px);
    color: #395541;
}

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

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(221, 249, 229, 0.9);
    padding: 8px 20px;
    border-radius: 20px;
    color: #395541;
    font-weight: 600;
}

@media (max-width: 767px) {
    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

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