:root {
  --ink: #151515;
  --muted: #686f77;
  --line: #e6e1da;
  --ivory: #f7f4ef;
  --mist: #edf5f6;
  --sage: #35655a;
  --blue: #66b9e7;
  --gold: #b88a45;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(30, 37, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(230, 225, 218, 0.82);
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 2px;
  font-family: Georgia, "Times New Roman", serif;
}

.brand span {
  font-size: 24px;
  letter-spacing: 0;
}

.brand small {
  color: var(--sage);
  font-size: 11px;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  color: #41464a;
  font-size: 15px;
}

.cart-button,
.primary-button,
.orders-header button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

.cart-button strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--white);
  background: var(--sage);
  border-radius: 999px;
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(26px, 5vw, 80px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(34px, 5vw, 70px) clamp(20px, 5vw, 72px) 48px;
  background:
    linear-gradient(90deg, rgba(247, 244, 239, 0.96), rgba(237, 245, 246, 0.76)),
    radial-gradient(circle at 82% 18%, rgba(102, 185, 231, 0.18), transparent 28%);
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 500;
  line-height: 1.05;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.16;
}

.hero-copy p:not(.eyebrow),
.intro > p,
.detail-copy p,
.feature-copy li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--sage);
}

.primary-link {
  color: var(--white);
  background: var(--sage);
}

.secondary-link {
  color: var(--sage);
  background: rgba(255, 255, 255, 0.52);
}

.hero-media {
  justify-self: stretch;
  align-self: stretch;
  min-height: 520px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 76%;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: var(--white);
}

.trust-strip div {
  padding: 24px clamp(20px, 5vw, 72px);
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  display: block;
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section,
.admin-section {
  padding: 86px clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: 46px;
  align-items: start;
}

.feature-band,
.detail-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  background: var(--white);
}

.feature-image {
  height: 660px;
  overflow: hidden;
  background: #f3f6f6;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.feature-copy,
.detail-copy {
  padding: clamp(34px, 6vw, 92px);
}

.feature-copy ul {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-copy li {
  padding-left: 18px;
  border-left: 3px solid var(--blue);
}

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

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

.product-card {
  display: grid;
  grid-template-rows: 300px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--mist);
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.product-tag {
  align-self: start;
  color: var(--sage);
  border: 1px solid rgba(53, 101, 90, 0.35);
  padding: 5px 9px;
  font-size: 12px;
}

.product-line {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.product-body h3 {
  margin-bottom: 4px;
  font-size: 22px;
}

.product-body p {
  color: var(--muted);
  line-height: 1.6;
}

.ingredient-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ingredient-row span {
  padding: 6px 9px;
  background: var(--mist);
  color: #33525a;
  font-size: 12px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-row strong {
  font-size: 24px;
}

.price-row del {
  color: #9aa0a6;
}

.add-button,
.primary-button {
  width: 100%;
  min-height: 48px;
  color: var(--white);
  background: var(--ink);
}

.add-button {
  border: 0;
  cursor: pointer;
}

.detail-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-band img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.admin-section {
  background: #f1eee8;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 22px;
}

.admin-editor,
.orders-panel,
.checkout-form {
  display: grid;
  gap: 14px;
}

.admin-editor,
.orders-panel {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

label {
  display: grid;
  gap: 7px;
  color: #3f454a;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d5d1ca;
  background: #fff;
  padding: 12px 13px;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.orders-header h3 {
  margin: 0;
}

.orders-header button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--ivory);
}

.order-card {
  display: grid;
  gap: 8px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.order-card:first-child {
  border-top: 0;
}

.order-card strong {
  color: var(--sage);
}

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

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: end;
  background: rgba(11, 16, 18, 0.42);
}

.cart-drawer.is-open {
  display: flex;
}

.cart-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(460px, 100%);
  height: 100%;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

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

.cart-head button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.cart-items {
  overflow: auto;
  padding: 16px 0;
}

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

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

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

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

.quantity-control button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: var(--ivory);
  cursor: pointer;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.checkout-total strong {
  font-size: 22px;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--sage);
  font-size: 14px;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hero,
  .intro,
  .feature-band,
  .detail-band,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 420px;
  }

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

  .feature-image,
  .detail-band img {
    height: 470px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand small,
  .cart-button span {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .hero,
  .section,
  .admin-section {
    padding-inline: 16px;
  }

  .trust-strip,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-copy,
  .detail-copy {
    padding: 34px 16px;
  }

  .section-heading {
    display: block;
  }
}
