:root {
  --ink: #141414;
  --muted: #66615b;
  --paper: #f7f4ee;
  --panel: #fffdf8;
  --line: #ded7cc;
  --brown: #a96b4e;
  --red: #ad4748;
  --green: #75a66f;
  --yellow: #e8bb4b;
  --shadow: 0 22px 70px rgba(25, 22, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand img {
  display: block;
  width: 78px;
  height: 60px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand span {
  max-width: 86px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 13px;
  font-weight: 700;
}

.cart-button,
.primary-button,
.ghost-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.cart-button span {
  display: grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  border-radius: 999px;
  background: white;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(36px, 7vw, 88px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.hero-logo-card {
  display: inline-grid;
  grid-template-columns: 150px auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: rgba(255, 253, 248, 0.78);
}

.hero-logo-card img {
  display: block;
  width: 150px;
  height: 116px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hero-logo-card span {
  color: #504a43;
  font-size: 12px;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(52px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero-description {
  max-width: 610px;
  margin: 28px 0 0;
  color: #3f3b36;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  font-weight: 900;
}

.primary-link,
.primary-button {
  background: var(--ink);
  color: white;
}

.secondary-link,
.ghost-button {
  background: transparent;
  color: var(--ink);
}

.hero-visual {
  padding: 0;
  border: 1px solid rgba(20, 20, 20, 0.1);
  background: #f0e8da;
  box-shadow: var(--shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  max-height: 70svh;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 26px 30px rgba(30, 26, 20, 0.18));
}

.quick-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 20px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #ece5d8;
  color: #3d3831;
}

.quick-note p {
  margin: 0;
}

.section {
  padding: clamp(52px, 9vw, 112px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2,
.checkout-copy h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  min-height: 560px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.product-card[data-tone="green"] {
  --accent: var(--green);
}

.product-card[data-tone="yellow"] {
  --accent: var(--yellow);
}

.product-card[data-tone="brown"] {
  --accent: var(--brown);
}

.product-card[data-tone="red"] {
  --accent: var(--red);
}

.product-card[data-tone="black"] {
  --accent: var(--ink);
}

.product-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 10%, white);
}

.product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.08;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-list span {
  padding: 5px 8px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: #2a2723;
  font-size: 12px;
  font-weight: 800;
}

.product-footer {
  display: grid;
  gap: 10px;
}

.price {
  color: var(--accent);
  font-weight: 900;
}

.add-button {
  min-height: 46px;
  border: 0;
  background: var(--accent);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.taste-table {
  border-top: 2px solid var(--ink);
}

.taste-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.taste-head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.use-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.use-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.use-grid h3 {
  margin: 22px 0 10px;
  font-size: 28px;
}

.use-grid p {
  margin: 0;
  color: var(--muted);
}

.checkout-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: #1b1a18;
  color: white;
}

.checkout-copy p {
  max-width: 520px;
  color: #d7d0c5;
}

.checkout-stack {
  display: grid;
  gap: 16px;
}

.order-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: #f7f4ee;
  color: var(--ink);
}

.order-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 900;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  padding: 14px 12px;
  color: var(--ink);
}

.order-output {
  display: block;
  min-height: 72px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 14px;
  border: 1px solid var(--line);
  background: white;
  color: #3b362f;
  font-size: 13px;
}

.payment-box {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #f7f4ee;
  color: var(--ink);
}

.payment-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.payment-head h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
}

.payment-head strong {
  color: var(--red);
  font-size: 18px;
  white-space: nowrap;
}

.payment-status {
  margin: 0;
  color: var(--muted);
}

.payment-widget {
  display: grid;
  gap: 12px;
}

.pay-button {
  min-height: 52px;
  border: 0;
  background: var(--ink);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.pay-button:disabled {
  background: #b8b0a4;
  color: #4b463f;
  cursor: not-allowed;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(240px, 0.7fr) auto;
  gap: 24px;
  align-items: end;
}

.contact-section p {
  margin: 0;
  color: var(--muted);
}

.cart-panel {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0;
  transition: opacity 160ms ease;
}

.cart-panel.is-open {
  pointer-events: auto;
  opacity: 1;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
  width: min(420px, 100%);
  height: 100%;
  padding: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(30px);
  transition: transform 180ms ease;
}

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

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-head h2 {
  margin: 0;
  font-size: 40px;
}

.icon-button {
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: white;
  font-size: 26px;
  line-height: 1;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.cart-item h3 {
  margin: 0;
  font-size: 16px;
}

.cart-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
}

.cart-summary {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.cart-summary p {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
}

.cart-total-row {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-weight: 900;
}

.full {
  width: 100%;
}

.payment-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.payment-result {
  display: grid;
  justify-items: start;
  max-width: 560px;
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.payment-result img {
  width: 160px;
  height: 122px;
  object-fit: contain;
  mix-blend-mode: multiply;
  margin-bottom: 26px;
}

.payment-result h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 0.98;
}

.payment-result p:not(.eyebrow) {
  margin: 18px 0 28px;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .checkout-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 680px) {
  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(46px, 15vw, 70px);
  }

  .quick-note,
  .product-grid,
  .use-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .taste-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section-heading {
    display: block;
  }

  .payment-head {
    display: grid;
  }
}
