[hidden] { display: none !important; }

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --line: #d9dee7;
  --text: #0f1520;
  --muted: #6a7382;
  --red: #ec2f2f;
  --black: #17191f;
  --blue: #0f5fbf;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container { width: min(1200px, 94vw); margin: 0 auto; }

.header { position: sticky; top: 0; z-index: 70; }

.top-contact {
  background: linear-gradient(90deg, var(--red) 0 56%, var(--black) 56% 100%);
  color: #fff;
}

.top-contact__inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-contact__links { display: flex; align-items: center; gap: 0.8rem; }
.top-contact a { color: #fff; text-decoration: none; font-size: 0.9rem; opacity: 0.92; }

.top-contact button {
  border: 1px solid rgb(255 255 255 / 45%);
  background: rgb(255 255 255 / 14%);
  color: #fff;
  border-radius: 999px;
  height: 32px;
  padding: 0 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.top-contact button span {
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  margin-left: 0.25rem;
  background: #fff;
  color: var(--red);
  font-size: 0.72rem;
}

.quick-row { background: var(--surface); border-bottom: 1px solid var(--line); }

.quick-row__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo { text-decoration: none; color: inherit; display: inline-flex; align-items: center; gap: 0.6rem; }

.logo__mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red), #ff6c46);
  color: #fff;
  font-weight: 800;
}

.logo__text strong { display: block; font-size: 1.06rem; }
.logo__text small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; }

.header-search { width: min(420px, 64vw); }

.header-search input {
  width: 100%;
  height: 42px;
  border: 2px solid var(--red);
  border-radius: 999px;
  padding: 0 1rem;
  font: inherit;
}

.category-nav { background: var(--surface); border-bottom: 1px solid var(--line); }

