@font-face {
  font-family: "Gambarino";
  src: url("assets/fonts/gambarino-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "General Sans";
  src: url("assets/fonts/general-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "General Sans";
  src: url("assets/fonts/general-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "General Sans";
  src: url("assets/fonts/general-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --frame: #1b3a6b;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eaf4fa;
  --surface-3: #e8f0f5;
  --ink: #10233f;
  --muted: #52627a;
  --faint: #68788d;
  --accent: #bfe3f3;
  --accent-ink: #1b5e7a;
  --focus: #2c7da0;
  --on-deep: #f4f8fc;
  --on-deep-soft: #c9d9ec;
  --primary: #1b3a6b;
  --primary-hover: #142e56;
  --error: #a4262c;
  --error-bg: #fbedee;
  --control: #cfdbe6;
  --pack-yellow: #f4c430;
  --pack-maroon: #6b1f2a;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --gap: 12px;
  --font-display: "Gambarino", Georgia, "Times New Roman", serif;
  --font-text:
    "General Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --step-lead: 1.25rem;
  --step-head: 2rem;
  --step-display: clamp(2.75rem, 1.2rem + 4.4vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface-3);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
ul {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.07em;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.page {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding: max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right)) 16px
    max(16px, env(safe-area-inset-left));
}

.stage {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.sheet {
  order: 1;
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.photo {
  order: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(300px, 42svh, 520px);
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--primary);
}

.photo-media {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--primary);
}

.photo-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--paper);
}

.photo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.photo-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.photo-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slide.is-photo img {
  object-position: 50% 38%;
}

.photo-slide.is-poster img {
  object-fit: contain;
  background: var(--paper);
}

.photo-strip {
  display: grid;
  flex: none;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding: 8px 12px;
  background: var(--primary);
}

.photo-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--primary);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.18s ease-out;
}

.photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-thumb:hover {
  opacity: 0.82;
}

.photo-thumb.is-active {
  opacity: 1;
  outline: 2px solid var(--on-deep);
  outline-offset: 1px;
}

.photo-thumb:focus-visible {
  outline: 3px solid var(--on-deep-soft);
  outline-offset: 2px;
}

.photo-body {
  display: none;
  flex: 0 0 auto;
  padding: 28px;
  background: var(--primary);
  color: var(--on-deep);
}

