/* ==========================================================
   common_nutrition.css
   영양 계산기 공통 스타일  /  prefix: nc-
   원본 수치 기준: chipotle app.css
   ========================================================== */

:root {
  --nc-font-title  : 'Trade Gothic LT', 'Helvetica Neue', Arial, sans-serif;
  --nc-font-body   : 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  --nc-brown       : #451400;
  --nc-brown-light : #887168;
  --nc-brown-sub   : #756456;
  --nc-brown-line  : #d4cbc7;
  --nc-bg-banner   : #f2f2f2;
  --nc-transition  : 0.15s ease;
}

/* ==========================================================
   배너 영역
   banner-container : background-color:#f2f2f2; border-bottom:1px solid #d4cbc7
   ========================================================== */
.nc-banner-wrap {
  position: relative;
  width: 100%;
  background-color: var(--nc-bg-banner);
  box-shadow: 0 1px 0 0 var(--nc-brown-line);
}

/* primary-banner-container (desktop ≥768px)
   position:relative; display:flex; justify-content:space-between;
   align-items:center; padding:30px;
   min-height:250px; width:100%; max-width:1000px; margin:0 auto; color:#451400 */
.nc-primary-banner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: 30px;
  min-height: 198px;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  color: var(--nc-brown);
}

/* background-hero-image : display:none (desktop에서 숨김) */
.nc-banner__bg {
  display: none;
}

/* nutrition-copy (desktop)
   display:flex; flex-direction:column; align-items:flex-start;
   position:relative; z-index:1; width:420px */
.nc-banner__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 420px;
}

/* .calculate (desktop) : font-size:18px; padding-top:0;
   font-weight:700; letter-spacing:2px; color:#756456 */
.nc-banner__calculate {
  font-family: var(--nc-font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--nc-brown-sub);
  padding-top: 0;
  margin: 0 0 5px 0;
}

/* .nutrition (desktop) : font-size:77px;
   font-family:Trade Gothic LT; font-weight:700; text-transform:uppercase */
.nc-banner__nutrition {
  font-family: var(--nc-font-title);
  font-size: 77px;
  font-weight: 700;
  color: var(--nc-brown);
  text-transform: uppercase;
  line-height: 1em;
}

/* .description : display:flex; justify-content:center → desktop align-items:flex-start */
.nc-banner__desc {
  display: flex;
}

/* .description .text (desktop) : font-size:16px; text-align:unset; width:415px */
.nc-banner__desc-text {
  font-size: 16px;
  line-height: 1.33;
  color: var(--nc-brown);
  width: 415px;
  word-break: keep-all;
}

/* .allergen-statement (desktop) : font-size:14px;
   font-weight:700; text-decoration:underline; cursor:pointer; display:flex */
.nc-banner__allergen {
  font-family: var(--nc-font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  color: var(--nc-brown);
  cursor: pointer;
  display: flex;
  margin-top: 15px;
}
.nc-banner__allergen:hover { color: var(--nc-brown); }

/* ==========================================================
   영양 수치 (metrics-summary-container)
   desktop: position:relative; display:block; margin-left:20px
   ::after 구분선: position:absolute; top:-20px; left:0;
                   height:155px; width:1px; background-color:#d4cbc7
   ========================================================== */
.nc-metrics-wrap {
  position: relative;
  display: block;
  margin-left: 20px;
}

/* 구분선 */
.nc-metrics-wrap::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  display: block;
  height: 155px;
  width: 1px;
  background-color: var(--nc-brown-line);
}

/* metrics-summary-container : width:420px; display:flex; padding-top:26px */
.nc-metrics {
  width: 420px;
  display: flex;
  padding-top: 26px;
}

/* .metrics : display:flex; justify-content:center; flex:1; padding-left:40px */
.nc-metrics__inner {
  display: flex;
  justify-content: center;
  flex: 1;
  padding-left: 40px;
}

/* .calories : font-size:56px; font-family:Trade Gothic LT Bold; font-weight:700 */
.nc-metrics__calories {
  font-family: var(--nc-font-title);
  font-weight: 700;
  font-size: 56px;
  color: var(--nc-brown);
  line-height: 1;
  display: flex;
  align-items: baseline;
}

/* .calories .label : font-size:18px (원본 스크린샷 기준 — "cal" 작게) */
.nc-metrics__cal-label {
  font-family: var(--nc-font-body);
  font-weight: 700;
  font-size: 18px;
  margin-left: 4px;
  color: var(--nc-brown);
}

/* .fat-protein-carbs-container : display:flex; justify-content:flex-start;
   width:200px; margin-left:30px
   각 항목은 flex-direction:column (값 위, 라벨 아래) */
.nc-metrics__macros {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 250px;
  margin-left: 30px;
}

