@charset "utf-8";

/* dg(동성로) 테마.
   디자인 소스가 가로 700px 기준이므로 캔버스를 720px로 잡고 이미지를 100% 폭으로 맞춘다. */

:root {
  --dg-canvas: 720px;
  --dg-orange: #ff6b00;
  --dg-ink: #111;
  --dg-muted: #767676;
  --dg-line: #e6e6e6;
  --dg-sticky-height: 72px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body.landing_page_body {
  background: #f2f2f2;
  color: var(--dg-ink);
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  -webkit-text-size-adjust: 100%;
}

.landing-theme--dg {
  display: block;
  width: 100%;
  max-width: var(--dg-canvas);
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  padding-bottom: calc(var(--dg-sticky-height) + env(safe-area-inset-bottom, 0px));
}

.landing-theme--dg img {
  display: block;
  max-width: 100%;
}

/* ------------------------------------------------------------------ 히어로 */
.dg-hero { display: block; }
.dg-hero__img { width: 100%; height: auto; }

/* ------------------------------------------------------------------ 공통 섹션 */
.dg-section { position: relative; padding: 0px 0 56px; }
.dg-section__heading { padding: 0 20px 22px; }
.dg-section__heading img { width: 100%; height: auto; }
/* 좌우 여백은 바깥 래퍼가 갖는다. Swiper 컨테이너에 패딩을 주면 슬라이드가 그 위로 넘친다. */
.dg-section__body { position: relative; padding: 0 20px; }
.dg-section__image { width: 100%; height: auto; }

/* 배경 이미지를 쓰는 섹션(REAL REVIEW). 배경 위에 헤딩과 슬라이더가 얹힌다. */
.dg-section.has-background {
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.dg-section--before-after { background: #fff; }
/* 전국 지점 맵: 지도 이미지가 섹션 높이를 만들고 헤딩이 그 위에 겹친다.
   인스타 후기 섹션이 배경 위에 헤딩을 올리는 것과 같은 형태로 맞춘다. */
.dg-section--branch-map { padding: 0 0 24px; }
.dg-section--branch-map .dg-section__body { padding: 0; }

.dg-section__stack { position: relative; }
.dg-section__stack .dg-section__image { width: 100%; height: auto; }

.dg-section__heading--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 48px 20px 0;
  pointer-events: none;
}

/* ------------------------------------------------------------------ 슬라이더 */
.dg-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.dg-swiper .swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
}

.dg-swiper .swiper-slide a { display: block; width: 100%; }
.dg-swiper .swiper-slide img { width: 100%; height: auto; border-radius: 6px; }

.dg-swiper.is-single .swiper-wrapper { transform: none !important; }

.dg-swiper__pagination {
  position: static;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.dg-swiper__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--dg-ink);
  opacity: .2;
  margin: 0;
}

.dg-swiper__pagination .swiper-pagination-bullet-active {
  width: 20px;
  border-radius: 999px;
  background: var(--dg-orange);
  opacity: 1;
}

/* ------------------------------------------------------------------ 상품
   상품 썸네일은 등록하지 않는 것을 기본으로 본다.
   이미지 없이도 카드가 허전하지 않도록 선택 표시 · 상품명 · 가격의 대비로 구성한다. */
/* 위아래 섹션(히어로 사진 · 후기 텍스처 배경)에 비해 상품 영역만 비어 보이지 않도록
   따뜻한 톤의 배경을 깔고 카드가 그 위에 떠 보이게 한다. */
.dg-products {
  padding: 42px 0 52px;
  background: linear-gradient(180deg, #fbf8f6 0%, #f6f1ed 100%);
  border-top: 1px solid #f0e8e2;
  border-bottom: 1px solid #f0e8e2;
}
.dg-products__inner { padding: 0 20px; }

/* 섹션 머리말: 무엇을 하는 영역인지 알려주고 빈 여백을 채운다. */
.dg-products__header { text-align: center; margin-bottom: 28px; }
.dg-products__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--dg-orange);
}
.dg-products__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dg-ink);
}
.dg-products__guide {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--dg-muted);
  word-break: keep-all;
}
.dg-products__guide b { color: var(--dg-ink); font-weight: 700; }

