
/* ============================================================
   평택 365녹십자약국 — 브랜드 스타일
   토큰: 화이트+그린(녹십자), 둥근 제목 서체, 연중무휴 약국의 밝은 톤
   ============================================================ */
:root {
  --bg: #F1F7F1;
  --paper: #FFFFFF;
  --leaf-soft: #DCEDDC;
  --mint: #C2E5CC;
  --green: #57B77C;
  --ink: #21382A;
  --ink-soft: #5C7263;
  --gc: #3FA463;
  --gc-deep: #1F7A45;
  --deep: #1E4D33;
  --kakao: #FAE100;
  --radius: 22px;
  /* Jua에 없는 글자(예: '퀠')는 시스템 기본체 대신 Noto Sans KR로 폴백 */
  --display: 'Jua', 'Noto Sans KR', sans-serif;
  --body: 'Noto Sans KR', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--gc-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ---------- 상단바 ---------- */
.site-header { position: sticky; top: 0; z-index: 30; }

/* ---------- 운영시간 안내 띠 ---------- */
.hours-strip {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 4px 12px;
  background: var(--paper);
  border-bottom: 1px solid rgba(33, 56, 42, .08);
  padding: 6px clamp(16px, 4vw, 40px);
  font-size: .82rem; color: var(--ink-soft);
  text-align: center;
}
.hours-strip-info { font-weight: 500; }
.hours-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; padding: 2px 11px; border-radius: 999px;
  white-space: nowrap;
}
.hours-status .hours-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.hours-status.is-open { color: #1F6B2F; background: rgba(87, 183, 124, .18); }
.hours-status.is-open .hours-dot {
  background: #2FAE55; box-shadow: 0 0 0 3px rgba(47, 174, 85, .18);
}
.hours-status.is-closed { color: var(--ink-soft); background: rgba(33, 56, 42, .08); }
.hours-status.is-closed .hours-dot { background: #9FB3A6; }
@media (max-width: 420px) {
  .hours-strip { font-size: .76rem; gap: 3px 8px; padding: 5px 12px; }
}
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: var(--bg);
  border-bottom: 1px solid rgba(33, 56, 42, .08);
}
.search-bar {
  background: var(--bg);
  padding: 10px clamp(16px, 4vw, 40px) 12px;
  border-bottom: 1px solid rgba(33, 56, 42, .08);
}
.brand {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.brand-cross {
  width: 16px; height: 16px; flex: 0 0 auto;
  background:
    linear-gradient(var(--gc), var(--gc)) center/100% 34% no-repeat,
    linear-gradient(var(--gc), var(--gc)) center/34% 100% no-repeat;
  border-radius: 3px;
}
.topbar nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav-kakao {
  background: var(--kakao); color: #3A2929 !important;
  padding: 6px 14px; border-radius: 999px; font-weight: 700;
}

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 20px 64px; text-align: center; }
.hero-blob {
  position: absolute; border-radius: 58% 42% 55% 45% / 45% 58% 42% 55%;
  z-index: 0; pointer-events: none;
}
.hero-blob-a { width: 320px; height: 260px; background: var(--leaf-soft); top: -90px; right: -70px; }
.hero-blob-b { width: 230px; height: 200px; background: var(--mint); bottom: -80px; left: -60px; opacity: .8; }
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow { font-weight: 700; font-size: clamp(1rem, 2.6vw, 1.3rem); margin: 0 0 18px; }
.hero-title {
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 5.6rem);
  margin: 0; line-height: 1.15; letter-spacing: -0.01em;
  padding-top: 0.12em;
}
.hero-title span { color: var(--gc); }
.hero-pill {
  display: inline-block; background: var(--deep); color: #EFF7EF;
  font-weight: 700; font-size: clamp(.95rem, 2.4vw, 1.15rem);
  padding: 10px 26px; border-radius: 999px; margin: 18px 0 10px;
}
.hero-sub { color: var(--ink-soft); max-width: 520px; margin: 10px auto 0; }
.hero-notice {
  display: inline-block; margin-top: 18px;
  background: var(--paper); border: 1.5px dashed var(--green);
  padding: 8px 18px; border-radius: 14px; font-size: .92rem; font-weight: 500;
}

