
/* ---------- FILTER SIDEBAR ---------- */
.filter-sidebar {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem 1.2rem 1.8rem;
    Portal Development Completion and Content Review Request box-shadow: 0 8px 30px rgba(0, 20, 50, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #e9edf2;
    display: flex;
    flex-direction: column;
    max-height: 95vh;
}

/* ---------- HEADER ---------- */
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #f0f3f7;
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

    .filter-header h6 {
        font-weight: 700;
        font-size: 1.05rem;
        letter-spacing: -0.02em;
        color: #0a1f3b;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin: 0;
    }

        .filter-header h6 i {
            color: #cd3c0d;
            font-size: 1.1rem;
        }

    .filter-header .clear-all {
        background: none;
        border: none;
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 4px 12px;
        border-radius: 40px;
        transition: 0.15s;
        cursor: pointer;
    }

        .filter-header .clear-all:hover {
            background: #f1f4f9;
            color: #1e293b;
        }

/* ---------- SCROLLABLE AREA ---------- */
.filter-scroll-area {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 4px;
    margin-right: -4px;
    scrollbar-width: thin;
    scrollbar-color: #d0d7e2 #f1f4f9;
}

    .filter-scroll-area::-webkit-scrollbar {
        width: 4px;
    }

    .filter-scroll-area::-webkit-scrollbar-track {
        background: #f1f4f9;
        border-radius: 10px;
    }

    .filter-scroll-area::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

        .filter-scroll-area::-webkit-scrollbar-thumb:hover {
            background: #a0aec0;
        }

/* ---------- FILTER GROUP ---------- */
.filter-group {
    margin-bottom: 1.6rem;
}

    .filter-group:last-of-type {
        margin-bottom: 0.6rem;
    }

.filter-group-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin-bottom: 0.4rem;
    border-bottom: 1px dashed #e6eaef;
    padding-bottom: 0.3rem;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 2;
    padding-top: 0.2rem;
}

    .filter-group-label i {
        color: #64748b;
        font-size: 0.75rem;
    }

    .filter-group-label .group-count {
        margin-left: auto;
        background: #eef2f6;
        padding: 0 10px;
        border-radius: 30px;
        font-size: 0.6rem;
        font-weight: 700;
        color: #475569;
    }

/* ---------- GROUP SEARCH ---------- */
.group-search {
    position: relative;
    margin-bottom: 0.5rem;
    margin-top: 0.1rem;
}

    .group-search input {
        width: 100%;
        padding: 0.4rem 0.8rem 0.4rem 2rem;
        border: 1.5px solid #e6eaef;
        border-radius: 40px;
        font-size: 0.8rem;
        background: #f8fafc;
        transition: 0.15s;
        outline: none;
        color: #1e293b;
    }

        .group-search input:focus {
            border-color: #cd3c0d;
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(205, 60, 13, 0.08);
        }

        .group-search input::placeholder {
            color: #94a3b8;
            font-weight: 400;
        }

    .group-search .search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 0.75rem;
        pointer-events: none;
    }

    .group-search .clear-search {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #94a3b8;
        font-size: 0.7rem;
        cursor: pointer;
        padding: 2px 6px;
        border-radius: 30px;
        display: none;
    }

        .group-search .clear-search.visible {
            display: block;
        }

        .group-search .clear-search:hover {
            background: #eef2f6;
            color: #475569;
        }

/* ---------- CHECKBOX OPTIONS ---------- */
.filter-options-list {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: #d0d7e2 transparent;
}

    .filter-options-list::-webkit-scrollbar {
        width: 3px;
    }

    .filter-options-list::-webkit-scrollbar-thumb {
        background: #d0d7e2;
        border-radius: 10px;
    }

.filter-option {
    display: flex;
    align-items: center;
    padding: 0.15rem 0 0.15rem 4px;
    border-radius: 6px;
    transition: 0.08s;
}

    .filter-option:hover {
        background: #f8fafc;
    }

    .filter-option.hidden {
        display: none;
    }

    .filter-option input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #cd3c0d;
        margin-right: 12px;
        flex-shrink: 0;
        cursor: pointer;
        border-radius: 4px;
        border: 1.5px solid #cbd5e1;
    }

        .filter-option input[type="checkbox"]:checked {
            border-color: #cd3c0d;
        }

    .filter-option label {
        font-size: 0.9rem;
        color: #1e293b;
        font-weight: 450;
        cursor: pointer;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

        .filter-option label .count-badge {
            background: #eef2f6;
            padding: 0 10px;
            border-radius: 30px;
            font-size: 0.65rem;
            font-weight: 600;
            color: #475569;
            letter-spacing: 0.01em;
            white-space: nowrap;
        }

/* ---------- HINT ---------- */
.filter-hint {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.2rem;
    padding-left: 4px;
    display: flex;
    gap: 1.2rem;
}

    .filter-hint span {
        cursor: pointer;
        border-bottom: 1px dashed #dce1e8;
        transition: 0.1s;
    }

        .filter-hint span:hover {
            color: #cd3c0d;
            border-color: #cd3c0d;
        }

/* ---------- ACTIONS ---------- */
.filter-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f3f7;
}