/* 그룹 소제목(상품 1depth). 후기 카드의 검정 라벨 띠와 같은 모티프를 쓴다. */
.dg-products__group-title {
  margin: 30px 0 12px;
  font-size: 0;
  line-height: 0;
}
.dg-products__group-title:first-of-type { margin-top: 0; }
.dg-products__group-title span {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1c1512 0%, #000 100%);
  color: #ffb37a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.dg-products__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 카드는 흰색 + 옅은 그림자로 배경 위에 떠 있게 한다. */
.dg-product-card {
  border: 1px solid #ece5e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(60, 40, 25, .05);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.dg-product-card:hover { border-color: #dbd0c8; box-shadow: 0 2px 8px rgba(60, 40, 25, .09); }

/* 강조 상품(wr_2 입력)은 테두리를 오렌지로 살린다. */
.dg-product-card--accent { border-color: #ffd0ac; }

/* 선택 상태: 테두리·배경·체크 표시를 함께 바꿔 담긴 것이 분명히 보이게 한다. */
.dg-product-card.is-selected {
  border-color: var(--dg-orange);
  background: #fff8f3;
  box-shadow: 0 0 0 1px var(--dg-orange) inset, 0 2px 10px rgba(255, 107, 0, .16);
}

/* 카드 전체가 label이다. [체크 | 본문 | 가격] 3단. */
.dg-product-card__select {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 16px 14px;
  cursor: pointer;
}

/* 체크박스는 브라우저 기본 요소를 그대로 쓰고 크기와 색만 지정한다.
   예약 모달의 동의 체크박스(.res_agree__check)와 같은 방식이다.
   체크 표시는 브라우저가 그리므로 정렬을 직접 맞출 일이 없다. */
.dg-product-card__select input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--dg-orange);
  cursor: pointer;
}

/* 이미지를 등록한 경우에만 쓰이는 자리. */
.dg-product-card__media {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}
.dg-product-card__media img { width: 100%; height: 100%; object-fit: cover; }

.dg-product-card__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dg-product-card__badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }

.dg-product-card__badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 4px;
  background: #fff1e6;
  color: #d85a00;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.dg-product-card__badge--monthly { background: var(--dg-ink); color: #fff; }

.dg-product-card__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  word-break: keep-all;
  color: var(--dg-ink);
}

.dg-product-card__description {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--dg-muted);
  word-break: keep-all;
}

/* 가격은 오른쪽 정렬 세로 스택. 할인율 → 정가 → 판매가 순. */
.dg-product-card__price {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
  white-space: nowrap;
}
.dg-product-card__discount {
  font-size: 12px;
  font-weight: 800;
  color: var(--dg-orange);
  letter-spacing: -0.01em;
}
.dg-product-card__price del { font-size: 12px; color: #b0b0b0; }
.dg-product-card__price strong { font-size: 18px; font-weight: 800; color: var(--dg-ink); letter-spacing: -0.02em; }
.dg-product-card__price em { font-style: normal; font-size: 13px; font-weight: 700; margin-left: 1px; }

/* ------------------------------------------------------------------ 하단 이미지 콘텐츠 */
.landing_page_sections { display: block; }
.landing_page_image_section img { width: 100%; height: auto; }

/* ------------------------------------------------------------------ 하단 고정 예약 버튼 */
.reserve_sticky {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--dg-canvas);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--dg-line);
  z-index: 90;
}

.reserve_sticky button {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--dg-orange);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}
.reserve_sticky button:disabled { background: #c9c9c9; cursor: default; }

/* ------------------------------------------------------------------ 예약 모달 */
.modal_mask_new {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 6, .55);
  z-index: 100;
}

#reservation_modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 28px);
  max-width: 520px;
  max-height: 90vh;
  grid-template-rows: auto 1fr auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(20, 12, 6, .3);
  z-index: 101;
}

/* 머리말: 상단에 오렌지 라인을 둬 페이지 톤과 연결한다. */
.res_head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid #efe9e4;
}
.res_head::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dg-orange), #ffa059);
}
.res_head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }

.close_res {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background-color .15s ease;
}
.close_res:hover { background: #f5f1ee; }
.close_res::before, .close_res::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 14px;
  width: 14px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--dg-ink);
}
.close_res::before { transform: rotate(45deg); }
.close_res::after { transform: rotate(-45deg); }

