.products-page {
    width: min(100% - 40px, 1280px);
    margin: 0 auto;
    padding: 56px 15px 112px;
    color: #202124;
}

.products-page [hidden] {
    display: none !important;
}

.products-hero {
    max-width: 720px;
    margin-bottom: 48px;
}

.products-hero > span {
    color: #dd4a2c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.products-hero h1 {
    margin-top: 12px;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.products-hero p {
    max-width: 54ch;
    margin-top: 16px;
    color: #6e7480;
    font-size: 16px;
    line-height: 1.7;
}

.products-loading__grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 38px 22px;
}

.products-skeleton {
    min-width: 0;
}

.products-skeleton span {
    display: block;
    border-radius: 4px;
    background: #eef0f3;
    animation: products-pulse 1.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.products-skeleton__media {
    aspect-ratio: 4 / 5;
    border-radius: 8px !important;
}

.products-skeleton__line {
    width: 88%;
    height: 14px;
    margin-top: 14px;
}

.products-skeleton__line--short {
    width: 38%;
    height: 11px;
    margin-top: 18px;
}

.products-skeleton__line--price {
    width: 52%;
    height: 18px;
}

@keyframes products-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.48;
    }
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e8ee;
    color: #6e7480;
    font-size: 14px;
}

.products-toolbar strong,
.products-toolbar b {
    color: #202124;
    font-weight: 800;
}

/* 품절·판매종료: 클릭/주문 이동 불가 */
.products-card--soldout {
    cursor: not-allowed;
    opacity: 0.78;
    box-shadow: none;
    pointer-events: none;
    user-select: none;
}

.products-card--soldout:hover,
.products-card--soldout:active {
    transform: none;
    box-shadow: none;
}

.products-card {
    min-width: 0;
    display: block;
    color: inherit;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), opacity 240ms ease;
}

.products-card:hover {
    transform: translateY(-3px);
}

.products-card:active {
    transform: translateY(-1px) scale(0.99);
}

.products-card:focus-visible {
    outline: 2px solid #dd4a2c;
    outline-offset: 5px;
}

.products-card__media {
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
    color: #8a9099;
    text-align: center;
}

.products-card__media i {
    color: #b7bdc6;
    font-size: 44px;
}

.products-card__media span {
    font-size: 13px;
    line-height: 1.5;
}

.products-card__body {
    padding-top: 18px;
}

.products-card__category {
    min-height: 36px;
    display: -webkit-box;
    overflow: hidden;
    color: #dd4a2c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.products-card h2 {
    min-height: 48px;
    margin-top: 8px;
    overflow: hidden;
    color: #202124;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.5;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.products-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.products-card__price strong {
    color: #202124;
    font-size: 19px;
    font-weight: 800;
}

.products-card__price del {
    color: #9aa0a8;
    font-size: 13px;
}

.products-card__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid #eceff3;
}

.products-card__status span {
    color: #dd4a2c;
    font-size: 12px;
    font-weight: 800;
}

.products-card__status em {
    overflow: hidden;
    color: #6e7480;
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-card__status.is-unavailable span,
.products-card__status.is-unavailable em {
    color: #8a9099;
}

.products-state {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 24px;
    border-top: 1px solid #e5e8ee;
    border-bottom: 1px solid #e5e8ee;
    color: #6e7480;
    text-align: center;
}

.products-state i {
    color: #b7bdc6;
    font-size: 42px;
}

.products-state strong {
    color: #34383f;
    font-size: 18px;
}

.products-state p {
    font-size: 14px;
}

.products-state--error {
    color: #b43b25;
}

.products-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 64px;
}

.products-pagination a,
.products-pagination strong {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #ffffff;
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
}

.products-pagination strong {
    border-color: #dd4a2c;
    background: #dd4a2c;
    color: #ffffff;
}

.products-pagination a[aria-disabled="true"] {
    color: #b7bdc6;
    cursor: not-allowed;
}

.products-pagination a:not([aria-disabled="true"]):hover {
    border-color: #dd4a2c;
    color: #dd4a2c;
    transform: translateY(-1px);
}

.products-pagination a:not([aria-disabled="true"]):active {
    transform: translateY(0) scale(0.98);
}

