/* =============================================================================
   구독 전단지 — 모바일 견적서 디자인 (LG 레드 테마)
   기존 변수명 유지: --paper/--card/--sprout 계열은 새 팔레트로 매핑되어
   join.php / index.php 도 자동으로 같은 테마가 적용됩니다.
============================================================================= */
:root{
  --paper: #f5f7fa;        /* 페이지 배경 */
  --paper-2: #ffffff;      /* 카드/패널 배경 */
  --card: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #555a63;
  --ink-faint: #949aa5;
  --mist: #e5e8ee;         /* 입력/칩 테두리 */
  --line: #eaeaea;
  --sprout: #c90044;       /* 액센트(레드) */
  --sprout-2: #ff4757;
  --sprout-ink: #a50034;
  --grad: linear-gradient(135deg, #a50034 0%, #ff4757 100%);
  --shadow: 0 4px 6px rgba(0,0,0,.03);
}
*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Noto Sans KR', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}
.jua{ font-weight: 800; letter-spacing: -0.01em; }  /* (구) 제목 서체 클래스 — 굵기로 대체 */

/* ── 컨테이너: 모바일 시트 ─────────────────────────────── */
.wrap{
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
  background: var(--card);
  min-height: 100vh;
  box-shadow: 0 0 24px rgba(0,0,0,.06);
  padding: 0 0 70px;
}

/* ── 헤더 ──────────────────────────────────────────────── */
.hero{
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: 30px 20px 26px;
  border-radius: 0 0 20px 20px;
  margin-bottom: 18px;
}
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 5px 12px;
  letter-spacing: .02em;
}
.eyebrow .leaf, .leaf{ width: 14px; height: 14px; }
.hero h1{
  margin: 12px 0 0;
  font-size: clamp(22px, 6vw, 27px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.hero .intro{
  margin: 8px 0 0;
  font-size: 14px;
  opacity: .92;
}
.share{ display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity .12s ease, background .12s ease;
}
.btn svg{ width: 15px; height: 15px; }
.btn-ghost{ background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover{ background: rgba(255,255,255,.26); }
.btn-soft{ background: #fff; color: var(--sprout-ink); }
.btn-soft:hover{ opacity: .9; }

/* ── 상품 영역 ─────────────────────────────────────────── */
.items-band{ padding: 0 16px; }
.items-lead{
  text-align: center;
  color: var(--ink-soft);
  font-size: 13.5px;
  margin: 0 0 12px;
}

/* 카테고리 탭 (상단 고정) */
.cat-tabs{
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 -16px 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.cat-tabs-inner{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-tabs-inner::-webkit-scrollbar{ display: none; }
.cat-tab{
  flex: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: #f4f5f8;
  border: 1px solid var(--mist);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  transition: all .13s ease;
}
.cat-tab:hover{ border-color: var(--sprout-2); color: var(--sprout-ink); }
.cat-tab.on{ background: var(--grad); border-color: transparent; color: #fff; }
.cat-block{ scroll-margin-top: 62px; }
.cat-block[hidden]{ display: none; }

/* 카테고리 제목 */
.cat-head{
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 24px 2px 12px;
}
.cat-head.first{ margin-top: 6px; }
.cat-head .ico{ font-size: 18px; line-height: 1; }
.cat-head .t{ font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }

/* 상품 카드 */
.grid{ display: flex; flex-direction: column; gap: 14px; }
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-top {
  display: flex;
  gap: 16px;
  padding: 20px 20px 0;
  align-items: center;
}
.card-top .card-img {
  flex: 0 0 110px;
  height: 110px;
  background: #f7f8fa;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.card-top .card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.card-top .card-img.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  color: var(--ink-faint);
  font-size: 13px;
}
.card-top .card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.badge{
  display: inline-block;
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #ffe3e3;
  color: var(--sprout);
}
.card-name{ font-size: 17.5px; font-weight: 800; line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
.card-model{ font-size: 12.5px; color: var(--ink-faint); margin: -5px 0 0; }
.card-summary{ font-size: 14px; color: var(--ink-soft); margin: 0; }
.points{
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 3px;
}
.points li{
  font-size: 13px; color: var(--ink-soft);
  padding-left: 16px; position: relative;
}
.points li::before{
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--sprout-2); font-weight: 800; font-size: 12px;
}

/* 옵션 칩 */
.opt-group{ display: flex; flex-direction: column; gap: 6px; }
.opt-label{ font-size: 12.5px; font-weight: 700; color: var(--ink-faint); }
.opt-chips{ display: flex; flex-wrap: wrap; gap: 6px; }
.chip{
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #f4f5f8;
  border: 1px solid var(--mist);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: all .12s ease;
}
.chip:hover{ border-color: var(--sprout-2); color: var(--sprout-ink); }
.chip.on{ background: var(--sprout); border-color: var(--sprout); color: #fff; }
.chip.off{ opacity: .35; border-style: dashed; }

/* 가격 박스 (견적서 느낌) */
.price-box{
  background: #f8f9fb;
  border-radius: 12px;
  padding: 4px 14px;
}
.price-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.price-row:last-child{ border-bottom: none; }
.price-label{ color: var(--ink-soft); }
.price-val{ font-weight: 800; font-size: 15px; }
.price-pill{ color: var(--ink); }
.price-pill b{ font-size: 18px; font-weight: 800; }
.price-pill .from{ font-size: 12px; color: var(--ink-faint); font-weight: 600; margin-left: 3px; }
.price-pill.exact b{ color: var(--sprout); }
.price-row.cardline .price-val{ color: var(--sprout); }
.price-row.cardline .price-val b{ font-size: 16px; }
.price-none{ color: var(--ink-faint); font-size: 13.5px; padding: 9px 0; display: inline-block; }

/* 카드 하단 버튼 */
.card-foot{ display: flex; gap: 8px; margin-top: 2px; }
.detail-link{
  flex: 1;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #333;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 11px 0;
  cursor: pointer;
  text-align: center;
}
.detail-link:hover{ background: #f0f1f4; }
.ask-link{
  flex: 1.3;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: 10px;
  padding: 11px 0;
  cursor: pointer;
  text-align: center;
}
.ask-link:hover{ opacity: .92; }

/* 결합 할인 카드 */
.combo-card{
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  border: 2px solid var(--sprout-2);
  border-radius: 16px;
  text-align: center;
  padding: 20px 16px;
  margin: 20px 0 4px;
}
.combo-card .badge{ background: var(--sprout-2); color: #fff; align-self: center; }
.combo-card h3{ margin: 10px 0 4px; font-size: 18px; font-weight: 800; }
.combo-card p{ margin: 0; font-size: 14.5px; font-weight: 700; color: var(--sprout-2); white-space: pre-line; }

/* ── 제휴카드 섹션 ─────────────────────────────────────── */
.cards-section{ padding: 6px 16px 0; }
.section-title{
  font-size: 18px;
  font-weight: 800;
  margin: 22px 2px 12px;
  letter-spacing: -0.01em;
}
.promo-card{
  border: none;
  border-radius: 16px;
  padding: 18px 16px 12px;
  margin-bottom: 12px;
  color: #fff;
  box-shadow: var(--shadow);
}
.promo-card .badge{ background: rgba(255,255,255,.22); color: #fff; }
.promo-card h3{ margin: 8px 0 6px; font-size: 17px; font-weight: 800; }
.promo-card .price-row{ border-bottom-color: rgba(255,255,255,.18); font-size: 13.5px; }
.promo-card .price-label{ color: rgba(255,255,255,.85); }
.promo-card .price-val{ color: #fff; }
.promo-card .price-val.gold{ color: #ffd700; }
.promo-card.t-light{ color: #333; }
.promo-card.t-light .badge{ background: rgba(0,0,0,.1); color: #333; }
.promo-card.t-light .price-row{ border-bottom-color: rgba(0,0,0,.1); }
.promo-card.t-light .price-label{ color: #666; }
.promo-card.t-light .price-val{ color: #333; }
.promo-card.t-light .price-val.gold{ color: #e84393; }
.theme-blue{ background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); }
.theme-green{ background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.theme-pink{ background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.theme-purple{ background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.theme-red{ background: var(--grad); }
.theme-dark{ background: linear-gradient(135deg, #232526 0%, #414345 100%); }

/* ── 상세 보기 모달 ────────────────────────────────────── */
.dmodal{
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20,20,25,.55);
}
.dmodal.show{ display: flex; }
.dmodal-sheet{
  width: 100%;
  max-width: 490px;
  max-height: 88vh;
  background: #fff;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  animation: sheetUp .22s ease;
}
@keyframes sheetUp{ from{ transform: translateY(40px); opacity: .6; } to{ transform: none; opacity: 1; } }
.dmodal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.dmodal-head .t{ font-size: 16px; font-weight: 800; }
.dmodal-close{
  font-family: inherit;
  background: #f4f5f8;
  border: none;
  border-radius: 999px;
  width: 32px; height: 32px;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink-soft);
}
.dmodal-body{ overflow-y: auto; padding: 14px 16px; }
.dmodal-body .dtext{ font-size: 14px; color: var(--ink-soft); white-space: pre-line; margin: 0 0 12px; }
.dmodal-body img{ display: block; width: 100%; border-radius: 10px; margin-bottom: 10px; }
.dmodal-foot{ padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.dmodal-foot .ask-link{ width: 100%; padding: 13px 0; font-size: 15px; }

/* ── 구독 신청 폼 ──────────────────────────────────────── */
.consult{
  margin: 26px 16px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 16px 20px;
  box-shadow: var(--shadow);
}
.consult h2{
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
}
.consult .sub{
  text-align: center;
  color: var(--ink-soft);
  font-size: 13.5px;
  margin: 8px 0 16px;
}
.form{ display: flex; flex-direction: column; gap: 12px; }
.item-tag{
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffe3e3;
  color: var(--sprout-ink);
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  padding: 9px 12px;
}
.item-tag.show{ display: flex; }
.item-tag button{
  background: none; border: none; cursor: pointer;
  color: var(--sprout-ink); font-size: 14px; padding: 0 2px;
}
.field label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select{
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--mist);
  border-radius: 12px;
  padding: 12px 14px;
}
.field textarea{ min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none;
  border-color: var(--sprout-2);
  box-shadow: 0 0 0 4px rgba(201,0,68,.12);
}
.req{ color: var(--sprout); }
.hint{ font-size: 12px; color: var(--ink-faint); margin: 5px 0 0; }
.agree{
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.agree input{ margin-top: 2px; accent-color: var(--sprout); }
.btn-submit{
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: 12px;
  padding: 15px 0;
  cursor: pointer;
  transition: opacity .12s ease;
}
.btn-submit:hover{ opacity: .92; }
.btn-submit:disabled{ opacity: .55; cursor: default; }
.reassure{
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  margin: 2px 0 0;
}
.form-msg{ text-align: center; font-size: 13px; min-height: 18px; margin: 0; }
.form-msg.err{ color: var(--sprout-2); font-weight: 700; }
.done{
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 24px 0 8px;
}
.done.show{ display: flex; }
.done .circle{
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.done .circle svg{ width: 26px; height: 26px; }
.done h3{ margin: 4px 0 0; font-size: 19px; font-weight: 800; }
.done p{ margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ── 푸터 ──────────────────────────────────────────────── */
.foot{
  text-align: center;
  padding: 26px 20px 10px;
  color: var(--ink-faint);
  font-size: 12.5px;
}
.foot .shop{ font-weight: 800; color: var(--ink-soft); font-size: 14px; }
.foot a{ color: var(--sprout); text-decoration: none; font-weight: 700; }
.privacy{ margin-top: 8px; line-height: 1.5; }

/* ── 하단 고정 CTA ─────────────────────────────────────── */
.sticky-cta{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  pointer-events: none;
}
.sticky-cta .inner{
  max-width: 490px;
  margin: 0 auto;
  padding: 0 14px calc(10px + env(safe-area-inset-bottom));
}
.sticky-cta a{
  pointer-events: auto;
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  padding: 14px 0;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(201,0,68,.35);
}

/* 토스트 */
.toast{
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  background: rgba(26,26,26,.92);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 18px;
  z-index: 60;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show{ opacity: 1; }

/* 인쇄 */
@media print{
  .share, .consult, .sticky-cta, .ask-link, .detail-link, .cat-tabs{ display: none !important; }
  body{ background: #fff; }
  .wrap{ box-shadow: none; max-width: none; }
  .hero{ border-radius: 0; }
}

.flyer-search { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; height: 48px; transition: border-color 0.2s; }
.flyer-search:focus-within { border-color: var(--sprout); }
.flyer-search svg { width: 18px; height: 18px; color: var(--ink-faint); margin-right: 10px; flex: none; }
.flyer-search input { flex: 1; border: none; background: none; font-size: 15px; color: var(--ink); outline: none; padding: 0; min-width: 0; }
.flyer-search input::placeholder { color: var(--ink-faint); }

.flyer-search { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; height: 48px; transition: border-color 0.2s; }
.flyer-search:focus-within { border-color: var(--sprout); }
.flyer-search svg { width: 18px; height: 18px; color: var(--ink-faint); margin-right: 10px; flex: none; }
.flyer-search input { flex: 1; border: none; background: none; font-size: 15px; color: var(--ink); outline: none; padding: 0; min-width: 0; }
.flyer-search input::placeholder { color: var(--ink-faint); }

/* --- New Mobile Container Styles --- */
:root {
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-sub: #666666;
    --accent: #c90044;
}
body {
    background-color: var(--bg-color);
}
.mobile-container {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    padding-bottom: 50px;
    margin: 0 auto;
}
.header {
    background: linear-gradient(135deg, #a50034 0%, #ff4757 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: 20px;
}
.header h1 { margin: 0; font-size: 1.5rem; font-weight: 800; }
.header p { margin: 10px 0 0 0; opacity: 0.9; font-size: 0.95rem; }
.section { padding: 0 20px 20px; }
.section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; }
.period-selector {
    background: #fff;
    border: 2px solid #c90044;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(201, 0, 68, 0.1);
}
.period-selector label { font-weight: 700; color: #c90044; font-size: 1.05rem; }
.period-selector select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    background-color: #f8f9fa;
}
.card.product-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.flex-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.img-link { display: block; flex-shrink: 0; text-decoration: none; }
.product-img {
    width: 80px; height: 80px; object-fit: cover; border-radius: 10px;
    border: 1px solid #eaeaea; background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: transform 0.2s;
}
.product-img:hover { transform: scale(1.05); }
.header-text { flex-grow: 1; }
.badge {
    display: inline-block; padding: 4px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; background: #ffe3e3; color: #c90044; margin-bottom: 6px;
}
.model-name { font-size: 1.15rem; font-weight: 800; margin: 0; }
.click-hint { font-size: 0.75rem; color: #888; margin-top: 4px; display: flex; align-items: center; gap: 3px; }
.price-row {
    display: flex; justify-content: space-between; font-size: 1rem;
    border-bottom: 1px dashed #eaeaea; padding: 10px 0;
}
.price-row:last-of-type { border-bottom: none; }
.price-label { color: var(--text-sub); }
.price-val { font-weight: 800; color: #c90044; }
.model-desc { font-size: 0.85rem; color: #555; margin: 4px 0 6px 0; word-break: keep-all; line-height: 1.35; letter-spacing: -0.5px; }
.area-filter {
    background: #f8f9fa; color: #666; border: 1px solid #ddd; cursor: pointer; transition: all 0.2s;
}
.area-filter.on {
    background: #c90044; color: #fff; border-color: #c90044;
}
.energy-filter {
    background: #f8f9fa; color: #666; border: 1px solid #ddd; cursor: pointer; transition: all 0.2s;
}
.energy-filter.on {
    background: #c90044; color: #fff; border-color: #c90044;
}
.energy-filter {
    background: #f8f9fa; color: #666; border: 1px solid #ddd; cursor: pointer; transition: all 0.2s;
}
.energy-filter.on {
    background: #c90044; color: #fff; border-color: #c90044;
}

/* --- New Mobile Container Styles --- */
:root {
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-sub: #666666;
    --accent: #c90044;
}
body {
    background-color: var(--bg-color);
}
.mobile-container {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    padding-bottom: 50px;
    margin: 0 auto;
}
.header {
    background: linear-gradient(135deg, #a50034 0%, #ff4757 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: 20px;
}
.header h1 { margin: 0; font-size: 1.5rem; font-weight: 800; }
.header p { margin: 10px 0 0 0; opacity: 0.9; font-size: 0.95rem; }
.section { padding: 0 20px 20px; }
.section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; }
.period-selector {
    background: #fff;
    border: 2px solid #c90044;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(201, 0, 68, 0.1);
}
.period-selector label { font-weight: 700; color: #c90044; font-size: 1.05rem; }
.period-selector select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    background-color: #f8f9fa;
}
.card.product-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.flex-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.img-link { display: block; flex-shrink: 0; text-decoration: none; }
.product-img {
    width: 80px; height: 80px; object-fit: cover; border-radius: 10px;
    border: 1px solid #eaeaea; background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: transform 0.2s;
}
.product-img:hover { transform: scale(1.05); }
.header-text { flex-grow: 1; }
.badge {
    display: inline-block; padding: 4px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; background: #ffe3e3; color: #c90044; margin-bottom: 6px;
}
.model-name { font-size: 1.15rem; font-weight: 800; margin: 0; }
.click-hint { font-size: 0.75rem; color: #888; margin-top: 4px; display: flex; align-items: center; gap: 3px; }
.price-row {
    display: flex; justify-content: space-between; font-size: 1rem;
    border-bottom: 1px dashed #eaeaea; padding: 10px 0;
}
.price-row:last-of-type { border-bottom: none; }
.price-label { color: var(--text-sub); }
.price-val { font-weight: 800; color: #c90044; }
.model-desc { font-size: 0.85rem; color: #555; margin: 4px 0 6px 0; word-break: keep-all; line-height: 1.35; letter-spacing: -0.5px; }
.area-filter {
    background: #f8f9fa; color: #666; border: 1px solid #ddd; cursor: pointer; transition: all 0.2s;
}
.area-filter.on {
    background: #c90044; color: #fff; border-color: #c90044;
}
.energy-filter {
    background: #f8f9fa; color: #666; border: 1px solid #ddd; cursor: pointer; transition: all 0.2s;
}
.energy-filter.on {
    background: #c90044; color: #fff; border-color: #c90044;
}
.energy-filter {
    background: #f8f9fa; color: #666; border: 1px solid #ddd; cursor: pointer; transition: all 0.2s;
}
.energy-filter.on {
    background: #c90044; color: #fff; border-color: #c90044;
}

/* ── 페이지네이션 ──────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 20px 0 10px;
  flex-wrap: wrap;
}
.page-btn {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
}
.page-btn:hover {
  background: #fdfaf6;
  border-color: #c90044;
  color: #c90044;
}
.page-btn.on {
  background: #c90044;
  border-color: #c90044;
  color: #fff;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #fff;
  border-color: #eaeaea;
  color: #999;
}

/* ── 페이지네이션 ──────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 20px 0 10px;
  flex-wrap: wrap;
}
.page-btn {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
}
.page-btn:hover {
  background: #fdfaf6;
  border-color: #c90044;
  color: #c90044;
}
.page-btn.on {
  background: #c90044;
  border-color: #c90044;
  color: #fff;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #fff;
  border-color: #eaeaea;
  color: #999;
}

/* ── 바텀 시트 모달 (구독 신청) ──────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.bottom-sheet {
  width: 100%;
  max-width: 490px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 30px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.82, 0.25, 1);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-overlay.show .bottom-sheet {
  transform: translateY(0);
}
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}
.item-tag.enhanced {
  display: block !important;
  background: #fdfaf6;
  border: 1px solid #f5ebd9;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  color: #333;
}
.item-tag.enhanced .t-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.item-tag.enhanced .t-row:last-child {
  margin-bottom: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e8dcc8;
  font-weight: 700;
  font-size: 1.05rem;
  color: #c90044;
}
.item-tag.enhanced .t-label {
  color: #777;
  font-size: 0.9rem;
}
.item-tag.enhanced .t-val {
  text-align: right;
  font-weight: 600;
  word-break: break-all;
  padding-left: 10px;
}

/* ── 바텀 시트 모달 (구독 신청) ──────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.bottom-sheet {
  width: 100%;
  max-width: 490px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 30px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.82, 0.25, 1);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-overlay.show .bottom-sheet {
  transform: translateY(0);
}
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}
.item-tag.enhanced {
  display: block !important;
  background: #fdfaf6;
  border: 1px solid #f5ebd9;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  color: #333;
}
.item-tag.enhanced .t-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.item-tag.enhanced .t-row:last-child {
  margin-bottom: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e8dcc8;
  font-weight: 700;
  font-size: 1.05rem;
  color: #c90044;
}
.item-tag.enhanced .t-label {
  color: #777;
  font-size: 0.9rem;
}
.item-tag.enhanced .t-val {
  text-align: right;
  font-weight: 600;
  word-break: break-all;
  padding-left: 10px;
}
