/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'NanumSquare', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: 500;
}

.btn:hover {
    background-color: #555;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #e67e22;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.4s;
}

/* Hero Section */
/* 이미지 경로가 images/h3.png로 설정되어 있습니다. 실제 파일 경로와 맞는지 확인해주세요. */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/h3.png') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.4;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero .btn {
    background-color: #e67e22;
}
.hero .btn:hover {
    background-color: #d35400;
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #e67e22;
    margin: 15px auto 0;
}

.product-grid {
    display: grid;
    /* 기본적으로 1단 컬럼으로 설정 (모바일 최적화) */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* --- [수정됨] 제품 카드 링크 래퍼 --- */
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%; /* 그리드 셀 높이에 맞춤 */
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%; /* 링크 안에서 높이 꽉 채우기 */
}

/* --- [수정됨] 링크에 호버했을 때 카드 애니메이션 --- */
.product-card-link:hover .product-card {
    transform: translateY(-5px);
}

.card-image {
    padding: 1rem;
}
.card-image img {
    width: 100%;
    height: 250px;
    object-fit: contain;
}
.img-cover .card-image img {
    object-fit: contain;
    height: auto;
}
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e67e22;
    margin-bottom: 5px;
}

.retailer {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 15px;
    font-style: italic;
}

.description {
    font-size: 0.95rem;
    color: #555;
    margin-top: auto; /* 설명을 아래로 밀지 않고 꽉 차게 */
    line-height: 1.5;
}

/* Contact Section - [전체적으로 수정됨] */
.contact-section {
    padding: 60px 0;
    background-color: #c2be9d; /* 배경색을 통일하거나 제거해도 좋습니다. */
}

/* 폼 제거 후 중앙 정렬을 위한 새로운 클래스 */
.single-column-center {
    text-align: center;
    max-width: 600px; /* 너무 넓지 않게 제한 */
    margin: 0 auto; /* 중앙 정렬 */
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* 살짝 입체감 주기 */
}

.contact-info h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 30px;
    color: #555;
}

.contact-info ul {
    display: inline-block; /* 텍스트 중앙 정렬 부모 안에서 블록 요소 중앙 배치 */ 
}

.contact-info li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* 이메일 및 전화번호 링크 스타일 */
.contact-info li a {
    color: #e67e22;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-info li a:hover {
    color: #d35400;
    text-decoration: underline;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .hero-content {margin-top:12rem;}
    .hero h1 {
        font-size: 1.6rem;
        font-weight:900;
    }
    .hero p { font-size: 1rem;}
    .menu-toggle {
        display: flex;
    }
    h2 {
        font-size: 1.2rem !important; font-weight:900;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #fff;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    /* 모바일에서 Contact 섹션 패딩 조정 */
    .single-column-center {
        padding: 30px 20px;
    }
	.product-grid {
    display: grid;
    /* 기본적으로 1단 컬럼으로 설정 (모바일 최적화) */
    grid-template-columns: 1fr;
    gap: 30px;
}
}