@charset "UTF-8";

:root {
    --primary-green: #2D5A27; 
    --accent-brown: #8D6E63;  
    --light-bg: #F9FBF7;      
    --text-dark: #333;
    --white: #ffffff;
    --transition: all 0.4s ease;
    --main-font: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--main-font); line-height: 1.6; color: var(--text-dark); background-color: var(--light-bg); overflow-x: hidden; word-break: keep-all; }

/* Header */
header { background: rgba(255, 255, 255, 0.95); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo img { height: 40px; width: auto; }
.header-right { display: flex; align-items: center; gap: 30px; }
.nav-menu { display: flex; list-style: none; }
.nav-menu li { margin-left: 30px; }
.nav-menu a { text-decoration: none; color: var(--text-dark); font-weight: 700; transition: var(--transition); }
.nav-menu a:hover { color: var(--primary-green); }
.lang-switch { display: flex; gap: 8px; font-size: 0.9rem; font-weight: 700; color: #aaa; }
.lang-btn { text-decoration: none; color: #aaa; transition: 0.3s; }
.lang-btn.active { color: var(--primary-green); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-green); }

/* Hero Section */
.hero { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/image/main_bg.png'); background-size: cover; background-position: center; height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: white; padding: 0 20px; }
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 20px; }

/* General Sections */
section { padding: 80px 10%; text-align: center; }
.section-title { font-size: 2.2rem; font-weight: 800; color: var(--primary-green); margin-bottom: 40px; }
.brand-story-logo { max-width: 120px; margin-bottom: 30px; }

/* Products Grid & Cards */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.product-card { background: white; border-radius: 15px; padding: 30px 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; height: 100%; display: flex; flex-direction: column; align-items: center; transition: var(--transition); }

/* 💡 타이틀과 태그 간격 최적화 (태그가 위로 올라옴) */
.product-card h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; color: var(--text-dark); }
.tag { display: inline-block; padding: 6px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 800; color: white; margin-bottom: 20px; background: var(--accent-brown); }
.product-card p { margin-bottom: 30px; color: #666; font-size: 1rem; flex-grow: 1; text-align: center; }

/* Image Slider & Thumbnails (찌꺼기 제거 및 정리) */
.slider-container { width: 100%; position: relative; margin-bottom: 12px; }
.product-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; }
.product-slider::-webkit-scrollbar { display: none; }
.product-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1 / 1; background-color: #f9f9f9; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-slide img { width: 100%; height: 100%; object-fit: cover; }

.thumbnail-list { display: flex; justify-content: center; gap: 6px; margin-bottom: 25px; }
.thumb-btn { width: 22px; height: 22px; border-radius: 4px; border: 2px solid #eee; overflow: hidden; cursor: pointer; padding: 0; transition: var(--transition); background-color: #fff; }
.thumb-btn.active { border-color: var(--primary-green); transform: scale(1.15); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons */
.btn-group { display: flex; width: 100%; gap: 10px; margin-top: auto; }
.btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 0; border-radius: 8px; font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: var(--transition); border: 1.5px solid transparent; cursor: pointer; }
.btn-buy { background-color: var(--primary-green); color: white !important; }
.btn-buy:hover { background-color: #1e3d1a; }
.btn-guide { background-color: white; color: #555 !important; border-color: #ddd; }
.btn-guide:hover { background-color: #f5f5f5; border-color: #ccc; }

/* Certifications */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }
.cert-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background-color: #fff; padding: 10px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 15px; cursor: pointer; }
.cert-item p { font-weight: 700; font-size: 0.95rem; }

/* Modals */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); align-items: center; justify-content: center; }
.modal-content { max-width: 90%; max-height: 90%; border-radius: 10px; }
.qr-pop-box { background: white; padding: 40px 30px; border-radius: 20px; max-width: 400px; width: 90%; text-align: center; position: relative; }
.qr-pop-box h3 { font-weight: 800; color: var(--primary-green); margin-bottom: 10px; }
.qr-pop-box p { font-size: 0.95rem; color: #666; margin-bottom: 25px; line-height: 1.5; }
.qr-img { width: 180px; height: 180px; margin: 0 auto 25px; display: block; }
.pc-link-btn { display: block; color: #888; text-decoration: underline; font-size: 0.9rem; margin-top: 10px; }
.close-pop { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; color: #ccc; cursor: pointer; }

/* Footer */
footer { background: #333; color: #ccc; padding: 40px 10%; font-size: 0.9rem; text-align: left; }
.footer-company-info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.footer-logo { height: 32px; width: auto; }
.footer-company-name { font-size: 1.1rem; color: #fff; font-weight: 800; }
.version-toggle { margin-top: 20px; display: flex; gap: 15px; border-top: 1px solid #444; padding-top: 20px; }
.version-btn { background: none; border: 1px solid #666; color: #ccc; padding: 5px 12px; font-size: 0.8rem; border-radius: 4px; cursor: pointer; }
.version-btn.active { background: #444; color: white; border-color: #888; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Mobile Responsive */
@media (max-width: 768px) {
    section { padding: 60px 20px; }
    .hero h1 { font-size: 1.8rem; }
    .cert-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .cert-item p { font-size: 0.7rem; }
    .header-right { gap: 15px; }
    .menu-toggle { display: block; z-index: 1100; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: white; flex-direction: column; justify-content: center; align-items: center; transition: 0.4s; z-index: 1001; }
    .nav-menu.active { right: 0; }
    .nav-menu li { margin: 20px 0; }
    .nav-menu a { font-size: 1.5rem; }
    .btn-group { flex-direction: column; }
}