/*공통스타일*/
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

header {
    display: flex;
    background-color: #005bac; /* 파란색 전체 채우기 */
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* 패딩 조정 */
}

.logo-text {
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 1.8em; /* 로고 폰트 크기 조정 */
    padding: 0; /* 헤더 패딩으로 인해 여기서는 0으로 설정 */
    text-decoration: none;
}

nav {
    display: flex;
    justify-content: center;
    background-color: #FFFFFF;
    flex-wrap: wrap;
}

nav a {
    color: #005bac;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-weight: bold;
    border-right: 1px solid #005bac;
}

nav a:last-child {
    border-right: none;
}

nav a:hover {
    background-color: #0069B0;
    color: white;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* 이미지 비율 유지하며 공간 채우기 */
}

.content-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 9999;
}

.menu-toggle span {
    display: block;
    height: 4px;
    background-color: white;
    border-radius: 2px;
}

footer {
    background-color: #0B9444;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
}

/*index섹션*/
.main-title {
    position: relative;
    background-image: url('../img/top_img.png');
    background-size: cover;
    background-position: center;
    height: 250px; /* 기본 높이 유지 */
    overflow: hidden;
}

.main-title-text {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 4.5em;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.section-title {
    font-size: 40px;
    font-weight: bold;
    color: #2e8b00;
    /* 녹색 */
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
}

/* 제품 그리드 섹션 */
.sharon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    padding: 20px; 
    max-width: 1100px;
    margin: 0 auto;
}

.sharon-item {
    text-align: center;
    border: none;
    padding: 15px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 360px; /* 높이 조정 */
    display: flex;
    flex-direction: column; 
    justify-content: space-between; /* 이미지, 이름, 설명 분리 */
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; 
    /* ✅ 모든 밑줄 제거 - 명시적이고 강력한 규칙 */
    text-decoration: none !important; 
    color: inherit;
    display: block; 
}

.sharon-item:hover {
    transform: translateY(-8px); /* 더 강한 호버 효과 */
    box-shadow: 0 12px 20px rgba(0,0,0,0.2); 
}

.sharon-img {
    width: 100%;
    max-width: 150px; 
    height: 150px; 
    margin: 10px auto; 
    object-fit: contain; 
}

.sharon-name {
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #005bac; /* 제품 이름 블루 강조 */
    /* ✅ 밑줄 재확인 - 이미 부모에 설정되어 있지만, 안전을 위해 */
    text-decoration: none !important; 
}

.sharon-desc {
    font-size: 0.9em;
    color: #666;
    max-height: 40px; 
    overflow: hidden; 
    padding: 0 5px;
    margin-top: 5px;
    /* ✅ 밑줄 재확인 */
    text-decoration: none !important;
}

.button-wrap {
    margin: 50px 0 50px;
    text-align: center;
    text-decoration: none;
}

.btn {
    background-color: #0033cc;
    color: white;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 40px;
    cursor: pointer;
}

a.btn {
    text-decoration: none;
}

.btn:hover {
    background-color: #0022aa;
}

.sharopas-section {
    background-color: #f5fdf9;
    padding: 60px 20px;
}

.sharopas-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.sharopas-title {
    font-size: 40px;
    color: #2c7a7b;
    margin-bottom: 20px;
}

.sharopas-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.sharopas-image {
    margin-top: 30px;
    max-width: 350px;
    border-radius: 12px;
}

.section-text {
    font-size: 1.5em;
    color: #333;
    font-weight: bold;
}

.sharonpas-section {
    background-color: #fffff;
    padding: 40px 20px;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
}

.sharonpas-section h2 {
    font-size: 40px;
    color: #2a6f48;
    margin-bottom: 20px;
}

.sharonpas-section .price-info {
    font-size: 18px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

.sharonpas-section .desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.sharonpas-section .detail-button:hover {
    background-color: #1e5034;
}

/* index의 recommend-section은 아래 다른 recommend-section에 의해 오버라이드 됨 */
/*
.recommend-section {
    background-color: #f0fdf4;
    padding: 3rem 1rem;
}
*/
.recommend-container {
    max-width: 768px;
    margin: 0 auto;
    text-align: center;
}

.recommend-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #0033cc;
    margin-bottom: 2rem;
}