.btn-filter {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: 0.15s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-filter-primary {
    background: #002c6c;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 44, 108, 0.12);
}

    .btn-filter-primary:hover {
        background: #001f4d;
        box-shadow: 0 4px 14px rgba(0, 44, 108, 0.18);
    }

.btn-filter-secondary {
    background: #eef2f6;
    color: #1e293b;
}

    .btn-filter-secondary:hover {
        background: #e2e8ef;
    }

/* ---------- STATUS ---------- */
.filter-status {
    margin-top: 0.8rem;
    padding: 0.4rem 1rem;
    background: #f8fafc;
    border-radius: 60px;
    font-size: 0.75rem;
    color: #475569;
    border: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-height: 2.2rem;
}

    .filter-status i {
        color: #94a3b8;
        font-size: 0.6rem;
    }

    .filter-status .status-text {
        font-weight: 500;
    }

    .filter-status .status-active {
        color: #cd3c0d;
        font-weight: 600;
    }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
    .filter-sidebar {
        padding: 1.2rem 0.8rem 1.2rem;
        max-height: 90vh;
    }

    .filter-header h6 {
        font-size: 0.95rem;
    }

    .filter-option label {
        font-size: 0.85rem;
    }

    .btn-filter {
        padding: 0.4rem 1.2rem;
        font-size: 0.75rem;
    }

    .filter-options-list {
        max-height: 140px;
    }
}

/* =========================================
           PRODUCT CARD STYLES
        ========================================= */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e8ec;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 44, 108, 0.12);
    }

.product-gallery {
    position: relative;
    height: 250px;
    flex-shrink: 0;
    background: #f5f7f9;
    overflow: hidden;
}

.product-slider {
    width: 100%;
    height: 100%;
}

    .product-slider .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 25px;
    cursor: pointer;
}

.image-counter-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
}

.verified-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    color: #146c43;
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 700;
    z-index: 2;
    pointer-events: none;
}

.product-info {
    padding: 10px;
    flex: 1;
}

.product-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 3px 0;
    border-bottom: 1px solid #f0f1f3;
}

    .product-info-item:last-child {
        border-bottom: none;
    }

.product-info-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e85c2d;
    background: #fff1ec;
    border-radius: 8px;
    font-size: 14px;
}

.product-info-label {
    display: block;
    margin-bottom: 2px;
    color: #8a9199;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-info-item strong {
    display: block;
    color: #002c6c;
    font-size: 10px;
    line-height: 1.4;
    word-break: break-word;
}

.product-info-item .text-truncate-wrap {
    min-width: 0;
    flex: 1;
}

    .product-info-item .text-truncate-wrap strong {
        display: block;
    }

.product-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #edf0f2;
    background: #ffffff;
}

.btn-product-view {
    flex: 1;
    color: #ffffff;
    background: #002c6c;
    border: 1px solid #002c6c;
    border-radius: 8px;
    padding: 9px 15px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .btn-product-view:hover {
        color: #ffffff;
        background: #001f4d;
        border-color: #001f4d;
    }

.btn-product-share {
    flex: 1;
    color: #ffffff;
    background: #cd3c0d;
    border: 1px solid #cd3c0d;
    border-radius: 8px;
    padding: 9px 15px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .btn-product-share:hover {
        background: #cd3c0d;
        border-color: #cd3c0d;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
    }

.share-dropdown {
    position: relative;
    display: inline-block;
    flex: 1;
}

.share-dropdown-content {
    display: none;
    position: absolute;
    bottom: 110%;
    left: 0;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1000;
    border: 1px solid #e5e8ec;
}

    .share-dropdown-content.show {
        display: block;
    }

    .share-dropdown-content .share-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
        color: #333;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.2s ease;
        cursor: pointer;
        border: none;
        background: none;
        width: 100%;
        text-align: left;
    }

        .share-dropdown-content .share-item:hover {
            background: #f5f7fa;
        }

        .share-dropdown-content .share-item i {
            font-size: 18px;
            width: 24px;
            text-align: center;
        }

        .share-dropdown-content .share-item .fa-facebook {
            color: #1877f2;
        }

        .share-dropdown-content .share-item .fa-twitter {
            color: #1da1f2;
        }

        .share-dropdown-content .share-item .fa-linkedin {
            color: #0a66c2;
        }

        .share-dropdown-content .share-item .fa-whatsapp {
            color: #25d366;
        }

        .share-dropdown-content .share-item .fa-envelope {
            color: #ea4335;
        }

        .share-dropdown-content .share-item .fa-link {
            color: #6c757d;
        }

@media (max-width: 575px) {
    .share-dropdown-content {
        min-width: 160px;
        bottom: 110%;
    }

        .share-dropdown-content .share-item {
            padding: 8px 12px;
            font-size: 12px;
        }
}

.product-slider .swiper-button-prev,
.product-slider .swiper-button-next {
    width: 30px;
    height: 30px;
    color: #002c6c;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    z-index: 5;
}

    .product-slider .swiper-button-prev::after,
    .product-slider .swiper-button-next::after {
        font-size: 11px;
        font-weight: 700;
    }

.product-slider .swiper-pagination {
    bottom: 8px;
    pointer-events: none;
}

.product-slider .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    opacity: 0.6;
    background: #002c6c;
}

