/*
Theme Name: Buy or Bye
Theme URI: https://buyorbye365.com
Author: Buy or Bye
Description: Buy or Bye 전용 경량 표시 테마. 제품 데이터는 Buy or Bye Core 플러그인이 담당합니다.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: buyorbye
*/

:root {
  --bob-bg: #f7f8fb;
  --bob-card: #ffffff;
  --bob-text: #171b22;
  --bob-muted: #687281;
  --bob-line: #e4e8ee;
  --bob-brand: #173a63;
  --bob-brand-dark: #102a49;
  --bob-accent: #e5533d;
  --bob-good: #2e8b66;
  --bob-radius: 18px;
  --bob-shadow: 0 14px 36px rgba(23, 58, 99, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bob-bg); color: var(--bob-text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.site-shell { width: min(1160px, calc(100% - 44px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--bob-line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.site-header__inner { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.site-logo { display: inline-flex; align-items: baseline; flex: 0 0 auto; color: var(--bob-brand); font-size: 1.48rem; font-weight: 900; letter-spacing: -.05em; text-decoration: none; }
.site-logo__or { margin-inline: .22em; color: var(--bob-accent); font-size: .76em; }
.site-tagline { margin-left: -16px; color: var(--bob-muted); font-size: .76rem; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: #313946; font-size: .92rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--bob-accent); }
.site-search { position: relative; width: min(260px, 22vw); }
.site-search input { width: 100%; min-height: 42px; padding: 9px 42px 9px 16px; border: 1px solid var(--bob-line); border-radius: 999px; background: #f2f4f7; color: var(--bob-text); font: inherit; }
.site-search button { position: absolute; top: 50%; right: 8px; translate: 0 -50%; width: 32px; height: 32px; border: 0; background: transparent; color: var(--bob-brand); cursor: pointer; }

.home-main { overflow: hidden; }
.home-hero { padding: clamp(62px, 9vw, 116px) 0 72px; background: radial-gradient(circle at 85% 15%, #e7f0fa 0, transparent 32%), linear-gradient(145deg,#fff 0,#f4f7fb 65%,#eef3f8 100%); border-bottom: 1px solid var(--bob-line); }
.home-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(34px, 7vw, 88px); }
.eyebrow { margin: 0 0 14px; color: var(--bob-accent); font-size: .82rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.home-hero h1 { max-width: 700px; margin: 0; color: var(--bob-brand-dark); font-size: clamp(2.6rem, 6vw, 5.15rem); line-height: 1.02; letter-spacing: -.065em; }
.home-hero__lead { max-width: 620px; margin: 24px 0 0; color: var(--bob-muted); font-size: clamp(1.02rem, 1.8vw, 1.25rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.theme-btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid var(--bob-line); border-radius: 12px; background: #fff; color: var(--bob-brand); font-weight: 850; text-decoration: none; }
.theme-btn--primary { border-color: var(--bob-brand); background: var(--bob-brand); color: #fff; }
.theme-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(23,58,99,.13); }
.decision-card { padding: 28px; border: 1px solid rgba(23,58,99,.12); border-radius: 24px; background: rgba(255,255,255,.9); box-shadow: var(--bob-shadow); }
.decision-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.decision-card__top span { color: var(--bob-muted); font-size: .85rem; }
.decision-pill { padding: 7px 11px; border-radius: 999px; background: #eaf6f1; color: var(--bob-good); font-weight: 900; }
.decision-line { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding: 17px 0; border-top: 1px solid var(--bob-line); }
.decision-line small { color: var(--bob-muted); }
.decision-line strong { color: var(--bob-brand-dark); font-size: 1.08rem; }
.decision-note { margin: 19px 0 0; padding: 14px 16px; border-radius: 12px; background: #fff4f1; color: #8b392d; font-size: .9rem; line-height: 1.6; }

.home-section { padding: 76px 0; }
.home-section--white { border-block: 1px solid var(--bob-line); background: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2, .archive-head h1 { margin: 0; color: var(--bob-brand-dark); font-size: clamp(1.85rem, 3vw, 2.65rem); letter-spacing: -.045em; }
.section-head p { max-width: 560px; margin: 7px 0 0; color: var(--bob-muted); line-height: 1.65; }
.section-link { flex: 0 0 auto; color: var(--bob-brand); font-weight: 800; text-decoration: none; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card { min-height: 168px; padding: 22px; border: 1px solid var(--bob-line); border-radius: var(--bob-radius); background: var(--bob-card); text-decoration: none; transition: .2s ease; }
.category-card:hover { translate: 0 -3px; border-color: #cbd7e4; box-shadow: var(--bob-shadow); }
.category-card__icon { display: block; margin-bottom: 28px; font-size: 1.9rem; }
.category-card strong { display: block; color: var(--bob-brand-dark); font-size: 1.12rem; }
.category-card small { display: block; margin-top: 8px; color: var(--bob-muted); line-height: 1.5; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { overflow: hidden; border: 1px solid var(--bob-line); border-radius: var(--bob-radius); background: var(--bob-card); box-shadow: 0 7px 20px rgba(23,58,99,.04); }
.product-card__image { display: grid; min-height: 220px; place-items: center; overflow: hidden; background: linear-gradient(145deg,#f0f3f6,#fafbfc); color: #929aa6; text-decoration: none; }
.product-card__image img { width: 100%; height: 220px; object-fit: contain; transition: transform .25s ease; }
.product-card:hover .product-card__image img { transform: scale(1.025); }
.product-card__body { padding: 20px; }
.product-card__meta { display: flex; gap: 8px; margin-bottom: 10px; color: var(--bob-muted); font-size: .78rem; }
.verdict-tag { padding: 4px 7px; border-radius: 7px; background: #eaf6f1; color: var(--bob-good); font-weight: 800; }
.product-card h2 { margin: 0 0 10px; font-size: 1.3rem; letter-spacing: -.025em; }
.product-card h2 a { text-decoration: none; }
.product-card p { min-height: 3.1em; margin: 0; color: var(--bob-muted); line-height: 1.6; }
.product-card__more { display: inline-block; margin-top: 18px; color: var(--bob-brand); font-weight: 850; text-decoration: none; }
.empty-products { grid-column: 1/-1; padding: 34px; border: 1px dashed #cbd3dc; border-radius: var(--bob-radius); color: var(--bob-muted); text-align: center; }
.promise-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.promise { padding: 26px; border-left: 3px solid var(--bob-accent); background: #fff; box-shadow: var(--bob-shadow); }
.promise strong { display: block; margin-bottom: 9px; color: var(--bob-brand-dark); }
.promise p { margin: 0; color: var(--bob-muted); line-height: 1.65; }

.archive-main, .content-main { min-height: 60vh; padding: 62px 0 88px; }
.archive-head { margin-bottom: 30px; }
.archive-head p { margin: 10px 0 0; color: var(--bob-muted); }
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination a, .pagination span { padding: 8px 12px; border: 1px solid var(--bob-line); border-radius: 9px; background: #fff; text-decoration: none; }
.content-card { max-width: 820px; margin: auto; padding: clamp(24px,5vw,54px); border: 1px solid var(--bob-line); border-radius: var(--bob-radius); background: #fff; }
.content-card h1 { color: var(--bob-brand-dark); letter-spacing: -.04em; }
.content-card p, .content-card li { line-height: 1.85; }

.site-footer { border-top: 1px solid var(--bob-line); background: var(--bob-brand-dark); color: #dbe4ee; }
.site-footer__top { display: grid; grid-template-columns: 1.35fr repeat(3,1fr); gap: 40px; padding: 48px 0 36px; }
.site-footer .site-logo { color: #fff; }
.site-footer__intro { max-width: 340px; margin: 15px 0 0; color: #aebdcd; font-size: .9rem; line-height: 1.7; }
.footer-group strong { display: block; margin-bottom: 14px; color: #fff; font-size: .9rem; }
.footer-group a { display: block; margin: 9px 0; color: #b9c7d5; font-size: .86rem; text-decoration: none; }
.site-footer__bottom { padding: 18px 0 26px; border-top: 1px solid rgba(255,255,255,.11); color: #8fa1b3; font-size: .76rem; line-height: 1.6; }

@media (max-width: 960px) {
  .site-tagline, .site-nav { display: none; }
  .site-search { width: min(310px, 44vw); margin-left: auto; }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .site-footer__top { grid-template-columns: 1.2fr 1fr 1fr; }
  .site-footer__top > :last-child { display: none; }
}

@media (max-width: 720px) {
  .site-shell { width: min(100% - 28px, 1160px); }
  .site-header__inner { min-height: 58px; gap: 12px; }
  .site-logo { font-size: 1.25rem; }
  .site-search { width: 42px; }
  .site-search input { padding-inline: 0; color: transparent; }
  .site-search input::placeholder { color: transparent; }
  .home-hero { padding: 50px 0; }
  .home-hero__grid { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: clamp(2.55rem,14vw,4rem); }
  .decision-card { padding: 20px; }
  .home-section { padding: 54px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .category-grid, .product-grid, .promise-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 136px; }
  .category-card__icon { margin-bottom: 18px; }
  .product-card__image, .product-card__image img { height: 200px; min-height: 200px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .site-footer__top > :first-child { grid-column: 1/-1; }
}