.recommend-list {
    list-style: none;
    padding: 0;
    text-align: center;
    font-size: 1.125rem;
    color: #1f2937;
    /* 중간 회색 */
    line-height: 2;
}

/* 샤론파스 성분 및 효과 섹션 스타일 */
.ingredients-effects-section {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.ingredients-effects-section h2 {
    font-size: 40px;
    color: #2a6f48;
    margin-bottom: 20px;
}

.ingredients-effects-content {
    max-width: 800px;
    margin: 0 auto;
}

.ingredients-effects-heading {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.ingredients-effects-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.ingredients-effects-list {
    list-style: none;
    /* 기본 리스트 마커 제거 */
    padding: 0;
    margin: 20px 0;
    text-align: left;
    display: inline-block;
    /* 리스트를 중앙 정렬하기 위해 */
}

.ingredients-effects-list li {
    background-color: #fff;
    margin-bottom: 10px;
    padding: 12px 15px;
    border-left: 5px solid #007bff;
    /* 강조를 위한 왼쪽 테두리 */
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 1em;
    color: #444;
}

.ingredients-effects-list li strong {
    color: #0056b3;
    /* 성분명 강조 색상 */
}

/*info섹션*/
.lineup-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.salonpas-lineup {
    padding: 60px 20px;
    background-color: #fff;
    font-family: 'Noto Sans KR', sans-serif;
}

.product-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    width: 200px;
    padding: 16px;
    background-color: #fafafa;
}

.product-card img {
    max-width: 100%;
    height: auto;
}

.product-title {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    color: #005bac;
}

.product-details {
    max-width: 800px;
    margin: 0 auto;
}

.detail-block {
    margin-bottom: 50px;
    border-top: 2px solid #007bff;
}

.detail-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;

}

.detail-block p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: center;
}


/*price섹션*/
.product2-section {
    background-color: #f5faff;
    padding: 40px 0;
}

.product2-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.product2-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 40px;
}

.product2-card 카베진 직구 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #007bff;
}

.product2-card p {
    margin: 10px 0;
    line-height: 1.6;
}

.price-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    font-size: 14px;
}

.price-table th,
.price-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.price-table thead th {
    background-color: #007bff;
    color: white;
}


/*qna섹션*/
.faq-section {
    background-color: #f0fdf9;
    padding: 60px 20px;
    font-family: 'Pretendard', sans-serif;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: #009879;
    margin-bottom: 40px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background-color: #ffffff;
    border-left: 5px solid #009879;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: #009879;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 16px;
    color: #4b5563;
    /* Tailwind gray-700 */
    line-height: 1.6;
}

/*recomend섹션*/
.recommend-section {
    background-color: #e6f6f1;
    padding: 60px 20px;
    font-family: 'Pretendard', sans-serif;
}

.recommend-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.recommend-title {
    font-size: 40px;
    color: #009879;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.4;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.recommend-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s;
}

.recommend-card:hover {
    transform: translateY(-4px);
}

.recommend-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.recommend-text {
    padding: 16px;
    font-size: 4-px;
    color: #333;
    font-weight: 500;
}

/*shop섹션*/
* p {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
}

.buy-section {
    background-color: #F1F1F1;
    padding: 3rem 1rem;
    text-align: center;
}

.buy-section h2 {
    font-size: 40px;
    color: #005bac;
    border-radius: 12px;
}

.buy-container {
    max-width: 1000px;
    margin: 0 auto;
}

.buy-channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.channel-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    width: 280px;
    text-align: center;
}

.channel-card img {
    max-width: 150px;
    margin-bottom: 15px;
}

.notes-section {
    background-color: #f0fdf4;
    /* 연한 연두색 (샤론파스 느낌) */
    padding: 3rem 1rem;
}

.notes-channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 0px;
}