.product-slider .swiper-pagination-bullet-active {
    width: 18px;
    border-radius: 10px;
    opacity: 1;
}

/* =========================================
           HERO SECTION
        ========================================= */
.hero {
    background: linear-gradient(135deg, #0a1f6e 0%, #0033a0 50%, #0055cc 100%);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 20px 48px;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(60deg, rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(-60deg, rgba(255,255,255,0.04) 1px, transparent 1px);
        background-size: 60px 60px, 80px 80px, 80px 80px;
        pointer-events: none;
    }

.hero-network {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 700px;
}

.hero h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero p {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    margin-bottom: 28px;
}

.search-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 50px;
    padding: 6px 6px 6px 24px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 16px;
}

    .search-wrap input {
        flex: 1;
        background: none;
        border: none;
        outline: none;
        color: #fff;
        font-size: 15px;
    }

        .search-wrap input::placeholder {
            color: rgba(255,255,255,0.6);
        }

.btn-search {
    background: #e85c2d;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}

    .btn-search:hover {
        background: #d44f22;
    }

.hero-hints {
    color: rgba(255,255,255,0.75);
    font-size: 13.5px;
}

    .hero-hints a {
        color: #7ab3ff;
        font-weight: 500;
        margin: 0 4px;
        cursor: pointer;
    }

        .hero-hints a:hover {
            text-decoration: underline;
        }

/* =========================================
           TABS
        ========================================= */
.tabs-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #E5E8F0;
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 40px;
    transition: all 0.2s ease;
    color: #6B7280;
    cursor: pointer;
}

    .tab-btn i {
        margin-right: 8px;
    }

    .tab-btn:hover {
        background: #E8F0FE;
        color: #cd3c0d;
    }

    .tab-btn.active {
        background: #cd3c0d;
        color: white;
        box-shadow: 0 0px 3px rgb(205 60 13);
    }

/* =========================================
           LOAD MORE SENTINEL
        ========================================= */
.load-more-sentinel {
    text-align: center;
    padding: 2rem;
    color: #6B7280;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #E5E8F0;
    border-top-color: #cd3c0d;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
           RESULT STATS
        ========================================= */
.result-stats {
    background: #F0F2F5;
    padding: 0.35rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #0A2540;
}

/* =========================================
           MAIN WRAPPER
        ========================================= */
.main-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem 1.8rem;
}

/* =========================================
           LIGHTBOX
        ========================================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

    .lightbox-overlay.active {
        display: flex;
    }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

    .lightbox-close:hover {
        background: rgba(255,255,255,0.2);
        transform: rotate(90deg);
    }

.lightbox-container {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    position: relative;
}

.lightbox-slider {
    width: 100%;
    height: 100%;
}

    .lightbox-slider .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .lightbox-slider .swiper-slide img {
            max-width: 100%;
            max-height: 85vh;
            object-fit: contain;
            border-radius: 8px;
        }

    .lightbox-slider .swiper-button-next,
    .lightbox-slider .swiper-button-prev {
        color: white;
        background: rgba(255,255,255,0.1);
        backdrop-filter: blur(5px);
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }

        .lightbox-slider .swiper-button-next::after,
        .lightbox-slider .swiper-button-prev::after {
            font-size: 20px;
            font-weight: 700;
        }

    .lightbox-slider .swiper-pagination {
        color: white;
        bottom: -30px;
    }

    .lightbox-slider .swiper-pagination-bullet {
        background: white;
        opacity: 0.5;
    }

    .lightbox-slider .swiper-pagination-bullet-active {
        opacity: 1;
        background: white;
    }

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 500;
    background: rgba(0,0,0,0.5);
    padding: 6px 16px;
    border-radius: 20px;
}

@media (max-width: 575px) {
    .product-gallery {
        height: 280px;
    }

    .product-actions {
        padding: 12px;
    }

    .main-wrapper {
        padding: 1rem;
    }

    .tab-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .lightbox-container {
        height: 70vh;
    }

    .lightbox-slider .swiper-button-next,
    .lightbox-slider .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

        .lightbox-slider .swiper-button-next::after,
        .lightbox-slider .swiper-button-prev::after {
            font-size: 14px;
        }
}
