/* ==========================================================================
   TRIKUT INDUSTRIES - Product Gallery Stylesheet
   Version 3.0 - Pure Image Gallery with Product Tabs
   ========================================================================== */

:root {
    --gallery-red: #E31E24;
    --gallery-red-dark: #be1217;
    --gallery-red-glow: rgba(227, 30, 36, 0.22);
    --gallery-dark: #0f172a;
    --gallery-text-muted: #64748b;
    --gallery-card-border: #e2e8f0;
    --gallery-bg-light: #f8fafc;
}

.gallery-page-section {
    background: #f8fafc;
    padding: 55px 0 90px 0;
    position: relative;
}

.gallery-header-wrap {
    max-width: 820px;
    margin: 0 auto 35px auto;
}

.product-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    color: var(--gallery-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(227, 30, 36, 0.2);
}

.gallery-page-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--gallery-dark);
    margin-top: 10px;
    margin-bottom: 12px;
    line-height: 1.25;
}

.gallery-page-subtitle {
    font-size: 15px;
    color: var(--gallery-text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.gallery-title-accent {
    display: block;
    width: 64px;
    height: 4px;
    background: var(--gallery-red);
    margin: 0 auto;
    border-radius: 4px;
}

/* ==========================================================================
   Gallery Tabs & Filter Controls
   ========================================================================== */

.gallery-tabs-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid var(--gallery-card-border);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    margin-bottom: 30px;
}

/* Mobile Quick Filter Dropdown */
.gallery-mobile-filter {
    display: none;
    margin-bottom: 15px;
}

.gallery-mobile-select {
    width: 100%;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gallery-dark);
    background-color: #ffffff;
    border: 2px solid var(--gallery-card-border);
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-mobile-select:focus {
    border-color: var(--gallery-red);
    box-shadow: 0 0 0 3px var(--gallery-red-glow);
}

/* Tab Pill Buttons List */
.gallery-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-tab-btn {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    user-select: none;
}

.gallery-tab-btn i {
    font-size: 12px;
    color: #64748b;
    transition: color 0.25s ease;
}

.gallery-tab-btn .tab-count {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    transition: all 0.25s ease;
    line-height: 1.3;
}

.gallery-tab-btn:hover {
    background: #ffffff;
    border-color: var(--gallery-red);
    color: var(--gallery-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.12);
}

.gallery-tab-btn:hover i {
    color: var(--gallery-red);
}

.gallery-tab-btn.active {
    background: linear-gradient(135deg, var(--gallery-red) 0%, var(--gallery-red-dark) 100%);
    border-color: var(--gallery-red);
    color: #ffffff;
    box-shadow: 0 6px 18px var(--gallery-red-glow);
    transform: translateY(-2px);
}

.gallery-tab-btn.active i {
    color: #ffffff;
}

.gallery-tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

/* ==========================================================================
   Active Category Info Banner (Dynamic)
   ========================================================================== */

.gallery-category-info-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--gallery-red);
    border-radius: 12px;
    padding: 14px 22px;
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.category-info-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 500px;
}

.category-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fef2f2;
    color: var(--gallery-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.category-info-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gallery-dark);
    margin: 0 0 2px 0;
}

.category-info-text p {
    font-size: 13px;
    color: var(--gallery-text-muted);
    margin: 0;
    line-height: 1.4;
}

.category-info-right {
    flex-shrink: 0;
}

.category-product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    color: var(--gallery-red);
    border: 1px solid rgba(227, 30, 36, 0.25);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.category-product-link:hover {
    background: var(--gallery-red);
    color: #ffffff;
    border-color: var(--gallery-red);
    transform: translateX(3px);
}

/* ==========================================================================
   Pure Image Gallery Cards (Images Only)
   ========================================================================== */

.gallery-card-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-card-item.is-hidden {
    display: none !important;
}

.gallery-card-item.is-fading-in {
    animation: galleryCardFadeIn 0.35s ease forwards;
}

@keyframes galleryCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-pure-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--gallery-card-border);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.gallery-pure-card:hover {
    transform: translateY(-5px);
    border-color: var(--gallery-red);
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.12);
}

.gallery-pure-thumb {
    position: relative;
    height: 220px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.gallery-pure-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform 0.4s ease;
}

.gallery-pure-card:hover .gallery-pure-thumb img {
    transform: scale(1.08);
}

.gallery-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-pure-card:hover .gallery-thumb-overlay {
    opacity: 1;
}

.gallery-thumb-zoom {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--gallery-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transform: scale(0.85);
    transition: transform 0.25s ease;
}

.gallery-pure-card:hover .gallery-thumb-zoom {
    transform: scale(1);
}

/* ==========================================================================
   Empty State (when no images match)
   ========================================================================== */

.gallery-no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    margin: 20px auto;
}

.gallery-no-results i {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.gallery-no-results h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gallery-dark);
    margin-bottom: 6px;
}

.gallery-no-results p {
    font-size: 14px;
    color: var(--gallery-text-muted);
    margin-bottom: 20px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 991px) {
    .gallery-page-section {
        padding: 45px 0 70px 0;
    }

    .gallery-page-title {
        font-size: 30px;
    }

    .gallery-pure-thumb {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .gallery-page-section {
        padding: 35px 0 60px 0;
    }

    .gallery-page-title {
        font-size: 25px;
    }

    .gallery-tabs-wrapper {
        padding: 12px 14px;
    }

    .gallery-mobile-filter {
        display: block;
    }

    .gallery-tabs-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .gallery-tab-btn {
        flex-shrink: 0;
        font-size: 12.5px;
        padding: 7px 14px;
    }

    .category-info-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .category-product-link {
        width: 100%;
        justify-content: center;
    }

    .gallery-pure-thumb {
        height: 180px;
    }
}