:root {
  --ink: #211813;
  --muted: #755f51;
  --cream: #fff6e8;
  --paper: #fffaf0;
  --line: #ead7bd;
  --accent: #c55224;
  --accent-dark: #8f3519;
  --coffee: #24150e;
  --coffee-soft: #3a261a;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.5;
}

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

.sample-banner {
  position: relative;
  z-index: 11;
  margin: 0;
  padding: 11px 20px;
  background: #8f3519;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 58px;
  padding: 0 7vw;
  background: rgba(255, 247, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(234, 215, 189, 0.65);
}

.brand {
  margin-right: auto;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.language-switch {
  display: flex;
  gap: 6px;
}

.lang-button {
  min-width: 32px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.lang-button.active {
  background: var(--ink);
  color: var(--white);
}

.hero {
  position: relative;
  padding: 0 7vw;
  background: #fbebd8;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 1180px);
  min-height: 500px;
  margin: 0 auto;
  padding: 62px 48px 70px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 249, 237, 0.99) 0%, rgba(255, 247, 231, 0.94) 31%, rgba(255, 244, 222, 0.48) 49%, rgba(255, 244, 222, 0.06) 70%),
    url("assets/images/hero-bg.png") center center / cover no-repeat,
    #fbebd8;
}

.hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-inner::after {
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.12), transparent 40%),
    linear-gradient(0deg, rgba(128, 79, 36, 0.05), transparent 34%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(58%, 650px);
  max-width: 650px;
}

.hero-submessage {
  display: block;
  margin: 0 0 8px;
  color: var(--accent);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 900;
  line-height: 1.25;
}

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

h1 {
  max-width: 640px;
  margin-bottom: 10px;
  font-size: clamp(36px, 3.2vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
  white-space: pre-line;
}

.hero-lead {
  max-width: 500px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.55;
  white-space: pre-line;
}

.primary-button,
.copy-button,
.select-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.primary-button {
  min-width: 116px;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 7px;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(142, 58, 25, 0.16);
}

.hero-actions {
  display: flex;
  align-items: center;
}

.notice-beans span {
  width: 22px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(120deg, #4b2614, #8a4d23);
  transform: rotate(-18deg);
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.12);
}

.products-section {
  padding: 52px 7vw;
  background: #fffaf1;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 4px;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.08;
}

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

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 455px;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.product-image-wrap {
  display: grid;
  place-items: center;
  height: 250px;
  margin-bottom: 14px;
  border-radius: 7px;
  background: #fff7eb;
  overflow: hidden;
}

.product-image {
  display: block;
  width: min(78%, 210px);
  height: 100%;
  object-fit: contain;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.product-card h3 {
  margin-bottom: 4px;
  font-size: 21px;
  line-height: 1.12;
}

.price {
  margin-bottom: 2px;
  color: var(--accent);
  font-weight: 900;
}

.bag-size {
  margin-bottom: 10px;
  color: #8a6d5a;
  font-size: 13px;
  font-weight: 800;
}

.product-desc {
  margin-bottom: 14px;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f2dfc5;
  color: #6b3d22;
  font-size: 13px;
  font-weight: 800;
}

.order-section {
  padding: 58px 7vw 62px;
  background:
    radial-gradient(circle at 8% 0%, rgba(126, 65, 32, 0.28), transparent 20%),
    linear-gradient(145deg, var(--coffee), var(--coffee-soft));
  color: var(--white);
}

.section-heading.light p {
  color: #d9c5b6;
}

.order-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.72fr 0.9fr;
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}

.order-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-self: start;
}

.order-quantities {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 248, 236, 0.22);
  border-radius: 8px;
}

.order-quantities legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 800;
}

.order-quantities input {
  text-align: center;
  font-weight: 800;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 176px;
  padding: 14px;
  resize: vertical;
}

.summary-card,
.note-card {
  min-height: 270px;
  padding: 22px;
  border-radius: 8px;
  background: #fff8ec;
  color: var(--ink);
}

.summary-card h3,
.note-card h3 {
  margin-bottom: 16px;
  font-size: 23px;
}

.summary-row,
.item-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #eadcc8;
  font-size: 14px;
}

.summary-row strong,
.item-row strong {
  text-align: right;
}

.total-row {
  margin-top: 8px;
  border-bottom: 0;
  font-size: 20px;
}

.total-row strong {
  color: var(--accent);
}

.note-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.copy-button {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

.copy-status {
  min-height: 22px;
  margin: 9px 0 0;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.notice-section {
  display: grid;
  grid-template-columns: auto minmax(0, 720px);
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 28px 7vw;
  background: #efe0ca;
}

.notice-section h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

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

.notice-beans {
  display: flex;
  gap: 6px;
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 0;
  }

  .hero-inner {
    width: 100%;
    min-height: auto;
    padding: 44px 24px 230px;
    background:
      linear-gradient(180deg, rgba(255, 249, 237, 0.99) 0%, rgba(255, 247, 231, 0.96) 42%, rgba(255, 244, 222, 0.56) 66%, rgba(255, 244, 222, 0.06) 100%),
      url("assets/images/hero-bg.png") 70% bottom / cover no-repeat,
      #fbebd8;
  }

  .hero-copy {
    width: min(100%, 560px);
    max-width: 560px;
  }

  h1 {
    max-width: 520px;
    font-size: clamp(34px, 7.6vw, 48px);
    line-height: 1.12;
  }

  .product-grid,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .products-section,
  .order-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .order-form {
    grid-template-columns: 1fr;
  }

  .order-quantities {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 10px;
  }

  .brand {
    font-size: 14px;
  }

  .hero {
    padding: 0;
  }

  .hero-inner {
    padding: 38px 18px 196px;
    background:
      linear-gradient(180deg, rgba(255, 249, 237, 1) 0%, rgba(255, 247, 231, 0.98) 52%, rgba(255, 244, 222, 0.52) 74%, rgba(255, 244, 222, 0.08) 100%),
      url("assets/images/hero-bg.png") 70% bottom / cover no-repeat,
      #fbebd8;
  }

  h1 {
    margin-bottom: 10px;
    font-size: clamp(31px, 8.5vw, 38px);
  }

  .hero-lead {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .hero-actions {
    display: flex;
  }

  .product-card {
    min-height: auto;
    padding: 16px;
  }

  .product-image-wrap {
    height: 230px;
  }

  .product-image {
    width: min(72%, 190px);
  }

  .note-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .notice-beans {
    justify-content: center;
  }
}
