:root {
  --page-bg: #f4f5f7;
  --surface: #ffffff;
  --text: #202225;
  --muted: #6b7280;
  --line: rgba(32, 34, 37, 0.08);
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --brand: #151515;
  --max-width: 1040px;
  --narrow-width: 820px;
  --radius-detail: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8f9fb 0%, #f3f4f6 100%);
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
textarea,
button {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.page-shell--narrow {
  width: min(var(--narrow-width), calc(100% - 32px));
  margin: 0 auto;
}

.detail-page-shell {
  width: min(1120px, calc(100% - 32px));
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 18px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.logo-block {
  padding: 48px 0 28px;
}

.logo-link {
  width: fit-content;
  display: block;
  margin: 0 auto;
}

.logo-link img {
  width: min(336px, 72vw);
  height: auto;
}

.card-stack {
  display: grid;
  gap: 20px;
}

.image-card,
.panel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.image-link {
  display: block;
  padding: 18px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.image-link:hover {
  transform: translateY(-2px);
}

.image-link img,
.image-frame img,
.footer-visual img {
  width: 100%;
  height: auto;
}

.image-frame {
  padding: 18px;
}

.section-space {
  margin-top: 28px;
}

.footer-visual {
  margin-top: 40px;
}

.detail-card {
  padding: 28px 30px;
}

.detail-card--image {
  padding: 30px;
}

.page-shell--narrow .image-card,
.page-shell--narrow .panel-card {
  border-radius: var(--radius-detail);
}

.detail-top-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
  gap: 24px;
  align-items: start;
}

.detail-top-grid .section-space {
  margin-top: 0;
}

.detail-top-grid .detail-card,
.detail-top-grid .detail-card--image {
  height: 100%;
}

.detail-top-grid .product-image {
  width: min(420px, 100%);
}

.product-image {
  width: min(360px, 100%);
  margin: 0 auto;
}

.simple-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.simple-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.order-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: start;
}

.form-label {
  padding-top: 14px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.field-input,
.field-textarea {
  width: 100%;
  border: 1px solid #d9dde3;
  background: #fafafa;
  border-radius: 16px;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.field-input {
  min-height: 56px;
  padding: 0 18px;
}

.field-textarea {
  min-height: 150px;
  padding: 16px 18px;
  resize: vertical;
}

.field-input:focus,
.field-textarea:focus {
  border-color: #a3aab5;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.04);
}

.agreement-block {
  display: grid;
  gap: 14px;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 17px;
  line-height: 1.6;
  color: #454545;
}

.checkbox-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  accent-color: #111827;
  flex-shrink: 0;
}

.terms-box {
  max-height: 180px;
  overflow: auto;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid #d9dde3;
  border-radius: 16px;
  background: #fafafa;
  color: #555;
  font-size: 12px;
  line-height: 1.75;
}

.agreement-block .terms-box {
  display: none;
}

.payment-summary {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #d9dde3;
  border-radius: 14px;
  background: #fafafa;
}

.payment-summary__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

.payment-summary__row {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.payment-summary__row + .payment-summary__row {
  margin-top: 6px;
}

.primary-button {
  width: 100%;
  height: 56px;
  padding: 0 28px;
  border: none;
  border-radius: 16px;
  background: #111827;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(17, 24, 39, 0.14);
}

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

.payment-terms-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
}

.payment-terms-modal__dialog {
  position: relative;
  width: min(760px, calc(100% - 32px));
  max-height: min(86vh, 920px);
  margin: 7vh auto 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.payment-terms-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.payment-terms-modal__head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.payment-terms-modal__close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 24px;
  line-height: 1;
}

.payment-terms-modal__content {
  overflow: auto;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.payment-terms-modal__section {
  display: grid;
  gap: 10px;
}

.payment-terms-modal__section h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.payment-terms-modal__box {
  max-height: 220px;
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid #d9dde3;
  border-radius: 14px;
  background: #fafafa;
  color: #555;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.payment-terms-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.payment-terms-modal__secondary,
.payment-terms-modal__primary {
  min-width: 148px;
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
}

.payment-terms-modal__secondary {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
}

.payment-terms-modal__primary {
  border: none;
  background: #111827;
  color: #ffffff;
}

@media (max-width: 720px) {
  .page-shell,
  .page-shell--narrow {
    width: min(100% - 20px, var(--max-width));
  }

  .logo-block {
    padding: 32px 0 20px;
  }

  .detail-back-link {
    margin-top: 14px;
    font-size: 13px;
  }

  .image-link,
  .image-frame,
  .detail-card,
  .detail-card--image {
    padding: 14px;
  }

  .simple-title {
    font-size: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-label {
    padding-top: 0;
    font-size: 16px;
  }

  .checkbox-line {
    font-size: 15px;
  }

  .primary-button {
    width: 100%;
  }

  .payment-terms-modal__dialog {
    width: min(100% - 20px, 760px);
    margin-top: 3vh;
    max-height: 92vh;
  }

  .payment-terms-modal__head,
  .payment-terms-modal__content,
  .payment-terms-modal__actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .payment-terms-modal__actions {
    flex-direction: column-reverse;
  }

  .payment-terms-modal__secondary,
  .payment-terms-modal__primary {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .detail-page-shell {
    width: min(100% - 24px, var(--max-width));
  }

  .detail-top-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.mall-list-page {
  background: #f7f7f6;
  color: #161616;
}

.list-topbar {
  padding: 18px 24px 0;
}

.list-topbar__inner {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.list-topbar__group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.list-topbar__group--end {
  justify-content: flex-end;
}

.menu-trigger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.menu-trigger span {
  width: 16px;
  height: 1px;
  background: #161616;
}

.topbar-link,
.topbar-meta {
  color: #161616;
  opacity: 0.82;
}

.list-brand {
  justify-self: center;
}

.list-brand img {
  width: min(210px, 32vw);
  height: auto;
}

.list-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px 24px 64px;
}

.list-hero {
  position: relative;
  min-height: 720px;
  padding: 88px 54px 90px;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  align-items: center;
  gap: 24px;
  background: linear-gradient(180deg, #f8f8f7 0%, #f5f5f4 100%);
  overflow: hidden;
}

.list-hero::after {
  content: "";
  position: absolute;
  right: 54px;
  bottom: 138px;
  width: 420px;
  height: 8px;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.02) 70%,
    transparent 100%
  );
  filter: blur(10px);
  opacity: 0.3;
}

.list-hero__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  align-content: center;
}

.hero-kicker {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-title {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-text {
  margin: 0;
  max-width: 250px;
  font-size: 15px;
  line-height: 1.9;
  color: #555;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 164px;
  min-height: 58px;
  border: 1px solid #6d93d8;
  color: #3c68b6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
}

.hero-subtle {
  margin-top: 74px;
  font-size: 11px;
  color: #444;
  letter-spacing: 0.04em;
}

.list-hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.list-hero__visual img {
  width: min(920px, 100%);
  max-height: 460px;
  object-fit: contain;
  object-position: right center;
}

.hero-pagination {
  position: absolute;
  right: 54px;
  bottom: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.hero-pagination__line {
  width: 76px;
  height: 1px;
  background: rgba(0, 0, 0, 0.36);
}

.hero-pagination__arrow {
  color: #4a73c9;
  font-size: 16px;
}

.list-content {
  padding: 46px 0 22px;
  background: #fbfbfa;
}

.list-categories {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 20px 42px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #333;
  text-transform: uppercase;
}

.product-grid-minimal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

.product-card-minimal {
  display: block;
  background: #f1f1f0;
  color: #1d1d1d;
}

.product-card-minimal__image {
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.product-card-minimal__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card-minimal__image--info {
  padding: 0;
  overflow: hidden;
}

.product-card-minimal__image--info img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-minimal__body {
  padding: 0 24px 26px;
}

.product-card-minimal__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.product-card-minimal__head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.product-card-minimal__head span {
  font-size: 14px;
  color: #242424;
  white-space: nowrap;
}

.product-card-minimal__body p {
  margin: 8px 0 0;
  font-size: 12px;
  color: #8b8b8b;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.product-card-minimal--info .product-card-minimal__body p {
  color: #5f5f5f;
}

.list-footer {
  padding: 26px 24px 34px;
  background: #fbfbfa;
}

.list-footer__inner {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4d74bd;
}

.list-footer__links,
.list-footer__social {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.list-footer__links {
  justify-content: center;
}

.list-footer__social {
  justify-content: flex-end;
}

.support-footer {
  padding: 72px 24px 88px;
  background: #f3f3f2;
  margin-top: 100px;
}

.support-footer__inner {
  width: min(1030px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.support-footer__support {
  display: grid;
  align-content: start;
}

.support-footer__eyebrow {
  margin: 0;
  font-size: clamp(0.94rem, 1.45vw, 1.02rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: #1d1d1d;
}

.support-footer__hero {
  margin-top: 24px;
  display: grid;
  gap: 6px;
}

.support-footer__hero a {
  width: fit-content;
  font-size: clamp(0.94rem, 1.45vw, 1.02rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: #1d1d1d;
}

.support-footer__hours {
  margin-top: 18px;
  display: grid;
  gap: 4px;
}

.support-footer__hours p {
  margin: 0;
  font-size: clamp(0.94rem, 1.45vw, 1.02rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: #1d1d1d;
}

.support-footer__meta {
  display: grid;
  gap: 28px;
  color: #1d1d1d;
}

.support-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: clamp(0.94rem, 1.45vw, 1.02rem);
  line-height: 1.6;
}

.support-footer__links a {
  text-decoration: none;
}

.support-footer__company {
  display: grid;
  gap: 8px;
  font-size: clamp(0.94rem, 1.45vw, 1.02rem);
  line-height: 1.55;
}

.support-footer__company p {
  margin: 0;
}

.support-footer__company p:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.support-footer__copyright {
  margin: 8px 0 0;
  font-size: clamp(0.94rem, 1.45vw, 1.02rem);
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .support-footer__inner {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 40px;
  }

  .list-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 56px 28px 86px;
  }

  .list-hero__visual {
    justify-content: center;
  }

  .list-hero__visual img {
    width: min(760px, 100%);
    max-height: 360px;
    object-position: center;
  }

  .list-hero::after {
    right: 50%;
    bottom: 152px;
    transform: translateX(50%);
    width: 320px;
  }

  .hero-subtle {
    margin-top: 18px;
  }

  .product-grid-minimal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .list-topbar,
  .list-shell,
  .list-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .list-topbar__inner,
  .list-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .list-topbar__group,
  .list-topbar__group--end,
  .list-footer__social {
    justify-content: center;
  }

  .list-hero {
    padding: 38px 18px 74px;
  }

  .hero-text {
    max-width: 100%;
    font-size: 14px;
  }

  .hero-button {
    width: 100%;
    max-width: 220px;
  }

  .hero-pagination {
    left: 18px;
    right: 18px;
    justify-content: center;
    bottom: 30px;
  }

  .list-content {
    padding-top: 30px;
  }

  .list-categories {
    gap: 14px;
    padding-bottom: 24px;
  }

  .product-grid-minimal {
    grid-template-columns: 1fr;
  }

  .product-card-minimal__image {
    height: 260px;
    padding: 20px;
  }

  .product-card-minimal__head h2 {
    font-size: 18px;
  }

  .support-footer {
    padding: 52px 18px 64px;
  }

  .support-footer__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .support-footer__hero {
    margin-top: 18px;
    gap: 4px;
  }

  .support-footer__hours {
    margin-top: 14px;
    gap: 2px;
  }

  .support-footer__meta {
    gap: 22px;
  }

  .support-footer__links,
  .support-footer__company p:first-child {
    display: grid;
    gap: 6px;
  }
}
