:root {
  --paper: #f7f1e8;
  --paper-light: #fffdf8;
  --ink: #1d2a24;
  --muted: #68726c;
  --line: rgba(29, 42, 36, 0.14);
  --accent: #c95d3e;
  --accent-dark: #a34229;
  --green: #264b3c;
  --shadow: 0 18px 60px rgba(42, 48, 44, 0.09);
  --radius-small: 12px;
  --radius-medium: 22px;
  --radius-large: 34px;
  --content-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: radial-gradient(rgba(29, 42, 36, 0.045) 0.7px, transparent 0.7px);
  background-size: 11px 11px;
  opacity: 0.55;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

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

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

h1,
h2 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 4.8vw, 4.6rem);
  line-height: 1.02;
}

h3 {
  line-height: 1.2;
}

.site-header,
.hero,
.intro,
.catalogue,
.order-section,
.site-footer {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.brand span {
  color: var(--accent);
  font-style: italic;
}

.header-order {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.header-order span {
  display: grid;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.86rem;
}

.floating-order {
  position: fixed;
  right: max(24px, calc((100vw - var(--content-width)) / 2));
  bottom: 28px;
  z-index: 80;
  display: grid;
  grid-template-columns: auto auto 34px;
  gap: 14px;
  align-items: center;
  min-height: 60px;
  padding: 8px 10px 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 18px 46px rgba(29, 42, 36, 0.24);
  color: white;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, background-color 180ms ease;
}

.floating-order.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-order:hover {
  background: var(--green);
}

.floating-order-label {
  font-size: 0.9rem;
  font-weight: 700;
}

.floating-order-values {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  white-space: nowrap;
}

.floating-order-values strong {
  color: white;
  font-weight: 700;
}

.floating-order-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.restored-order-notice {
  position: fixed;
  top: 92px;
  right: max(24px, calc((100vw - var(--content-width)) / 2));
  z-index: 90;
  display: flex;
  gap: 16px;
  align-items: center;
  max-width: min(430px, calc(100vw - 48px));
  padding: 14px 16px;
  border: 1px solid rgba(38, 75, 60, 0.14);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 36px rgba(29, 42, 36, 0.14);
  color: var(--ink);
  font-size: 0.86rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(10px);
}

.restored-order-notice[hidden] {
  display: none !important;
}

.restored-order-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.restored-order-notice a {
  flex: 0 0 auto;
  border-bottom: 1px solid currentColor;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 72px;
  align-items: end;
  min-height: 690px;
  padding: 92px 0 86px;
}

.hero-copy {
  padding-bottom: 18px;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero-lead strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 56px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 28px rgba(29, 42, 36, 0.16);
}

.button-primary:hover {
  background: var(--green);
}

.text-link {
  border-bottom: 1px solid currentColor;
  font-weight: 700;
  text-decoration: none;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border-radius: var(--radius-large);
  background: var(--green);
  color: white;
  box-shadow: var(--shadow);
}

.hero-card::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border: 45px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.hero-card-label {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-price {
  margin-bottom: 32px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1;
}

.hero-price span {
  display: block;
  margin-top: 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
}

.hero-card ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hero-card li::before {
  margin-top: 1px;
  color: #f0b598;
  content: "•";
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 86px;
  padding: 120px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.steps li:first-child {
  padding-top: 0;
}

.steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.steps span {
  color: var(--accent-dark);
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-style: italic;
}

.steps p {
  margin: 0;
  font-size: 1.08rem;
}

.catalogue {
  padding: 120px 0;
}

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

.section-heading > p {
  max-width: 440px;
  margin-bottom: 6px;
  color: var(--muted);
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 0 0 auto;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.category-tab:hover,
.category-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.flavour-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.flavour-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--paper-light);
  transition: transform 200ms ease, box-shadow 200ms ease;
}


.flavour-card[hidden] {
  display: none;
}

.flavour-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9dfd2;
}

.flavour-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}


.flavour-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: linear-gradient(145deg, var(--fallback-start), var(--fallback-end));
  color: rgba(29, 42, 36, 0.82);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-style: italic;
}

.flavour-fallback.is-visible {
  display: grid;
}

.flavour-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.flavour-content {
  padding: 20px;
}