/* fat / protein / carbs 각각 세로 배치 */
.nc-metrics__fat,
.nc-metrics__protein,
.nc-metrics__carbs {
  display: flex;
  flex-direction: column;
}

/* .metric : font-size:26px; font-family:Nunito; font-weight:700 */
.nc-metrics__macro-val {
  font-family: var(--nc-font-body);
  font-weight: 700;
  font-size: 26px;
  color: var(--nc-brown);
  line-height: 1.1;
}

/* .label : font-size:18px */
.nc-metrics__macro-label {
  font-size: 18px;
  color: var(--nc-brown);
}

/* .protein : margin-left:40px  /  .carbs : margin-left:20px */
.nc-metrics__protein { margin-left: 40px; }
.nc-metrics__carbs   { margin-left: 20px; }

/* ==========================================================
   메뉴 선택 (cmg-entree-selector-container)
   desktop: display:flex; justify-content:space-between; align-items:center;
            width:100%; max-width:1000px; margin:0 auto; padding:0 0 60px 30px
   ========================================================== */
.nc-loading-wrap {
  width: 100%;
}

.nc-selector-wrap {
  width: 100%;
}

.nc-selector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 0 60px 30px;
}

/* .entree-selector : min-width:215px */
.nc-selector__list {
  min-width: 215px;
}

/* .select-your-meal (desktop) :
   font-family:Nunito; font-size:18px; font-weight:700;
   letter-spacing:2.14px; color:#451400; margin:91px 0 40px 0 */
.nc-selector__heading {
  font-family: var(--nc-font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2.14px;
  color: var(--nc-brown);
  margin: 91px 0 40px 0;
  text-transform: uppercase;
}

/* .top-level-menu .content (desktop) : padding-bottom:14px */
.nc-selector__item-inner {
  padding-bottom: 14px;
  cursor: pointer;
}

.nc-selector__row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

/* .column1 (desktop) : display:none — 썸네일 숨김 */
.nc-selector__col1 {
  display: none;
}

/* .column2 (desktop) : padding:0 */
.nc-selector__col2 {
  display: flex;
  flex-direction: column;
  width: auto;
  flex: 3;
  padding: 0;
}

.nc-selector__thumb img {
  width: 80px;
}

/* .display-name (desktop) :
   font-size:30px; color:#887168;
   font-family:Trade Gothic LT; font-weight:700; text-transform:uppercase */
.nc-selector__name {
  font-family: var(--nc-font-title);
  font-size: 30px;
  font-weight: 700;
  color: var(--nc-brown-light);
  text-transform: uppercase;
  cursor: pointer;
}
.nc-selector__name:hover {
  color: var(--nc-brown);
  text-decoration: underline;
}
.nc-selector__item.is-active .nc-selector__name {
  color: var(--nc-brown);
  text-decoration: underline;
}

/* .menu-item-image-container (desktop) :
   display:block; margin-top:126px; width:660px */
.nc-selector__preview-wrap {
  display: block;
  margin-top: 126px;
  width: 660px;
}

/* .default-menu-item-image : margin-left:35px */
.nc-selector__preview-default {
  margin-left: 35px;
}

/* img : width:500px */
.nc-selector__preview-img {
  width: 500px;
  height: auto;
  display: block;
}

/* ==========================================================
   재료 배너 (cmg-ingredients-banner-container)
   desktop: position:relative; height:640px
   .ingredients: justify-content:center; max-width:1400px;
                 background-position:50%; background-size:cover;
                 position:absolute; bottom:14px
   ========================================================== */
.nc-ingr-wrap {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 -1px 0 0 var(--nc-brown-line);
}

.nc-ingr-banner {
  position: relative;
  height: 640px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* 배경 이미지 */
.nc-ingr-banner__bg {
  display: flex;
  flex-direction: column;
  padding-top: 30px;
  height: 100%;
  width: 100%;
  position: absolute;
  bottom: 14px;
  max-width: 1400px;
  background-image: url('/assets/images/custom/commonimg/web-desktop.png');
  background-position: 50%;
  background-size: cover;
  background-repeat: no-repeat;
  justify-content: center;
}

/* 가운데 텍스트 블록 */
.nc-ingr-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
}

/* .ingredients-count (desktop) :
   font-size:134px; font-family:Trade Gothic LT Bold; font-weight:700;
   line-height:1.05; letter-spacing:-3.42px; color:#451400 */
.nc-ingr-banner__count {
  font-family: var(--nc-font-title);
  font-weight: 700;
  font-size: 134px;
  line-height: 1.05;
  letter-spacing: -3.42px;
  text-align: center;
  color: var(--nc-brown);
}

/* .ingredients-text (desktop) :
   font-size:67px; font-family:Trade Gothic LT Bold; font-weight:700;
   line-height:1.09; color:#451400 */
.nc-ingr-banner__label {
  font-family: var(--nc-font-title);
  font-size: 67px;
  font-weight: 700;
  line-height: 1.09;
  text-align: center;
  color: var(--nc-brown);
}

/* .description-container (desktop) :
   display:flex; justify-content:center; align-items:center;
   font-size:18px; font-weight:600; color:#451400; margin-top:10px */
.nc-ingr-banner__desc {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--nc-brown);
  margin-top: 10px;
}

