.products-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.products-hero {
    height: 400px;
    background-image: url('../images/productbg.png');
    background-repeat: no-repeat;
    background-size: 100% 400px;
    background-position: center top;
}

.products-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 152px;
}

.products-showcase__shell {
    max-width: 1200px;
    margin: 0 auto;
}

.products-showcase__inner {
    padding: 20px 0 80px;
}

.products-filter-wrap {
    min-width: 0;
}
 .require {
        position: relative;
    }

    .require::after {
        content: "*";
        color: #FF4D4F;
        position: absolute;
        right: -8px;
        top: 50%;
        transform: translateY(-50%);
    }
.products-filter {
    min-height: 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    font-size: 16px;
    font-weight: 400;
    color: #696969;
    width: 100%;
    min-width: 0;
}

.products-filter__tab {
    position: relative;
    z-index: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    height: 48px;
    line-height: 48px;
    padding: 0 16px;
    border-radius: 24px;
    white-space: nowrap;
}

.products-filter--loading {
    pointer-events: none;
}

.products-filter__tab.is-active {
    background-color: #F0EEFF;
    color: #6C57FF;
    font-weight: 500;
}

.products-filter__skeleton {
    flex: 0 0 auto;
    width: var(--products-tab-skeleton-width, 96px);
    height: 48px;
    border-radius: 28px;
    background-color: #EEF2FF;
}

.products-filter__skeleton:nth-child(2n) {
    --products-tab-skeleton-width: 84px;
}

.products-filter__skeleton:nth-child(3n) {
    --products-tab-skeleton-width: 112px;
}

.products-grid {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.products-grid.is-loading {
    opacity: 0.72;
}

.products-grid--skeleton.is-loading {
    opacity: 1;
}

.products-card {
    flex: 0 0 270px;
}

.products-card__link {
    display: block;
}

.products-card__panel {
    width: 270px;
    height: 348px;
}

.products-card__image {
    width: 270px;
    height: 180px;
    display: block;
    border-radius: 16px 16px 0 0;
    object-fit: cover;
}

.products-card__body {
    padding: 16px;
}

.products-card__tag {
    display: inline-block;
    min-height: 24px;
    padding: 0 8px;
    background-color: #F0EEFF;
    color: #6C57FF;
    font-size: 12px;
    line-height: 24px;
}

.products-card__title {
    margin-top: 8px;
    min-height: 24px;
    line-height: 24px;
    color: #232323;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.products-card__desc {
    margin-top: 8px;
    color: #696969;
    font-size: 14px;
    line-height: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

.products-card--skeleton {
    pointer-events: none;
}

.products-card--skeleton .products-card__panel {
    overflow: hidden;
}

.products-card--skeleton .products-card__tag {
    width: 72px;
    min-height: 24px;
    border-radius: 12px;
    padding: 0;
}

.products-skeleton-block,
.products-skeleton-line {
    position: relative;
    overflow: hidden;
    background-color: #EEF2FF;
}

.products-skeleton-line {
    height: 16px;
    margin-top: 12px;
    border-radius: 999px;
}

.products-skeleton-line--title {
    width: 72%;
    height: 24px;
}

.products-skeleton-line--short {
    width: 58%;
}

.products-skeleton-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0) 100%);
    animation: products-skeleton-shimmer 1.5s ease-in-out infinite;
}

.products-empty {
    margin-top: 40px;
    padding: 32px;
    border-radius: 16px;
    background-color: #F7F9FF;
    color: #696969;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
}

.products-footer-dot {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background-color: #696969;
    flex: 0 0 2px;
}

@media (max-width: 1024px) {
    .products-hero {
        height: 360px;
        background-size: cover;
    }

    .products-hero__inner {
        padding: 136px 32px 0;
    }

    .products-showcase__inner {
        padding: 48px 32px 72px;
    }

    .products-grid {
        gap: 32px 24px;
    }

    .products-card {
        flex: 0 1 calc(50% - 12px);
    }

    .products-card__panel {
        width: 100%;
        height: auto;
        min-height: 348px;
    }

    .products-card__image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .products-hero {
        height: auto;
        min-height: 320px;
        background-size: cover;
    }

    .products-hero__inner {
        padding: 112px 16px 40px;
    }

    .products-showcase__inner {
        padding: 32px 16px 56px;
    }

    .products-filter-wrap {
        margin: 0 -16px;
        padding: 0 16px 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .products-filter-wrap::-webkit-scrollbar {
        display: none;
    }

    .products-filter {
        width: max-content;
        min-width: 100%;
        column-gap: 8px;
        padding: 6px 16px 6px 0;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 0 8px;
    }

    .products-filter__tab,
    .products-filter__skeleton {
        flex: 0 0 auto;
    }

    .products-filter__tab {
        height: 40px;
        line-height: 40px;
        padding: 0 16px;
        border-radius: 20px;
        font-size: 14px;
        background-color: #F6F7FB;
    }

    .products-filter__tab.is-active {
        background-color: #F0EEFF;
    }

    .products-filter__skeleton {
        height: 40px;
        border-radius: 20px;
    }

    .products-grid {
        margin-top: 24px;
        gap: 16px;
    }

    .products-card {
        flex-basis: 100%;
    }

    .products-card__panel {
        min-height: 0;
    }

    .products-card__image {
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .products-empty {
        margin-top: 24px;
        padding: 24px 16px;
    }
}

@keyframes products-skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}