/* ---------- 공통 레이아웃 ---------- */
.container { max-width: 860px; margin: 0 auto; padding: 24px 20px 80px; }

.cat { margin-top: 48px; }
.cat-title {
  font-family: var(--display); font-size: 1.7rem; margin: 0 0 18px;
  display: flex; align-items: center; gap: 10px;
}
.cat-title::before {
  content: ""; width: 18px; height: 18px; background: var(--mint);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
}

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--paper); border-radius: var(--radius);
  padding: 20px 20px 18px; text-decoration: none; color: var(--ink);
  border: 1px solid rgba(33, 56, 42, .07);
  box-shadow: 0 2px 0 rgba(33, 56, 42, .05);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column; gap: 6px;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(33, 56, 42, .12); }
.card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
.card-animal {
  margin: 0; font-size: .78rem; font-weight: 700; color: var(--gc-deep);
  background: rgba(87, 183, 124, .14); align-self: flex-start;
  padding: 2px 10px; border-radius: 999px;
}
.card-summary { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.card-meta { margin: 0; font-size: .8rem; color: var(--ink-soft); opacity: .85; }
.card-more { margin-top: auto; font-size: .85rem; font-weight: 700; color: var(--gc-deep); }

.ask {
  margin-top: 64px; text-align: center; background: var(--leaf-soft);
  border-radius: 28px; padding: 36px 24px;
}
.ask h2 { font-family: var(--display); font-weight: 400; margin: 0 0 8px; }
.ask p { margin: 0 0 18px; color: var(--ink-soft); }
.btn-kakao {
  display: inline-block; background: var(--kakao); color: #3A2929;
  font-weight: 700; text-decoration: none; padding: 12px 26px; border-radius: 999px;
}

/* ---------- 약 상세 ---------- */
.crumbs { font-size: .85rem; color: var(--ink-soft); margin: 8px 0 26px; }
.crumbs a { color: var(--ink-soft); }

.article-head { margin-bottom: 26px; }
.article-animal {
  display: inline-block; margin: 0 0 10px; font-size: .82rem; font-weight: 700;
  color: var(--gc-deep); background: rgba(87, 183, 124, .14);
  padding: 3px 12px; border-radius: 999px;
}
.article-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 6vw, 2.8rem); margin: 0 0 8px; line-height: 1.2; }
.article-summary { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 10px; }
.article-dates { font-size: .82rem; color: var(--ink-soft); opacity: .8; margin: 0; }

.facts {
  background: var(--paper); border-radius: var(--radius);
  border: 1px solid rgba(33, 56, 42, .08); padding: 22px 24px; margin-bottom: 34px;
}
.facts-title { font-family: var(--display); font-weight: 400; font-size: 1.15rem; margin: 0 0 12px; }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 22px; }
.facts dl > div { display: flex; gap: 10px; align-items: baseline; }
.facts dt { font-weight: 700; font-size: .85rem; color: var(--gc-deep); white-space: nowrap; }
.facts dd { margin: 0; font-size: .93rem; }

