/* ==========================================================================
   Land O Smiles — commerce layer
   Cart drawer, shop grid, product detail, checkout, delivery confirmation.
   ========================================================================== */

/* ------------------------------------------------------------ overlays --- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 21, 15, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--med) var(--ease);
  z-index: var(--z-overlay);
}
.overlay[data-open='true'] {
  opacity: 1;
  pointer-events: auto;
}
body[data-scroll-locked='true'] {
  overflow: hidden;
}

/* --------------------------------------------------------------- drawer --- */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(27rem, 100vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(101%);
  transition: transform var(--med) var(--ease);
  z-index: var(--z-drawer);
  visibility: hidden;
}
.drawer[data-open='true'] {
  transform: none;
  visibility: visible;
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.drawer__head h2 {
  font-size: 1.25rem;
}
.drawer__count {
  font-size: var(--fs-xs);
  color: var(--muted);
}
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.35rem;
}
.drawer__foot {
  flex: none;
  border-top: 1px solid var(--line);
  padding: 1.15rem 1.35rem 1.35rem;
  background: var(--sand);
}
.drawer__empty {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding-block: 2.5rem;
}
.drawer__empty h3 {
  font-size: 1.35rem;
}
.drawer__shipping {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.drawer__shipping svg {
  width: 1rem;
  height: 1rem;
  color: var(--gold-ink);
  flex: none;
}
.drawer__totals {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: var(--fs-xs);
}
.drawer__totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.drawer__totals .total {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-strong);
  margin-top: 0.25rem;
}
.drawer__actions {
  display: grid;
  gap: 0.5rem;
}