.photo-name {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.photo-meta {
  margin-top: 4px;
  color: var(--on-deep-soft);
  font-size: var(--step-small);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 18px;
  margin-top: 18px;
  padding: 0;
  color: var(--on-deep-soft);
  font-size: var(--step-small);
  list-style: none;
}

.photo-link {
  align-self: flex-start;
  margin-top: 18px;
  color: var(--on-deep);
  font-size: var(--step-small);
  font-weight: 500;
}

.sheet-grid {
  display: grid;
  grid-template-areas:
    "head"
    "summary"
    "form";
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.sheet-head {
  grid-area: head;
  min-width: 0;
}

h1 {
  max-width: none;
  font-family: var(--font-display);
  font-size: var(--step-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-left: -0.04em;
}

.lede {
  max-width: 40ch;
  margin-top: 24px;
  color: var(--ink);
  font-size: var(--step-lead);
  line-height: 1.4;
  text-wrap: pretty;
}

.form-col {
  grid-area: form;
  display: grid;
  gap: 38px;
  min-width: 0;
}

.form-section {
  min-width: 0;
}

.form-section h2,
.summary h2,
.details h2 {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.form-section h2 {
  margin-bottom: 18px;
}

.form-note,
.table-note {
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.45;
}

.form-note {
  margin: -8px 0 16px;
}

.preview-note {
  color: var(--accent-ink);
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field + .field {
  margin-top: 16px;
}

.field label {
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 500;
  line-height: 1.3;
}

.field label span {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--control);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1;
  transition:
    border-color 0.16s ease-out,
    background-color 0.16s ease-out;
}

.field input::placeholder {
  color: var(--faint);
  opacity: 1;
}

.field select {
  padding-right: 36px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5l6-6' fill='none' stroke='%2352627A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field input:hover,
.field select:hover {
  border-color: #a9bccd;
}

.field input:focus,
.field select:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

.field input:disabled {
  background: #eef2f6;
  color: var(--muted);
  cursor: not-allowed;
}

.field.has-error input,
.field.has-error select {
  border-color: var(--error);
  background: var(--error-bg);
}

.field-hint {
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.4;
}

.field-error {
  color: var(--error);
  font-size: var(--step-small);
  font-weight: 500;
  line-height: 1.4;
}

.field-row {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.field-row .field {
  margin-top: 0;
}

.field-row + .field {
  margin-top: 16px;
}

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

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

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

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

.field :focus {
  scroll-margin-top: 24px;
  scroll-margin-bottom: 150px;
}

.summary {
  position: relative;
  grid-area: summary;
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.summary-tab {
  position: absolute;
  top: -16px;
  left: 24px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px 8px 0 0;
  background: var(--primary);
  color: #ffffff;
  font-size: var(--step-small);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.summary h2 {
  margin-bottom: 18px;
}

.product {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.product-img {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-2);
}

.product-copy {
  min-width: 0;
}

.product h3 {
  font-size: var(--step-body);
  font-weight: 600;
  line-height: 1.25;
}

.product-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.35;
}

.product-mode {
  margin-top: 7px;
  color: var(--accent-ink);
  font-size: var(--step-small);
  font-weight: 500;
  line-height: 1.3;
}

.line-item {
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--step-small);
  font-variant-numeric: tabular-nums;
}

.qty-group {
  min-width: 0;
  margin-top: 22px;
  padding: 0;
  border: 0;
}

.qty-group legend {
  padding: 0;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 500;
}

.qty-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 64px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.qty-input {
  position: absolute;
  width: 2px;
  height: 2px;
  opacity: 0;
  pointer-events: none;
}

.qty-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 4px;
  color: var(--ink);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.16s ease-out,
    color 0.16s ease-out;
}

.qty-count {
  font-size: 1.0625rem;
  font-weight: 600;
  white-space: nowrap;
}

.qty-price {
  color: var(--muted);
  font-size: var(--step-small);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.16s ease-out;
}

.qty-option:hover {
  background: #dfeef7;
}

#quantity-1:checked + .qty-option,
#quantity-2:checked + .qty-option,
#quantity-3:checked + .qty-option {
  background: var(--primary);
  color: var(--on-deep);
}

#quantity-1:checked + .qty-option .qty-price,
#quantity-2:checked + .qty-option .qty-price,
#quantity-3:checked + .qty-option .qty-price {
  color: var(--on-deep-soft);
}

.qty-input:focus-visible + .qty-option {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.qty-save {
  margin-top: 10px;
  color: var(--accent-ink);
  font-size: var(--step-small);
  font-weight: 500;
  line-height: 1.4;
}

.subscribe {
  margin-top: 22px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.subscribe-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.subscribe-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.subscribe-title {
  font-size: var(--step-small);
  font-weight: 600;
  line-height: 1.3;
}

.subscribe-desc {
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.35;
}

.switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #cdd9e4;
  transition: background-color 0.18s ease-out;
}

.switch-thumb {
  position: relative;
  top: 2.5px;
  display: block;
  width: 20px;
  height: 20px;
  margin: 3px;
  border-radius: 999px;
  background: var(--surface);
  transform: translateX(0);
  transition: transform 0.18s ease-out;
}

.switch input:checked + .switch-track {
  background: var(--primary);
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(18px);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.totals {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.totals-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.totals-row dt {
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.4;
}

.totals-row dd {
  color: var(--ink);
  font-size: var(--step-body);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  white-space: nowrap;
}

.discount-row dt,
.discount-row dd {
  color: var(--accent-ink);
}

.total-row {
  margin-top: 5px;
}

.total-row dt {
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 500;
}

.total-row dd {
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.summary .summary-cta {
  display: none;
  width: 100%;
  margin-top: 24px;
}

.summary-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.4;
  text-align: center;
}

.noscript-note {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-size: var(--step-small);
  line-height: 1.4;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-text);
  font-size: var(--step-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition:
    background-color 0.18s ease-out,
    transform 0.12s ease-out;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

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

.btn-primary:active {
  transform: scale(0.992);
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.details {
  margin-top: var(--gap);
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  scroll-margin-top: 20px;
}

.details-top {
  display: grid;
  gap: 28px;
}

.details-copy {
  min-width: 0;
}

.details h2 {
  margin-bottom: 12px;
}

.details-lede {
  max-width: 46ch;
  color: var(--ink);
  font-size: var(--step-body);
  line-height: 1.55;
  text-wrap: pretty;
}

.details-claims {
  max-width: 46ch;
  margin-top: 14px;
  color: var(--ink);
  font-size: var(--step-body);
  line-height: 1.5;
}

.details-note {
  max-width: 46ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.45;
}

.details-note + .details-note {
  margin-top: 8px;
}

.details-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  min-width: 0;
}

.details-photos figure {
  min-width: 0;
}

.details-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.details-photos figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.4;
}

.details-data {
  display: grid;
  gap: 34px;
  margin-top: 40px;
}

.ingredients,
.daily {
  min-width: 0;
}

.details h3 {
  font-size: var(--step-body);
  font-weight: 600;
  line-height: 1.3;
}

.table-note {
  margin-top: 4px;
}

.details table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: var(--step-body);
  line-height: 1.35;
}

.details th,
.details td {
  padding: 10px 0;
  text-align: left;
  vertical-align: baseline;
}

.details thead th {
  color: var(--muted);
  font-size: var(--step-small);
  font-weight: 500;
}

.details tbody th {
  color: var(--ink);
  font-weight: 400;
}

.details .num {
  padding-left: 16px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.4;
}

.footer p:last-child {
  text-align: right;
}

.footer a {
  color: var(--ink);
}

.floating-bar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(
    560px,
    calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))
  );
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  transform: translateX(-50%);
}

.floating-total {
  min-width: 0;
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.floating-cta {
  flex: none;
  width: auto;
  min-height: 48px;
  padding-inline: 16px;
  font-size: 1rem;
  white-space: nowrap;
}

.dialog {
  width: min(
    440px,
    calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))
  );
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
}

.dialog::backdrop {
  background: rgba(16, 35, 63, 0.58);
}

.dialog-inner {
  padding: 28px;
}

.dialog h2 {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 400;
  line-height: 1.15;
}

.dialog p {
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--step-body);
  line-height: 1.5;
}

