/* ═══════════════════════════════════════════════════════════════
   Cart page — aligned with store-home product cards & section chrome
═══════════════════════════════════════════════════════════════ */
.cart-page {
  background: #f8f8f8;
  padding-bottom: 48px;
  border-top: 1px solid #f0f0f0;
  min-height: 42vh;
}
.cart-page .store-container {
  max-width: var(--store-max-width, 1400px);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.cart-page .section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 18px;
  flex-wrap: wrap;
  border: none;
}
.cart-page .section-heading-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 900;
  color: #0a0a0a;
  letter-spacing: -0.3px;
  margin: 0;
}
.cart-page .section-heading-meta {
  font-size: 0.8rem;
  color: #999;
  margin: 0;
}
.cart-page .section-heading-meta .count {
  font-weight: 700;
  color: #666;
}

.cart-empty {
  text-align: center;
  padding: 56px 24px 64px;
  background: #fff;
  border: 1.5px solid #ededed;
  border-radius: 14px;
  max-width: 420px;
  margin: 12px auto 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.cart-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 1.5px solid #ededed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 1.5rem;
}
.cart-empty-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 8px;
}
.cart-empty-hint {
  font-size: 0.88rem;
  color: #888;
  margin: 0 0 22px;
  line-height: 1.5;
}
.cart-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.cart-empty-cta i {
  font-size: 0.78rem;
  transition: transform 0.2s;
}
.cart-empty-cta:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 105, 0, 0.35);
}
.cart-empty-cta:hover i {
  transform: translateX(3px);
}

.cart-layout {
  display: grid;
  gap: 20px;
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .cart-layout {
    grid-template-columns: 1fr minmax(300px, 360px);
    gap: 24px;
  }
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-line-card {
  background: #fff;
  border: 1.5px solid #ededed;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.22s,
    border-color 0.22s;
  transform-style: preserve-3d;
}
@media (min-width: 560px) {
  .cart-line-card {
    flex-direction: row;
    align-items: stretch;
  }
}
.cart-line-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #ccc;
}

.cart-line-media {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  aspect-ratio: 1;
  max-height: 220px;
}
@media (min-width: 560px) {
  .cart-line-media {
    width: 148px;
    height: 148px;
    max-height: none;
    aspect-ratio: auto;
  }
}
.cart-line-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(18%) brightness(0.97);
  transform: scale(1);
  transition:
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.35s ease;
}
.cart-line-card:hover .cart-line-media img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1.04);
}
.cart-line-emoji {
  font-size: 3.5rem;
  line-height: 1;
}

.cart-line-body {
  flex: 1;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.cart-line-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cart-line-text {
  min-width: 0;
}
.cart-line-cat {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.cart-line-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #222;
  line-height: 1.35;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}
.cart-line-name:hover {
  color: var(--orange);
}
.cart-line-discount {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #dc2626;
}
.cart-line-discount i {
  font-size: 0.65rem;
}
.cart-line-each {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #111;
  text-align: right;
}
.cart-line-each-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

.cart-line-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-top: 4px;
  border-top: 1px solid #f0f0f0;
}
.cart-qty-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cart-qty-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-right: 2px;
}
.cart-qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid #ededed;
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
}
.cart-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  padding: 0;
  border: none;
  background: #f0f0f0;
  color: #333;
  cursor: pointer;
  font-size: 0.75rem;
  transition:
    background 0.18s,
    color 0.18s;
}
.cart-qty-btn:hover:not(:disabled) {
  background: #111;
  color: #fff;
}
.cart-qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.cart-qty-btn i {
  pointer-events: none;
}
.cart-page .cart-qty-input {
  width: 48px;
  min-width: 44px;
  text-align: center;
  border: none;
  border-left: 1.5px solid #ededed;
  border-right: 1.5px solid #ededed;
  border-radius: 0;
  padding: 8px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
}
.cart-page .cart-qty-input::-webkit-outer-spin-button,
.cart-page .cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-page .cart-qty-input:focus {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--orange);
}
.cart-page .cart-qty-input:disabled {
  opacity: 0.7;
  background: #f5f5f5;
}
.cart-qty-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  color: var(--orange, #ea580c);
  font-size: 0.95rem;
}
.cart-qty-spinner[hidden] {
  display: none !important;
}
.cart-line-sub {
  margin-left: auto;
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
}
.cart-page .cart-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  color: #991b1b;
  text-decoration: none;
  transition: color 0.18s;
}
.cart-page .cart-remove:hover {
  color: #dc2626;
  text-decoration: underline;
}
.cart-page .cart-remove i {
  font-size: 0.8rem;
}

