/* ─────────────────────────────────────────────────────────────────
   풍찬 home.css — design.pen ▸ home-screen / banner-board 충실 재현
   - 토큰은 style.css :root 에 정의
   - 모든 아이콘·로고는 design.pen 추출 PNG (img tag)
   ─────────────────────────────────────────────────────────────── */

/* common eyebrow (gold dash + small caps text) — Hero·섹션·배너 공통 */
.pc-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pc-eyebrow__dash{
  width: 24px; height: 1px;
  background: var(--pc-gold-deep);
  display: block;
}
.pc-eyebrow__text{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--pc-gold-deep);
  text-transform: uppercase;
}

/* ───────── ① Hero 5슬라이드 carousel ─────────
   design.pen ▸ section-1-slider (QjOw4) — 5슬라이드 (정적·봇 인터리브).
   각 슬라이드 = pc-banner 마크업 (좌 overlay + 우 picto/product card) + bg color + faded bg-image(opacity 0.22).
   ───────────────────────────────────────────── */
.pc-hero{
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--pc-white);
}
.pc-hero__viewport{
  position: relative;
  height: 420px;
}
.pc-hero__slides{
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 480ms cubic-bezier(.4,.0,.2,1);
}
.pc-hero__slide{
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.pc-hero__slide > .pc-banner{
  height: 100%;
  width: 100%;
  border-radius: 0; /* hero 안에서는 모서리 둥글기 제거 */
}

/* 좌우 nav 버튼 — design.pen 좌우 비대칭 폐기, 흰 BG + 보르도 border 통일 */
.pc-hero__nav{
  position: absolute;
  top: 188px;
  width: 44px; height: 44px;
  border-radius: var(--pc-r-pill);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--pc-primary);
  box-shadow: 0 2px 8px rgba(42,36,33,0.08);
  transition: background 160ms;
}
.pc-hero__nav:hover{ background: var(--pc-cream); }
.pc-hero__nav--prev{ left: 24px; }
.pc-hero__nav--next{ right: 24px; }
.pc-hero__nav img{ width: 20px !important; height: 20px !important; }

.pc-hero__dots{
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.pc-hero__dot{
  width: 8px; height: 8px;
  border-radius: var(--pc-r-pill);
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--pc-border);
  cursor: pointer;
  transition: width 200ms;
  padding: 0;
}
.pc-hero__dot.is-on{
  width: 22px;
  background: var(--pc-primary);
}

.pc-hero__count{
  position: absolute;
  bottom: 26px;
  right: 24px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-r-pill);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--pc-text-sub);
  z-index: 2;
}

/* ───────── 공통 섹션 wrap ───────── */
.pc-sec{
  padding: 64px 0;
}
.pc-sec--white{ background: var(--pc-white); }
.pc-sec--cream{ background: var(--pc-cream); }
.pc-sec__inner{
  max-width: var(--pc-container);
  margin: 0 auto;
  padding: 0 var(--pc-side-pad);
  box-sizing: content-box;
}
@media (max-width: 1400px){
  .pc-sec__inner{ padding: 0 24px; max-width: 100%; }
}
.pc-sec__head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.pc-sec__title{ display: flex; flex-direction: column; gap: 8px; }
.pc-sec__h2{
  font-family: var(--pc-font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--pc-text);
  margin: 0;
  line-height: 1.3;
}
.pc-sec__more{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pc-primary);
  white-space: nowrap;
}
.pc-sec__more img{ width: 14px !important; height: 14px !important; }

/* ───────── 상품 카드 그리드 (4×2) ───────── */
.pc-grid{
  display: grid;
  gap: 20px;
}
.pc-grid--4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .pc-grid--4{ grid-template-columns: repeat(2, 1fr); gap: 16px; } }

