/* ===== 오월솝 샘플 사이트 - 모바일 우선 반응형 ===== */
:root {
  --bg: #f7f3ea;
  --tint: #efe9db;
  --ink: #26302a;
  --muted: #5c675f;
  --brand: #3f6449;
  --brand-dark: #2f4d38;
  --accent: #c0653d;
  --line: #ddd5c3;
  --white: #fffdf8;
  --dark: #26302a;
  --radius: 14px;
  --header-h: 60px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --font-serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.35; margin: 0 0 .6em; color: inherit; }
h1 { font-size: clamp(1.9rem, 7vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4.6vw, 2.1rem); }
h3 { font-size: 1.1rem; }

.container { width: min(100% - 2rem, 1120px); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 760px); }
.nowrap { white-space: nowrap; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(247, 243, 234, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.logo { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .02em; }

.menu-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: 0 .25rem;
  font-family: inherit; font-size: .85rem; font-weight: 700; letter-spacing: .16em;
  color: var(--ink); background: none; border: 0; cursor: pointer;
}
.menu-icon { position: relative; width: 24px; height: 12px; }
.menu-icon i { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, top .25s ease; }
.menu-icon i:nth-child(1) { top: 1px; }
.menu-icon i:nth-child(2) { top: 9px; }
.menu-btn[aria-expanded="true"] .menu-icon i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon i:nth-child(2) { top: 5px; transform: rotate(-45deg); }

/* ----- 전체 화면 메뉴 ----- */
.menu-panel {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 80;
  background: var(--bg); overflow-y: auto;
  padding: 1.5rem 0 2rem;
}
.menu-panel[hidden] { display: none; }
.menu-nav { width: min(100% - 2rem, 1120px); margin-inline: auto; }
.menu-nav ul li { border-bottom: 1px solid var(--line); }
.menu-nav ul a {
  display: flex; align-items: baseline; gap: .9rem;
  padding: 1rem 0; min-height: 56px;
  font-family: var(--font-serif); font-size: clamp(1.4rem, 5vw, 2rem);
  color: var(--ink); text-decoration: none;
}
.menu-nav ul small {
  min-width: 5.6rem; font-family: var(--font-sans); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.menu-channels { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.5rem 0 0; }
.menu-channels a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .6rem 1.8rem;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: .02em;
  color: #fff; background: var(--brand);
  border: 2px solid var(--brand); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active { transform: translateY(1px); }

/* ----- Sections ----- */
.section { padding: 3.5rem 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: #e9eee9; }
.section-head { max-width: 40rem; margin-bottom: 1.75rem; }
.eyebrow { margin: 0 0 .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.section-dark .eyebrow { color: #e5a583; }
.note { font-size: .85rem; color: var(--muted); }
.section-dark .note { color: #a9b6ac; }

/* ----- Hero (가운데 정렬) ----- */
.hero { padding: 2.5rem 0 3rem; background: linear-gradient(180deg, #f1ead9 0%, var(--bg) 100%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-en { margin: 0 0 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); }
.hero-lead { max-width: 34rem; color: var(--muted); }
.hero-badge {
  margin: .25rem 0 1.25rem; padding: .2rem .8rem;
  font-size: .78rem; font-weight: 700; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px;
}
.hero-img { width: min(100%, 560px); margin-top: 2rem; border-radius: 24px; }

/* ----- Products ----- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.filter-btn {
  min-height: 44px; padding: .4rem 1.1rem;
  font-family: inherit; font-size: .95rem; font-weight: 600;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.product-grid { display: grid; gap: 1.5rem .85rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.product[hidden] { display: none; }
.product-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.product-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s ease; }
.product-media:hover img { transform: scale(1.04); }
.badge {
  position: absolute; top: .6rem; left: .6rem;
  padding: .05rem .6rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--accent); border-radius: 999px;
}
.badge-new { background: var(--brand); }
.badge-set { background: var(--ink); }
.product-body { padding-top: .75rem; }
.product-body h3 { margin: 0 0 .2em; font-size: 1rem; }
.product-body .desc { margin: 0 0 .4em; font-size: .85rem; color: var(--muted); line-height: 1.55; }
.price { margin: 0 0 .4rem; font-weight: 700; }
.product-link { color: var(--ink); text-decoration: none; }
.product-link:hover { text-decoration: underline; }
.buy-link { font-size: .9rem; font-weight: 600; }
.price small { font-weight: 400; color: var(--muted); margin-left: .25rem; }

.shop-cta {
  margin-top: 2.5rem; padding: 1.5rem; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.shop-cta p { margin: 0 0 .9rem; color: var(--muted); }

/* ----- Daily ----- */
.daily { text-align: center; max-width: 40rem; }
.daily p { color: var(--muted); }
.daily-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.btn-outline { background: transparent; color: var(--brand-dark); }
.btn-outline:hover { color: #fff; }

/* ----- Best (가로 스크롤) ----- */
.best-row {
  display: flex; gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 1rem .5rem; -webkit-overflow-scrolling: touch;
}
.best-row li { flex: 0 0 min(64vw, 260px); scroll-snap-align: start; }
.best-row a { position: relative; display: block; color: var(--ink); text-decoration: none; }
.best-row img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.best-row .rank {
  position: absolute; top: .6rem; left: .75rem;
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--ink);
}
.best-row strong { display: block; margin-top: .6rem; font-size: .98rem; }
.best-row em { font-style: normal; color: var(--muted); font-size: .9rem; }

/* ----- Archive ----- */
.archive-list li { display: flex; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.archive-list li:last-child { border-bottom: 1px solid var(--line); }
.archive-list .no { flex: 0 0 2.2rem; font-family: var(--font-serif); font-size: 1.1rem; color: var(--accent); }
.archive-list h3 { margin-bottom: .25em; }
.archive-list p { margin: 0; color: var(--muted); }
.more { margin: 1.25rem 0 0; text-align: right; font-weight: 600; }

/* ----- Process ----- */
.steps { display: grid; gap: 1px; grid-template-columns: 1fr; background: #3b4840; border: 1px solid #3b4840; border-radius: var(--radius); overflow: hidden; }
.steps li { padding: 1.4rem; background: var(--dark); }
.steps span { display: block; margin-bottom: .5rem; font-family: var(--font-serif); font-size: 1.4rem; color: #e5a583; }
.steps h3 { color: #fff; margin-bottom: .3em; }
.steps p { margin: 0; color: #b9c5bc; font-size: .95rem; }

/* ----- About ----- */
.about-grid { display: grid; gap: 1.5rem; }
.about-copy p { color: var(--muted); }
.values { margin-top: 1.25rem; }
.values li { padding: .9rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values strong { display: block; color: var(--ink); margin-bottom: .1rem; }

/* ----- FAQ ----- */
details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .75rem; }
summary { display: flex; align-items: center; min-height: 52px; padding: .6rem 1.1rem; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--brand); }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 1.1rem 1.1rem; color: var(--muted); }

/* ----- Contact ----- */
.contact-grid { display: grid; gap: 2rem; }
.contact-list li { padding: .35rem 0; }
.contact-list strong { display: inline-block; min-width: 5.5rem; }
.social-title { margin: 1.5rem 0 .6rem; font-size: 1rem; }
.social-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1.1rem;
  font-size: .95rem; font-weight: 600; color: var(--brand-dark);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
}
.social-list a:hover { border-color: var(--brand); }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .85rem;
  font-family: inherit; font-size: 1rem; /* 16px: iOS 확대 방지 */
  color: var(--ink); background: #fffefb;
  border: 1px solid #cfc6b4; border-radius: 10px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field .is-invalid { border-color: #b3382c; }
.form-note { margin: .9rem 0 0; font-size: .85rem; color: var(--muted); }

/* ----- Footer ----- */
.site-footer { background: var(--dark); color: #dbe3dc; padding: 2.5rem 0; font-size: .9rem; }
.site-footer a { color: #dbe3dc; }
.footer-brand { font-family: var(--font-serif); font-size: 1.3rem; color: #fff; margin-bottom: .6rem; }
.footer-info { line-height: 1.9; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: .5rem 0 0; }
.footer-social a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.footer-copy { margin: 1rem 0 0; color: #a8b5ab; }

/* ===== 태블릿 이상 ===== */
@media (min-width: 768px) {
  :root { --header-h: 68px; }
  .section { padding: 5rem 0; }
  .hero { padding: 4rem 0 4rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2rem 1.25rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
  .best-row { padding-inline: max(1rem, calc((100vw - 1120px) / 2)); }
  .best-row li { flex-basis: 280px; }
}

/* ===== PC ===== */
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
  .form { padding: 1.75rem; }
  .menu-nav ul a { padding: 1.2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
