
.carousel-wrap {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top:5px;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    width: 700px;
    height: 380px;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: all 0.5s ease-in-out;
    margin-right:10px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 10px;
}

.carousel-controls {
    min-width:800px;
    max-width:800px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
}
.carousel-btn {
    padding: 20px;
    cursor: pointer;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: #717171;
}

/* 배너 모바일 반응형 */
@media screen and (max-width: 768px) {
    .carousel-wrap {
        height: auto;
        margin-top: 10px;
        padding: 0;
        overflow: hidden;
    }
    .carousel-item {
        width: calc(100vw - 48px);
        height: auto;
        margin-right: 8px;
    }
    .carousel-item img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        object-fit: cover;
        aspect-ratio: 16 / 9;
    }
    .carousel-controls {
        min-width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        padding: 0;
    }
    .carousel-btn {
        padding: 0;
        background-color: transparent;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .carousel-btn img {
        width: 32px;
        height: 32px;
    }
    .carousel-dots {
        bottom: 12px;
    }
    .dot {
        height: 8px;
        width: 8px;
        margin: 0 4px;
    }

    /* full-width 배너 */
    .carousel-wrap.full-width {
        height: auto;
        padding: 0;
        margin-top: 0;
    }
    .carousel-wrap.full-width .carousel-item {
        width: 100vw;
        height: auto;
        margin-right: 0;
    }
    .carousel-wrap.full-width .carousel-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 0;
        aspect-ratio: auto;
    }
    .carousel-wrap.full-width .carousel-controls {
        min-width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
}

.recently-products {
    padding: 40px 20px;
}
.recently-products .products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-top:20px;
}
.product-item {
    cursor: pointer;
}
.recently-products .products-list .product-name {
    font-size:14px;
    font-weight: 500;
    color:#0a0a0a;
    margin-top:10px;
}
.recently-products .products-list .product-price {
    font-size:14px;
    font-weight: 400;
    color:#787A7D;
    margin-top:5px;
}
.recently-products .products-list .product-item img {
    object-fit: cover;
}

.best-products {
    display:flex;
    flex-direction: column;
    width:100%;
    padding:40px 20px;
}
.best-products .section-header {
    text-align:center;
}
.best-products .section-header .title {
    font-size:22px;
    font-weight: 600;
    color:#0a0a0a;
}
.best-products .section-header .desc {
    font-size:14px;
    color:#6A7282;
    margin-top:10px;
}
.best-products .products-list {
    margin-top:48px;
    margin:48px 32px 64px 32px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}
.best-products .products-list .product-item {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.best-products .products-list .product-item .product-name {
    font-size:16px;
    font-weight: 600;
    color:#0a0a0a;
    margin-top:10px;
}
.best-products .products-list .product-item .product-desc {
    font-size:12px;
    font-weight: 400;
    color:#6A7282;
}
.best-products .products-list .product-item .product-price {
    font-size:22px;
    font-weight: 700;
    color:#101828;

}
.best-products .products-list .product-item img {
    border-radius: 100%;
    object-fit: cover;
}

.best-products .products-list .product-item .product-thumbnail-wrap {
    position: relative;
    width: 200px;
    height: 200px;
}

.best-products .products-list .product-item .rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    border:1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: black;
    z-index: 1;
}

.all-products {
    padding: 40px 20px;
}
.all-products .products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}
.all-products .products-list .product-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.all-products .product-img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
}
.all-products .product-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.all-products .products-list .product-name {
    font-size: 18px;
    font-weight: 600;
    color: #252525;
    margin-top: 12px;
}
.all-products .products-list .product-desc {
    font-size: 14px;
    font-weight: 400;
    color: #252525;
    margin-bottom: 14px;
    line-height: 1.64;
}
.all-products .products-list .product-price {
    font-size: 14px;
    font-weight: 700;
    color: #252525;
    margin-top: 5px;
}

@media screen and (max-width: 768px) {
    .all-products {
        padding: 24px 16px;
    }
    .recently-products {
        padding: 24px 16px;
    }
    .best-products {
        padding: 24px 16px;
    }
    .all-products h2 {
        font-size: 20px;
    }
    .all-products .products-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 16px;
    }
    .all-products .product-img-wrap {
        padding-bottom: 100%;
        border-radius: 6px;
    }
    .all-products .products-list .product-name {
        font-size: 14px;
        margin-top: 8px;
    }
    .all-products .products-list .product-desc {
        font-size: 12px;
        margin-bottom: 8px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .all-products .products-list .product-price {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .all-products {
        padding: 20px 16px;
    }
    .recently-products {
        padding: 20px 16px;
    }
    .best-products {
        padding: 20px 16px;
    }
    .all-products h2 {
        font-size: 18px;
    }
    .all-products .products-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .all-products .product-img-wrap {
        padding-bottom: 100%;
        border-radius: 6px;
    }
    .all-products .products-list .product-name {
        font-size: 13px;
    }
    .all-products .products-list .product-desc {
        display: none;
    }
    .all-products .products-list .product-price {
        font-size: 12px;
        margin-top: 4px;
    }
}
.carousel-wrap.full-width {
    height: auto;
    margin-top: 0;
}

.carousel-wrap.full-width .carousel-item {
    width: 100%;
    height: auto;
    margin-right: 0;
}

.carousel-wrap.full-width .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
}

.carousel-wrap.full-width .carousel-controls {
    min-width: 100%;
    max-width: 100%;
    padding: 0 40px;
}
