
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f5f3;
  --color-text: #262322;
  --color-text-soft: #6b6560;
  --color-border: #e8e3df;
  --color-accent: #e03131;
  --color-accent-soft: #fdeaea;
  --color-naver: #03c75a;
  --radius: 14px;
  --max-width: 1120px;
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.2em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
}
.logo { display: flex; align-items: baseline; gap: 6px; font-weight: 800; }
.logo-en { font-size: 18px; letter-spacing: -0.02em; }
.logo-ko { font-size: 12px; color: var(--color-text-soft); font-weight: 500; }
.main-nav { display: none; gap: 22px; font-size: 14.5px; font-weight: 600; }
.main-nav a { color: var(--color-text-soft); padding: 6px 0; }
.main-nav a.active, .main-nav a:hover { color: var(--color-accent); }
.search-icon { display: flex; color: var(--color-text-soft); padding: 6px; }

@media (min-width: 768px) {
  .main-nav { display: flex; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); margin-top: 48px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 32px 16px 40px; text-align: center; color: var(--color-text-soft); font-size: 13.5px; }
.footer-brand { font-weight: 800; font-size: 16px; color: var(--color-text); margin-bottom: 10px; }
.footer-brand span { font-weight: 500; font-size: 12px; color: var(--color-text-soft); margin-left: 4px; }
.footer-nav { display: flex; justify-content: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--color-accent); }
.footer-disclosure { max-width: 560px; margin: 0 auto 8px; }

/* ---------- Layout helpers ---------- */
.section { padding: 40px 16px; }
.section-alt { background: var(--color-bg-alt); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-title { font-size: 20px; font-weight: 800; margin: 0 0 18px; }
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.see-more { font-size: 13.5px; color: var(--color-text-soft); font-weight: 600; }
.see-more:hover { color: var(--color-accent); }

/* ---------- Hero ---------- */
.hero { padding: 52px 16px 44px; background: linear-gradient(180deg, #fff 0%, #fff7f0 100%); }
.hero-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.hero-eyebrow { color: var(--color-accent); font-weight: 700; font-size: 13.5px; letter-spacing: 0.02em; margin: 0 0 12px; }
.hero-title { font-size: 30px; line-height: 1.35; font-weight: 800; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero-title .accent { color: var(--color-accent); }
.hero-desc { color: var(--color-text-soft); font-size: 15px; max-width: 560px; margin: 0 auto 26px; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (min-width: 768px) {
  .hero-title { font-size: 42px; }
  .hero-desc { font-size: 16.5px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: #c92a2a; }
.btn-ghost { background: #fff; color: var(--color-text); border: 1px solid var(--color-border); }
.btn-ghost:hover { border-color: var(--color-text); }

.buy-buttons { display: flex; gap: 10px; margin: 20px 0; flex-wrap: wrap; }
.btn-buy { flex: 1 1 160px; padding: 14px 18px; border-radius: 10px; font-size: 15px; color: #fff; text-align: center; }
.btn-coupang { background: var(--color-accent); }
.btn-coupang:hover { background: #c92a2a; }
.btn-naver { background: var(--color-naver); }
.btn-naver:hover { background: #02a94d; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-tile { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.cat-tile:hover { border-color: var(--color-accent); }
.cat-tile-name { font-weight: 700; font-size: 15.5px; }
.cat-tile-count { font-size: 13px; color: var(--color-text-soft); }

@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(8, 1fr); } }

/* ---------- Card grid ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-link { display: block; }
.card-img-wrap { position: relative; aspect-ratio: 4 / 3; background: var(--color-bg-alt); overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 18px; }
.card-title { font-size: 15.5px; font-weight: 700; margin: 0 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.card-summary { font-size: 13px; color: var(--color-text-soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card-grid-small .card-title { font-size: 14.5px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.badge-cat { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,0.92); color: var(--color-text); }
.badge-review { background: var(--color-accent-soft); color: var(--color-accent); }
.badge-pet { background: var(--color-bg-alt); color: var(--color-text-soft); }

/* ---------- Page header / breadcrumb ---------- */
.page-header { padding: 34px 16px 8px; background: var(--color-bg-alt); }
.page-header-inner { max-width: var(--max-width); margin: 0 auto; }
.page-header h1 { font-size: 24px; margin: 6px 0 6px; }
.page-header p { color: var(--color-text-soft); font-size: 14px; margin: 0 0 20px; }
.breadcrumb { font-size: 12.5px; color: var(--color-text-soft); display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--color-accent); }

/* ---------- Toolbar (reviews.html) ---------- */
.toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.search-box input { width: 100%; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--color-border); font-size: 15px; font-family: inherit; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--color-border); background: #fff; font-size: 13px; font-weight: 600; color: var(--color-text-soft); }
.filter-btn.active, .filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-accent-soft); }
.sort-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.sort-row select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--color-border); font-family: inherit; }
.result-count { font-size: 13px; color: var(--color-text-soft); margin: 0 0 12px; }
.empty-state { text-align: center; color: var(--color-text-soft); padding: 40px 0; }

/* ---------- Review detail page ---------- */
.review-page { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }
.review-header-wrap h1 { font-size: 22px; line-height: 1.4; margin: 10px 0 12px; }
.review-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--color-text-soft); margin-bottom: 18px; }
.review-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; aspect-ratio: 4/3; background: var(--color-bg-alt);}
.review-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.toc-box { background: var(--color-bg-alt); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.toc-box .toc-title { font-weight: 800; margin: 0 0 8px; font-size: 14px; }
.toc-box ol { margin: 0; padding-left: 1.4em; font-size: 14px; }
.toc-box li { margin-bottom: 4px; }
.toc-box a:hover { color: var(--color-accent); }

.review-body { font-size: 15.5px; margin: 24px 0; }
.review-body h2 { font-size: 19px; margin: 32px 0 12px; scroll-margin-top: 76px; }
.review-body h3 { font-size: 16.5px; margin: 22px 0 10px; scroll-margin-top: 76px; }
.review-body p { margin: 0 0 14px; }
.review-body hr { border: none; border-top: 1px solid var(--color-border); margin: 24px 0; }
.review-body img { border-radius: 10px; margin: 12px 0; }
.review-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.review-body th, .review-body td { border: 1px solid var(--color-border); padding: 8px 10px; text-align: left; }

.disclosure-note { font-size: 12.5px; color: var(--color-text-soft); margin: 4px 0 0; }

.related-section { margin-top: 44px; }
.related-section h2 { font-size: 17px; margin: 0 0 14px; }

.prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--color-border); font-size: 13.5px; font-weight: 600; }
.prevnext a { color: var(--color-text-soft); max-width: 48%; }
.prevnext a:hover { color: var(--color-accent); }

/* ---------- About / disclosure prose ---------- */
.prose { max-width: 720px; margin: 0 auto; font-size: 15.5px; }
.prose h2 { font-size: 18px; margin: 28px 0 10px; }
.prose p { margin: 0 0 14px; }