.res_content {
  padding: 20px 20px 8px;
  overflow-y: auto;
  counter-reset: res-step;
  background: #fdfbfa;
}

.res_section { margin-bottom: 24px; }

/* 단계 번호(01~04)를 붙여 입력 순서를 알기 쉽게 한다. */
.res_section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dg-ink);
}
.res_section h3::before {
  counter-increment: res-step;
  content: counter(res-step, decimal-leading-zero);
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--dg-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* 선택한 상품 목록 */
.selected_product_list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #eee5df;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.selected_product_list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid #f4eeea;
}
.selected_product_list li:last-child { border-bottom: 0; }
.selected_product_list__name { font-weight: 600; word-break: keep-all; }
.selected_product_list__price { flex: 0 0 auto; font-weight: 700; white-space: nowrap; }

.selected_total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff4ec;
  border: 1px solid #ffdcc2;
}
.selected_total span { font-size: 13px; font-weight: 700; color: #8a5a2b; }
.selected_total strong { font-size: 18px; font-weight: 800; color: var(--dg-orange); letter-spacing: -0.02em; }

/* 방문 지점 선택 */
.res_branch_select {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 13px;
  border: 1px solid #eee5df;
  border-radius: 9px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%236d5c50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/16px 16px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  color: var(--dg-ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.res_branch_select:focus {
  outline: none;
  border-color: var(--dg-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .12);
}

/* 달력: jQuery UI 기본 테마를 이 랜딩 톤으로 덮어쓴다. */
#res_calendar { display: block; }
#res_calendar .ui-datepicker {
  width: 100%;
  padding: 10px 10px 6px;
  border: 1px solid #eee5df;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
}
#res_calendar .ui-datepicker-header {
  position: relative;
  padding: 4px 0 10px;
  border: 0;
  background: transparent;
}
#res_calendar .ui-datepicker-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dg-ink);
  text-align: center;
}
#res_calendar .ui-datepicker-prev,
#res_calendar .ui-datepicker-next {
  top: 2px;
  width: 28px;
  height: 28px;
  border: 1px solid #eee5df;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
#res_calendar .ui-datepicker-prev { left: 2px; }
#res_calendar .ui-datepicker-next { right: 2px; }
#res_calendar .ui-datepicker-prev-hover,
#res_calendar .ui-datepicker-next-hover {
  top: 2px;
  border-color: var(--dg-orange);
  background: #fff6f0;
}
#res_calendar .ui-datepicker-prev-hover { left: 2px; }
#res_calendar .ui-datepicker-next-hover { right: 2px; }
/* 기본 테마의 스프라이트 화살표를 CSS 화살표로 바꾼다.
   span 안에는 '이전 달'/'다음 달' 텍스트가 들어 있어 반드시 숨겨야 한다. */
#res_calendar .ui-datepicker-prev span,
#res_calendar .ui-datepicker-next span { display: none; }
#res_calendar .ui-datepicker-prev::after,
#res_calendar .ui-datepicker-next::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border: solid #4a3b30;
  border-width: 0 0 1.6px 1.6px;
}
#res_calendar .ui-datepicker-prev::after { transform: translate(-40%, -50%) rotate(45deg); }
#res_calendar .ui-datepicker-next::after { transform: translate(-60%, -50%) rotate(-135deg); }

#res_calendar .ui-datepicker-calendar { margin: 0; border-collapse: separate; border-spacing: 2px; }
#res_calendar .ui-datepicker-calendar th {
  padding: 4px 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: #9b8b7f;
}
#res_calendar .ui-datepicker-calendar th:first-child { color: #e05252; }
#res_calendar .ui-datepicker-calendar td { padding: 0; border: 0; }
#res_calendar .ui-datepicker-calendar td span,
#res_calendar .ui-datepicker-calendar td a {
  display: block;
  padding: 7px 0;
  border: 0;
  border-radius: 8px;
  background: #f7f2ee;
  color: var(--dg-ink);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