.body h2 {
  font-family: var(--display); font-weight: 400; font-size: 1.45rem;
  margin: 40px 0 12px; display: flex; align-items: center; gap: 9px;
}
.body h2::before {
  content: ""; width: 13px; height: 13px; background: var(--green);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; flex: none;
}
.body h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.body p, .body li { color: #3E5346; }
.body table { border-collapse: collapse; width: 100%; margin: 14px 0; background: var(--paper); border-radius: 12px; overflow: hidden; font-size: .92rem; }
.body th, .body td { border: 1px solid rgba(33, 56, 42, .12); padding: 9px 12px; text-align: left; }
.body th { background: var(--leaf-soft); font-weight: 700; }
.body strong { color: var(--ink); }

/* ---------- 용량표 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0; }
.table-wrap > table { margin: 0; }
.body .dose-table th, .body .dose-table td { text-align: center; white-space: nowrap; }
.body .dose-table th:first-child, .body .dose-table td:first-child {
  text-align: left; font-weight: 600;
}
.body .dose-table .dose-dash { color: var(--ink-soft); opacity: .5; }
.body .dose-table .dose-on { font-weight: 700; color: var(--gc-deep); }
.dose-note { font-size: .88rem; color: var(--ink-soft); margin: 12px 0 6px; line-height: 1.55; }

.faq { margin-top: 48px; }
.faq h2, .buy h2, .related h2 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; margin: 0 0 14px; }
.faq details {
  background: var(--paper); border-radius: 16px; padding: 4px 18px;
  border: 1px solid rgba(33, 56, 42, .08); margin-bottom: 10px;
}
.faq summary { font-weight: 700; cursor: pointer; padding: 10px 0; }
.faq details p { margin: 4px 0 14px; color: #3E5346; }

.buy { margin-top: 48px; background: var(--leaf-soft); border-radius: 24px; padding: 26px 26px 28px; }
.buy p { margin: 6px 0 12px; }

.related { margin-top: 48px; }
.sources { margin-top: 44px; font-size: .8rem; color: var(--ink-soft); opacity: .85; border-top: 1px dashed rgba(33, 56, 42, .2); padding-top: 16px; }

/* ---------- 푸터 ---------- */
.footer { background: var(--deep); color: #E3F0E5; margin-top: 40px; }
.footer a { color: #BBE3C6; }
.footer-inner { max-width: 860px; margin: 0 auto; padding: 40px 20px 48px; }
.footer-title { font-family: var(--display); font-size: 1.3rem; margin: 0 0 8px; }
.footer-notice { font-weight: 700; }
.footer-legal { font-size: .78rem; opacity: .75; line-height: 1.7; }

@media (max-width: 560px) {
  .topbar nav a:not(.nav-kakao) { display: none; }
  .facts dl { grid-template-columns: 1fr; }
}

/* ---------- 검색 ---------- */
.search { position: relative; width: 100%; max-width: 560px; margin: 0 auto; text-align: left; }
.search input {
  width: 100%; padding: 14px 20px; font: inherit; font-size: 1rem;
  border: 2px solid var(--deep); border-radius: 999px;
  background: var(--paper); color: var(--ink); outline: none;
}
.search input:focus { border-color: var(--gc-deep); box-shadow: 0 0 0 4px rgba(87,183,124,.25); }
#search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  margin: 0; padding: 8px; list-style: none;
  background: var(--paper); border-radius: 18px;
  border: 1px solid rgba(33,56,42,.12); box-shadow: 0 14px 34px rgba(33,56,42,.18);
  max-height: 320px; overflow-y: auto;
}
#search-results li a, #search-results li > div {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink);
}
#search-results li a:hover { background: var(--bg); }
#search-results li span { font-size: .8rem; color: var(--ink-soft); }
#search-results mark { background: #D3F0DC; color: var(--ink); border-radius: 4px; padding: 0 2px; font-weight: 700; }
.sr-none { padding: 12px 14px; font-size: .9rem; color: var(--ink-soft); }

/* ---------- 약국 소개 ---------- */
.about { margin-top: 72px; }
.about-photo { margin: 0 0 20px; }
.about-photo img {
  width: 100%; height: auto; display: block;
  border-radius: 26px; border: 1px solid rgba(33,56,42,.1);
  box-shadow: 0 10px 30px rgba(33,56,42,.12);
}
.about-lead { text-align: center; font-size: 1.08rem; line-height: 2; }

.onnuri {
  margin: 28px auto 0; max-width: 560px; text-align: center;
  background: var(--paper); border-radius: 24px; padding: 28px 24px;
  border: 1px solid rgba(33,56,42,.08); box-shadow: 0 2px 0 rgba(33,56,42,.05);
}
.onnuri-quote { font-weight: 700; margin: 0 0 12px; color: var(--ink-soft); font-style: italic; }
.onnuri-deal { font-family: var(--display); font-size: 1.5rem; margin: 0 0 10px; }
.onnuri-deal strong { color: var(--gc-deep); font-weight: 400; }
.onnuri p { margin: 0 0 10px; color: var(--ink-soft); }
.onnuri-link { font-size: .9rem; font-weight: 700; margin: 6px 0 0; }

.address {
  margin: 28px auto 0; max-width: 560px; text-align: center;
  background: var(--leaf-soft); border-radius: 24px; padding: 24px;
}
.address h3 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; margin: 0 0 8px; }
.address p { margin: 4px 0; }
.address-maps { font-weight: 700; }

