﻿:root {
    color-scheme: light;
    --ink: #26212a;
    --muted: #6e6873;
    --soft: #f8f2e8;
    --paper: #fffdf8;
    --field: #fffaf3;
    --line: #e6dde8;
    --grape: #74358a;
    --grape-dark: #512260;
    --grape-soft: #f6ecf8;
    --leaf: #4c9a56;
    --gold: #c69a3e;
    --rose: #b74858;
    --white: #ffffff;
    --shadow: 0 18px 54px rgba(49, 39, 54, 0.13);
    --footer-height: 214px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(248, 242, 232, 0.98)),
      var(--soft);
    padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom));
  }

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

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

  button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--grape);
    color: var(--white);
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  }

  button:hover {
    background: var(--grape-dark);
  }

  button:active {
    transform: translateY(1px);
  }

  button:disabled {
    cursor: wait;
    opacity: 0.68;
  }

  .shell {
    width: min(100% - 24px, 1180px);
    margin-inline: auto;
  }

  .site-hero {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    color: var(--white);
    background: #231927;
  }

  .hero-photo,
  .hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-photo {
    object-fit: cover;
    object-position: 56% 44%;
    transform: scale(1.01);
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(23, 18, 25, 0.92), rgba(23, 18, 25, 0.52) 45%, rgba(23, 18, 25, 0.2)),
      linear-gradient(180deg, rgba(23, 18, 25, 0.2), rgba(23, 18, 25, 0.58));
  }

  .topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    min-width: 0;
  }

  .brand img {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    object-fit: contain;
    padding: 3px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  }

  .brand strong,
  .brand small {
    display: block;
  }

  .brand strong {
    font-size: 22px;
    line-height: 1.25;
  }

  .brand small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
  }

  .top-actions {
    display: none;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
  }

  .top-actions span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.1);
  }

  .hero-content {
    position: relative;
    z-index: 1;
    padding: 46px 0 56px;
  }

  .eyebrow {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 900;
  }

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

  h1 {
    max-width: 780px;
    margin-bottom: 14px;
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: 0;
    text-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  }

  .hero-lead {
    max-width: 700px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-pills span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 850;
  }

  .page-shell {
    padding: 18px 0 38px;
  }

  .content-grid {
    display: grid;
    gap: 14px;
    margin-top: -28px;
  }

  .left-column {
    display: grid;
    gap: 14px;
  }

  .product-card,
  .farm-card,
  .story-card,
  .form-card,
  .success-card {
    border: 1px solid rgba(92, 74, 92, 0.13);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--shadow);
  }

  .product-card {
    display: grid;
    gap: 0;
    overflow: hidden;
  }

  .product-media {
    position: relative;
    background: #eadfce;
  }

  .product-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .media-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(32, 26, 36, 0.72);
    color: var(--white);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 900;
  }

  .product-copy {
    padding: 18px;
  }

  .section-kicker {
    width: fit-content;
    margin-bottom: 10px;
    border: 1px solid #e3cdea;
    border-radius: 6px;
    padding: 3px 9px;
    background: var(--grape-soft);
    color: var(--grape-dark);
    font-size: 13px;
    font-weight: 900;
  }

  .product-copy h2,
  .form-heading h2 {
    margin-bottom: 8px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .product-copy p {
    color: var(--muted);
    line-height: 1.7;
  }

  .price-line {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 16px 0 18px;
    color: var(--grape);
    white-space: nowrap;
  }

  .price-line span {
    font-size: 22px;
    font-weight: 900;
  }

  .price-line strong {
    font-size: 48px;
    line-height: 1;
  }

  .price-line small {
    color: var(--grape-dark);
    font-size: 15px;
    font-weight: 850;
    white-space: normal;
  }

  .quantity-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    margin: 10px 0 16px;
  }

  .quantity-row label,
  .quantity-row .quantity-unit {
    color: var(--ink);
    font-weight: 850;
  }

  .quantity-control {
    display: grid;
    grid-template-columns: 48px 58px 48px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
  }

  .quantity-control button {
    min-height: 46px;
    border-radius: 0;
    background: var(--white);
    color: var(--grape-dark);
    font-size: 20px;
  }

  .quantity-control button:hover {
    background: var(--grape-soft);
  }

  .quantity-control input,
  .quantity-control strong {
    width: 100%;
    min-height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    text-align: center;
    font-weight: 900;
    appearance: textfield;
  }

  .quantity-control input::-webkit-outer-spin-button,
  .quantity-control input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
  }

  .shipping-progress {
    border: 1px solid #ead8ee;
    border-radius: 8px;
    padding: 14px;
    background: linear-gradient(135deg, #fff8f1, #fbf0ff);
  }

  .progress-head,
  .summary-progress > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .progress-head strong,
  .summary-progress strong {
    color: var(--grape-dark);
    font-size: 15px;
  }

  .progress-head span,
  .summary-progress span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
  }

  .grape-meter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 10px 0;
  }

  .grape-meter span {
    height: 10px;
    border-radius: 999px;
    background: #dfd7e3;
  }

  .grape-meter span.is-filled {
    background: linear-gradient(90deg, var(--grape), var(--grape-dark));
  }

  .shipping-progress p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
  }

  .farm-card {
    display: grid;
    gap: 0;
    overflow: hidden;
  }

  .farm-card div {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .farm-card div:last-child {
    border-bottom: 0;
  }

  .farm-card span {
    display: block;
    color: var(--leaf);
    font-weight: 900;
    margin-bottom: 4px;
  }

  .farm-card strong {
    display: block;
    font-size: 14px;
  }

  .story-card {
    overflow: hidden;
  }

  .story-copy {
    padding: 18px 18px 4px;
  }

  .story-copy h2 {
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 1.25;
  }

  .story-copy p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
  }

  .story-gallery {
    display: grid;
    gap: 10px;
    padding: 14px;
  }

  .story-gallery figure {
    position: relative;
    min-height: 170px;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #efe8d9;
  }

  .story-gallery img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
  }

  .story-gallery figcaption {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: calc(100% - 20px);
    border-radius: 999px;
    padding: 0 11px;
    background: rgba(28, 23, 30, 0.72);
    color: var(--white);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 900;
  }

  .form-card {
    padding: 18px;
  }

  .desktop-order-panel {
    display: none;
  }

  .form-heading {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .form-heading > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--grape-soft);
    color: var(--grape);
    font-size: 0;
    font-weight: 900;
  }

  .form-heading > span::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 35% 32%, #8c45a0 0 25%, transparent 26%),
      radial-gradient(circle at 64% 32%, #74358a 0 25%, transparent 26%),
      radial-gradient(circle at 50% 64%, #5a2869 0 25%, transparent 26%);
  }

  .form-heading p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
  }

  form {
    display: grid;
    gap: 15px;
  }

  label,
  .field-block {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 850;
  }

  .field-label {
    color: var(--ink);
    font-size: 14px;
    font-weight: 850;
  }

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

  textarea {
    min-height: 116px;
    resize: vertical;
    line-height: 1.5;
  }

  .compact-textarea {
    min-height: 76px;
  }

  input::placeholder,
  textarea::placeholder {
    color: #aaa0ad;
  }

  input:focus,
  select:focus,
  textarea:focus {
    border-color: var(--grape);
    box-shadow: 0 0 0 3px rgba(116, 53, 138, 0.14);
  }

  select {
    appearance: auto;
  }

  .field-grid {
    display: grid;
    gap: 15px;
  }

  .choice-grid {
    display: grid;
    gap: 10px;
  }

  .choice-grid.two {
    grid-template-columns: 1fr;
  }

  .choice-grid.referrer {
    grid-template-columns: 1fr;
  }

  .choice {
    position: relative;
    display: block;
  }

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

  .choice span {
    min-height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    padding: 8px;
    text-align: center;
    font-weight: 900;
  }

  .choice input:checked + span {
    border-color: var(--grape);
    background: var(--grape-soft);
    color: var(--grape-dark);
    box-shadow: 0 0 0 3px rgba(116, 53, 138, 0.08);
  }

  .choice input:focus-visible + span {
    outline: 3px solid rgba(116, 53, 138, 0.22);
  }

  .bot-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  .inline-message {
    min-height: 24px;
    color: var(--rose);
    font-weight: 900;
    line-height: 1.55;
  }

  .success-card {
    display: none;
    margin-top: 16px;
    border-color: rgba(76, 154, 86, 0.28);
    background: #f6fbf3;
    padding: 16px;
  }

  .success-card h2 {
    margin: 0 0 8px;
    color: #23643a;
    font-size: 22px;
  }

  .success-card p {
    margin: 6px 0;
    color: var(--muted);
    line-height: 1.6;
  }

  .sticky-summary {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    border-top: 1px solid rgba(90, 78, 92, 0.16);
    background: rgba(255, 253, 250, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 -18px 46px rgba(43, 32, 46, 0.15);
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  }

  .summary-inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 12px;
    align-items: center;
  }

  .summary-product,
  .summary-progress {
    display: none;
  }

  .summary-quantity,
  .summary-totals,
  .summary-submit {
    min-width: 0;
  }

  .summary-quantity {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 850;
  }

  .quantity-control.compact {
    grid-template-columns: 40px 48px 40px;
  }

  .quantity-control.compact button,
  .quantity-control.compact strong {
    min-height: 40px;
  }

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

  .summary-totals div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 850;
  }

  .summary-totals strong {
    color: var(--ink);
    white-space: nowrap;
  }

  [data-shipping-fee].is-free-shipping {
    display: inline-block;
    color: #247c3d;
    font-weight: 950;
    line-height: 1.2;
  }

  [data-shipping-fee].is-free-shipping::before {
    content: none;
  }

  .has-free-shipping [data-shipping-fee].is-free-shipping {
    animation: freeShipGlow 1.15s ease;
  }

  @keyframes freeShipGlow {
    0% {
      text-shadow: 0 0 0 rgba(36, 124, 61, 0);
      transform: scale(1);
    }
    35% {
      text-shadow: 0 0 18px rgba(76, 154, 86, 0.5);
      transform: scale(1.06);
    }
    100% {
      text-shadow: 0 0 0 rgba(36, 124, 61, 0);
      transform: scale(1);
    }
  }

  .summary-totals .grand-total {
    grid-column: 1 / -1;
    align-items: baseline;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .grand-total strong {
    color: var(--grape);
    font-size: 28px;
  }

  .summary-submit {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
  }

  .summary-submit button {
    width: 100%;
    min-height: 54px;
    box-shadow: 0 12px 28px rgba(116, 53, 138, 0.28);
  }

  .summary-submit small {
    color: var(--muted);
    text-align: center;
    line-height: 1.35;
  }

  dialog {
    width: min(560px, calc(100% - 28px));
    border: 0;
    border-radius: 8px;
    padding: 0;
    color: var(--ink);
    box-shadow: 0 26px 80px rgba(22, 20, 24, 0.32);
  }

  dialog::backdrop {
    background: rgba(25, 22, 28, 0.56);
  }

  .modal {
    padding: 22px;
    background: var(--paper);
  }

  .modal h2 {
    margin: 0 0 10px;
    font-size: 24px;
  }

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

  .modal-list {
    display: grid;
    gap: 0;
    margin: 16px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--field);
  }

  .modal-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    color: var(--muted);
  }

  .modal-list div:last-child {
    border-bottom: 0;
  }

  .modal-list strong {
    color: var(--ink);
    text-align: right;
  }

  .modal-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .modal-actions button {
    width: 100%;
  }

  .secondary-button {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--grape-dark);
  }

  .secondary-button:hover {
    background: var(--grape-soft);
  }

  @media (max-width: 430px) {
    .shell {
      width: min(100% - 20px, 430px);
    }

    .site-hero {
      min-height: 390px;
    }

    .hero-photo {
      object-position: 52% 42%;
    }

    .topbar {
      padding: 14px 0;
    }

    .brand img {
      width: 48px;
      height: 48px;
    }

    .brand strong {
      font-size: 20px;
    }

    .brand small {
      display: none;
    }

    .hero-content {
      padding: 34px 0 50px;
    }

    h1 {
      font-size: 34px;
    }

    .hero-pills span {
      width: 100%;
      justify-content: center;
      text-align: center;
    }

    .product-copy {
      padding: 16px;
    }

    .price-line strong {
      font-size: 42px;
    }

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

    .quantity-row .quantity-unit {
      grid-column: 2;
      justify-self: end;
    }

    .quantity-control {
      grid-column: 1 / -1;
      grid-template-columns: 1fr 1fr 1fr;
    }

  }

  @media (min-width: 768px) {
    :root {
      --footer-height: 144px;
    }

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

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

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

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

    .farm-card div {
      border-right: 1px solid var(--line);
      border-bottom: 0;
    }

    .farm-card div:last-child {
      border-right: 0;
    }

    .story-gallery {
      grid-template-columns: 1.2fr 0.8fr;
      grid-template-rows: repeat(2, minmax(150px, 1fr));
    }

    .story-large {
      grid-row: 1 / span 2;
    }

    .summary-inner {
      grid-template-columns: 1.1fr 1fr 1.15fr 1.15fr;
    }

    .summary-product {
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
    }

    .summary-product img {
      width: 72px;
      height: 58px;
      border-radius: 8px;
      object-fit: cover;
    }

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

  .summary-product span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
  }

    .summary-submit {
      grid-column: auto;
    }
  }

  @media (min-width: 1024px) {
    :root {
      --footer-height: 0px;
    }

    body {
      padding-bottom: 0;
    }

    .top-actions {
      display: flex;
    }

    .site-hero {
      min-height: 390px;
    }

    .hero-photo {
      object-position: center 43%;
    }

    .hero-content {
      padding: 58px 0 74px;
    }

    h1 {
      font-size: 64px;
    }

    .page-shell {
      padding-top: 0;
    }

    .content-grid {
      grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr);
      align-items: start;
      gap: 24px;
      margin-top: -48px;
    }

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

    .product-media img {
      min-height: 390px;
      aspect-ratio: 16 / 10;
    }

    .form-card {
      position: sticky;
      top: 20px;
      padding: 20px;
      max-height: calc(100vh - 40px);
      overflow: auto;
    }

    .desktop-order-panel {
      display: grid;
      gap: 14px;
      margin-bottom: 20px;
      border: 1px solid #ead8ee;
      border-radius: 8px;
      padding: 14px;
      background: linear-gradient(135deg, #fff8f1, #fbf0ff);
    }

    .desktop-product-line {
      display: grid;
      grid-template-columns: 76px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
    }

    .desktop-product-line img {
      width: 76px;
      height: 64px;
      border-radius: 8px;
      object-fit: cover;
    }

    .desktop-product-line span,
    .desktop-product-line small {
      display: block;
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
    }

    .desktop-product-line strong {
      display: block;
      margin: 3px 0;
      font-size: 18px;
    }

    .desktop-order-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .desktop-order-grid div {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 10px;
      background: rgba(255, 255, 255, 0.72);
    }

    .desktop-order-grid span,
    .desktop-free-shipping span,
    .submit-hint {
      display: block;
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
    }

    .desktop-order-grid strong {
      display: block;
      margin-top: 5px;
      font-size: 18px;
    }

    .desktop-order-grid div:last-child strong {
      color: var(--grape);
      font-size: 26px;
    }

    .desktop-free-shipping > div:first-child {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: center;
    }

    .desktop-free-shipping strong {
      color: var(--grape-dark);
      font-size: 14px;
    }

    .desktop-submit-button {
      width: 100%;
      min-height: 54px;
      box-shadow: 0 12px 28px rgba(116, 53, 138, 0.24);
    }

    .submit-hint {
      text-align: center;
      line-height: 1.4;
    }

    .sticky-summary {
      display: none;
    }

    .summary-inner {
      grid-template-columns: 1.1fr 0.7fr 1.9fr 1.3fr 1.2fr;
      gap: 14px;
    }

    .summary-progress {
      display: block;
      min-width: 0;
      border-left: 1px solid var(--line);
      border-right: 1px solid var(--line);
      padding: 0 14px;
    }

    .summary-totals {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      border-right: 1px solid var(--line);
      padding-right: 14px;
    }

    .grand-total strong {
      font-size: 30px;
    }

    .summary-submit button {
      min-height: 56px;
    }

    .modal-actions {
      flex-direction: row;
      justify-content: flex-end;
    }

    .modal-actions button {
      width: auto;
      min-width: 130px;
      padding-inline: 18px;
    }
  }

  .product-media {
    display: none;
  }

  .product-gallery {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: #eadfce;
  }

  .product-gallery-stage {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #efe6d8;
    aspect-ratio: 1 / 1;
    touch-action: pan-y;
  }

  .product-gallery-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(32, 26, 36, 0.64);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
  }

  .gallery-nav:hover {
    background: rgba(32, 26, 36, 0.82);
  }

  .gallery-nav:active {
    transform: translateY(calc(-50% + 1px));
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .product-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 58px;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .product-thumb {
    width: 58px;
    height: 58px;
    min-height: 58px;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    opacity: 0.7;
  }

  .product-thumb:hover,
  .product-thumb.is-active {
    background: #fff;
    border-color: var(--grape);
    opacity: 1;
  }

  .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .payment-info-popout {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-top: -6px;
  }

  .info-trigger {
    width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 999px;
    background: var(--grape-soft);
    color: var(--grape-dark);
    box-shadow: none;
    font-weight: 950;
  }

  .info-trigger:hover {
    background: #ead8ee;
  }

  .info-card {
    position: absolute;
    right: 0;
    top: 42px;
    z-index: 20;
    width: min(320px, calc(100vw - 40px));
    display: none;
    border: 1px solid #ead8ee;
    border-radius: 8px;
    padding: 13px 14px;
    background: rgba(255, 253, 248, 0.98);
    color: var(--muted);
    box-shadow: 0 16px 38px rgba(49, 39, 54, 0.16);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
  }

  .payment-info-popout.is-open .info-card,
  .payment-info-popout:focus-within .info-card {
    display: block;
  }

  @media (min-width: 768px) {
    .story-gallery {
      grid-template-columns: 1.15fr 0.85fr 0.85fr;
      grid-template-rows: repeat(2, minmax(150px, 1fr));
    }

    .story-large {
      grid-column: 1;
      grid-row: 1 / span 2;
    }
  }

  @media (min-width: 1024px) {
    :root {
      --footer-height: 126px;
    }

    body {
      padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom));
    }

    .content-grid {
      grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
      gap: 24px;
      margin-top: -48px;
    }

    .product-card {
      grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1fr);
      align-items: stretch;
    }

    .product-gallery {
      min-height: 100%;
    }

    .product-gallery-stage {
      min-height: 390px;
      aspect-ratio: auto;
    }

    .form-card {
      position: static;
      top: auto;
      max-height: none;
      overflow: visible;
      padding: 20px;
    }

    .desktop-order-panel {
      display: none;
    }

    .sticky-summary {
      display: block;
    }

    .summary-inner {
      grid-template-columns: 1.1fr 0.7fr 1.9fr 1.3fr 1.2fr;
      gap: 14px;
    }

    .summary-progress {
      display: block;
      min-width: 0;
      border-left: 1px solid var(--line);
      border-right: 1px solid var(--line);
      padding: 0 14px;
    }

    .summary-totals {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      border-right: 1px solid var(--line);
      padding-right: 14px;
    }
  }

  /* Layout corrections: keep the order area below the hero instead of tucking it under the banner. */
  .page-shell {
    padding-top: 24px;
  }

  .content-grid {
    margin-top: 0;
  }

  .product-gallery {
    align-self: start;
  }

  .story-gallery figure {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .story-large {
    aspect-ratio: 16 / 9;
  }

  @media (max-width: 767px) {
    .page-shell {
      padding-top: 22px;
    }

    .product-gallery {
      padding: 12px;
    }
  }

  @media (min-width: 768px) {
    .story-gallery {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-rows: none;
      align-items: start;
    }

    .story-large {
      grid-column: 1 / -1;
      grid-row: auto;
    }
  }

  @media (min-width: 1024px) {
    .page-shell {
      padding-top: 32px;
    }

    .content-grid {
      margin-top: 0;
    }

    .product-card {
      grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
    }

    .product-gallery {
      min-height: 0;
      padding: 12px;
    }

    .product-gallery-stage {
      min-height: 0;
      aspect-ratio: 1 / 1;
    }

    .product-copy {
      padding: 24px;
    }

    .story-gallery {
      grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
      grid-template-rows: auto auto;
    }

    .story-large {
      grid-column: auto;
      grid-row: 1 / span 2;
      min-height: 100%;
      aspect-ratio: auto;
    }

    .story-gallery figure:not(.story-large) {
      aspect-ratio: 4 / 3;
    }
  }

  /* v2 refinements: transfer-only checkout, mobile contact, and product gallery polish. */
  .topbar {
    flex-wrap: wrap;
  }

  .top-actions {
    display: flex;
    width: 100%;
    justify-content: flex-start;
  }

  .line-contact-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 6px 12px 6px 8px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    text-decoration: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  }

  .line-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
  }

  .line-contact-link span,
  .line-contact-link strong {
    min-height: 0;
    display: inline;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    white-space: nowrap;
  }

  .payment-card,
  .field-note-card {
    border: 1px solid #ead8ee;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff8f1, #fbf0ff);
    color: var(--muted);
    box-shadow: 0 12px 30px rgba(49, 39, 54, 0.08);
  }

  .payment-card {
    display: grid;
    gap: 14px;
    padding: 14px;
  }

  .payment-card strong {
    display: block;
    margin-top: 4px;
    color: var(--grape-dark);
    font-size: 18px;
  }

  .payment-card p {
    margin: 8px 0 0;
    line-height: 1.6;
  }

  .payment-card dl {
    display: grid;
    gap: 8px;
    margin: 0;
  }

  .payment-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(116, 53, 138, 0.12);
    padding-top: 8px;
  }

  .payment-card dt {
    color: var(--muted);
    font-weight: 850;
  }

  .payment-card dd {
    margin: 0;
    color: var(--ink);
    text-align: right;
    font-weight: 900;
  }

  .field-note-card {
    padding: 13px 14px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.65;
  }

  .product-gallery .media-badge {
    display: none;
  }

  @media (max-width: 430px) {
    .line-contact-link {
      width: 100%;
      justify-content: center;
    }

    .top-actions {
      margin-top: 4px;
    }

    .product-thumbs {
      grid-auto-columns: 48px;
      gap: 6px;
      overflow-x: hidden;
    }

    .product-thumb {
      width: 48px;
      height: 48px;
      min-height: 48px;
    }
  }

  @media (max-width: 767px) {
    .content-grid {
      display: flex;
      flex-direction: column;
    }

    .left-column {
      display: contents;
    }

    .product-card {
      order: 1;
    }

    .form-card {
      order: 2;
    }

    .farm-card {
      order: 3;
    }

    .story-card {
      order: 4;
    }
  }

  @media (min-width: 768px) {
    .top-actions {
      width: auto;
      margin-left: auto;
    }

    .line-logo {
      width: 24px;
      height: 24px;
    }

    .payment-card {
      grid-template-columns: minmax(0, 1fr) minmax(230px, 0.95fr);
      align-items: start;
    }
  }

  @media (min-width: 1024px) {
    .product-card {
      grid-template-columns: minmax(420px, 1.22fr) minmax(260px, 0.78fr);
    }

    .product-gallery {
      padding: 14px;
    }

    .product-gallery-stage {
      aspect-ratio: 4 / 3;
    }

    .product-copy {
      padding: 22px 20px;
    }

    .product-copy h2 {
      font-size: 30px;
    }

    .product-copy p {
      line-height: 1.62;
    }

    .price-line {
      margin: 12px 0 14px;
    }

    .price-line strong {
      font-size: 44px;
    }

    .product-thumbs {
      grid-auto-columns: 54px;
      gap: 7px;
    }

    .product-thumb {
      width: 54px;
      height: 54px;
      min-height: 54px;
    }
  }

  /* Follow-up refinements: restore gallery sizing, clarify form icon, and add story lightbox states. */
  .top-actions {
    width: auto;
  }

  .line-contact-link {
    min-height: 38px;
    padding: 5px 11px 5px 7px;
    cursor: default;
  }

  .line-logo {
    width: 24px;
    height: 24px;
  }

  .form-heading > span {
    font-size: 16px;
  }

  .form-heading > span::before {
    content: none;
  }

  label.is-disabled {
    opacity: 0.62;
  }

  label.is-disabled input {
    background: #ece8e0;
    color: #7b747f;
    cursor: not-allowed;
  }

  .story-gallery figure {
    cursor: zoom-in;
  }

  .story-gallery figure:focus-visible {
    outline: 3px solid rgba(116, 53, 138, 0.32);
    outline-offset: 3px;
  }

  .story-dialog {
    width: min(920px, calc(100% - 28px));
    background: transparent;
    box-shadow: none;
  }

  .story-dialog::backdrop {
    background: rgba(25, 22, 28, 0.72);
  }

  .lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 999px;
    background: rgba(28, 23, 30, 0.78);
    color: var(--white);
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  }

  .story-lightbox {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 26px 80px rgba(22, 20, 24, 0.34);
  }

  .story-lightbox img {
    width: 100%;
    max-height: min(76vh, 720px);
    object-fit: contain;
    background: #1f1a22;
  }

  .story-lightbox figcaption {
    padding: 12px 16px;
    color: var(--ink);
    font-weight: 900;
  }

  @media (max-width: 430px) {
    .line-contact-link {
      width: auto;
      max-width: 100%;
      justify-content: flex-start;
    }

    .top-actions {
      margin-top: 2px;
    }

    .product-thumbs {
      grid-auto-columns: 58px;
      gap: 8px;
      overflow-x: auto;
    }

    .product-thumb {
      width: 58px;
      height: 58px;
      min-height: 58px;
    }
  }

  @media (min-width: 1024px) {
    .product-card {
      grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
    }

    .product-gallery-stage {
      aspect-ratio: 1 / 1;
    }

    .product-gallery .media-badge {
      display: inline-flex;
    }

    .product-copy {
      padding: 24px;
    }

    .product-copy h2 {
      font-size: 28px;
    }

    .price-line strong {
      font-size: 48px;
    }

    .story-gallery {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-rows: none;
    }

    .story-large {
      grid-column: auto;
      grid-row: auto;
      min-height: 0;
      aspect-ratio: 4 / 3;
    }

    .story-gallery figure,
    .story-gallery figure:not(.story-large) {
      aspect-ratio: 4 / 3;
    }

    .summary-inner {
      grid-template-columns: 1.05fr 1fr 1.75fr 1.25fr 1.2fr;
    }
  }

  .quantity-control.compact {
    width: 126px;
    grid-template-columns: repeat(3, 42px);
    flex: 0 0 126px;
  }

  .quantity-control.compact button,
  .quantity-control.compact strong {
    width: 42px;
    min-width: 42px;
    min-height: 40px;
    padding: 0;
  }

  .summary-quantity {
    grid-template-columns: auto 126px auto;
  }

  .summary-quantity > span:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  @media (min-width: 1024px) {
    .summary-quantity {
      grid-template-columns: auto 126px auto;
    }

    .summary-quantity > span:last-child {
      grid-column: auto;
      grid-row: auto;
    }
  }

  @media (max-width: 767px) {
    :root {
      --footer-height: 184px;
    }

    .summary-inner {
      grid-template-columns: 148px minmax(0, 1fr);
      gap: 10px 12px;
    }

    .summary-quantity {
      width: 148px;
      grid-template-columns: 126px auto;
      gap: 4px 6px;
      align-items: center;
    }

    .summary-quantity > span:first-child {
      grid-column: 1 / -1;
      white-space: nowrap;
    }

    .summary-quantity .quantity-control.compact {
      grid-column: 1;
      grid-row: 2;
    }

    .summary-quantity > span:last-child {
      grid-column: 2;
      grid-row: 2;
      align-self: end;
      padding-bottom: 5px;
      white-space: nowrap;
    }

    .summary-totals {
      grid-template-columns: auto auto;
      justify-content: end;
      align-items: baseline;
      gap: 5px 14px;
    }

    .summary-totals div:not(.grand-total) {
      display: grid;
      grid-template-columns: auto auto;
      justify-content: end;
      align-items: baseline;
      gap: 6px;
      line-height: 1.2;
    }

    .summary-totals .grand-total {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: auto auto;
      justify-content: end;
      align-items: baseline;
      gap: 10px;
      border-top: 0;
      padding-top: 0;
    }

    .summary-totals span,
    .summary-totals strong {
      line-height: 1.2;
    }

    .summary-submit {
      gap: 0;
    }

    .summary-submit small {
      display: none;
    }

    .product-gallery .media-badge {
      display: inline-flex;
    }
  }

  .error-modal h2 {
    color: #8b2430;
  }

  .error-reason {
    border: 1px solid rgba(183, 72, 88, 0.28);
    border-radius: 8px;
    background: #fff2f2;
    color: #8b2430;
    padding: 12px 13px;
    font-weight: 900;
    line-height: 1.6;
  }

  .error-help {
    margin: 14px 0 0;
  }