.dialog-recap {
  display: grid;
  gap: 10px;
  margin: 20px 0 22px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.dialog-recap div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.dialog-recap dt {
  color: var(--muted);
  font-size: var(--step-small);
}

.dialog-recap dd {
  max-width: 62%;
  color: var(--ink);
  font-size: var(--step-body);
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dialog .btn {
  width: 100%;
  min-height: 48px;
}

@media (min-width: 480px) {
  .field-row-address {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.7fr);
  }

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

  .details-photos {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .sheet {
    padding: 32px;
  }

  .details {
    padding: 32px;
  }

  .summary-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .summary-right {
    margin-top: 0;
  }

  .details-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .details-data {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

@media (min-width: 1024px) {
  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr);
    gap: var(--gap);
    align-items: start;
  }

  .sheet {
    order: 0;
    min-height: calc(100svh - 32px - env(safe-area-inset-top));
    padding: 40px;
  }

  .photo {
    order: 0;
    position: sticky;
    top: max(16px, env(safe-area-inset-top));
    height: calc(75svh - 24px - env(safe-area-inset-top));
  }

  .photo-body {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .sheet-grid {
    gap: 32px;
  }

  .details {
    padding: 40px;
  }

  .details-top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
  }
}

@media (min-width: 1360px) {
  .stage {
    grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr);
  }

  .sheet {
    padding: 48px;
  }

  .photo-body {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  h1 {
    max-width: 10ch;
  }

  .sheet-grid {
    grid-template-areas:
      "head summary"
      "form summary";
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
  }

  .summary {
    position: sticky;
    top: max(24px, env(safe-area-inset-top));
    align-self: start;
  }

  .summary-main {
    display: block;
  }

  .summary-right {
    margin-top: 22px;
  }

  .summary .summary-cta {
    display: inline-flex;
  }

  .total-row dd {
    font-size: var(--step-head);
  }

  .floating-bar {
    display: none;
  }

  .page {
    padding-bottom: 16px;
  }
}

@media (max-width: 1359px) {
  .page {
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }

  .summary-main {
    margin-top: 0;
  }

  .summary-right {
    margin-top: 0;
  }

  .total-row dd {
    font-size: var(--step-lead);
  }
}

@media (max-width: 719px) {
  .summary-right {
    margin-top: 22px;
  }
}

@media (max-width: 719px) {
  .details-photos {
    grid-template-columns: 1fr;
  }

  .details-top {
    gap: 24px;
  }

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

  .footer p:last-child {
    text-align: left;
  }
}

@media (max-width: 399px) {
  .summary {
    padding: 20px;
  }

  .summary-tab {
    top: -14px;
    left: 20px;
  }

  .sheet,
  .details {
    padding: 20px;
  }
}

@media (min-width: 1360px) {
  .photo-media {
    flex: 1 1 auto;
  }
}

@media (max-width: 1023px) {
  .photo {
    height: clamp(300px, 42svh, 520px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .js .summary h2 {
    transition-delay: 0ms;
  }

  .js .summary .product {
    transition-delay: 60ms;
  }

  .js .summary .qty-group {
    transition-delay: 110ms;
  }

  .js .summary .subscribe {
    transition-delay: 60ms;
  }

  .js .summary .totals {
    transition-delay: 110ms;
  }

  .js .summary-cta {
    transition-delay: 150ms;
  }

  .js .summary-note {
    transition-delay: 190ms;
  }

  .js .form-col .form-section:nth-child(1) {
    transition-delay: 40ms;
  }

  .js .form-col .form-section:nth-child(2) {
    transition-delay: 90ms;
  }

  .js .form-col .form-section:nth-child(3) {
    transition-delay: 140ms;
  }

  .js .details-photos .reveal:nth-child(2) {
    transition-delay: 70ms;
  }

  .js .details-data .reveal:nth-child(2) {
    transition-delay: 70ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .photo-slide {
    transition: none;
  }

  .btn,
  .switch-track,
  .switch-thumb,
  .qty-option,
  .skip-link {
    transition: none;
  }

  .btn-primary:active {
    transform: none;
  }
}