.pc-card{
  display: block;
  background: var(--pc-white);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-r-card);
  overflow: hidden;
  color: var(--pc-text);
  transition: box-shadow 200ms, transform 200ms;
}
.pc-card:hover{ box-shadow: 0 6px 20px rgba(42,36,33,0.08); transform: translateY(-2px); }
.pc-card__thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--pc-white);
}
/* 카드 이미지 — letterbox 흰 공백 방지: absolute inset 0 으로 강제 fill */
.pc-card__thumb img{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.pc-card__badge{
  position: absolute;
  top: 10px; left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--pc-r-btn);
  background: var(--pc-primary);
  color: var(--pc-white);
  letter-spacing: 0.5px;
}
.pc-card__badge--hit{ background: var(--pc-primary); }
.pc-card__badge--new{ background: var(--pc-leaf); }
.pc-card__body{ padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.pc-card__name{
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--pc-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.pc-card__origin{ font-size: 11px; color: var(--pc-text-muted); }
.pc-card__price{ display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pc-card__regular{
  font-size: 12px;
  color: var(--pc-text-muted);
  text-decoration: line-through;
}
.pc-card__current{
  font-size: 17px;
  font-weight: 700;
  color: var(--pc-primary);
}
.pc-card__won{ font-size: 12px; font-weight: 500; margin-left: 1px; }
.pc-card__off{
  font-size: 12px;
  font-weight: 700;
  color: var(--pc-primary);
  background: rgba(139,46,42,0.08);
  padding: 2px 6px;
  border-radius: var(--pc-r-btn);
}

/* ───────── ④ 카테고리 모아보기 4 카드 ───────── */
.pc-cc-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px){ .pc-cc-grid{ grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.pc-cc{
  display: flex;
  flex-direction: column;
  background: var(--pc-white);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-r-card);
  overflow: hidden;
  color: var(--pc-text);
  transition: box-shadow 200ms, transform 200ms;
}
.pc-cc:hover{ box-shadow: 0 6px 20px rgba(42,36,33,0.08); transform: translateY(-2px); }
.pc-cc__hd{
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-cc__icon{ width: 52px !important; height: 52px !important; opacity: 0.88; object-fit: contain; }
.pc-cc__body{ padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.pc-cc__title{
  font-family: var(--pc-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--pc-text);
}
.pc-cc__sub{
  font-size: 12px;
  line-height: 1.6;
  color: var(--pc-text-muted);
}
.pc-cc__go{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pc-gold-deep);
}
.pc-cc__go img{ width: 12px !important; height: 12px !important; }

/* ───────── ⑤ MD carousel — transform 기반 무한 롤링 (4카드 정확 시야) ───────── */
.pc-carousel{
  position: relative;
  overflow: hidden;
}
.pc-carousel__track{
  display: flex;
  gap: 18px;
  transition: transform 480ms cubic-bezier(.4,0,.2,1);
  will-change: transform;
  padding-bottom: 8px;
}
.pc-carousel__track.is-jumping{ transition: none !important; }
/* 카드 width 정확히 (viewport - gap*3) / 4 = 4 카드 시야 */
.pc-carousel__track > .pc-card{
  flex: 0 0 calc((100% - 54px) / 4);
}
@media (max-width: 900px){
  .pc-carousel__track > .pc-card{ flex-basis: calc((100% - 18px) / 2); }
}
.pc-carousel__ctrl{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.pc-carousel__nav{
  width: 42px; height: 42px;
  border-radius: var(--pc-r-pill);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: var(--pc-white);
  border: 1px solid var(--pc-primary);
  box-shadow: 0 2px 8px rgba(42,36,33,0.08);
  transition: background 160ms;
}
.pc-carousel__nav:hover{ background: var(--pc-cream); }
.pc-carousel__nav img{ width: 20px !important; height: 20px !important; }
.pc-carousel__dots{ display: flex; gap: 6px; align-items: center; }
.pc-carousel__dot{
  width: 7px; height: 7px;
  border-radius: var(--pc-r-pill);
  background: var(--pc-border);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.pc-carousel__dot.is-on{ width: 18px; background: var(--pc-primary); }

/* ───────── ⑥ 풍찬 노트 ───────── */
.pc-note{
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--pc-cream);
}
/* 풍찬 노트 사진 — docs/images/generated-1779940922585.png (한식상·산지 분위기) */
.pc-note__img{
  background-image:
    linear-gradient(135deg, rgba(139,46,42,0.18) 0%, rgba(107,142,90,0.10) 50%, rgba(199,160,106,0.20) 100%),
    url('../img/hero/note-bg-farm.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  min-height: 440px;
  position: relative;
}
.pc-note__img::after{
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/icons/hero-wheat.png') no-repeat 90% 90% / 140px 140px;
  opacity: 0.30;
  pointer-events: none;
}
.pc-note__text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 64px 96px 64px 80px;
}
.pc-note__h{
  font-family: var(--pc-font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pc-text);
  margin: 0;
  white-space: pre-line;
}
.pc-note__p1{
  font-size: 14px;
  line-height: 1.8;
  color: var(--pc-text-sub);
  margin: 0;
}
.pc-note__p2{
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--pc-text);
  margin: 0;
}
@media (max-width: 900px){
  .pc-note{ grid-template-columns: 1fr; }
  .pc-note__img{ min-height: 240px; }
  .pc-note__text{ padding: 40px 24px; }
  .pc-note__h{ font-size: 26px; }
}

/* ───────── ⑦ 후기 8개 ───────── */
.pc-reviews{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1100px){ .pc-reviews{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px){ .pc-reviews{ grid-template-columns: 1fr; } }
.pc-review{
  background: var(--pc-white);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-r-card);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--pc-text);
  text-decoration: none;
  transition: box-shadow 200ms, transform 200ms, border-color 200ms;
}
.pc-review--link:hover{
  box-shadow: 0 6px 20px rgba(42,36,33,0.08);
  transform: translateY(-2px);
  border-color: var(--pc-primary);
}
.pc-review__stars{
  font-size: 14px;
  line-height: 1;
}
.pc-review__stars-on{ color: var(--pc-primary); letter-spacing: 1px; }
.pc-review__stars-off{ color: var(--pc-border); letter-spacing: 1px; }
.pc-review__content{
  font-size: 13px;
  line-height: 1.6;
  color: var(--pc-text-sub);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-review__meta{
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--pc-line);
}
.pc-review__author{ font-size: 12px; font-weight: 600; color: var(--pc-text); }
.pc-review__product{ font-size: 11px; color: var(--pc-text-muted); }

/* ───────── 슬라이드 본체 (pc-banner) — hero carousel 안에서 사용 ─────────
   design.pen ▸ banner-board (M27eb) 사양:
   · 옅은 단색 + faded bg-image(opacity 0.22) 합성
   · 좌 overlay (eyebrow 11px gold → h1 52px serif → sub 15px → CTA 보르도)
   · 우 picto(static) 또는 product card(bot)
   ─────────────────────────────────────────────────────── */
/* 배너 — BG 풀폭 / 내용 1200 center. pc-banner 가 풀폭 컨테이너, 내부에 1200 wrap 으로 카피·상품카드 배치 */
.pc-banner{
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 0;
  overflow: hidden;
}
.pc-banner__bgimg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}
.pc-banner__inner{
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 1;
}
.pc-banner__overlay{
  position: relative;
  z-index: 1;
  margin-left: 0;
  width: 520px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pc-banner__h1{
  font-family: var(--pc-font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pc-text);
  margin: 0;
}
.pc-banner__sub{
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--pc-text-sub);
  margin: 0;
}
/* CTA contrast 트랩 (feedback-button-cta-contrast-trap):
   body.pc-site a { color: inherit } 룰이 specificity (0,0,2,1) 라
   .pc-banner__cta 단독 color 가 덮임 → body.pc-site selector 로 specificity 강제 + !important. */
.pc-banner__cta,
body.pc-site .pc-banner__cta,
body.pc-site .pc-banner__cta *{
  color: var(--pc-white) !important;
}
.pc-banner__cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pc-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--pc-r-btn);
  align-self: flex-start;
  margin-top: 6px;
  text-decoration: none;
}
.pc-banner__cta:hover{ background: var(--pc-primary-deep); }
.pc-banner__cta img{ width: 14px !important; height: 14px !important; }