.cart-summary-aside {
  position: relative;
}
@media (min-width: 960px) {
  .cart-summary-aside {
    position: sticky;
    top: 92px;
  }
}
.cart-sum-card {
  background: #fff;
  border: 1.5px solid #ededed;
  border-radius: 14px;
  padding: 22px 20px 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.cart-sum-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.cart-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: #525252;
}
.cart-sum-row span:first-child {
  color: #666;
}
.cart-sum-free {
  font-weight: 800;
  color: #16a34a;
}
.cart-sum-total {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed #e5e5e5;
  font-size: 1rem;
  font-weight: 800;
  color: #111;
}
.cart-sum-total span:last-child {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.cart-sum-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-btn.cart-checkout-btn {
  border-radius: 100px;
  padding: 14px 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.sc-btn.cart-checkout-btn:hover {
  box-shadow: 0 10px 32px rgba(255, 105, 0, 0.35);
}
.sc-btn.cart-keep-btn {
  border-radius: 100px;
  padding: 12px 22px;
}

/* ── Free shipping meter ────────────────────────────────────── */
.cart-free-ship {
  margin: -4px 0 14px;
  padding-bottom: 4px;
}
.cart-free-ship-text {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #555;
  margin: 0 0 10px;
}
.cart-free-ship-text strong {
  color: #111;
}
.cart-free-ship-bar {
  height: 8px;
  border-radius: 100px;
  background: #f0f0f0;
  overflow: hidden;
}
.cart-free-ship-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--orange), #ff9500);
  transition: width 0.35s ease;
}
.cart-free-ship--unlocked .cart-free-ship-text {
  color: #166534;
  margin-bottom: 0;
  font-size: 0.8rem;
}
.cart-free-ship--unlocked i {
  margin-right: 6px;
  color: #16a34a;
}

/* ── Summary trust / payment row ───────────────────────────── */
.cart-pay-trust {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}
.cart-pay-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.65rem;
  color: #9ca3af;
  margin-bottom: 8px;
}
.cart-pay-note {
  font-size: 0.72rem;
  color: #888;
  margin: 0;
  line-height: 1.4;
}

/* ── Empty state: categories + width ───────────────────────── */
.cart-empty--wide {
  max-width: 520px;
}
.cart-empty-cats {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}
.cart-empty-cats-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  margin: 0 0 12px;
}
.cart-empty-cat-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.cart-empty-cat-pills a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #333;
  background: #f8f8f8;
  border: 1.5px solid #ededed;
  border-radius: 100px;
  text-decoration: none;
  transition:
    border-color 0.18s,
    color 0.18s,
    background 0.18s;
}
.cart-empty-cat-pills a:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: #fff4ec;
}

/* ── Line item stock hint ──────────────────────────────────── */
.cart-line-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b45309;
  margin-top: 6px;
}
.cart-line-stock i {
  font-size: 0.65rem;
}

/* ── Product rails (recommended / deals / recent) ──────────── */
.cart-page .cart-rail {
  margin-top: 0;
}
.cart-page .cart-rail .section-heading {
  padding-top: 28px;
  padding-bottom: 14px;
}
.cart-page .cart-rail--recent .section-heading {
  padding-top: 36px;
}
.cart-page .cart-product-grid {
  padding-bottom: 8px;
}

