.market-web-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px 80px;
    background: #ffffff;
}

.market-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
    padding: 42px 0 56px;
    border-bottom: 1px solid #ececec;
}

.market-hero__left {
    max-width: 620px;
}

.market-hero__label {
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #8c8c8c;
}

.market-hero__title {
    margin: 0;
    font-size: 72px;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #111111;
}

.market-hero__subtitle {
    margin: 24px 0 0;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 600;
    color: #222222;
}

.market-hero__desc {
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 1.8;
    color: #666666;
    max-width: 520px;
}

.market-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.market-stat {
    min-width: 150px;
    padding: 18px 20px;
    border: 1px solid #ececec;
    border-radius: 22px;
    background: #fafafa;
}

.market-stat__label {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #9a9a9a;
}

.market-stat strong {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111111;
}

.market-hero__actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.market-btn {
    min-width: 160px;
    height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.market-btn--dark {
    background: #111111;
    color: #ffffff;
}

.market-btn--line {
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #111111;
}

.market-hero__right {
    width: 100%;
}

.market-hero__image {
    width: 100%;
    min-height: 620px;
    overflow: hidden;
    border-radius: 28px;
    background: #f4f1ef;
}

.market-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-toolbar {
    padding: 28px 0 24px;
}

.market-toolbar__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.market-toolbar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.market-toolbar__left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.market-section-title {
    margin: 0;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111111;
}

.market-product-count {
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    color: #8c8c8c;
    letter-spacing: -0.04em;
}

.toolbar-btn {
    height: 48px;
    padding: 0 20px;
    border: 1px solid #dddddd;
    border-radius: 999px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    color: #222222;
}

.category-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-tab {
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid #d9d9d9;
    border-radius: 999px;
    background: #ffffff;
    color: #555555;
    font-size: 14px;
    font-weight: 700;
}

.category-tab--active {
    background: #5d6f8c;
    border-color: #5d6f8c;
    color: #ffffff;
}

.market-product-list {
    padding-top: 8px;
}

.product-grid-web {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 18px;
}

.product-card-web {
    display: block;
}

.product-card-web__link {
    display: block;
}

.product-card-web__thumb {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 22px;
    aspect-ratio: 0.75;
}

.product-card-web__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-wish-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: #111111;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.product-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 93, 115, 0.92);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.product-card-web__body {
    padding-top: 14px;
}

.product-brand {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #666666;
}

.product-name {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
    min-height: 50px;
    color: #111111;
    letter-spacing: -0.02em;
}

.product-summary {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.55;
    min-height: 44px;
    color: #7a7a7a;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
}

.product-discount {
    font-size: 26px;
    font-weight: 800;
    color: #ff5d73;
    letter-spacing: -0.04em;
}

.product-final-price {
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    color: #111111;
    letter-spacing: -0.04em;
}

.empty-product-box {
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid #ececec;
    color: #666666;
    font-size: 16px;
}

.sort-sheet {
    display: none;
}

.sort-sheet.open {
    display: block;
}

.sort-sheet__dim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 200;
}

.sort-sheet__panel {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: min(560px, calc(100vw - 32px));
    background: #ffffff;
    border-radius: 28px;
    padding: 22px;
    z-index: 201;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.sort-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sort-sheet__head h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111111;
}

.sort-sheet__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f6f6f6;
    font-size: 24px;
    color: #111111;
}

.sort-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 18px 4px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 18px;
    color: #111111;
}

.sort-option:last-child {
    border-bottom: none;
}

.sort-option--active {
    color: #ff5d73;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .market-hero {
        grid-template-columns: 1fr;
    }

    .market-hero__title {
        font-size: 58px;
    }

    .market-hero__image {
        min-height: 520px;
    }

    .product-grid-web {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .market-web-page {
        padding: 0 18px 56px;
    }

    .market-hero {
        padding: 28px 0 36px;
        gap: 24px;
    }

    .market-hero__title {
        font-size: 42px;
    }

    .market-hero__subtitle {
        font-size: 18px;
        line-height: 1.5;
    }

    .market-hero__desc {
        font-size: 14px;
        line-height: 1.75;
    }

    .market-hero__stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .market-stat {
        min-width: auto;
        border-radius: 18px;
        padding: 16px;
    }

    .market-stat strong {
        font-size: 22px;
    }

    .market-hero__actions {
        flex-direction: column;
    }

    .market-btn {
        width: 100%;
    }

    .market-hero__image {
        min-height: 400px;
        border-radius: 20px;
    }

    .market-toolbar {
        padding: 22px 0 20px;
    }

    .market-toolbar__top {
        align-items: center;
    }

    .market-section-title,
    .market-product-count {
        font-size: 30px;
    }

    .category-tab-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .category-tab-row::-webkit-scrollbar {
        display: none;
    }

    .category-tab {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0 18px;
    }

    .product-grid-web {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }

    .product-card-web__thumb {
        border-radius: 16px;
    }

    .product-wish-btn {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
        font-size: 18px;
    }

    .product-badge {
        left: 10px;
        bottom: 10px;
        min-height: 30px;
        font-size: 11px;
        padding: 0 10px;
    }

    .product-name {
        font-size: 15px;
        min-height: 42px;
    }

    .product-summary {
        display: none;
    }

    .product-discount {
        font-size: 20px;
    }

    .product-final-price {
        font-size: 22px;
    }

    .sort-sheet__panel {
        bottom: 12px;
        width: calc(100vw - 20px);
        border-radius: 22px;
        padding: 18px;
    }

    .sort-sheet__head h3 {
        font-size: 20px;
    }

    .sort-option {
        font-size: 16px;
        padding: 16px 4px;
    }
}
/* ============================
   품절 / 일시품절 스타일 (market)
   ============================ */

/* 품절 썸네일 어둡게 */
.product-card-web__thumb--dimmed img {
    filter: brightness(0.45) grayscale(0.3);
    transition: filter 0.3s ease;
}

/* 품절 오버레이 */
.sold-out-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.sold-out-overlay__box {
    padding: 10px 28px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

.sold-out-overlay__text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #ffffff;
}

/* 품절 카드 텍스트 영역 흐리게 */
.product-card-web--sold-out .product-card-web__body {
    opacity: 0.5;
}

/* 일시품절 뱃지 스타일 보강 */
.product-badge--temp-sold {
    background: rgba(255, 93, 115, 0.92);
    color: #ffffff;
}

/* ============================
   마켓 상품 카드 간격 조정
   ============================ */

.product-card-web__body {
    display: flex;
    flex-direction: column;
    padding-top: 12px;
}

.product-name {
    min-height: auto;
    margin: 0 0 2px;
}

.product-summary {
    min-height: auto;
    margin: 4px 0 0;
}

.product-price-row {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .product-name {
        min-height: auto;
    }
}

.product-badge--no-stock {
    background: rgba(60, 60, 60, 0.92);
    color: #ffffff;
}
