@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 {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 90px;
}

.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: flex;
  align-items: baseline;
  justify-content: space-between;
  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: 999px;
  padding: 8px 10px;
  margin: 6px 0 18px;
  display: flex;
  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: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: var(--dark);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.category_section {
  scroll-margin-top: 70px;
}

.market_box {
  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: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.market_box .btn_detail_toggle {
  font-size: 12px;
  color: #6b7280;
}

.market_box .list_subject {
  display: flex;
  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-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  margin-left: auto;
}

.market_box .list_subject2 h1 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.market_box .list_subject2 h1 label {
  display: inline-flex;
  align-items: center;
}

.link_img1 {
  bottom: 1.5%;
  position: absolute;
  z-index: 2;
  margin-left: 9%;
  width: 25%;
  height: 1.5%;
}

.link_img2 {
  bottom: 1.5%;
  position: absolute;
  z-index: 2;
  margin-left: 37.3%;
  width: 25%;
  height: 1.5%;
}

.link_img3 {
  bottom: 1.5%;
  position: absolute;
  z-index: 2;
  margin-left: 65.3%;
  width: 25%;
  height: 1.5%;
}

.market_box .list_subject2 .item_title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.market_box .list_subject2 .item_tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  background: #111827;
  color: #fff;
}

.market_box .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  justify-content: flex-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: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e5e7eb;
  padding: 10px 16px;
  max-width: 688px;
  margin: 0 auto;
}

@media (min-width: 721px) {
  .landing #reservation_modal {
    right: auto !important;
    left: 50% !important;
    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: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__badge {
  font-size: 12px;
  color: #fff;
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
  align-self: flex-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/event/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/event/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;
}

@media (max-width: 900px) {
  .products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .products__grid {
    grid-template-columns: 1fr;
  }
}

.market_box .list_subject3 {  padding: 0.5rem 1.25rem 0.5rem 1rem;  display: flex; justify-content: space-between; }

.info_group input[type="email"] {
  flex: 1;
  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-flex;
  align-items: center;
  justify-content: 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-flex;
  align-items: center;
  justify-content: 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-flex;
  align-items: center;
  justify-content: center;
  width: 2.813rem;
  height: 1.188rem;
  text-align: center;
  margin-left: 0.3rem;
  margin-right: 0.3rem;
}


.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

/* 배경 */
.modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* 모달 박스 */
.modal__box {
  position: relative;
  max-width: 500px;
  width: calc(100% - 40px);
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  z-index: 1;
}

/* 닫기 버튼 */
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
}