@media (max-width: 960px) {
    .products-loading__grid,
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .products-page {
        width: 100%;
        padding: 36px 16px 88px;
    }

    .products-hero {
        margin-bottom: 34px;
    }

    .products-hero h1 {
        font-size: 34px;
    }

    .products-hero p {
        font-size: 15px;
    }

    .products-loading__grid,
    .products-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .products-card__media,
    .products-skeleton__media {
        aspect-ratio: 16 / 11;
    }

    .products-card h2 {
        min-height: 0;
    }

    .products-pagination {
        margin-top: 48px;
    }

    .products-pagination a span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .products-card,
    .products-pagination a,
    .products-skeleton span {
        animation: none;
        transition: none;
    }
}

.products-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

.products-category-filter a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.products-category-filter a.is-active,
.products-category-filter a:hover {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.products-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- 라이브 스포트라이트 (카테고리 무관) ---------- */
.products-live {
    margin: 0 0 40px;
    min-width: 0;
}

.products-live__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    min-width: 0;
}

.products-live__head h2 {
    margin: 0;
    min-width: 0;
    color: #202124;
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    word-break: keep-all;
}

.products-live__more {
    flex-shrink: 0;
    color: #6e7480;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.products-live__more:hover {
    color: #dd4a2c;
}

.products-live__viewport {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.products-live__viewport::-webkit-scrollbar {
    height: 4px;
}

.products-live__viewport::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: #d9dde5;
}

.products-live__track {
    display: flex;
    gap: 14px;
    min-width: 0;
}

.products-live-card {
    display: block;
    flex: 0 0 180px;
    min-width: 0;
    max-width: 180px;
    color: inherit;
    text-decoration: none;
    scroll-snap-align: start;
}

.products-live-card:focus-visible {
    outline: 2px solid #dd4a2c;
    outline-offset: 3px;
}

.products-live-card__media {
    position: relative;
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
    color: #8a9099;
}

.products-live-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-live-card__media i {
    color: #b7bdc6;
    font-size: 28px;
}

.products-live-card__media span {
    font-size: 12px;
    line-height: 1.4;
}

.products-live-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    background: #4b5563;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
}

.products-live-card__badge.is-live {
    background: #dd4a2c;
}

.products-live-card__body {
    min-width: 0;
    padding-top: 10px;
}

.products-live-card__channel {
    min-width: 0;
    overflow: hidden;
    color: #6e7480;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-live-card__title {
    min-width: 0;
    margin: 4px 0 0;
    overflow: hidden;
    color: #202124;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-live-card__time {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: #8a9099;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-live__empty,
.products-live__error {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 16px;
    border: 1px solid #e5e8ee;
    border-radius: 8px;
    background: #fafbfc;
    color: #6e7480;
    text-align: center;
}

.products-live__empty strong {
    color: #34383f;
    font-size: 14px;
    font-weight: 600;
}

.products-live__error {
    color: #b43b25;
    font-size: 14px;
}

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

.products-live-skeleton__media,
.products-live-skeleton__line {
    display: block;
    border-radius: 4px;
    background: #eef0f3;
    animation: products-pulse 1.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.products-live-skeleton__media {
    aspect-ratio: 3 / 4;
    border-radius: 8px;
}

.products-live-skeleton__line {
    width: 88%;
    height: 12px;
    margin-top: 10px;
}

.products-live-skeleton__line--short {
    width: 42%;
    height: 10px;
    margin-top: 12px;
}

@media (max-width: 767px) {
    .products-live {
        margin-bottom: 32px;
    }

    .products-live-card {
        flex-basis: 160px;
        max-width: 160px;
    }

    .products-live__head h2 {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .products-live-skeleton__media,
    .products-live-skeleton__line {
        animation: none;
    }
}


/* 대표 이미지 없음: 메인 product-card 플레이스홀더와 동일 마크업 지원 */
.products-card .product-card__thumb,
.products-card__media.product-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}

.products-card .product-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-card .product-card__thumb--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    background: #f1f5f9;
}

.products-card .product-card__thumb--placeholder i {
    font-size: 28px;
    line-height: 1;
}

.products-card .product-card__thumb--placeholder span {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}