.buy-notes {
    margin-top: 0px;
    text-align: left;
}

.buy-notes h4 {
    text-align: center;
    font-size: 40px;
    color: #0B9444;
}

.buy-notes ul {
    list-style: disc;
    padding-left: 20px;
}

/* ============================================== */
/* 🍔 768px 이하 모바일 환경 (태블릿 포함) 통일 기준 */
/* ============================================== */
@media (max-width: 768px) {
    /* -------------------- */
    /* 1. 헤더 및 메뉴 (핵심 개선) */
    /* -------------------- */
    header {
        padding: 10px 15px; /* 헤더 패딩 조정 */
    }

    .logo-text {
        font-size: 1.5em; /* 로고 폰트 크기 조정 */
    }

    .main-title {
        height: 180px; /* 배너 높이 조정 */
    }

    .main-title-text {
        font-size: 3em; /* 배너 텍스트 크기 조정 */
        top: 50%; /* 중앙 정렬 */
        transform: translate(-50%, -50%);
    }

    /* 햄버거 메뉴 항상 표시 */
    .menu-toggle {
        display: block;
        z-index: 9999; /* 메뉴보다 위에 위치 */
    }
    .menu-toggle span {margin-bottom:5px;}
    /* 네비게이션 메뉴 초기 숨김 및 스타일 */
    nav {
        /* 기존 데스크톱 flex를 768px 이하에서는 숨김 */
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px; /* 헤더 높이에 맞게 조정 */
        right: 15px; /* 오른쪽 끝 정렬 */
        width: 250px; /* 메뉴 너비 지정 */
        background: #ffffff;
        border: 1px solid #005bac;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 9998;
        text-align: left;
        overflow: hidden; /* 테두리 안으로 메뉴를 제한 */
    }

    /* 'show' 클래스 추가 시 메뉴 표시 */
    nav.menu.show {
        display: flex;
    }

    nav a {
        padding: 15px 20px;
        color: #005bac;
        font-weight: bold;
        /* 항목 구분을 위한 하단 테두리 추가 */
        border-bottom: 1px solid #f0f0f0; 
        border-right: none; /* 데스크톱 테두리 제거 */
        transition: background-color 0.2s;
    }

    nav a:last-child {
        border-bottom: none; /* 마지막 항목의 하단 테두리 제거 */
    }

    nav a:hover {
        background-color: #e0f7fa; /* 메뉴 호버 색상 변경 */
        color: #005bac; /* 호버 시 글자색 유지 또는 강조 */
    }

    /* -------------------- */
    /* 2. 제품 그리드 조정 */
    /* -------------------- */
    .sharon-grid {
        grid-template-columns: repeat(2, 1fr); /* 768px까지 한 줄에 2개 표시 */
        gap: 15px;
        padding: 15px;
    }
    
    .sharon-item {
	    text-align: center;
        height: auto; /* 높이 제한 해제 */
        padding: 10px;
		transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
		text-decoration: none;
		color: inherit; /* 링크의 글자색 유지 */
        display: block; /* a태그가 sharon-item의 영역 전체를 차지하도록 설정 */
    }

    .sharon-img {
        max-width: 150px;
        height: 150px;
    }

    .sharon-name {
        font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #333;
		text-decoration: none !important;
    }

    .sharon-desc {
        display: none; /* 모바일에서 설명 텍스트 숨김 (선택 사항: 카드 디자인 간결화) */
		text-decoration: none !important;
    }

    /* -------------------- */
    /* 3. 기타 섹션 제목 및 텍스트 조정 */
    /* -------------------- */
    .section-title {
        font-size: 30px;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .sharopas-title,
    .faq-title,
    .recommend-title,
    .buy-section h2,
    .buy-notes h4 {
        font-size: 30px;
    }

    .sharopas-image {
        max-width: 250px;
    }
    
    .recommend-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .recommend-img {
        height: 240px;
    }
    
    .channel-card {
        width: calc(50% - 10px); /* 768px 이하에서 2열 배치 시도 */
    }
}

