/* ==========================================================================
   INTERACTIVE STORE SHOWCASE & GALLERY (showcase.css)
   Clean symmetrical grid — mobile-first
   ========================================================================== */

.store-showcase-section {
    padding: 80px 20px;
    background-color: var(--pure-white);
    position: relative;
    overflow: hidden;
}

.store-showcase-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.store-showcase-section .section-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem) !important;
    letter-spacing: 0.5px !important;
}

.store-showcase-section .section-header p {
    color: #888;
    margin-top: 12px;
    font-size: 1rem;
}

/* Category Filter Tabs */
.showcase-filters-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.showcase-filter-btn {
    background: #f3f3f3;
    color: var(--text-dark);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

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

.showcase-filter-btn.active {
    background: var(--primary-red);
    color: var(--pure-white);
    box-shadow: 0 6px 18px rgba(219, 0, 11, 0.25);
}

/* ===== MOBILE-FIRST GRID: 1 column ===== */
.showcase-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Gallery Item */
.showcase-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    aspect-ratio: 4 / 3;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                opacity 0.35s ease;
}

/* Force ALL items to same aspect — no special spans */
.showcase-item.span-2-w,
.showcase-item.span-2-h {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4 / 3;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

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

/* Overlay */
.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

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

.showcase-overlay h3 {
    color: var(--pure-white);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 4px;
    font-family: 'Outfit', sans-serif;
    transform: translateY(10px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 0;
    transform: translateY(10px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.04s;
}

.showcase-overlay .category-badge {
    align-self: flex-start;
    background: var(--primary-red);
    color: var(--pure-white);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.showcase-item:hover .showcase-overlay h3,
.showcase-item:hover .showcase-overlay p {
    transform: translateY(0);
}

/* ===== TABLET: 2 columns ===== */
@media (min-width: 576px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* ===== DESKTOP: 3 columns ===== */
@media (min-width: 992px) {
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .showcase-item {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    /* Override masonry span classes — keep everything uniform */
    .showcase-item.span-2-w,
    .showcase-item.span-2-h {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 4 / 3;
    }
}

/* ===== LIGHTBOX ===== */
.showcase-lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.95);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.showcase-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    color: #fff;
    margin-top: 20px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

.lightbox-caption h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.lightbox-caption p {
    font-size: 0.95rem;
    color: #ccc;
}

/* Navigation Buttons */
.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
    cursor: pointer;
}

.lightbox-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.08);
}

.lightbox-close {
    top: -65px;
    right: 0;
}

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

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

.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

/* Mobile lightbox nav */
@media (max-width: 1200px) {
    .lightbox-prev {
        left: 20px;
        top: auto;
        bottom: -70px;
        transform: none;
    }
    .lightbox-next {
        right: 20px;
        top: auto;
        bottom: -70px;
        transform: none;
    }
    .lightbox-prev:hover, .lightbox-next:hover {
        transform: scale(1.08);
    }
    .lightbox-close {
        top: -60px;
        right: 20px;
    }
    .lightbox-content-wrapper {
        max-height: 65vh;
    }
    .lightbox-img {
        max-height: 60vh;
    }
}

/* Mobile gallery section */
@media (max-width: 576px) {
    .store-showcase-section {
        padding: 50px 15px;
    }

    .showcase-filters-wrapper {
        gap: 8px;
        margin-bottom: 25px;
    }

    .showcase-filter-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .showcase-grid {
        gap: 14px;
    }
}
