

/* 🟦네비바 해당 페이지 색상 변경 */
nav ul li:nth-child(3) a {
    color: green; /* 네비게이션 바에서 두 번째 링크의 텍스트 색상을 녹색으로 변경 */
}








/* 전체 버튼 컨테이너 가운데 정렬 */
.categories-button-container {
    display: flex;
    justify-content: center;

    padding-top: 150px;
}

/* 버튼들을 담는 래퍼 */
.categories-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* 버튼 스타일 */
.link-button {
    display: inline-block;

    color: #616161; /* 텍스트 색상을 설정합니다. */
    text-decoration: none; /* 링크의 밑줄을 제거합니다. */
    background-color: #def2ff; /* 배경색을 설정합니다. */
    border-radius: 1rem; /* 버튼의 테두리를 둥글게 만듭니다. */
    border: 2px solid #bdbdbd; /* 회색 테두리를 추가합니다. */
    padding: 1rem 1.5rem; /* 버튼의 내부 여백을 설정합니다. */


    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
}

/* 호버 시 효과 */
.link-button:hover {
    background-color: #91a7bb;
    transform: translateY(-2px);
}

/* 클릭 시 눌리는 느낌 */
.link-button:active {
    transform: scale(0.97);
}



/* on 버튼 스타일 */
.link-button_on {
    display: inline-block;

    color: #616161; /* 텍스트 색상을 설정합니다. */
    text-decoration: none; /* 링크의 밑줄을 제거합니다. */
    background-color: #deffef; /* 배경색을 설정합니다. */
    border-radius: 1rem; /* 버튼의 테두리를 둥글게 만듭니다. */
    border: 2px solid #bdbdbd; /* 회색 테두리를 추가합니다. */
    padding: 1rem 1.5rem; /* 버튼의 내부 여백을 설정합니다. */


    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
}

/* 호버 시 효과 */
.link-button_on:hover {
    background-color: #99bb91;
    transform: translateY(-2px);
}

/* 클릭 시 눌리는 느낌 */
.link-button_on:active {
    transform: scale(0.97);
}






/* 카테고리 h2 (주제) */
.category h2 {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;

    font-size: 2.5em;
    }







/* 제품-container */
.products-container {
    width: 80%;
    min-height: 1300px; 

    margin: 0 auto;

}


/* 제품 카드 스타일 */
.products {
    position: relative; /* 부모 요소에 대해 상대적으로 배치 */
    display: flex;
    flex-wrap: wrap;
    gap: 50px;

    justify-content: center;
    text-align: center;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;

    width: 15%;
    aspect-ratio: 1 / 0; /* 가로:세로 비율 */
    margin-bottom: 50px; /* 각 카드 하단에 여백 추가 */
}


/* 이미지 부분을 1:1 비율로 고정하기 위해 img의 부모 <a>를 가상 요소로 활용 */
.product-card a {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* 이미지 스타일 */
.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain; /* 잘리지 않게 유지 */
    background-color: #f5f5f5; /* 이미지 없을 때 회색 배경 */
    display: block;
}



/* a태그 (링크태그) 스타일 */
a {
    text-decoration: none;
}

/* 카드 정보 설정 */
.product-info {
    padding: 10px;
}

/* 카드 h3태그 */
.product-info h3 {
    font-size: 1.2em;
    margin-bottom: 10px;

    color: #3f3f3f;
}

/* 카드 p태그 */
.product-info p {
    font-size: 1em;

    color: #333;
}


/* 카드 호버링 연출 */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}



@media screen and (max-width: 1000px){
    .product-card {
        width: 33%;
    }

    .products-container {
        width: 100%;
    }
    
}