/* Single-row “More for you” scroller */
.cart-more-heading .section-heading-meta {
  margin: 0;
}
.cart-see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #111;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 100px;
  border: 2px solid #e8e8e8;
  background: #fff;
  transition:
    border-color 0.18s,
    color 0.18s,
    background 0.18s;
}
.cart-see-more-btn i {
  font-size: 0.72rem;
  transition: transform 0.2s;
}
.cart-see-more-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: #fff4ec;
}
.cart-see-more-btn:hover i {
  transform: translateX(3px);
}

.cart-page .perks-strip {
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   Order history — cards on small screens, table from md up
═══════════════════════════════════════════════════════════════ */
.od-page {
  background: #f8f8f8;
  padding-bottom: 48px;
  border-top: 1px solid #f0f0f0;
  min-height: 42vh;
}
.od-page-inner {
  max-width: var(--store-max-width, 1100px);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 32px) clamp(16px, 4vw, 40px) 48px;
  box-sizing: border-box;
}
.od-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: clamp(18px, 3vw, 26px);
  border-bottom: 1px solid #eaeaea;
  margin-bottom: clamp(20px, 3vw, 28px);
}
.od-hero-text {
  min-width: 0;
}
.od-hero-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.od-hero-kicker i {
  font-size: 0.68rem;
  color: var(--orange);
}
.od-hero-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 900;
  color: #0a0a0a;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.od-hero-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 36rem;
}
.od-hero-count {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #666;
  background: #fff;
  border: 1.5px solid #ededed;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.od-hero-count-num {
  font-size: 1.05rem;
  font-weight: 900;
  color: #111;
  margin-right: 4px;
}
.od-banner {
  margin-bottom: 20px;
}
.od-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.od-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.od-cards > .od-card {
  list-style: none;
}
.od-card {
  margin: 0;
  background: #fff;
  border: 1.5px solid #ededed;
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition:
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.od-card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
  border-color: #d4d4d4;
}
.od-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.od-card-order {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.od-card-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a1a1aa;
}
.od-card-number {
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  word-break: break-all;
}
.od-card-dl {
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.od-card-row {
  margin: 0;
}
.od-card-row dt {
  margin: 0 0 4px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a1a1aa;
}
.od-card-row dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #363636;
}
.od-card-row--total {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px dashed #e8e8e8;
}
.od-card-row--total dt {
  margin: 0;
  font-size: 0.72rem;
}
.od-card-row--total dd {
  font-size: 1.05rem;
  font-weight: 900;
  color: #111;
}
.od-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.od-card-cta i {
  font-size: 0.65rem;
  opacity: 0.85;
  transition: transform 0.2s;
}
.od-card-cta:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 105, 0, 0.35);
}
.od-card-cta:hover i {
  transform: translateX(3px);
}

