/* Focused UX layer for product discovery, checkout progress and post-purchase clarity. */

.shop-choice-wrap {
  display: grid;
  grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr);
  gap: 22px;
  align-items: center;
  margin: -4px 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--linea);
  border-radius: 20px;
  background: var(--crema);
}
.shop-choice-copy { display: grid; gap: 4px; }
.shop-choice-copy strong { color: var(--vino); }
.shop-choice-copy span { color: #75666b; font-size: 13px; }
.shop-choice-rail { display: flex; gap: 10px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.shop-choice-button {
  min-width: 170px;
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid rgba(96,13,43,.15);
  border-radius: 15px;
  background: #fff;
  color: var(--carbon);
  cursor: pointer;
  font: inherit;
}
.shop-choice-button:hover,
.shop-choice-button:focus-visible { border-color: var(--vino); outline: none; transform: translateY(-1px); }
.shop-choice-button strong { color: var(--vino); font-size: 13px; }
.shop-choice-button span { color: #7c6d72; font-size: 11px; line-height: 1.35; }
.commerce-product { scroll-margin-top: 150px; }
.commerce-product-body { display: flex; flex: 1; flex-direction: column; }
.product-meta > div { min-width: 0; }
.product-price { margin-top: 4px; color: var(--vino); font-size: 14px; font-weight: 800; }
.commerce-product-description { min-height: 66px; }
.product-profile { display: grid; gap: 8px; margin-top: 12px; }
.product-profile-label { color: #75666b; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.commerce-product .commerce-actions { margin-top: auto; padding-top: 20px; }
.commerce-product .btn.is-added { background: var(--verde); border-color: var(--verde); }

.commerce-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 620px;
  margin: 0 0 28px;
}
.commerce-steps span {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  color: #8b7b80;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}
.commerce-steps b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--crema);
  color: var(--vino);
  font-size: 11px;
}
.commerce-steps .is-current { border-color: rgba(96,13,43,.35); color: var(--vino); background: #fff8fa; }
.commerce-steps .is-current b { background: var(--vino); color: #fff; }
.commerce-steps .is-done { color: #315047; background: #f3f8f5; }
.commerce-steps .is-done b { background: var(--verde); color: #fff; }

.cart-mobile-checkout { display: none; }
.checkout-order-card { position: sticky; top: 150px; }
.checkout-submit-zone { display: grid; gap: 12px; margin-top: 18px; }
.checkout-trust-row {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f0e6;
  color: #6b5f62;
  font-size: 12px;
}
.checkout-trust-row strong { color: var(--verde); font-size: 12px; }
.checkout-summary-note { margin-top: 16px; color: #786a6f; font-size: 12px; line-height: 1.5; }
[data-checkout-submit][aria-busy="true"] { cursor: wait; opacity: .75; }

.order-status-lead { max-width: 680px; }
.order-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 28px 0 8px;
}
.order-progress-step {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 12px 8px;
  border-radius: 16px;
  background: #f7f3ec;
  color: #8a7a7f;
  text-align: center;
  font-size: 11px;
}
.order-progress-marker {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e9e0d5;
  color: var(--vino);
  font-weight: 900;
}
.order-progress-step.is-done { background: #f0f7f3; color: #315047; }
.order-progress-step.is-done .order-progress-marker { background: var(--verde); color: #fff; }
.order-progress-step.is-current { background: #fff3f6; color: var(--vino); }
.order-progress-step.is-current .order-progress-marker { background: var(--vino); color: #fff; }
.order-progress-step.is-error { background: #fff0f0; color: #8b2020; }
.order-progress-step.is-error .order-progress-marker { background: #8b2020; color: #fff; }
.order-status-actions { margin-top: 24px; }
.order-club-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding: 20px;
  border-radius: 20px;
  background: var(--crema);
}
.order-club-summary h3 { margin: 4px 0 6px; color: var(--vino); }
.order-club-summary p { margin: 0; color: #75666b; font-size: 13px; }

@media (max-width: 900px) {
  .shop-choice-wrap { grid-template-columns: 1fr; }
  .checkout-order-card { position: static; }
}

@media (max-width: 620px) {
  .shop-choice-wrap { margin-bottom: 20px; padding: 15px; }
  .shop-choice-rail { margin: 0 -15px; padding: 2px 15px 4px; }
  .shop-choice-button { min-width: 158px; }
  .commerce-product-description { min-height: 0; }
  .commerce-product .commerce-actions { display: grid; grid-template-columns: 1fr; }
  .commerce-product .commerce-actions .btn { width: 100%; justify-content: center; }

  .commerce-steps { gap: 5px; margin-bottom: 22px; }
  .commerce-steps span { min-height: 38px; justify-content: center; padding: 7px; font-size: 10px; }
  .commerce-steps b { width: 21px; height: 21px; font-size: 10px; }

  .cart-layout { margin-bottom: 92px; }
  .cart-mobile-checkout:not([hidden]) {
    position: fixed;
    z-index: 110;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(96,13,43,.15);
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 18px 50px rgba(35,22,22,.22);
    backdrop-filter: blur(14px);
  }
  .cart-mobile-checkout-copy { display: grid; gap: 1px; }
  .cart-mobile-checkout-copy span { color: #807075; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
  .cart-mobile-checkout-copy strong { color: var(--vino); font-size: 16px; }
  .cart-mobile-checkout .btn { min-height: 44px; }

  .checkout-submit-zone {
    position: sticky;
    z-index: 20;
    bottom: 0;
    margin: 18px -18px -18px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, #fff 80%, rgba(255,255,255,.88));
  }
  .checkout-trust-row { text-align: center; }

  .order-progress { grid-template-columns: repeat(4, minmax(78px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .order-status-card h1 { font-size: clamp(40px, 14vw, 58px); }
  .order-status-actions { display: grid; grid-template-columns: 1fr; }
  .order-status-actions .btn { width: 100%; justify-content: center; }
  .order-club-summary { align-items: stretch; flex-direction: column; }
  .order-club-summary .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-choice-button { transition: none; }
  .shop-choice-button:hover,
  .shop-choice-button:focus-visible { transform: none; }
}