.mode-tabs {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mode-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: #2a2e38;
  border-radius: 999px;
  height: 36px;
  padding: 0 1rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.mode-tab.is-active {
  background: var(--red);
  border-color: #d92727;
  color: #fff;
}

.mode-panel {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.65rem;
}

.mode-panel--main a {
  text-decoration: none;
  color: #2a2e38;
  font-weight: 700;
}

.mode-panel--event {
  display: grid;
  gap: 0.1rem;
  align-items: start;
  background: linear-gradient(90deg, #fff4f1, #fff);
  border: 1px solid #ffd1c7;
  border-radius: 0.6rem;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.65rem;
}

.mode-panel--event strong { color: var(--red); }
.mode-panel--event p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.hero {
  background:
    linear-gradient(120deg, rgb(10 16 30 / 85%), rgb(10 22 54 / 68%)),
    radial-gradient(circle at 20% 20%, rgb(255 255 255 / 20%), transparent 42%),
    #10182b;
  color: #fff;
}

.hero__inner {
  min-height: 470px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1rem;
  align-items: center;
  padding: 2.1rem 0;
}

.hero-label {
  margin: 0;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: #ffb2b2;
}

.hero-copy h1 { margin: 0.7rem 0 0; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; }
.hero-copy p { color: #d9deec; max-width: 58ch; }

.hero-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }

.btn {
  border: 1px solid transparent;
  border-radius: 0.5rem;
  height: 40px;
  padding: 0 0.95rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--primary,
.btn--solid { color: #fff; background: var(--red); border-color: #d92727; }
.btn--soft { background: #fff; color: #121722; border-color: #d2d7e0; }
.btn--dark { background: #212833; border-color: #3b4658; color: #fff; }
.btn--line { background: #fff; color: var(--text); border-color: #d6dde8; }
.btn--small { height: 34px; padding: 0 0.7rem; font-size: 0.82rem; margin-top: auto; }
.btn--full { width: 100%; }

.kpi-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.kpi-list li {
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 0.52rem;
  padding: 0.62rem;
  background: rgb(255 255 255 / 9%);
}

.kpi-list strong { display: block; font-size: 0.9rem; }
.kpi-list span { color: #d6deef; font-size: 0.8rem; }

.hero-pickup {
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 0.6rem;
  padding: 1rem;
  background: rgb(10 20 42 / 62%);
}

.hero-pickup h2 { margin: 0 0 0.6rem; }
.hero-pickup ul { margin: 0 0 0.85rem; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.hero-pickup li { display: grid; gap: 0.12rem; border-bottom: 1px solid rgb(255 255 255 / 18%); padding-bottom: 0.45rem; }
.hero-pickup strong { font-size: 0.86rem; color: #ffb8b8; }
.hero-pickup span { font-size: 0.9rem; color: #e7ecf8; }

.inventory { padding: 2.6rem 0; background: var(--surface); }

.inventory-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.inventory-head h2 { margin: 0.35rem 0 0; }
.eyebrow { margin: 0; color: #3b5f9c; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }

.tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.tab-button {
  border: 1px solid var(--line);
  border-radius: 0.42rem;
  background: var(--surface-soft);
  color: #5d6e84;
  padding: 0.42rem 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.tab-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #ff6c46);
  border-color: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.62rem;
}

.product-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 0.52rem;
  background: var(--surface);
  padding: 0.66rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.thumb {
  min-height: 88px;
  border: 1px solid #d7deea;
  border-radius: 0.42rem;
  background: linear-gradient(180deg, #f8fafe, #edf2f9);
  display: grid;
  place-items: center;
  text-align: center;
  color: #445d82;
  font-weight: 800;
  font-size: 0.86rem;
  margin-bottom: 0.36rem;
}

.product-card h3 { margin: 0; font-size: 0.95rem; }
.product-card p { margin: 0; color: var(--muted); font-size: 0.79rem; }
.stock { color: #19887e !important; font-weight: 700; }
.fee { margin-top: 0.22rem !important; color: #9c6a17 !important; font-weight: 700; }


.event-page {
  padding: 2rem 0 2.6rem;
  background: linear-gradient(180deg, #fff6f3, #fff);
}

.event-page__inner h2 { margin: 0.35rem 0 0.8rem; }

.event-cards {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-cards article {
  border: 1px solid #ffd7cd;
  border-radius: 0.6rem;
  background: #fff;
  padding: 0.9rem;
}

.event-cards h3 { margin: 0 0 0.35rem; }
.event-cards p { margin: 0; color: var(--muted); }

.guide {
  padding: 2.6rem 0;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.guide-grid article {
  border: 1px solid var(--line);
  border-radius: 0.52rem;
  background: #fff;
  padding: 0.8rem;
}

.guide-grid h3 { margin-top: 0; }
.guide-grid ol,
.guide-grid ul { margin: 0; padding-left: 1.08rem; color: var(--muted); }

.inquiry-result {
  padding: 1.2rem 0 2.4rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.inquiry-result h3 { margin-top: 0; }
.inquiry-result p { margin: 0 0 0.6rem; color: var(--muted); }

.inquiry-result pre {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0.52rem;
  background: var(--surface-soft);
  padding: 0.85rem;
  white-space: pre-wrap;
  color: var(--muted);
}

.cart-panel {
  position: fixed;
  top: 84px;
  right: 1rem;
  z-index: 80;
  width: min(390px, calc(100vw - 2rem));
  max-height: calc(100dvh - 102px);
  border: 1px solid var(--line);
  border-radius: 0.62rem;
  background: #fff;
  box-shadow: 0 26px 42px rgb(12 22 39 / 24%);
  transform: translateX(calc(100% + 2rem));
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-panel.is-open { transform: translateX(0); }

.cart-head {
  padding: 0.72rem 0.82rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-head h2 { margin: 0; font-size: 1.02rem; }

.cart-close {
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #fff;
  cursor: pointer;
}

.cart-options {
  padding: 0.65rem 0.82rem;
  border-bottom: 1px solid var(--line);
}

.cart-options label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.cart-options select {
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  height: 36px;
  font: inherit;
}

.cart-items {
  padding: 0.65rem 0.82rem;
  display: grid;
  gap: 0.45rem;
  overflow-y: auto;
  min-height: 100px;
  max-height: 34vh;
}

.cart-row {
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--surface-soft);
  padding: 0.46rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-row__name { margin: 0; font-size: 0.9rem; font-weight: 700; }
.cart-row__price { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.76rem; }

.qty-control { display: inline-flex; align-items: center; gap: 0.3rem; }
.qty-control button {
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid var(--line);
  border-radius: 0.38rem;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.qty-control span { min-width: 1rem; text-align: center; font-size: 0.84rem; font-weight: 700; }

.cart-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 0.45rem;
  padding: 0.55rem;
  color: var(--muted);
  background: var(--surface-soft);
}

.cart-foot {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 0.68rem 0.82rem 0.8rem;
}

.cart-foot p { margin: 0 0 0.34rem; }

.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.inquiry-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 55%);
}

.inquiry-modal__panel {
  position: relative;
  width: min(620px, 92vw);
  margin: 3.5rem auto;
  border: 1px solid #2f333d;
  border-radius: 0.6rem;
  background: #1a1d23;
  color: #eceef3;
  padding: 0.9rem 0.95rem 1rem;
}

.inquiry-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.inquiry-modal__head h3 { margin: 0; }

.inquiry-modal__head button {
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid #444a56;
  border-radius: 0.45rem;
  background: #262b34;
  color: #fff;
  cursor: pointer;
}

.inquiry-form {
  display: grid;
  gap: 0.58rem;
}

.inquiry-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.86rem;
  color: #cbd0dc;
}

.inquiry-form input {
  height: 40px;
  border: 1px solid #3b424f;
  border-radius: 0.45rem;
  background: #1f232c;
  color: #fff;
  font: inherit;
  padding: 0 0.7rem;
}

.inquiry-submit {
  justify-self: end;
  min-width: 90px;
}


.inquiry-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.agreement-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.agreement-check {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  color: #d8dde9 !important;
  font-size: 0.86rem;
}

.agreement-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--red);
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
}

.terms-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 65%);
}

.terms-modal__panel {
  position: relative;
  width: min(900px, 94vw);
  margin: 2rem auto;
  border-radius: 0.62rem;
  border: 1px solid #303745;
  background: #1d1f24;
  color: #edf0f7;
  padding: 0.9rem 1rem;
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
}

.terms-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.terms-modal__head h3 { margin: 0; }
.terms-modal__head button {
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid #465066;
  border-radius: 0.45rem;
  background: #242a35;
  color: #fff;
  cursor: pointer;
}

.terms-modal__body h4 { margin: 1rem 0 0.45rem; color: #fff; }
.terms-modal__body p { margin: 0 0 0.42rem; color: #d2d8e6; line-height: 1.6; }

.site-footer {
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer p,
.site-footer li { color: var(--muted); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; }


.admin-entry {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}



.admin-alert-config[hidden],
.admin-entry__hint[hidden] {
  display: none;
}

.admin-alert-config {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-alert-config label {
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-alert-config input {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0 0.5rem;
  font: inherit;
}
.admin-entry__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-entry code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.06rem 0.3rem;
}

@media (max-width: 1150px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .top-contact__inner,
  .quick-row__inner { min-height: 60px; }

  .top-contact { background: var(--red); }
  .top-contact strong { font-size: 0.9rem; }

  .category-nav__inner { min-height: 52px; }

  .hero__inner,
  .kpi-list,
  .product-grid,
  .guide-grid,
  .event-cards {
    grid-template-columns: 1fr;
  }

  .hero__inner { min-height: 0; }
  .product-card { min-height: 0; }
  .thumb { min-height: 104px; }

  .top-nav { display: none; }
  .header-search { width: min(250px, 62vw); }

  .cart-panel {
    top: 70px;
    right: 0.5rem;
    width: min(374px, calc(100vw - 1rem));
    max-height: calc(100dvh - 82px);
  }

  .inquiry-modal__panel {
    margin-top: 1rem;
    width: min(94vw, 620px);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
  }
}
