



.product-stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(155deg, #e7f1f8 0%, #c9dceb 100%);
  box-shadow: 0 14px 40px rgba(18, 48, 63, 0.14);
}

.product-stage img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.stage-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  
  background-color: rgba(11, 38, 51, 0.82);
  color: #eef6fb;
  font-size: 0.85rem;
}


.stage-caption::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 3rem;
  background-image: linear-gradient(0deg, rgba(11, 38, 51, 0.82) 0%, rgba(11, 38, 51, 0) 100%);
  pointer-events: none;
}

.buy-panel {
  --panel-face: var(--paper);
  background: var(--panel-face);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 1.75rem;
}

.buy-panel h1 {
  margin-bottom: 0.35rem;
}

.panel-sub {
  color: var(--ink-quiet);
  margin-bottom: 1.25rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 1rem 0;
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-size: 0.88rem;
  color: var(--ink-quiet);
}

.sku-mark {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--ink);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.stepper button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--frost-edge);
  border-radius: 10px;
  background: var(--paper);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.stepper button:hover {
  border-color: var(--glacier);
  color: var(--glacier);
}

.stepper input {
  width: 64px;
  height: 44px;
  text-align: center;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 1rem;
  border: 1px solid var(--frost-edge);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}

.gain-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.gain-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.96rem;
}

.gain-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 2px;
  background: var(--ember);
}



.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.25rem 0;
}

.fact-strip div {
  padding: 0 1rem 0 0;
}

.fact-strip strong {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 1.2rem;
  color: var(--ink);
}

.fact-strip span {
  font-size: 0.85rem;
  color: var(--ink-quiet);
}



.detail-block {
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.detail-block h3 {
  margin-bottom: 0.5rem;
}

.detail-block p {
  color: var(--ink-quiet);
  max-width: 70ch;
}

.blend-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.blend-list li {
  padding: 0.75rem 1rem;
  background: var(--frost);
  border-left: 3px solid var(--ice);
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
  color: var(--ink-quiet);
}

.blend-list strong {
  color: var(--ink);
}



.basket-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hairline);
}

.basket-line img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--frost-deep);
}

.line-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.line-meta {
  font-size: 0.85rem;
  color: var(--ink-quiet);
  margin: 0;
}

.sum-block {
  padding: 1.25rem 0;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--ink-quiet);
}

.sum-row.total {
  border-top: 1px solid var(--hairline);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}

.empty-basket {
  padding: 2.5rem 0;
  text-align: center;
}

.empty-basket p {
  color: var(--ink-quiet);
}

.is-hidden {
  display: none;
}

[data-basket-filled] .field-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

[data-basket-page] .duo-grid > .step-line {
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}



.order-panel {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(18, 48, 63, 0.08);
}

.order-panel h2 {
  font-size: 1.3rem;
}

.done-note {
  border-radius: 14px;
  padding: 1.5rem;
  background: #e8f4ec;
  border: 1px solid #b7ddc6;
  margin-bottom: 1.5rem;
}

.done-note h2 {
  color: #1f6b3f;
  font-size: 1.2rem;
}

.done-note p {
  margin: 0;
  color: #2c5c42;
}

.warn-note {
  border-radius: 14px;
  padding: 1rem 1.25rem;
  background: var(--ember-mist);
  border: 1px solid #e6bfb4;
  margin-bottom: 1.25rem;
}

.warn-note p {
  margin: 0;
  color: var(--ember-deep);
  font-size: 0.92rem;
}

.pay-note {
  font-size: 0.85rem;
  color: var(--ink-quiet);
  margin-top: 1rem;
}



.reach-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.reach-card {
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}

.reach-card strong {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.reach-card span {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-quiet);
}

.reach-card a {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .reach-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .buy-panel {
    padding: 2.25rem;
  }

  .basket-line {
    grid-template-columns: 104px 1fr auto;
  }

  .basket-line img {
    width: 104px;
    height: 104px;
  }

  [data-basket-page] .duo-grid {
    row-gap: 2rem;
  }

  [data-basket-page] .duo-grid > .basket-main {
    grid-column: 1;
    grid-row: 1;
  }

  [data-basket-page] .duo-grid > .order-panel {
    grid-column: 2;
    grid-row: 1;
  }

  [data-basket-page] .duo-grid > .step-line {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
