@charset "utf-8";

:root {
  --bg: #f7f4ef;
  --card: #ffffff;
  --text: #1a1a1a;
  --sub: #6b6b6b;
  --accent: #d14b4b;
  --border: #e7e2da;
  --dark: #1f2937;
  --mint: #d7f5ed;
  --soft: #f4f1ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8f5f0 0%, #f3f1ee 45%, #f7f4ef 100%);
}

.landing {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}

.market_inner {
  display: block !important;
  padding: 1rem 0;
  width: 100%;
}

.market_box {
  width: 100%;
}

.hero {
  position: relative;
  margin: 20px 0 30px;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
}

.hero__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}


.products__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: baseline;
  margin: 10px 0 16px;
}

.category_nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid #e7e2da;
  border-radius: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(104px, 1fr);
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category_nav::-webkit-scrollbar {
  display: none;
}

.category_nav a {
  display: grid;
  min-width: 104px;
  place-items: center;
  height: 48px;
  padding: 0 18px;
  font-size: 13px;
  border-radius: 0;
  border: 1px solid #e5e7eb;
  color: var(--dark);
  background: #fff;
  text-decoration: none;
  box-shadow: none;
}

.category_nav a + a {
  border-left: 0;
}

.category_section {
  scroll-margin-top: 70px;
}

.market_box {
  display: block;
  background: #f2f2f2;
  border: 2px solid #cfcfcf;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  min-height: 9rem;
}

.market_box .txttxt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.market_box .btn_detail_toggle {
  font-size: 12px;
  color: #6b7280;
}

.market_box .list_subject {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f4efe6 0%, #f9f5ee 100%);
  border: 1px solid #eadfce;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.market_box .list_subject strong {
  background: #111827;
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.2px;
}

.market_box .list_date {
  display: inline-grid;
  place-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  justify-self: end;
}

.market_box .list_subject2 h1 {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 10px;
}

.market_box .list_subject2 h1 label {
  display: inline-grid;
  place-items: center;
}

.link_img1 {
  bottom: 1.6%;
  position: absolute;
  z-index: 2;
  margin-left: 11%;
  width: 37%;
  height: 3%;
}

.link_img2 {
  bottom: 1.6%;
  position: absolute;
  z-index: 2;
  margin-left: 54.3%;
  width: 37%;
  height: 3%;
}

.market_box .list_subject2 .item_title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.market_box .list_subject2 .item_tag {
  display: inline-grid;
  place-items: center;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  background: #111827;
  color: #fff;
}

.market_box .price {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  justify-content: end;
  text-align: right;
}

.market_box .price p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #e11d48;
}