.nc-ingr-banner__desc-text {
  color: var(--nc-brown);
}

/* .for-real-image (desktop) : width:142px; margin-left:12px */
.nc-ingr-banner__for-real {
  width: 142px;
  margin-left: 12px;
}

/* .view-all-btn-container : display:flex; justify-content:center; margin-top:31px */
.nc-ingr-banner__btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 31px;
}

/* ==========================================================
   버튼 (원본: .button.btn.size-md.has-border.type-custom.border-color-gold.bg-white)
   width:158px; height:36px
   ========================================================== */
.nc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 158px;
  height: 36px;
  font-family: var(--nc-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--nc-transition), color var(--nc-transition);
}
.nc-btn--outline { border: 1px solid #a76721; }
.nc-btn--white   { background: #fff; color: #a76721; }
.nc-btn--outline.nc-btn--white:hover {
  background: #a76721;
  color: #fff;
}

/* ==========================================================
   반응형 (mobile < 768px)
   ========================================================== */
@media (max-width: 767px) {

  /* primary-banner: display:block (세로 쌓기) */
  .nc-primary-banner {
    display: flex;            /* block → flex */
    flex-direction: column;   /* ← 추가 */
    align-items: center;      /* ← 추가: 자식(텍스트 블록)을 가로 중앙으로 */
    padding: 30px 20px;
    min-height: auto;
  }

  /* background-hero-image: 모바일에서 표시 */
  .nc-banner__bg {
    display: block;
    background-image: url('/assets/images/custom/commonimg/web-mobile-top.png');
    background-position: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 253px;
    width: 100%;
    position: absolute;
    top: 0;

  }

  /* nutrition-copy: 모바일 — 중앙정렬 */
  .nc-banner__copy {
    position: relative;
    z-index: 1;
    width: 100%;
    align-items: center;
  }

  .nc-banner__calculate {
    font-size: 16px;
    text-align: center;
    padding-top: 40px;
  }

  .nc-banner__nutrition {
    font-size: 48px;
    text-align: center;
  }

  .nc-banner__desc { justify-content: center; }

  .nc-banner__desc-text {
    font-size: 15px;
    width: 300px;
    text-align: center;
  }

  .nc-banner__allergen {
    justify-content: center;
  }

  /* metrics: 모바일에서 숨김 */
  .nc-metrics-wrap { display: none; }

  /* 메뉴 선택: 모바일 레이아웃 */
  .nc-selector {
    flex-direction: column;
    padding: 0 0 30px 0;
  }

  .nc-selector__list {
    width: 100%;
  }

  .nc-selector__heading {
    font-size: 15px;
    margin: 40px 0 30px 8px;
  }

  /* column1 썸네일 모바일에서 표시 */
  .nc-selector__col1 {
    display: flex;
    flex-direction: column;
    width: auto;
    flex: 1;
  }

  .nc-selector__col2 {
    padding-left: 20px;
    padding-bottom: 8px;
  }

  .nc-selector__name {
    font-size: 25.5px;
    color: var(--nc-brown);
  }

  /* 이미지 영역 모바일에서 숨김 */
  .nc-selector__preview-wrap { display: none; }

  /* 재료 배너 모바일 */
  .nc-ingr-banner        { height: 385px; }
  .nc-ingr-banner__bg {
    background-image: url('/assets/images/custom/commonimg/web-mobile_ingredient.png');
    background-size: 100% auto;        /* ← 추가: 너비에 맞추고 높이는 비율 유지 */
    background-position: bottom center; /* ← 추가: 하단에 깔림 */
  }
  .nc-ingr-banner__count { font-size: 100px; }
  .nc-ingr-banner__label { font-size: 50px; }
  .nc-ingr-banner__desc  { font-size: 15px; }
  .nc-ingr-banner__for-real { width: 110px; }
}

/* ==========================================================
   메뉴 hover 이미지 전환
   ========================================================== */

/* 기본: 모든 preview 이미지 숨김 */
.nc-selector__preview-img {
  display: none;
  width: 500px;
  height: auto;
}

/* 활성 이미지만 표시 */
.nc-preview-img--active {
  display: block;
}