.home-page-container {
    /* 전체 페이지 컨테이너 스타일 (필요하다면) */
}

.home-content-layout {
    display: flex;
    margin: 0 auto; 
    padding: 20px; 
    gap: 20px; 
}

.home-main-content {
    flex-grow: 1;
    width: 1610px;
    flex-shrink: 0;
    overflow: hidden;
}

.product-section {
    margin-bottom: 40px; 
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-right: 10px; /* 우측 여백 살짝 줌 */
}

.section-title {
    font-weight: bold;
    color: #333;
    text-align: left;
    margin-bottom: 0; /* 기존 margin 제거 (flex align 사용) */
}

/*.product-type {*/
/*    top: 10px;          !* 위에서 10px 떨어짐 *!*/
/*    right: 10px;        !* 오른쪽에서 10px 떨어짐 *!*/
/*    background-color: rgba(0, 0, 0, 0.7); !* 더 불투명하게 *!*/
/*    color: white;       !* 흰색 글자 *!*/
/*    padding: 4px 12px;   !* 패딩 *!*/
/*    border-radius: 4px; !* 둥근 모서리 *!*/
/*    font-size: 12px;    !* 작은 글자 크기 *!*/
/*    font-weight: bold;  !* 글자 굵게 *!*/
/*    z-index: 10;        !* 다른 요소 위에 표시되도록 z-index 설정 *!*/
/*    margin-left: 13rem;*/
/*    margin-bottom: 15rem;*/
/*    opacity: 0.7    ;*/
/*}*/

.product-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr); /* 한 줄에 4개 */
    margin-bottom: 20px;
    width: 100%;
}

.product-list.active {
    cursor: grabbing;
}
.horizontal-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    width: 100%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.horizontal-container::-webkit-scrollbar {
    display: none;
}
.horizontal-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.horizontal-container.active {
    cursor: grabbing; /* 잡은 손 모양 */
}

.product-item {
    width: 290px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #fff;
    text-align: left;
}
.product-item img,
.product-image-placeholder {
    pointer-events: none; /* 이미지를 마우스로 끌 수 없게 함 */
    -webkit-user-drag: none;
}

.product-item .product-image-placeholder { /*.product-item 이거 안넣으면 상품페이지 css랑 겹치는데 이름이 같긴한데 왜겹치지 안불러왔는데*/
    width: 290px; 
    height: 290px; 
    background-color: #eee;
    border-radius: 16px;
    /* display: flex; */ /* 내부 텍스트 중앙 정렬 시 사용 */
    /* align-items: center; */
    /* justify-content: center; */
    /* color: #888; */
}

.product-details {
    padding: 10px; /* 상세 정보 내부 패딩 */
}

.product-title {
    color: #333;
    white-space: nowrap; /* 제목이 길면 줄바꿈 안 함 */
    overflow: hidden; /* 넘치는 부분 숨김 */
    text-overflow: ellipsis; /* 넘치는 부분 ... 처리 */
}

.product-price {
    font-weight: bold;
    color: #000;
}

.product-meta {
    color: #888;
    display: flex;
    justify-content: space-between; /* 위치/시간/찜 정보 일단 대충 넣음 (아이콘 넣기 귀찮아서 ㅎㅎ;;) */
    align-items: center;
}

.meta-likes {
    display: flex;
    align-items: center;
    /* 찜 아이콘 스타일은 추가 필요 */
}

.more-button-link {
    text-decoration: none;
    display: inline-block;
}

.more-button {
    display: block; 
    width: 100px; 
    height: 37px;
    border: 1px solid #D1BDF5;
    border-radius: 24px;
    background-color: #fff;
    color: #673AB7;
    cursor: pointer;
    transition: background-color, color 0.3s ease;
    text-decoration: none;
}

.more-button:hover {
    background-color: #673AB7;
    color: #fff;
}

.list-main-content {
    flex-grow: 1;
    width: 1150px;
    flex-shrink: 0;
}

.custom-scrollbar {
    width: 100%;
    height: 4px; /* 얇은 두께 */
    background-color: #f5f5f5;
    border-radius: 2px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    pointer-events: none; /* 클릭 불가능하게 */
    user-select: none;
}

/* 스크롤바 막대 */
.scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #d1d1d1;
    border-radius: 2px;
    width: 0; /* JS로 계산 */
    transition: left 0.1s ease-out; /* 부드러운 움직임 */
}