/* ---------- 특징 배지 3종 (연중무휴/영양상담/동물약국) ---------- */
.perks {
  margin: 34px auto 0; max-width: 720px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
}
.perk {
  background: var(--paper); border: 1px solid rgba(33,56,42,.08);
  border-radius: 18px; padding: 16px 14px; text-align: center;
  box-shadow: 0 2px 0 rgba(33,56,42,.05);
}
.perk-emoji { font-size: 1.5rem; display: block; margin-bottom: 4px; }
.perk strong { font-family: var(--display); font-weight: 400; font-size: 1.05rem; display: block; }
.perk span { font-size: .82rem; color: var(--ink-soft); }

/* ---------- 가이드 배너 ---------- */
.guide-banner-wrap { margin-top: 36px; }
.guide-banner {
  display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(120deg, var(--deep), #2E6B47);
  color: #EFF7EF; text-decoration: none;
  border-radius: 24px; padding: 24px 28px;
  box-shadow: 0 8px 24px rgba(33,56,42,.18);
  transition: transform .15s ease;
  margin-bottom: 18px;
}
.guide-banner:hover { transform: translateY(-3px); }
.guide-banner-tag {
  align-self: flex-start; font-size: .75rem; font-weight: 700;
  background: rgba(239,247,239,.18); padding: 3px 12px; border-radius: 999px;
}
.guide-banner strong { font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.4; }
.guide-banner-sub { font-size: .88rem; opacity: .85; }
.guide-inline {
  background: var(--paper); border: 1.5px dashed var(--gc);
  border-radius: 16px; padding: 12px 18px; font-size: .95rem; margin: 0 0 28px;
}

/* ---------- 제품 사진 ---------- */
.drug-photo { margin: 0 0 28px; }
.drug-photo img {
  width: 100%; max-width: 480px; height: auto; display: block;
  border-radius: 20px; border: 1px solid rgba(33,56,42,.1);
  box-shadow: 0 6px 20px rgba(33,56,42,.1);
}

/* ── 고정 카톡 문의 버튼 ── */
.floating-kakao {
  position: fixed;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FEE500;
  color: #3C1E1E;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transition: transform .15s, box-shadow .15s;
  right: 24px;
  bottom: 24px;
  padding: 13px 22px;
  font-size: 1rem;
}
.floating-kakao:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
.floating-kakao-icon { font-size: 1.15rem; line-height: 1; }
.floating-kakao-body { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.18; }
.floating-kakao-text { font-weight: 700; }
.floating-kakao-status {
  font-weight: 600; font-size: .72rem; margin-top: 1px;
}
.floating-kakao-status:empty { display: none; }
.floating-kakao-status.is-open { color: #1F6B1F; }
.floating-kakao-status.is-open::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 7px; height: 7px; border-radius: 50%; margin-right: 5px;
  background: #2Fae2F; box-shadow: 0 0 0 2px rgba(47, 174, 47, .22);
}
.floating-kakao-status.is-closed { color: #6B4A2E; opacity: .92; }

/* 모바일: 하단 전체 바 */
@media (max-width: 560px) {
  .floating-kakao {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
    padding: 15px 18px;
    font-size: 1.05rem;
    border-radius: 16px;
  }
  .floating-kakao-body { align-items: center; text-align: center; }
  .footer { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-kakao { transition: none; }
  .floating-kakao:hover { transform: none; }
}
/* 분류당 카드 3개만 노출 + 더보기 */
.card.is-hidden{display:none!important}
.cat-more{display:flex;justify-content:center;margin-top:18px}
.cat-more-btn{font-family:var(--body);font-size:.95rem;font-weight:700;color:var(--gc-deep);background:rgba(87,183,124,.14);border:1.5px solid var(--mint);border-radius:999px;padding:9px 22px;cursor:pointer;transition:background .15s,transform .15s}
.cat-more-btn:hover{background:rgba(87,183,124,.25);transform:translateY(-1px)}
.cat-more-btn:focus-visible{outline:3px solid var(--green);outline-offset:2px}


.cat-order{font-size:.62em;font-weight:400;color:#8a9aa0;margin-left:.45em;vertical-align:middle}
.cat .cards>.card:nth-child(n+4){display:none}
.cat.show-all .cards>.card:nth-child(n+4){display:revert}