.pc-banner__picto{
  position: absolute;
  right: 0;
  top: 100px;
  width: 220px;
  height: 220px;
  pointer-events: none;
  z-index: 1;
}
.pc-banner__picto img{ width: 220px !important; height: 220px !important; object-fit: contain; }

/* 봇 배너 우측 — 2 카드 가로 grid (사용자 2026-05-28 재요청: 4카드 너무 작음 → 2카드) */
.pc-banner__products{
  position: absolute;
  right: 0;
  top: 30px;
  bottom: 30px;
  width: 440px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  z-index: 1;
}
.pc-banner__product{
  background: var(--pc-white);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--pc-text);
  transition: transform 200ms, box-shadow 200ms;
  text-decoration: none;
}
.pc-banner__product:hover{ transform: translateY(-2px); box-shadow: 0 10px 30px rgba(42,36,33,0.12); }
.pc-banner__product-thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--pc-white);
  overflow: hidden;
}
.pc-banner__product-thumb img{
  position: absolute; inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.pc-banner__product-badge{
  position: absolute;
  top: 10px; left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--pc-r-btn);
  background: var(--pc-primary);
  color: var(--pc-white);
}
.pc-banner__product-body{
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.pc-banner__product-name{
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--pc-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.pc-banner__product-price{
  font-size: 12px;
  color: var(--pc-text-muted);
  margin-top: auto;
}
.pc-banner__product-price strong{
  font-size: 16px;
  color: var(--pc-primary);
  font-weight: 700;
}

@media (max-width: 900px){
  /* 캐러셀 고정 420px → auto: bot 배너 상품이 잘리던 문제 해소.
     슬라이드를 flex 로 만들어 배너가 슬라이드(=가장 큰 슬라이드) 높이를 채우고,
     배너 안 콘텐츠를 수직 중앙정렬 → 내용 적은 static 배너의 하단 빈 공간을 균형 처리. */
  .pc-hero__viewport{ height: auto; }
  .pc-hero__slides{ align-items: stretch; }
  .pc-hero__slide{ height: auto; display: flex; }
  .pc-hero__slide > .pc-banner{ height: auto; flex: 1; display: flex; align-items: center; min-width: 0; }
  /* 좌우 롤링 화살표 — 모바일에선 보기 버튼 가려서 숨김 */
  .pc-hero__nav{ display: none !important; }

  .pc-banner{ min-height: 0; padding: 26px 0; }
  .pc-banner__inner{ display: flex; flex-direction: column; width: 100%; }
  .pc-banner__overlay{ margin-left: 0; width: 100%; }
  .pc-banner__h1{ font-size: 25px; }
  .pc-banner__picto{ right: 16px; top: 50%; transform: translateY(-50%); width: 92px; height: 92px; }
  /* 봇 배너 상품 — 오버레이 아래 정적 2열 (컴팩트: 공통 슬라이드 높이 축소) */
  .pc-banner__products{
    display: grid !important;
    position: static;
    width: 100%;
    margin-top: 16px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .pc-banner__product-thumb{ aspect-ratio: 4 / 3; }
  .pc-banner__product-body{ padding: 9px 10px 11px; gap: 3px; }
  .pc-banner__product-name{ font-size: 12px; min-height: 0; -webkit-line-clamp: 1; }
  .pc-banner__product-price strong{ font-size: 14px; }
}
/* 좁은 데스크탑/태블릿 — overlay 폭 줄이고 product 폭 조정 */
@media (max-width: 1240px) and (min-width: 901px){
  .pc-banner__overlay{ margin-left: 32px; width: 360px; }
  .pc-banner__h1{ font-size: 38px; }
  .pc-banner__products{ right: 32px; width: 380px; }
}