.market_box .price em {
  font-style: normal;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.market_box .price span {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
}

.detail_info_box {
  margin-top: 12px;
  background: #f9fafb;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 12px;
}

.detail_info_box h4 {
  margin: 0 0 6px;
  font-size: 13px;
  color: #111827;
}

.detail_info_box .detail_desc,
.detail_info_box .detail_warning,
.detail_info_box .detail_notice {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.5;
}

.detail_tags span {
  display: inline-block;
  margin: 4px 6px 0 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.spec_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 12px;
}

.spec_label {
  color: #6b7280;
}

.spec_val {
  font-weight: 600;
  color: #111827;
}

.sub_item {
  padding: 10px 0;
  border-bottom: 2px solid #cfcfcf;
}

.sub_item:last-child {
  border-bottom: none;
}

.sub_items {
  margin-top: 12px;
  border-top: 2px solid #cfcfcf;
  padding-top: 10px;
}

.reserve_sticky {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 50;
  width: 100%;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e5e7eb;
  padding: 10px 16px;
  margin: 0 auto;
  transform: translateX(-50%);
}

.reserve_sticky button {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #111827, #374151);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.reserve_sticky button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.basket_placeholder { height: 70px; }

.products__title {
  margin: 0;
  font-size: 22px;
}

.products__count {
  color: var(--sub);
  font-size: 14px;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-auto-flow: row;
  gap: 10px;
}

.product-card__badge {
  font-size: 12px;
  color: #fff;
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
  justify-self: start;
}

.product-card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.product-card__category {
  color: var(--sub);
  font-size: 13px;
}

.product-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.product-card__price .origin {
  font-size: 13px;
  color: var(--sub);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 400;
}

.product-card__desc {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.4;
  min-height: 40px;
}

.products__empty {
  display: none;
  text-align: center;
  padding: 30px 10px;
  color: var(--sub);
}

/* 달력 (theme/jrn/event/style.css와 동일 스타일) */
.ui-widget.ui-widget-content {
  width: 100%;
  border: none;
  font-family: inherit;
}

.ui-datepicker-header {
  background: none;
  border: none;
  padding: 0 0 20px;
}

.ui-datepicker .ui-datepicker-title {
  font-size: 1.313rem;
  font-weight: 700;
  color: #181818;
  margin: 0 auto;
  line-height: 1;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  top: -2px;
}

.ui-datepicker .ui-datepicker-prev span {
  background: url("/theme/jrn/img/datepicker_prev.png") 50% 50% / cover no-repeat;
  width: 0.688rem;
  height: 1.313rem;
}

.ui-datepicker .ui-datepicker-next span {
  background: url("/theme/jrn/img/datepicker_next.png") 50% 50% / cover no-repeat;
  width: 0.688rem;
  height: 1.313rem;
}

.ui-datepicker table {
  font-size: 1rem;
  color: #666;
  margin: 2rem auto 0;
}

.ui-datepicker th {
  color: #999 !important;
  font-weight: 400;
  padding: 10px 0;
}

span[title="Sunday"] {
  color: #cf5454;
}

span[title="Saturday"] {
  color: #6681c0;
}

.ui-datepicker td {
  padding: 0;
}

.ui-datepicker td a {
  display: block;
  text-align: center;
  border: none;
  background: none;
  font-size: 16px;
  color: #333;
  width: 40px;
  height: 40px;
  line-height: 2;
  margin: 0 auto;
  border-radius: 50%;
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
  background: none;
  border: 0;
  text-align: center;
}

.ui-datepicker-calendar .ui-state-highlight {
  color: #454545;
  border: 1px solid #ec785b;
}

.ui-datepicker-calendar .ui-state-active {
  background: #ec785b;
  color: #fff;
  font-weight: 700;
}

.ui-datepicker-calendar .ui-state-default:hover {
  background: #f5f5f5;
  color: #ec785b;
}

.market_box .list_subject3 { padding: 0.5rem 1.25rem 0.5rem 1rem; display: grid; grid-template-columns: minmax(0,1fr) max-content; }

.info_group input[type="email"] {
  width: 100%;
  height: 2.813rem;
  border: 1px solid #d4d4d4;
  border-radius: 5px;
  padding: 0 0.938rem;
  font-size: 0.938rem;
  color: #c7c7c7;
}

.market_box .list_subject2 .HIT {
  background: #e84c25;
  border-radius: 3px;
  font-size: 0.813rem;
  color: #fff;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 1.188rem;
  text-align: center;
  margin-left: 0.3rem;
  margin-right: 0.3rem;
}

.market_box .list_subject2 .BEST {
  background: #547bdd;
  border-radius: 3px;
  font-size: 0.813rem;
  color: #fff;
  display: inline-grid;
  place-items: center;
  width: 2.813rem;
  height: 1.188rem;
  text-align: center;
  margin-left: 0.3rem;
  margin-right: 0.3rem;
}

.market_box .list_subject2 .NEW {
  background: #10b981;
  border-radius: 3px;
  font-size: 0.813rem;
  color: #fff;
  display: inline-grid;
  place-items: center;
  width: 2.813rem;
  height: 1.188rem;
  text-align: center;
  margin-left: 0.3rem;
  margin-right: 0.3rem;
}

/* 랜딩 상품 이미지: 카드의 비어 있는 오른쪽 영역에 표시 */
.landing_product_image {
  float: right;
  width: 112px;
  height: 112px;
  margin: 0 0 12px 16px;
  overflow: hidden;
  border-radius: 12px;
  background: #e5e7eb;
}

.landing_product_image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market_box::after,
.sub_item::after {
  display: block;
  clear: both;
  content: "";
}

.sub_item .landing_product_image {
  width: 88px;
  height: 88px;
}

/* 랜딩 예약 모달: 화면을 넓게 사용하고 헤더/버튼은 스크롤 영역 밖에 고정 */
.landing-module--reservation .modal_mask_new {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0, 0, 0, .4);
  backdrop-filter: blur(5px);
}

.landing #reservation_modal {
  position: fixed;
  z-index: 10003;
  grid-template-rows: auto minmax(0, 1fr) auto;
  top: 16px !important;
  right: auto !important;
  bottom: 16px !important;
  left: 50% !important;
  width: min(560px, calc(100vw - 32px));
  max-height: none !important;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  transform: translateX(-50%);
}

