:root {
  --paper: #fff8ef;
  --surface: #ffffff;
  --ink: #201714;
  --muted: #6e625c;
  --line: #eadfd2;
  --brand: #9b2f1d;
  --brand-dark: #6f1f15;
  --gold: #d99b3f;
  --leaf: #377a55;
  --blue: #5c3b2f;
  --shadow: 0 18px 50px rgba(82, 45, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 243, 0.92);
  border-bottom: 1px solid rgba(234, 223, 210, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-weight: 800;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--brand);
}

.top-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cart-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--brand-dark);
  background: #fff0e5;
  border: 1px solid #f2cfbd;
  border-radius: 8px;
  font-weight: 800;
}

.cart-action strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  place-items: center;
  color: #fff;
  background: var(--leaf);
  border-radius: 999px;
  font-size: 0.78rem;
}

.top-action,
.button.primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(199, 67, 25, 0.2);
}

.button.secondary {
  color: var(--brand-dark);
  background: #ffe9cf;
}

.hero {
  min-height: auto;
  padding: clamp(34px, 7vw, 86px) clamp(18px, 5vw, 72px) 40px;
  background:
    linear-gradient(135deg, rgba(255, 248, 239, 0.96), rgba(255, 235, 214, 0.72)),
    linear-gradient(90deg, rgba(155, 47, 29, 0.12), rgba(217, 155, 63, 0.08));
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text {
  max-width: 590px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.7;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 8px 12px;
  color: var(--blue);
  background: #eaf4fb;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.info-strip div {
  padding: 22px;
  background: var(--surface);
}

.info-strip strong,
.info-strip span {
  display: block;
}

.info-strip span {
  margin-top: 6px;
  color: var(--muted);
}

.section-head {
  max-width: 760px;
  padding: 86px clamp(18px, 5vw, 72px) 24px;
}

.section-head.compact {
  padding-top: 0;
}

.section-head h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p {
  color: var(--muted);
  line-height: 1.7;
}

.section-note {
  display: inline-block;
  margin: 14px 0 0;
  padding: 10px 13px;
  color: var(--brand-dark);
  background: #fff0e5;
  border: 1px solid #f2cfbd;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.45;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 0 clamp(18px, 5vw, 72px) 76px;
}

.filters {
  position: sticky;
  top: 86px;
  align-self: start;
  display: grid;
  gap: 10px;
}

.filter {
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  color: #fff;
  background: var(--leaf);
  border-color: var(--leaf);
}

.products {
  display: grid;
  gap: 18px;
}

.menu-class {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(82, 45, 23, 0.06);
}

.menu-class-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(90deg, #fff3df, #fff9f0);
  border-bottom: 1px solid var(--line);
}

.menu-class-head h3 {
  margin: 3px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.menu-class-head strong {
  color: var(--brand-dark);
  text-align: right;
  white-space: nowrap;
}

.menu-class-head small,
.row-price small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.class-kicker {
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.class-items {
  display: grid;
}

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.product-row:last-child {
  border-bottom: 0;
}

.product-row strong,
.product-row span {
  display: block;
}

.product-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-price {
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.add-button {
  position: relative;
  overflow: hidden;
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.add-button:hover {
  background: var(--brand-dark);
}

.add-button.added {
  background: var(--leaf);
  box-shadow: 0 10px 22px rgba(55, 122, 85, 0.22);
  animation: added-pop 0.38s ease;
}

@keyframes added-pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

.order-section {
  padding: 70px clamp(18px, 5vw, 72px);
  background: #f5efe6;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(300px, 1.08fr);
  gap: 22px;
  align-items: start;
}

.cart-panel,
.customer-form {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-title h3 {
  margin: 0;
}

.link-button {
  color: var(--brand);
  background: transparent;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 12px;
  min-height: 120px;
}

.empty-cart {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

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

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.qty button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--brand);
  background: #fff0e5;
  border: 1px solid #f2cfbd;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.qty-input {
  width: 82px;
  min-height: 34px;
  padding: 6px 8px;
  text-align: center;
  text-align: center;
  font-weight: 800;
}

.totals {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.grand-total {
  color: var(--brand-dark);
  font-size: 1.2rem;
}

.customer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  box-shadow: 0 16px 38px rgba(82, 45, 23, 0.08);
}

.customer-form .form-row:nth-of-type(1),
.customer-form .form-row:nth-of-type(2),
.customer-form fieldset,
.customer-form .form-row:nth-of-type(3),
.customer-form .form-row:nth-of-type(7),
.customer-form .form-row.wide,
.customer-form .full,
.customer-form .form-note {
  grid-column: 1 / -1;
}

.form-row {
  display: grid;
  gap: 7px;
}

label,
.field-label,
legend {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  background: #fffdf9;
  box-shadow: 0 0 0 3px rgba(199, 67, 25, 0.12);
}

input:disabled,
select:disabled,
textarea:disabled {
  color: #8f8175;
  background: #f5efe6;
  border-color: #e3d8cb;
  cursor: not-allowed;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px #fffdf9 inset, 0 0 0 3px rgba(199, 67, 25, 0.12);
  caret-color: var(--ink);
  transition: background-color 9999s ease-in-out 0s;
}

fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset legend {
  grid-column: 1 / -1;
}

.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 16px 0 48px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid #c8b9ad;
  border-radius: 999px;
  background: #fffdf9;
  transform: translateY(-50%);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.radio-card::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-50%) scale(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.radio-card:has(input:checked) {
  color: var(--brand-dark);
  background: #fff0e5;
  border-color: #f2cfbd;
  box-shadow: 0 8px 18px rgba(155, 47, 29, 0.08);
}

.radio-card:has(input:checked)::before {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(155, 47, 29, 0.1);
}

.radio-card:has(input:checked)::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.full {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.availability-note {
  min-height: 46px;
  margin: 0;
  padding: 12px 13px;
  color: var(--brand-dark);
  background: #fff0e5;
  border: 1px solid #f2cfbd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: #fff8ef;
}

.footer p {
  margin: 8px 0 0;
  color: #dccfc3;
}

.footer-links {
  display: grid;
  gap: 8px;
  text-align: right;
}

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

  .checkout-grid,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .info-strip {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter {
    flex: 0 0 auto;
    min-width: 126px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .topbar {
    gap: 12px;
  }

  .brand {
    max-width: 132px;
    line-height: 1.1;
  }

  .top-actions {
    gap: 8px;
  }

  .cart-action {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .cart-action span {
    display: none;
  }

  .cart-action strong {
    position: absolute;
    right: -6px;
    top: -7px;
    min-width: 21px;
    height: 21px;
    font-size: 0.72rem;
  }

  .top-action {
    min-height: 40px;
  }

  .hero-actions,
  .product-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

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

  .button,
  .top-action {
    width: auto;
  }

  fieldset {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    text-align: left;
  }
}
