
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; color: #222; background: var(--bg, #fafafa); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.wrap { flex: 1; min-width: 0; }
.affiliate-notice-top { background: #f4f4f4; color: #777; font-size: 11px; text-align: center; padding: 5px 10px; line-height: 1.4; }
.brand { color: #fff; padding: 28px 16px; text-align: center; }
.brand h1 { font-size: 28px; }
.brand p { margin-top: 6px; opacity: .85; font-size: 14px; }
.nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; background: #fff; border-bottom: 1px solid #e2e2e2; padding: 10px 16px; }
.nav a { text-decoration: none; color: #333; font-size: 14px; padding: 6px 14px; border-radius: 16px; background: #f1f1f1; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 24px 16px 40px; overflow-x: hidden; }
.section-title { font-size: 20px; margin: 28px 0 14px; padding-left: 10px; border-left: 4px solid #999; }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f3f3f3; }
.img-wrap { position: relative; }
.platform-badge { position: absolute; top: 6px; left: 6px; z-index: 2; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 10px; }
.card.hd-hidden { display: none; }
.hd-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hd-filter-btn { border: none; background: #eee; color: #333; padding: 7px 16px; border-radius: 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.hd-filter-btn.active { color: #fff; }
.card .info { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; overflow: hidden; }
.card .title { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.card .price-row { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin-top: auto; overflow: hidden; }
.card .price { font-size: 18px; font-weight: 700; white-space: normal; word-break: break-word; }
.discount-badge { background: #e53e3e; color: #fff; font-size: 13px; font-weight: 700; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.rating { font-size: 12px; color: #777; }
.badges { display: flex; gap: 4px; flex-wrap: wrap; }
.badge { font-size: 11px; padding: 2px 6px; border-radius: 4px; color: #fff; }
.badge.rocket { background: #d6e6ff; color: #1a73e8; }
.badge.free { background: #2f855a; }
.badge.coupon { background: #fde2e2; color: #c53030; }
.featured { border-width: 2px; }
.notice { margin-top: 36px; padding: 16px; background: #f1f1f1; border-radius: 8px; font-size: 13px; color: #555; line-height: 1.7; }

/* 오늘의 날씨 / 띠별 운세 / 행운의 번호 - 각각 독립 위젯, 높이를 최소로 */
.daily-widget { background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.widget-weather-box { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.widget-weather-icon { font-size: 20px; }
.zodiac-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zodiac-title { font-size: 12px; font-weight: 600; color: #666; white-space: nowrap; }
.zodiac-list { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; flex: 1; min-width: 0; }
.zodiac-btn { background: #f7f7f7; border: 1px solid #e2e2e2; border-radius: 6px; padding: 6px 0; font-size: 18px; line-height: 1; cursor: pointer; min-width: 0; }
.zodiac-btn:hover { background: #eee; }
.zodiac-btn.active { background: #2b6cb0; border-color: #2b6cb0; }
.zodiac-result { display: none; margin-top: 4px; padding: 4px 10px; background: #f7fafc; border-radius: 6px; font-size: 12px; line-height: 1.3; overflow: hidden; }
.zodiac-fortune-text { display: block; word-break: break-word; }
@media (max-width: 600px) {
  .zodiac-result { font-size: 13px; line-height: 1.4; padding: 6px 12px; margin-top: 6px; }
}
.zodiac-result.show { display: block; }
.widget-lucky { font-size: 14px; font-weight: 600; }
.widget-lucky b { color: #c53030; margin-left: 4px; }
.widget-notice { background: #fff3cd; border: 1px solid #ffe58f; border-radius: 6px; padding: 6px 0; overflow: hidden; white-space: nowrap; margin-bottom: 10px; }
.notice-track { display: inline-block; padding-left: 100%; font-weight: 700; font-size: 14px; color: #b45309; animation: notice-scroll 14s linear infinite; }
@keyframes notice-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 600px) {
  .daily-widget { padding: 8px 12px; margin-bottom: 8px; }
  .zodiac-header { flex-direction: column; align-items: stretch; width: 100%; }
  .zodiac-title { margin-bottom: 4px; }
  .zodiac-list { grid-template-columns: repeat(6, 1fr); width: 100%; gap: 3px; }
  .zodiac-btn { font-size: 16px; padding: 5px 0; min-width: 0; }
}
.footer { text-align: center; padding: 12px 16px; font-size: 12px; color: #888; background: #eeeeee; }
.footer p { margin-top: 6px; }
.footer .biz-info { line-height: 1.7; }
.prepare { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.prepare h1 { font-size: 32px; }
.prepare p { color: #666; }
.brand-hero { padding: 64px 16px; }
.brand-hero h1 { font-size: 36px; }
.hero-tag { display: inline-block; margin-top: 14px; padding: 6px 16px; border: 1px solid rgba(255,255,255,.6); border-radius: 20px; font-size: 13px; }
.brand-minimal { background: #fff; }
.brand-minimal p { color: #666; }
.brand-image { position: relative; width: 100%; max-width: 100%; overflow: hidden; line-height: 0; padding: 0; }
.brand-image img { display: block; width: 100%; height: auto; }
.brand-image-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,.65); padding: 16px 16px; line-height: normal; }
.brand-image-overlay h1, .brand-image-overlay p { margin: 0; }
@media (min-width: 601px) {
  .brand-image { max-width: 1048px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .brand-image-overlay { padding: 8px 12px; }
}
.brand-image h1 { font-size: 34px; }
.brand-split { text-align: left; }
.brand-split .split-inner { max-width: 1080px; margin: 0 auto; padding: 0 16px; border-left: 5px solid rgba(255,255,255,.7); }
.badge-pill { display: inline-block; background: rgba(255,255,255,.22); border-radius: 14px; padding: 4px 14px; font-size: 12px; letter-spacing: 2px; margin-bottom: 10px; }
.brand-wave { border-radius: 0 0 50% 50% / 0 0 26px 26px; padding-bottom: 40px; }
.boxed-inner { display: inline-block; border: 2px solid rgba(255,255,255,.75); padding: 14px 36px; }

/* 프로필형 배너: 배경 사진 + 원형 프로필 사진이 겹치고, 타이틀/부제는 배너 아래 */
.brand-profile-wrap { background: #fff; color: #222; padding: 0; text-align: left; }
.brand-profile-banner { position: relative; height: 200px; background-size: cover; background-position: center; }
.brand-profile-avatar { position: absolute; left: 20px; bottom: -32px; width: 84px; height: 84px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.25); background: #fff; }
.brand-profile-info { padding: 44px 20px 16px; }
.brand-profile-info h1 { font-size: 22px; }
.brand-profile-info p { margin-top: 4px; color: #666; font-size: 14px; }
@media (max-width: 600px) {
  .brand-profile-banner { height: 140px; }
  .brand-profile-avatar { width: 64px; height: 64px; bottom: -24px; }
  .brand-profile-info { padding: 34px 14px 14px; }
  .brand-profile-info h1 { font-size: 19px; }
  .zodiac-header { flex-direction: column; align-items: stretch; width: 100%; }
  .zodiac-title { margin-bottom: 4px; }
  .zodiac-list { grid-template-columns: repeat(12, 1fr); width: 100%; gap: 2px; }
  .zodiac-btn { font-size: 15px; padding: 4px 0; }
}

/* 핫딜형 사이트 (site_template='hotdeal') - 왼쪽 날짜 사이드바 + 날짜별 상품 그리드 */
.hotdeal-header { text-align: center; padding: 36px 16px 26px; color: #fff; }
.hotdeal-header h1 { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin: 0; }
.hd-tagline { font-size: 18px; margin-top: 8px; opacity: .9; letter-spacing: 1px; font-style: italic; }
.hd-layout { display: flex; align-items: flex-start; max-width: 1200px; margin: 0 auto; gap: 24px; padding: 20px 16px 60px; }
@media (min-width: 601px) {
  .hd-header-image { max-width: 1200px !important; }
}
.hd-sidebar { flex: 0 0 150px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 16px; border-right: 1px solid #eee; padding-right: 14px; max-height: 80vh; overflow-y: auto; }
.hd-sidebar-title { font-weight: 700; font-size: 13px; color: #999; margin-bottom: 6px; }
.hd-date-btn { display: block; padding: 10px 8px; border-radius: 8px; background: #f3f3f3; color: #333; text-decoration: none; font-size: 14px; text-align: center; }
.hd-date-btn.active { color: #fff; font-weight: 700; }
.hd-content { flex: 1; min-width: 0; }
.hd-date-title { font-size: 20px; margin: 0 0 16px; padding-left: 4px; }
.hd-empty { color: #999; padding: 40px 0; text-align: center; }
@media (max-width: 600px) {
  .hotdeal-header h1 { font-size: 28px; }
  .hd-tagline { font-size: 15px; }
  .hd-layout { flex-direction: column; padding: 14px 10px 40px; gap: 12px; }
  .hd-sidebar { flex-direction: row; overflow-x: auto; overflow-y: visible; position: static; max-height: none; border-right: none; border-bottom: 1px solid #eee; padding-right: 0; padding-bottom: 10px; width: 100%; }
  .hd-sidebar-title { display: none; }
  .hd-date-btn { flex: 0 0 auto; white-space: nowrap; }
}

@media (max-width: 600px) {
  .wrap { padding: 14px 10px 30px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .card { min-width: 0; }
  .card .info { padding: 8px 8px 10px; gap: 4px; }
  .card .title { font-size: 11px; }
  .card .price { font-size: 15px; }
  .discount-badge { font-size: 11px; }
  .rating { font-size: 10px; }
  .badge { font-size: 10px; padding: 1px 4px; }
  .brand h1 { font-size: 24px; }
  .brand-hero { padding: 44px 12px; }
  .section-title { font-size: 17px; margin: 20px 0 10px; }
  .nav { gap: 6px; padding: 8px 10px; }
  .nav a { font-size: 13px; padding: 5px 11px; }
}
