:root {
  --bg: #f4f7f6;
  --panel: #ffffff;
  --ink: #17211d;
  --muted: #637068;
  --line: #d8e1dd;
  --teal: #0f766e;
  --teal-dark: #095a54;
  --gold: #b7791f;
  --danger: #ad3f2d;
  --soft: #e8f3f0;
  --shadow: 0 20px 50px rgba(23, 33, 29, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.fc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 246, 0.96);
  backdrop-filter: blur(10px);
}

.fc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.fc-brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.fc-header nav {
  display: flex;
  gap: 18px;
}

.fc-header nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.fc-cart-button,
.fc-primary-link,
.fc-primary-button,
.fc-add,
.fc-text-button,
.fc-cart-head button {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 700;
}

.fc-cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0 14px;
}

.fc-cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.8rem;
}

.fc-hero {
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: clamp(40px, 7vw, 90px) clamp(16px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(15, 118, 110, 0.12), rgba(183, 121, 31, 0.08)),
    var(--bg);
}

.fc-hero > div {
  width: min(820px, 100%);
}

.fc-eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 1.04rem;
}

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

.fc-primary-link,
.fc-primary-button,
.fc-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  padding: 0 16px;
  text-decoration: none;
}

.fc-primary-link:hover,
.fc-primary-button:hover,
.fc-add:hover {
  background: var(--teal-dark);
}

.fc-section {
  width: min(1420px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 70px) clamp(16px, 4vw, 46px);
}

.fc-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.fc-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px;
  gap: 12px;
  width: min(700px, 100%);
  margin-top: 8px;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

textarea {
  padding: 10px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
  outline: none;
}

.fc-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

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

.fc-product p:not(.fc-eyebrow) {
  display: -webkit-box;
  min-height: 4.5em;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.fc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.fc-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--teal-dark);
  padding: 0 8px;
  font-size: 0.74rem;
  font-weight: 800;
}

.fc-product-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.fc-product-bottom strong {
  display: block;
  font-size: 1.14rem;
}

.fc-product-bottom small {
  color: var(--muted);
}

.fc-add.added {
  background: var(--teal-dark);
}

.fc-checkout-section {
  padding-bottom: 110px;
}

.fc-checkout-form {
  display: grid;
  gap: 16px;
  width: min(980px, 100%);
}

fieldset {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

legend {
  padding: 0 8px;
  font-weight: 800;
}

.fc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fc-form-grid .wide {
  grid-column: 1 / -1;
}

.fc-muted {
  margin-top: 0;
  font-size: 0.9rem;
}

.fc-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  text-transform: none;
}

.fc-terms input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.fc-form-message {
  min-height: 1.4em;
  color: var(--danger);
  font-weight: 700;
}

.fc-cart {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 30;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto auto;
  width: min(390px, calc(100vw - 28px));
  max-height: calc(100vh - 112px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateX(calc(100% + 34px));
  transition: transform 180ms ease;
}

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

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

.fc-cart-head h2 {
  font-size: 1.2rem;
}

.fc-cart-head button {
  width: 34px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.fc-cart-items {
  overflow: auto;
  padding: 8px;
  color: var(--muted);
}

.fc-cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.fc-cart-line p {
  margin: 4px 0 0;
  font-size: 0.83rem;
}

.fc-qty {
  display: inline-grid;
  grid-template-columns: 30px 34px 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.fc-qty button {
  height: 30px;
  border: 0;
  background: var(--soft);
  font-weight: 800;
}

.fc-qty span {
  text-align: center;
}

.fc-remove {
  grid-column: 2;
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-weight: 800;
}

.fc-summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fbfcfb;
}

.fc-summary > div,
.fc-recurring-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.fc-summary span,
.fc-recurring-row span {
  color: var(--muted);
}

.fc-summary strong {
  font-size: 1.15rem;
}

.fc-cart-actions {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.fc-cart-actions .fc-primary-link {
  width: 100%;
}

.fc-text-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--danger);
}

.fc-empty {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.fc-thank-you {
  max-width: 980px;
}

.fc-receipt {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fc-receipt table {
  width: 100%;
  border-collapse: collapse;
}

.fc-receipt th,
.fc-receipt td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.fc-receipt td:last-child,
.fc-receipt th:last-child {
  text-align: right;
}

@media (max-width: 760px) {
  .fc-header nav {
    display: none;
  }

  .fc-tools,
  .fc-form-grid {
    grid-template-columns: 1fr;
  }

  .fc-cart {
    inset: auto 0 0 0;
    width: 100%;
    max-height: min(78vh, 660px);
    border-radius: 8px 8px 0 0;
    transform: translateY(calc(100% - 74px));
  }

  .fc-cart.open {
    transform: translateY(0);
  }

  .fc-product-bottom {
    align-items: stretch;
    flex-direction: column;
  }
}