.flavour-content h3 {
  min-height: 48px;
  margin-bottom: 6px;
  font-family: "Playfair Display", serif;
  font-size: 1.38rem;
}

.flavour-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.quantity-control {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  overflow: hidden;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.quantity-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 150ms ease;
}

.quantity-button:hover:not(:disabled) {
  background: rgba(29, 42, 36, 0.06);
}

.quantity-button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.quantity-value {
  display: grid;
  place-items: center;
  font-weight: 700;
}

.order-section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.order-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 52px;
}

.order-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -38px;
}

.order-intro p:last-child {
  max-width: 520px;
  margin-bottom: 8px;
  color: var(--muted);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
  overflow-anchor: none;
}

.order-intro[hidden],
.order-layout[hidden],
.order-form[hidden],
.order-summary[hidden],
.order-confirmation[hidden] {
  display: none !important;
}

.order-layout.is-confirmed {
  grid-template-columns: minmax(0, 1fr);
}

.order-layout.is-confirmed .order-confirmation {
  grid-column: 1 / -1;
}

.order-summary,
.order-form {
  border-radius: var(--radius-large);
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.order-summary {
  position: sticky;
  top: 24px;
  overflow: hidden;
  overflow-anchor: none;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 30px 22px;
  border-bottom: 1px solid var(--line);
}

.summary-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.clear-order {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.83rem;
}

.clear-order:disabled {
  cursor: default;
  opacity: 0.4;
}

.clear-order.is-confirming {
  border-bottom-color: currentColor;
  color: #8b3f31;
  font-weight: 700;
}

.summary-items {
  max-height: 420px;
  padding: 14px 30px;
  overflow-y: auto;
  overflow-anchor: none;
}

.empty-order {
  margin: 30px 0;
  color: var(--muted);
  text-align: center;
}

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

.summary-item:last-child {
  border-bottom: 0;
}

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

.summary-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.summary-item-price {
  white-space: nowrap;
  text-align: right;
}

.summary-item-main {
  min-width: 0;
}

.summary-item-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.summary-quantity-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.summary-quantity-button:hover,
.summary-quantity-button:focus-visible {
  border-color: var(--green);
  outline: none;
  background: var(--green);
  color: white;
}

.summary-quantity-number {
  min-width: 24px;
  color: var(--ink) !important;
  font-size: 0.88rem !important;
  font-weight: 700;
  text-align: center;
}

.summary-remove-button {
  margin-left: 4px;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  line-height: 1;
}

.summary-remove-button:hover,
.summary-remove-button:focus-visible {
  outline: none;
  color: var(--ink);
}

.summary-totals {
  display: grid;
  gap: 11px;
  padding: 24px 30px 30px;
  border-top: 1px solid var(--line);
  background: #f0e8dc;
}

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

.summary-totals span {
  color: var(--muted);
}

.summary-due {
  margin-top: 8px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
}

.order-form {
  padding: 42px;
}

.order-form fieldset {
  min-width: 0;
  margin: 0 0 38px;
  padding: 0;
  border: 0;
}

.order-form legend {
  width: 100%;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.form-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.field {
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field-hint,
.field-error {
  display: block;
}

.field label {
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  outline: none;
  background: white;
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input,
.field select {
  height: 52px;
  min-width: 0;
  max-width: 100%;
  padding: 0 15px;
}

/* iOS Safari gives date inputs a large intrinsic width. */
.field input[type="date"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}

.field input[type="date"]::-webkit-date-and-time-value {
  min-height: 1.5em;
  text-align: left;
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0;
  opacity: 0.65;
}

.field textarea {
  min-height: 132px;
  padding: 14px 15px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(38, 75, 60, 0.08);
}

.field input.is-invalid,
.consent input.is-invalid {
  border-color: #b33a2b;
}

.field-hint {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.76rem;
}

.field-error,
.consent-error {
  display: none;
  margin-top: 7px;
  color: #a52f22;
  font-size: 0.78rem;
}

.field input.is-invalid ~ .field-error,
.consent.is-invalid + .consent-error {
  display: block;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.payment-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  cursor: pointer;
  background: white;
}

.payment-option:has(input:checked) {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}

.payment-option input {
  margin-top: 4px;
  accent-color: var(--green);
}

.payment-option strong,
.payment-option small {
  display: block;
}

.payment-option small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

.payment-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.86rem;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.order-final-note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.form-message {
  display: none;
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: var(--radius-small);
  font-size: 0.9rem;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-success {
  background: #e4efe8;
  color: #1f5c3d;
}

.form-message.is-error {
  background: #f5e5e0;
  color: #8f2d20;
}

.order-confirmation {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 76px) clamp(24px, 6vw, 68px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--paper-light);
  box-shadow: var(--shadow);
  text-align: center;
}

.order-confirmation::before,
.order-confirmation::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.order-confirmation::before {
  top: -95px;
  right: -80px;
  width: 210px;
  height: 210px;
  background: rgba(217, 154, 93, 0.12);
}

.order-confirmation::after {
  bottom: -110px;
  left: -75px;
  width: 230px;
  height: 230px;
  background: rgba(70, 112, 88, 0.1);
}

.confirmation-mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 1.7rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(38, 75, 60, 0.18);
}

.order-confirmation .eyebrow,
.order-confirmation h2,
.order-confirmation > p:last-child {
  position: relative;
  z-index: 1;
}

.order-confirmation h2 {
  max-width: 620px;
  margin: 10px auto 16px;
}

.order-confirmation > p:last-child {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
}

.submit-button {
  width: 100%;
  margin-top: 22px;
  justify-content: space-between;
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

@media (min-width: 1051px) {
  .order-summary {
    display: flex;
    max-height: calc(100vh - 48px);
    flex-direction: column;
  }

  .summary-items {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
  }
}

.honeypot,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
  padding: 38px 0 44px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-card {
    max-width: 620px;
  }

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

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

  .order-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .intro,
  .catalogue,
  .order-section,
  .site-footer {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .site-header {
    min-height: 76px;
  }

  .header-order {
    font-size: 0;
  }

  .header-order span {
    font-size: 0.8rem;
  }

  body.has-floating-order {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .floating-order {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    grid-template-columns: 1fr auto 34px;
    min-height: 62px;
    padding: 8px 10px 8px 20px;
  }

  .floating-order-label {
    font-size: 0.96rem;
  }

  .restored-order-notice {
    top: 84px;
    right: 14px;
    left: 14px;
    max-width: none;
  }

  .hero {
    gap: 42px;
    padding: 68px 0 76px;
  }

  .hero-card {
    padding: 30px;
    border-radius: 24px;
  }

  .intro,
  .order-intro {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .intro,
  .catalogue,
  .order-section {
    padding: 84px 0;
  }

  .section-heading {
    display: grid;
    gap: 24px;
  }

  .order-intro .eyebrow {
    grid-column: auto;
    margin-bottom: -26px;
  }

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

  .order-form {
    padding: 28px;
    border-radius: 24px;
  }

  .form-grid,
  .payment-options {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(2.75rem, 14vw, 4.1rem);
  }

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

  .text-link {
    width: max-content;
  }

  .flavour-grid {
    grid-template-columns: 1fr;
  }

  .flavour-content h3 {
    min-height: 0;
  }

  .summary-header,
  .summary-items,
  .summary-totals {
    padding-right: 22px;
    padding-left: 22px;
  }

  .order-form {
    padding: 24px 20px;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .field input[type="date"] {
    padding-right: 12px;
  }
}

@media (max-width: 380px) {
  .floating-order {
    gap: 9px;
    padding-left: 16px;
  }

  .floating-order-values {
    gap: 5px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --------------------------------------------------------------------------
   Gelato decorative layer
   Vektorové motivy jsou záměrně velmi jemné, aby nerušily obsah ani fotografie.
   -------------------------------------------------------------------------- */

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(233, 205, 190, 0.42), transparent 27rem),
    radial-gradient(circle at 94% 42%, rgba(210, 225, 211, 0.4), transparent 30rem),
    radial-gradient(circle at 10% 84%, rgba(239, 218, 181, 0.33), transparent 24rem),
    var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image: url("images/pattern-gelato.svg");
  background-position: 34px 28px;
  background-size: 280px 280px;
  opacity: 0.34;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
}

main {
  overflow: clip;
}

.hero,
.intro,
.catalogue,
.order-section {
  position: relative;
  isolation: isolate;
}

.hero::before,
.hero::after,
.intro::before,
.intro::after,
.catalogue::before,
.catalogue::after,
.order-section::before,
.order-section::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.hero::before {
  top: 64px;
  right: 24%;
  width: 270px;
  aspect-ratio: 1;
  background-image: url("images/decor-swirl.svg");
  opacity: 0.2;
  transform: rotate(-8deg);
}

.hero::after {
  right: -240px;
  bottom: 32px;
  width: 560px;
  height: 430px;
  border-radius: 51% 49% 44% 56% / 59% 38% 62% 41%;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.62), transparent 11%),
    linear-gradient(145deg, rgba(226, 188, 169, 0.62), rgba(214, 225, 207, 0.42));
  opacity: 0.72;
  transform: rotate(14deg);
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 1;
}

.hero-card::before {
  position: absolute;
  top: -30px;
  right: -34px;
  width: 250px;
  aspect-ratio: 1;
  pointer-events: none;
  content: "";
  background: url("images/decor-scoops.svg") center / contain no-repeat;
  opacity: 0.12;
  transform: rotate(7deg);
}

.intro::before {
  left: -156px;
  bottom: -84px;
  width: 330px;
  aspect-ratio: 480 / 520;
  background-image: url("images/decor-cone.svg");
  opacity: 0.14;
  transform: rotate(-14deg);
}

.intro::after {
  top: 34px;
  right: -150px;
  width: 300px;
  height: 180px;
  border-radius: 58% 42% 60% 40% / 44% 64% 36% 56%;
  background: rgba(218, 226, 211, 0.54);
  opacity: 0.7;
  transform: rotate(-18deg);
}

.catalogue::before {
  top: 52px;
  right: -122px;
  width: 310px;
  aspect-ratio: 1;
  background-image: url("images/decor-scoops.svg");
  opacity: 0.13;
  transform: rotate(9deg);
}

.catalogue::after {
  left: -215px;
  top: 39%;
  width: 390px;
  aspect-ratio: 1;
  background-image: url("images/decor-swirl.svg");
  opacity: 0.13;
  transform: rotate(26deg);
}

.order-section::before {
  left: -144px;
  top: 70px;
  width: 300px;
  aspect-ratio: 480 / 520;
  background-image: url("images/decor-cone.svg");
  opacity: 0.11;
  transform: rotate(11deg);
}

.order-section::after {
  right: -205px;
  bottom: 64px;
  width: 390px;
  height: 290px;
  border-radius: 52% 48% 39% 61% / 62% 39% 61% 38%;
  background:
    radial-gradient(circle at 34% 36%, rgba(255, 255, 255, 0.68), transparent 12%),
    linear-gradient(135deg, rgba(238, 208, 191, 0.53), rgba(214, 228, 214, 0.56));
  opacity: 0.75;
  transform: rotate(-12deg);
}

.catalogue .section-heading,
.catalogue .category-tabs,
.catalogue .flavour-grid,
.order-section .order-intro,
.order-section .order-layout,
.intro > * {
  position: relative;
  z-index: 1;
}

.flavour-card {
  backdrop-filter: blur(2px);
}

@media (max-width: 1050px) {
  .hero::before {
    top: 86px;
    right: -40px;
    width: 240px;
  }

  .hero::after {
    right: -310px;
    bottom: 250px;
  }

  .catalogue::before {
    right: -170px;
  }
}

@media (max-width: 760px) {
  body::before {
    background-size: 220px 220px;
    opacity: 0.24;
  }

  .hero::before {
    top: 46px;
    right: -92px;
    width: 220px;
    opacity: 0.16;
  }

  .hero::after {
    right: -360px;
    bottom: 320px;
    opacity: 0.48;
  }

  .intro::before,
  .order-section::before {
    left: -190px;
    opacity: 0.09;
  }

  .intro::after {
    right: -220px;
    opacity: 0.42;
  }

  .catalogue::before {
    top: 28px;
    right: -205px;
    opacity: 0.09;
  }

  .catalogue::after {
    left: -265px;
    opacity: 0.08;
  }

  .order-section::after {
    right: -290px;
    opacity: 0.5;
  }
}

@media (max-width: 480px) {
  body::before {
    opacity: 0.18;
  }

  .hero::before {
    right: -125px;
  }

  .hero-card::before {
    top: -8px;
    right: -70px;
    width: 215px;
  }

  .catalogue::before,
  .catalogue::after,
  .order-section::before {
    opacity: 0.06;
  }
}

/* Udržuje dekorativní vzor nad základní barvou stránky a pod obsahem. */
body::before {
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Hover efekty se používají pouze na zařízeních s přesným ukazatelem.
   Dotykové displeje tak po klepnutí nezachovávají posunutý stav karty. */
@media (hover: hover) and (pointer: fine) {
  .flavour-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }

  .flavour-card:hover .flavour-image {
    transform: scale(1.025);
  }
}

@media (hover: none), (pointer: coarse) {
  .flavour-card:hover {
    transform: none;
    box-shadow: none;
  }

  .flavour-card.is-selected:hover {
    box-shadow: 0 0 0 2px rgba(38, 75, 60, 0.1), 0 16px 42px rgba(42, 48, 44, 0.09);
  }

  .flavour-card:hover .flavour-image {
    transform: none;
  }

  .quantity-button,
  .summary-quantity-button,
  .summary-remove-button,
  .clear-order {
    touch-action: manipulation;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flavour-card.is-just-added .quantity-control,
  .flavour-card.is-just-added .flavour-added-feedback {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Objednávkový UX: vybrané karty, zpětná vazba a potvrzovací souhrn
   -------------------------------------------------------------------------- */

.flavour-card.is-selected {
  border-color: rgba(38, 75, 60, 0.72);
  box-shadow: 0 0 0 2px rgba(38, 75, 60, 0.1), 0 16px 42px rgba(42, 48, 44, 0.09);
}

.flavour-card.is-selected .quantity-control {
  border-color: rgba(38, 75, 60, 0.48);
  background: rgba(38, 75, 60, 0.045);
}

.flavour-added-feedback {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.flavour-added-feedback {
  top: 14px;
  right: 14px;
  padding: 9px 12px;
  background: rgba(255, 253, 248, 0.96);
  color: var(--green);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
}

.flavour-card.is-just-added .flavour-added-feedback {
  animation: flavour-added-feedback 1.3s ease both;
}

.flavour-card.is-just-added .quantity-control {
  animation: quantity-control-added 560ms ease;
}

@keyframes flavour-added-feedback {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  16%,
  72% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-3px) scale(0.98);
  }
}

@keyframes quantity-control-added {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(38, 75, 60, 0);
  }
  45% {
    border-color: rgba(38, 75, 60, 0.78);
    background: rgba(38, 75, 60, 0.09);
    box-shadow: 0 0 0 5px rgba(38, 75, 60, 0.09);
  }
}

.order-confirmation > p:not(.eyebrow),
.confirmation-summary,
.confirmation-flavours {
  position: relative;
  z-index: 1;
}

.order-confirmation > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
}

.confirmation-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  text-align: left;
}

.confirmation-summary > div {
  min-width: 0;
  padding: 18px 20px;
  background: rgba(255, 253, 248, 0.96);
}

.confirmation-summary span,
.confirmation-summary strong {
  display: block;
}

.confirmation-summary span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.confirmation-summary strong {
  overflow-wrap: anywhere;
  font-size: 0.98rem;
}

.confirmation-flavours {
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  background: #f0e8dc;
  text-align: left;
}

.confirmation-flavours h3 {
  margin: 0 0 11px;
  font-size: 0.92rem;
}

.confirmation-flavours ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.confirmation-flavours li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.confirmation-flavours li:first-child {
  padding-top: 0;
  border-top: 0;
}

.confirmation-flavours li span {
  min-width: 0;
}

.confirmation-flavours li strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .flavour-added-feedback {
    top: 12px;
    right: 12px;
  }

  .confirmation-summary {
    grid-template-columns: 1fr;
  }

  .confirmation-summary > div {
    padding: 15px 17px;
  }

  .confirmation-flavours {
    padding: 17px;
  }
}
