/* Collection/Store 페이지 스타일 (참조 테마 collection-new-template.liquid에서 추출) */

html {
    scroll-behavior: smooth !important;
}

/* 평점 영역 */
.review-box {
    height: 25px;
    line-height: 25px;
    margin-bottom: 10px;
}
.jdgm-prev-badge__text {
    background: rgba(255, 184, 42, 0.5);
    padding: 1.9px 3.8px;
    border-radius: 4px;
    margin-left: 4px;
    font-size: 12px;
    color: #3D3D3D;
}
.jdgm-star {
    font-size: 12px;
}

/* 레이아웃 */
.collection-box {
    position: relative;
    width: 100%;
    height: auto;
    background: #40c7ea;
}
.collection-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/collection-bg.svg');
    background-repeat: repeat;
    background-attachment: fixed;
    background-position: -500px -630px;
}
.category-box {
    position: fixed;
    top: 180px; /* 헤더(mybar + navheight ≈ 160px) 아래로 내림 */
    left: 0;
    width: 270px;
    z-index: 1; /* .header(z-index:22)보다 낮게 설정 — 스크롤 시 헤더가 위를 덮도록 */
}
.category-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.category-item {
    padding: 8px 16px 8px 24px; /* 좌우 패딩 추가해 긴 텍스트(액세서리) 잘림 방지 */
    background: white;
    text-align: center;
    cursor: pointer;
    margin-bottom: 19px;
    font-size: 21px;
    color: #747474;
    border-radius: 0 999px 999px 0;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.category-item.active {
    background: #2FAFD0;
    color: white !important;
}
.product-box {
    position: inherit;
}
.category-products-section {
    scroll-behavior: smooth !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 116px;
}
.category-products-section:last-child {
    padding-bottom: 5vw;
}
.category-products {
    width: 1347px;
    background: #E4E6F0;
    border-radius: 48px;
    display: flex;
    align-items: center;
    padding: 26.8px 26.8px 0 26.8px;
    flex-wrap: wrap;
}
.category-name {
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 60px;
}
.product-item-box {
    width: 297px;
    background: white;
    border-radius: 20px;
    margin-right: 35px;
    overflow: hidden;
    margin-bottom: 26.8px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.product-item-box:hover {
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.3);
    transform: scale(1.01);
    transition: transform 0.2s ease;
}
.category-products > .product-item-box:nth-child(4n) {
    margin-right: 0 !important;
}
.product-name {
    color: #323232;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0;
    height: 24px;
    line-height: 30px;
    padding: 0 10px;
}
.product-img {
    width: 100%;
    border-radius: 20px 20px 0 0;
    height: 100%;
    object-fit: cover;
    margin-bottom: 10px;
    padding: 19.5px;
}
.product-price {
    color: #323232;
    font-size: 27px;
    margin-bottom: 20px;
    margin-top: 50px;
}
.product-spec-icon {
    color: #2FAFD0;
    position: absolute;
    top: 19.58px;
    left: 19.58px;
    padding: 2px 4px;
    font-size: 14px;
    border-radius: 0.3vw;
    border: 1px solid #2FAFD0;
}

@media screen and (max-width: 1919px) {
    .review-box {
        height: 25px;
        line-height: 25px;
        margin-bottom: 10px;
    }
    .jdgm-star {
        font-size: 0.65vw;
    }
    .jdgm-prev-badge__text {
        padding: 0.1vw 0.2vw;
        border-radius: 0.2vw;
        margin-left: 0.3vw;
        font-size: 0.65vw;
    }
    .category-box {
        width: 14vw;
    }
    .category-item {
        font-size: 1.1vw;
    }
    .category-products {
        width: 70vw;
        padding: 1.4vw 1.4vw 0 1.4vw;
        border-radius: 2.6vw;
    }
    .category-name {
        font-size: 3vw;
    }
    .product-item-box {
        width: 15.5vw;
        border-radius: 1.2vw;
        margin-right: 1.6vw;
        margin-bottom: 1.4vw;
    }
    .product-name {
        font-size: 1.3vw;
        height: 1.2vw;
        line-height: 1.4vw;
        padding: 0 0.5vw;
    }
    .product-img {
        margin-bottom: 0.5vw;
        padding: 1vw;
        border-radius: 1.2vw 1.2px 0 0;
    }
    .product-price {
        font-size: 1.3vw;
        margin-bottom: 1vw;
        margin-top: 2.5vw;
    }
    .product-spec-icon {
        top: 1vw;
        left: 1vw;
        padding: 0.1vw 0.2vw;
        font-size: 0.7vw;
        border-radius: 0.3vw;
    }
}

@media screen and (max-width: 768px) {
    .review-box {
        height: 5vw;
        line-height: 5vw;
        margin-bottom: 1vw;
    }
    .jdgm-widget {
        transform: scale(0.8);
    }
    .jdgm-star {
        font-size: 3vw;
    }
    .jdgm-prev-badge__text {
        padding: 0.8vw;
        border-radius: 0.9vw;
        margin-left: 0.5vw;
        font-size: 3vw;
    }
    .category-products-section {
        padding: 10vw 2vw 0 2vw;
    }
    .category-products-section:last-child {
        padding-bottom: 20vw;
    }
    .category-products {
        border-radius: 4vw;
        width: 100%;
        justify-content: space-between;
        padding: 2vw 2vw 0 2vw;
    }
    .category-name {
        font-size: 6vw;
    }
    .product-item-box {
        width: 49%;
        margin-right: 0;
        border-radius: 3vw;
        margin-bottom: 2vw;
    }
    .product-item-box:hover {
        box-shadow: none;
        transform: scale(1);
    }
    .product-name {
        font-size: 3.5vw;
        height: 4vw;
        line-height: 4vw;
        padding: 0 1.5vw;
    }
    .product-img {
        margin-bottom: 0.5vw;
        padding: 4vw 4vw 0 4vw;
        border-radius: 3vw 3vw 0 0;
    }
    .product-price {
        font-size: 3.5vw;
        margin-bottom: 3vw;
        margin-top: 6.5vw;
    }
    .product-spec-icon {
        top: 2vw;
        left: 2vw;
        padding: 0.4vw;
        font-size: 3vw;
        border-radius: 1.5vw;
    }
}