.landing #reservation_modal,
.landing #reservation_modal * {
  box-sizing: border-box;
}

.landing #reservation_modal .res_head {
  display: block;
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 64px;
  padding: 18px 68px 14px 24px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.landing #reservation_modal .res_head h2 {
  margin: 0;
  padding: 0;
  font-size: 20px;
}

.landing #reservation_modal .close_res {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.landing #reservation_modal .close_res::before,
.landing #reservation_modal .close_res::after {
  position: absolute;
  top: 21px;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #222;
  content: "";
}

.landing #reservation_modal .close_res::before {
  transform: rotate(45deg);
}

.landing #reservation_modal .close_res::after {
  transform: rotate(-45deg);
}

.landing #reservation_modal .res_content {
  min-height: 0;
  padding: 20px 24px 28px;
  overflow-x: hidden;
  overflow-y: auto;
}

.landing #reservation_modal .res_section + .res_section {
  margin-top: 2rem;
}

.landing #reservation_modal .res_section h3 {
  margin: 0 0 1rem;
  font-size: 18px;
  font-weight: 700;
}

.selected_product_list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 14px 16px 14px 38px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
}

.selected_product_list li {
  padding-left: 2px;
  color: #333;
  font-size: 15px;
  line-height: 1.45;
}

.landing #reservation_modal .res_foot {
  position: relative;
  z-index: 4;
  padding: 0;
  background: #fff;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06);
}

.landing #reservation_modal .res_submit {
  width: 100%;
  height: 60px;
  border: 0;
  background: #ec785b;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.landing #reservation_modal .time_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.landing #reservation_modal .time_slot {
  display: grid;
  width: 100%;
  height: 38px;
  place-items: center;
  border: 1px solid #d4d4d4;
  border-radius: 19px;
  background: #fff;
  color: #666;
  font-size: 15px;
  cursor: pointer;
}

.landing #reservation_modal .time_slot.disabled {
  background: #c4c4c4;
  cursor: not-allowed;
}

.landing #reservation_modal .time_slot.on {
  border-color: #ec785b;
  background: #ec785b;
  color: #fff;
}

.landing #reservation_modal .info_group {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.landing #reservation_modal .info_group label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.landing #reservation_modal .info_group input[type="text"],
.landing #reservation_modal .info_group input[type="email"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d4d4d4;
  border-radius: 5px;
  color: #333;
  font-size: 15px;
}

.landing #reservation_modal .gender_toggle,
.landing #reservation_modal .visit_toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.landing #reservation_modal .gender_toggle button,
.landing #reservation_modal .visit_toggle button {
  height: 44px;
  border: 0;
  border-radius: 5px;
  background: #ececec;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.landing #reservation_modal .gender_toggle button.on,
.landing #reservation_modal .visit_toggle button.on {
  background: #e76b4b;
  color: #fff;
}

.landing #reservation_modal .phone_wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.landing .more_btn_wrap .toggle_btn {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  place-content: center;
}