#res_calendar .ui-datepicker-calendar td a:hover { background: #ffe9d8; }
#res_calendar .ui-datepicker-calendar td.ui-datepicker-today a { box-shadow: 0 0 0 1.5px #ffc79b inset; }
#res_calendar .ui-datepicker-calendar td a.ui-state-active,
#res_calendar .ui-datepicker-calendar td.ui-datepicker-current-day a {
  background: var(--dg-orange);
  color: #fff;
  font-weight: 800;
}
/* 지난 날짜는 흐리게만 처리한다. 취소선까지 넣으면 달력 전체가 지저분해진다. */
#res_calendar .ui-datepicker-calendar td.ui-datepicker-unselectable span {
  background: #fbf9f8;
  color: #cfc5bd;
}
/* 휴무·예약 불가로 막은 날짜만 취소선으로 구분한다. */
#res_calendar .ui-datepicker-calendar td.disabled-date span {
  background: #fbf6f4;
  color: #c9b6ac;
  text-decoration: line-through;
}

/* 예약 시간 */
.time_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.time_grid__empty {
  grid-column: 1 / -1;
  padding: 18px 0;
  border: 1px dashed #e3d8d0;
  border-radius: 10px;
  background: #fff;
  color: #a2938a;
  font-size: 13px;
  text-align: center;
}

.time_slot {
  height: 40px;
  border: 1px solid #eee5df;
  border-radius: 9px;
  background: #fff;
  color: var(--dg-ink);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}
.time_slot:hover:not(.disabled) { border-color: #ffc79b; background: #fff6f0; }
.time_slot.on {
  border-color: var(--dg-orange);
  background: var(--dg-orange);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(255, 107, 0, .28);
}
.time_slot.disabled {
  background: #fbf9f8;
  border-color: #f2ece8;
  color: #c9bdb4;
  cursor: default;
  text-decoration: line-through;
}

/* 고객 정보 */
.info_group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.info_group:last-child { margin-bottom: 0; }
.info_group > label {
  flex: 0 0 58px;
  font-size: 13px;
  font-weight: 700;
  color: #6d5c50;
}
.info_group input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #eee5df;
  border-radius: 9px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--dg-ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.info_group input[type="text"]::placeholder { color: #bdb0a6; }
.info_group input[type="text"]:focus {
  outline: none;
  border-color: var(--dg-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .12);
}
.phone_wrap { flex: 1 1 auto; min-width: 0; display: flex; }
.phone_wrap input { width: 100%; }

/* 초진 / 재진 선택 */
.visit_toggle { flex: 1 1 auto; display: flex; gap: 7px; }
.visit_toggle button {
  flex: 1 1 0;
  height: 42px;
  border: 1px solid #eee5df;
  border-radius: 9px;
  background: #fff;
  color: #6d5c50;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}
.visit_toggle button:hover { border-color: #ffc79b; }
.visit_toggle button.on {
  border-color: var(--dg-orange);
  background: #fff4ec;
  color: #d85a00;
  font-weight: 800;
}

/* 동의 · 제출 */
.res_foot {
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #efe9e4;
  background: #fff;
}
.res_agree { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.res_agree__check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5b4c42; cursor: pointer; }
.res_agree__check input { width: 17px; height: 17px; margin: 0; accent-color: var(--dg-orange); cursor: pointer; }
.res_agree__more { flex: 0 0 auto; font-size: 12px; color: #a2938a; text-decoration: underline; }

.res_submit {
  width: 100%;
  height: 52px;
  margin-top: 12px;
  border: 0;
  border-radius: 11px;
  background: var(--dg-orange);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: filter .12s ease;
}
.res_submit:hover { filter: brightness(1.06); }

/* ------------------------------------------------------------------ 종료 안내 */
.event_closed_notice { padding: 60px 20px; text-align: center; }
.event_closed_notice p { margin: 0 0 18px; font-size: 18px; line-height: 1.5; }
.event_closed_notice a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--dg-ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* ------------------------------------------------------------------ 좁은 화면 */
@media (max-width: 480px) {
  .dg-section { padding: 36px 0 42px; }
  .dg-products { padding: 34px 0 42px; }
  .dg-products__header { margin-bottom: 22px; }
  .dg-products__title { font-size: 21px; }
  .dg-products__group-title span { font-size: 13px; padding: 6px 13px; }
  .dg-product-card__select { gap: 10px; padding: 14px 13px; }
  .dg-product-card__media { flex-basis: 58px; width: 58px; height: 58px; }
  .dg-product-card__name { font-size: 14px; }
  .dg-product-card__price strong { font-size: 16px; }
  .time_grid { grid-template-columns: repeat(3, 1fr); }
}
