@charset "utf-8";
/*
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
*/
.container {
    padding-bottom: 20px;
}

.group {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 10px;
    display: flex; /* 수평 방향으로 배치 */
    align-items: flex-start; /* 그룹명은 위쪽에 위치 */
    width: 100%; /* 그룹의 너비를 100%로 설정 */
}

.group-name_mobile {display:none;}

.group-name {
    color: white;
    font-size: 24px;
    writing-mode: vertical-rl; /* 텍스트를 세로로 표시 */
    transform: rotate(180deg) translate(50%, 0%); /* 방향을 바꾸어 텍스트가 위에서 아래로 가도록 설정, 수평 및 수직 중앙 정렬 */
    text-align: center; /* 텍스트를 세로 방향으로 가운데 정렬 */
    top: 50%; /* 세로 방향 중앙 */
    left: 0%; /* 가로 방향 중앙 */
    height: auto;
    width: auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 12열로 설정 */
    gap: 5px;
    width: 100%; /* 그리드가 전체 가로 공간을 채우도록 설정 */
}

.product {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 5px;
    /*width: calc(100% / 12);*/ /* 그룹 너비의 1/12로 설정 */
	min-width: 100px; /* 최소 너비를 120px로 설정 (필요에 맞게 수정) */
    box-sizing: border-box; /* padding을 포함한 너비 계산 */
}

.product .imgWrap {
    width: 100%;
	max-height:111px;
	min-height:111px;
    height:auto;
	overflow:hidden;
}

.product img {
    width: 100%;
    height:100%;
    border-radius: 8px;
}

.product-info {
    margin-top: 10px;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
}

.price {
    font-size: 14px;
    color: #333;
}

/* 반응형 설정 */
@media (max-width: 1600px) {
	.group-name {display:none;}
	
	#content .scroll_box {
		width: 100%;
		overflow-y: scroll;
		-ms-overflow-style: none;
		scrollbar-width: none; 
		height: 100%;
	}	
	
	.group{  display: flex;
		flex-direction: column; /* 세로 정렬 */
		overflow-y: auto; display:block
	}
	.group-name_mobile {
		display:inline-block;
		color: white;
		font-size: 24px;
		order:1;
		padding-bottom:10px;
	}
	.product-grid {
		order:2;
        grid-template-columns: repeat(6, 1fr); /* 6열로 변경 */
        gap: 5px; /* 모바일에서 간격을 좀 더 좁힙니다. */
		width: 100%;
    }
	.product {
		background-color: white;
		border-radius: 10px;
		overflow: hidden;
		box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
		text-align: center;
		padding: 5px;
		/*width: calc(100% / 12);*/ /* 그룹 너비의 1/12로 설정 */
		min-width: 90%; /* 최소 너비를 120px로 설정 (필요에 맞게 수정) */
		box-sizing: border-box; /* padding을 포함한 너비 계산 */
	}
	.product-name {
		font-size: 14px;
		font-weight: bold;
		margin: 5px 0;
	}

	.price {
		font-size: 12px;
		color: #333;
	}	
}


@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); 
        gap: 5px;
    }

	.product .imgWrap {
	max-height:90px;
	min-height:90px;
	}	
}