.od-table-shell {
  display: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1.5px solid #ededed;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.od-table-shell .sc-table {
  margin-top: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.od-th-num,
.od-td-num {
  text-align: right;
}
.od-td-action {
  text-align: right;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .od-cards {
    display: none;
  }
  .od-table-shell {
    display: block;
  }
}

.sc-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.sc-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.sc-muted {
  color: #888;
  font-size: 0.85rem;
}
.sc-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
}
.sc-table th,
.sc-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.88rem;
  border-bottom: 1px solid #f0f0f0;
}
.sc-table th {
  background: #fafafa;
  font-weight: 700;
  color: #666;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.sc-prod {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sc-prod img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
}
.sc-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-qty input {
  width: 48px;
  text-align: center;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px;
}
.sc-remove {
  color: #dc2626;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
}
.sc-summary {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-end;
}
.sc-sum-card {
  min-width: 280px;
  background: #fafafa;
  border: 1.5px solid #eee;
  border-radius: 12px;
  padding: 20px;
}
.sc-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.sc-row strong {
  font-size: 1.05rem;
}
.sc-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}
.sc-btn-primary {
  background: #111;
  color: #fff;
}
.sc-btn-primary:hover {
  background: var(--orange);
}
.sc-btn-primary:disabled {
  opacity: 0.92;
  cursor: wait;
}
.sc-btn-outline {
  background: #fff;
  border: 2px solid #111;
  color: #111;
}
.sc-empty {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}
.sc-banner {
  background: #fff3eb;
  border: 1px solid #ffd6b3;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.od-table {
  margin-top: 0;
}
.od-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #374151;
  text-transform: capitalize;
}
.od-status--paid {
  background: #dcfce7;
  color: #166534;
}
.od-status--pending,
.od-status--processing {
  background: #fef9c3;
  color: #854d0e;
}
.od-status--shipped,
.od-status--delivered {
  background: #e0f2fe;
  color: #0369a1;
}
.od-status--cancelled,
.od-status--failed {
  background: #fee2e2;
  color: #991b1b;
}
.od-view-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}
.od-view-link:hover {
  text-decoration: underline;
}
.od-back-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}
.od-back-link:hover {
  color: var(--orange);
}
.od-empty-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 16px;
}
.od-empty {
  text-align: center;
  width: 100%;
  max-width: 420px;
  padding: 48px 24px 52px;
  background: #fff;
  border: 1.5px solid #ededed;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.od-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 1.5px solid #ededed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 1.45rem;
}
.od-empty-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
}
.od-empty-hint {
  margin: 0 0 22px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.od-empty-cta {
  min-width: 200px;
}

/* Order success — centered confirmation */
.os-page {
  max-width: 540px;
  margin: 0 auto;
  padding: 32px var(--store-gutter, 20px) 56px;
  box-sizing: border-box;
}
.os-hero {
  text-align: center;
  margin-bottom: 28px;
}
.os-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  font-size: 1.75rem;
}
.os-title {
  font-size: clamp(1.45rem, 4vw, 1.75rem);
  font-weight: 800;
  color: #111;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.os-lead {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #525252;
}
.os-name {
  font-weight: 700;
  color: #111;
}
.os-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.os-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #525252;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  padding: 8px 12px;
  border-radius: 999px;
}
.os-chip--order {
  background: #111;
  border-color: #111;
  color: #fff;
}
.os-chip--order .fa-receipt {
  font-size: 0.72rem;
  opacity: 0.9;
}
.os-card {
  background: #fafafa;
  border: 1.5px solid #e4e4e7;
  border-radius: 16px;
  padding: 22px 20px 20px;
  text-align: left;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.os-card-heading {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e4e7;
}
.os-email,
.os-ship,
.os-pay {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #525252;
  margin: 0 0 10px;
}
.os-email strong {
  color: #111;
}
.os-ship-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a1a1aa;
  margin-bottom: 4px;
}
.os-pay {
  margin-bottom: 18px;
  color: #71717a;
}
.os-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.os-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.os-line:last-child {
  border-bottom: none;
}
.os-line-media {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.os-line-media img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  background: #f4f4f5;
  flex-shrink: 0;
}
.os-line-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  flex-shrink: 0;
  font-size: 1rem;
}
.os-line-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.os-line-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111;
  line-height: 1.35;
}
.os-line-qty {
  font-size: 0.75rem;
  color: #71717a;
}
.os-line-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111;
  flex-shrink: 0;
}
.os-totals {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #e4e4e7;
}
.os-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
  color: #525252;
  margin-bottom: 8px;
}
.os-total-row:last-child {
  margin-bottom: 0;
}
.os-total-row--grand {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #d4d4d8;
  font-size: 1rem;
  font-weight: 800;
  color: #111;
}
.os-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  max-width: 100%;
}
.os-actions .sc-btn {
  text-align: center;
}
@media (min-width: 520px) {
  .os-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
  }
  .os-actions .sc-btn {
    flex: 0 1 auto;
    min-width: min(100%, 168px);
  }
}