/* ------------------------------------------------------------ line item --- */
.line-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.9rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.line-item:first-child {
  padding-top: 0;
}
.line-item__media {
  width: 4.5rem;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
}
.line-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.line-item__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--ink);
}
.line-item__meta {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.line-item__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.line-item__price {
  font-size: var(--fs-xs);
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.line-item__remove {
  display: block;
  margin-top: 0.35rem;
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.line-item__remove:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  height: 2.1rem;
}
.qty button {
  width: 2rem;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.qty button:hover {
  background: var(--sand);
  color: var(--ink);
}
.qty input {
  width: 2.4rem;
  height: 100%;
  border: 0;
  border-inline: 1px solid var(--line);
  background: transparent;
  text-align: center;
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ------------------------------------------------------------ shop grid --- */
.shop-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.filters {
  position: sticky;
  top: 6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.filter-group {
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.filter-group:first-of-type {
  padding-top: 0;
}
.filter-group h3 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.8rem;
}
.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 0.3rem;
  font-size: var(--fs-xs);
  color: var(--muted);
  cursor: pointer;
}
.filter-option:hover {
  color: var(--ink);
}
.filter-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.filter-option__label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.filter-option__box {
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 1px;
  flex: none;
  display: grid;
  place-items: center;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.filter-option__box::after {
  content: '';
  width: 0.42rem;
  height: 0.28rem;
  border-left: 1.5px solid var(--paper);
  border-bottom: 1.5px solid var(--paper);
  transform: rotate(-45deg) translateY(-1px) scale(0);
  transition: transform var(--fast) var(--ease);
}
.filter-option input:checked + .filter-option__label .filter-option__box {
  background: var(--ink);
  border-color: var(--ink);
}
.filter-option input:checked + .filter-option__label .filter-option__box::after {
  transform: rotate(-45deg) translateY(-1px) scale(1);
}
.filter-option input:checked + .filter-option__label {
  color: var(--ink);
  font-weight: 500;
}
.filter-option input:focus-visible + .filter-option__label .filter-option__box {
  outline: 2px solid var(--gold-ink);
  outline-offset: 2px;
}
.filter-option__count {
  font-size: 0.6875rem;
  color: #8b8e83;
  font-variant-numeric: tabular-nums;
}
.filter-reset {
  margin-top: 1.1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.results-count {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.sort select {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 0.25rem 1.4rem 0.25rem 0.1rem;
  font-size: var(--fs-xs);
  color: var(--ink);
  border-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235b5e54' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  background-size: 0.6rem;
  appearance: none;
}
.filter-toggle {
  display: none;
}
.empty-state {
  padding-block: 4rem;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--sand);
}
.empty-state h3 {
  font-size: 1.5rem;
}
.empty-state p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: var(--fs-sm);
}
@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
    display: none;
    border: 1px solid var(--line);
    padding: 1.25rem;
    background: var(--sand);
  }
  .filters[data-open='true'] {
    display: block;
  }
  .filter-toggle {
    display: inline-flex;
  }
}

/* ------------------------------------------------------- product detail --- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.75rem);
  align-items: start;
  padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--section-y);
}
.pdp__media {
  position: sticky;
  top: 6rem;
}
.pdp__stage {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
}
.pdp__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp__ribbon {
  position: absolute;
  top: 1rem;
  left: 1rem;
}
.pdp__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.pdp__thumb {
  width: 4.25rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--sand);
}
.pdp__thumb[aria-current='true'] {
  border-color: var(--ink);
}
.pdp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp__info h1 {
  margin-top: 0.6rem;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
}
.pdp__tagline {
  margin-top: 0.85rem;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--muted);
  max-width: 42ch;
}
.pdp__price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-block: 1.25rem;
  border-block: 1px solid var(--line);
}
.pdp__price b {
  font-size: 1.5rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.pdp__price span {
  font-size: var(--fs-xs);
  color: var(--muted);
}
.pdp__buy {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.pdp__qty-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.6rem;
}
.pdp__qty-row .qty {
  height: 3.15rem;
  justify-content: space-between;
}
.pdp__buy .btn {
  width: 100%;
}
.pdp__assure {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.25rem;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.pdp__assure li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.pdp__assure svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  margin-top: 0.1rem;
  color: var(--gold-ink);
}
.spec-table {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
}
.spec-table__row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.spec-table__row dt {
  color: var(--muted);
}
.spec-table__row dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pdp__section {
  margin-top: 2.5rem;
}
.pdp__section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}
.pdp__section p {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--muted);
}
.pdp__section p + p {
  margin-top: 0.9rem;
}
.related {
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .pdp {
    grid-template-columns: 1fr;
  }
  .pdp__media {
    position: static;
  }
}

/* ------------------------------------------------------------- cart page --- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 23rem;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem) var(--section-y);
}
.cart-table {
  border-top: 1px solid var(--line);
}
.cart-row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 7rem 6rem;
  gap: 1.25rem;
  align-items: center;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.cart-row__media {
  width: 6.5rem;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
}
.cart-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-row__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
}
.cart-row__name a:hover {
  color: var(--gold-ink);
}
.cart-row__meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.cart-row__unit {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cart-row__total {
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cart-row__remove {
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.cart-row__remove:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.cart-head {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 7rem 6rem;
  gap: 1.25rem;
  padding-bottom: 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-head span:nth-child(3),
.cart-head span:nth-child(4) {
  text-align: right;
}
.summary {
  position: sticky;
  top: 6rem;
  border: 1px solid var(--line);
  background: var(--sand);
  padding: 1.5rem;
}
.summary h2 {
  font-size: 1.3rem;
}
.summary__rows {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.1rem;
  font-size: var(--fs-xs);
}
.summary__rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.summary__rows .total {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-strong);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.summary .btn {
  margin-top: 1.25rem;
}
.summary__note {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}
.summary__pay {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.6875rem;
  color: var(--muted);
}
.summary__pay svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--gold-ink);
}
@media (max-width: 960px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }
}
@media (max-width: 620px) {
  .cart-head {
    display: none;
  }
  .cart-row {
    grid-template-columns: 5rem minmax(0, 1fr);
    grid-template-areas:
      'media body'
      'media total';
    gap: 0.75rem 1rem;
  }
  .cart-row__media {
    grid-area: media;
    width: 5rem;
  }
  .cart-row__body {
    grid-area: body;
  }
  .cart-row__total {
    grid-area: total;
    text-align: left;
  }
  .cart-row__qty-col,
  .cart-row__unit {
    display: none;
  }
}

/* ------------------------------------------------------------- checkout --- */
.steps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.steps li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.steps li::after {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--line-strong);
}
.steps li:last-child::after {
  display: none;
}
.steps .is-current {
  color: var(--ink);
  font-weight: 600;
}
.steps .is-done {
  color: var(--gold-ink);
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 23rem;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem) var(--section-y);
}
.form-section {
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}
.form-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.form-section__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.form-section__n {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold-ink);
}
.form-section h2 {
  font-size: 1.35rem;
}
.form-section__note {
  margin-top: 0.35rem;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.radio-card + .radio-card {
  margin-top: 0.6rem;
}
.radio-card:hover {
  border-color: #bdb6a3;
}
.radio-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.radio-card__dot {
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  flex: none;
  margin-top: 0.15rem;
  display: grid;
  place-items: center;
  transition: border-color var(--fast) var(--ease);
}
.radio-card__dot::after {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform var(--fast) var(--ease);
}
.radio-card input:checked ~ .radio-card__dot {
  border-color: var(--ink);
}
.radio-card input:checked ~ .radio-card__dot::after {
  transform: scale(1);
}
.radio-card:has(input:checked) {
  border-color: var(--ink);
  background: var(--sand);
}
.radio-card input:focus-visible ~ .radio-card__dot {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
}
.radio-card__body {
  flex: 1;
  min-width: 0;
}
.radio-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
}
.radio-card__title small {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.radio-card__desc {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}
.provider-marks {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.provider-mark {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
}
.momo-panel {
  margin-top: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.momo-panel[hidden] {
  display: none;
}
.momo-panel__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.6rem;
}
.msisdn {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  overflow: hidden;
}
.msisdn:focus-within {
  border-color: var(--ink);
}
.msisdn__prefix {
  display: grid;
  place-items: center;
  padding-inline: 0.75rem;
  background: var(--sand);
  border-right: 1px solid var(--line-strong);
  font-size: var(--fs-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.msisdn input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.8rem 0.85rem;
  background: transparent;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.msisdn input:focus {
  outline: none;
}

/* map */
.map-block {
  margin-top: 1rem;
}
.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.map-toolbar .btn {
  min-height: 2.4rem;
  padding: 0.55rem 0.9rem;
}
.map-status {
  font-size: 0.75rem;
  color: var(--muted);
}
.map {
  height: 17rem;
  border: 1px solid var(--line-strong);
  background: var(--sand);
  z-index: 0;
}
.map-pin {
  border: 0;
  background: none;
}
.map-fallback {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px dashed var(--line-strong);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.leaflet-container {
  font-family: var(--font-sans);
  background: var(--sand);
}
.leaflet-control-zoom a {
  border-radius: 0 !important;
  color: var(--ink) !important;
  border-color: var(--line-strong) !important;
}
.leaflet-control-attribution {
  font-size: 9px !important;
  background: rgba(250, 248, 242, 0.85) !important;
}

/* ---------------------------------------------------------- order / done --- */
.order-hero {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.order-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.success-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(220, 195, 141, 0.45);
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.success-mark svg {
  width: 0.95rem;
  height: 0.95rem;
}
.order-hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  color: var(--on-dark);
}
.order-hero p {
  margin-top: 0.9rem;
  color: #c9c7bb;
  max-width: 46ch;
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.order-ref {
  border: 1px solid var(--line-on-dark);
  padding: 1.25rem;
}
.order-ref dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  font-size: var(--fs-xs);
}
.order-ref dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.order-ref dt {
  color: var(--muted-on-dark);
}
.order-ref dd {
  margin: 0;
  color: var(--on-dark);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.order-ref .total {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line-on-dark);
}
.order-ref .total dd {
  font-size: 1rem;
}
.order-body {
  padding-block: clamp(2rem, 4vw, 3.5rem) var(--section-y);
}
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.order-panel {
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.order-panel h2 {
  font-size: 1.4rem;
}
.order-panel > p {
  margin-top: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.progress-steps {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.progress-step {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.9rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.progress-step__dot {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.progress-step.is-active .progress-step__dot {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.progress-step.is-done .progress-step__dot {
  background: var(--sand);
  border-color: var(--gold);
  color: var(--gold-ink);
}
.progress-step strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.progress-step span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 0.15rem;
}
.rider-card {
  border: 1px solid var(--line);
  background: var(--sand);
  padding: 1.25rem;
}
.rider-card h3 {
  font-size: 1.1rem;
}
.rider-card p {
  margin-top: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.6;
}
.rider-card .btn {
  margin-top: 0.9rem;
  width: 100%;
}
.order-lines {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.order-line {
  display: grid;
  grid-template-columns: 2.75rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  font-size: var(--fs-xs);
}
.order-line img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: cover;
  border: 1px solid var(--line);
}
.order-line__qty {
  color: var(--muted);
}
.order-line__price {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
@media (max-width: 900px) {
  .checkout-layout,
  .order-layout,
  .order-hero__grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ age gate --- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--ink);
  color: var(--on-dark);
}
.age-gate[hidden] {
  display: none;
}
.age-gate__card {
  width: min(30rem, 100%);
  border: 1px solid var(--line-on-dark);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.age-gate__card h2 {
  margin-top: 1.25rem;
  color: var(--on-dark);
  font-size: 1.85rem;
}
.age-gate__card p {
  margin-top: 0.8rem;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--muted-on-dark);
}
.age-gate__actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.75rem;
}
.age-gate__decline {
  font-size: 0.75rem;
  color: var(--muted-on-dark);
  text-align: center;
  margin-top: 0.4rem;
}

/* -------------------------------------------------------- search overlay --- */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: var(--paper);
  transform: translateY(-102%);
  transition: transform var(--med) var(--ease);
  visibility: hidden;
  display: flex;
  flex-direction: column;
}
.search-panel[data-open='true'] {
  transform: none;
  visibility: visible;
}
.search-panel__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.search-panel__head input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  padding: 0.35rem 0;
  min-width: 0;
}
.search-panel__head input:focus {
  outline: none;
}
.search-panel__body {
  flex: 1;
  overflow-y: auto;
  padding-block: 1.5rem 3rem;
}
.search-hint {
  font-size: var(--fs-xs);
  color: var(--muted);
}
.search-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1.25rem;
}
.search-results:empty {
  display: none;
}
.search-result {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--paper);
}
.search-result:hover {
  background: var(--sand);
}
.search-result img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border: 1px solid var(--line);
}
.search-result strong {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.3;
}
.search-result span {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
@media (max-width: 900px) {
  .search-results {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .search-results {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------- payment wait --- */
.pay-wait {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
  padding: 1.5rem;
}
.pay-wait__spinner {
  width: 2.2rem;
  height: 2.2rem;
  border: 2px solid var(--line-strong);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.pay-wait h3 {
  font-size: 1.15rem;
}
.pay-wait p {
  font-size: var(--fs-xs);
  color: var(--muted);
  max-width: 34ch;
}
.pay-wait__amount {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.pay-wait[hidden] {
  display: none;
}
