:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --soft: #f6f8fb;
  --brand: #c16e73;
  --brand-2: #faeef0;
  --accent: #8a474c;
  --danger: #b42318;
  --shadow: 0 20px 54px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #ffffff;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

a {
  color: inherit;
}

.page {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 156px;
  height: 46px;
  object-fit: contain;
}

.steps {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.steps span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.steps .active {
  color: var(--brand);
  border-color: var(--brand-2);
  background: var(--brand-2);
}

.shell,
.product-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.85fr) minmax(0, 1.25fr);
  gap: 32px;
  align-items: start;
}

.product-layout {
  margin-top: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-body {
  padding: 28px;
}

.product-media-card {
  position: sticky;
  top: 24px;
  display: grid;
  min-height: 430px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.product-detail {
  min-width: 0;
  padding-top: 2px;
}

.purchase-panel {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.product-image {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: -0.02em;
}

.product-title {
  font-size: clamp(32px, 3vw, 44px);
}

h2 {
  font-size: 24px;
}

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

.rich-content :first-child {
  margin-top: 0;
}

.rich-content :last-child {
  margin-bottom: 0;
}

.rich-content p,
.rich-content li {
  color: var(--muted);
  line-height: 1.7;
}

.rich-content ul,
.rich-content ol {
  padding-left: 22px;
}

.rich-content strong,
.rich-content b {
  color: var(--ink);
}

.rich-content a {
  color: var(--brand);
  font-weight: 700;
}

.price {
  margin: 22px 0;
  font-size: 32px;
  font-weight: 800;
}

.price-label {
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 15px;
}

.weekly-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.weekly-price small {
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.variant-list {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.variant-option {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
}

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

.variant-option:has(input:checked) {
  border-color: #d5dce8;
  background: #fbfbfc;
  box-shadow: inset 0 0 0 1px #d5dce8;
}

.radio-dot {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid #2b3340;
  border-radius: 50%;
}

.variant-option:has(input:checked) .radio-dot {
  border: 6px solid #2b3340;
}

.variant-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2b3340;
  font-size: 20px;
  line-height: 1.15;
}

.variant-heading em {
  border-radius: 999px;
  padding: 3px 8px;
  color: #0ca466;
  background: #def9eb;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.variant-price {
  display: grid;
  justify-items: end;
  color: #2b3340;
  font-size: 16px;
}

.variant-price strong {
  font-size: 20px;
}

.variant-price small,
.variant-price span {
  color: var(--muted);
  font-size: 13px;
}

.variant-note,
.helper {
  color: var(--muted);
  font-size: 14px;
}

.delivery-note {
  margin: 0 0 20px;
  padding: 14px 4px;
  color: var(--muted);
  font-size: 14px;
}

.delivery-note::before {
  content: '▱';
  margin-right: 7px;
  color: var(--brand);
}

.product-description {
  padding-top: 20px;
}

.product-description h2 {
  margin-bottom: 16px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: white;
  background: var(--brand);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

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

.button.secondary {
  color: var(--brand);
  background: var(--brand-2);
}

.summary {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.summary-row strong {
  color: var(--ink);
  text-align: right;
}

[data-message] {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

[data-message][data-type='error'] {
  color: var(--danger);
  background: #fff1f0;
}

[data-message][data-type='success'] {
  color: var(--brand);
  background: var(--brand-2);
}

[hidden] {
  display: none !important;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #eef0f3;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  content: '';
  transform: translateX(-100%);
  animation: shimmer 1.35s infinite;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.72),
    transparent
  );
}

.skeleton-image {
  width: 100%;
  height: 430px;
  border-radius: 0;
}

.skeleton-line {
  width: 74%;
  height: 16px;
  margin-bottom: 14px;
}

.skeleton-line.short {
  width: 28%;
}

.skeleton-line.medium {
  width: 42%;
  margin-top: 28px;
}

.skeleton-line.wide {
  width: 92%;
}

.skeleton-title {
  width: 82%;
  height: 58px;
  margin-bottom: 18px;
}

.skeleton-title.compact {
  height: 42px;
}

.skeleton-price {
  width: 36%;
  height: 34px;
  margin: 26px 0;
}

.skeleton-option {
  width: 100%;
  height: 74px;
  margin-bottom: 12px;
}

.skeleton-button {
  width: 160px;
  height: 50px;
  margin-top: 8px;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 820px) {
  .topbar,
  .steps {
    align-items: flex-start;
    flex-direction: column;
  }

  .shell,
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-media-card {
    position: static;
    min-height: 320px;
  }

  .variant-option {
    grid-template-columns: auto auto 1fr;
  }

  .variant-price {
    grid-column: 3;
    justify-items: start;
  }
}
