/* Phase U2 trust + order-summary chrome. */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--fg-dim, rgba(255, 255, 255, 0.7));
  font-size: 0.86rem;
  text-align: center;
}
.trust-row .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.trust-row .trust-item::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  background: currentColor;
  mask: var(--trust-icon) no-repeat center / contain;
  -webkit-mask: var(--trust-icon) no-repeat center / contain;
  flex: 0 0 auto;
}
.trust-row .trust-secure {
  --trust-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M12 2 4 5v7c0 5 3.5 8.5 8 10 4.5-1.5 8-5 8-10V5l-8-3Zm0 4 5 1.8V12c0 3.6-2.6 6.5-5 7.8C9.6 18.5 7 15.6 7 12V7.8L12 6Z'/></svg>");
}
.trust-row .trust-return {
  --trust-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8Z'/></svg>");
}
.trust-row .trust-ship {
  --trust-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M20 8h-3V4H3v12h2a3 3 0 0 0 6 0h2a3 3 0 0 0 6 0h2v-5l-1-3ZM8 17a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm9 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2ZM17 11V9.5h2.5L20 11Z'/></svg>");
}

/* Payment-method logo strip. */
.payment-logos {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}
.payment-logos .pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  border-radius: 0.25rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.payment-logos .pay-logo.amex { background: #006fcf; color: white; }
.payment-logos .pay-logo.mc   { background: linear-gradient(90deg, #eb001b 0 50%, #f79e1b 50%); color: white; }
.payment-logos .pay-logo.visa { background: #1a1f71; color: white; }
.payment-logos .pay-logo.discover { background: #f68121; color: white; }

/* Security badge next to Place Order. */
.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--fg-dim, rgba(255, 255, 255, 0.6));
}
.secure-badge::before {
  content: "🔒";
  font-size: 0.95rem;
}

/* Sticky order summary (desktop) */
@media (min-width: 900px) {
  .checkout-wrap.has-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
  }
  .checkout-wrap.has-sidebar > h1 { grid-column: 1 / -1; }
  .checkout-wrap.has-sidebar > .checkout-sidebar {
    position: sticky;
    top: 1rem;
  }
}

.checkout-sidebar {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 0.5rem;
  padding: 1.25rem 1.35rem;
}
.checkout-sidebar h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  color: var(--gold, #c8a15a);
}
.checkout-sidebar .summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.18rem 0;
  font-size: 0.92rem;
}
.checkout-sidebar .summary-line.muted { color: var(--muted, rgba(255, 255, 255, 0.55)); }
.checkout-sidebar .summary-total {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  font-weight: 700;
  font-size: 1.02rem;
}

/* Order-timeline on /order.html */
.order-timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.5rem;
  margin: 1.25rem 0 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.5rem;
}
.order-timeline .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted, rgba(255, 255, 255, 0.5));
  position: relative;
}
.order-timeline .step + .step::before {
  content: "";
  position: absolute;
  left: -50%;
  top: 12px;
  width: 100%;
  height: 2px;
  background: var(--border, rgba(255, 255, 255, 0.1));
}
.order-timeline .step.past + .step::before,
.order-timeline .step.current + .step::before {
  background: var(--gold, #c8a15a);
}
.order-timeline .dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border, rgba(255, 255, 255, 0.15));
  background: var(--bg, #1a0f1a);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  line-height: 1;
  z-index: 1;
}
.order-timeline .step.past .dot,
.order-timeline .step.current .dot {
  border-color: var(--gold, #c8a15a);
  color: var(--gold, #c8a15a);
  background: var(--bg, #1a0f1a);
}
.order-timeline .step.past .dot::before { content: "✓"; color: var(--gold, #c8a15a); }
.order-timeline .step.current .dot {
  background: var(--gold, #c8a15a);
  color: #1a0f1a;
}
.order-timeline .step.current .dot::before { content: "●"; }
.order-timeline .step.current .label {
  color: var(--fg, white);
  font-weight: 600;
}
.order-timeline .step .label { font-size: 0.82rem; }
.order-timeline .step .sub { font-size: 0.72rem; color: var(--muted, rgba(255, 255, 255, 0.45)); }

/* Ticket wallet pass — QR code + order number for door check-in. */
.ticket-pass {
  max-width: 22rem;
  margin: 1.5rem auto;
  padding: 1.25rem;
  text-align: center;
  background: #fff;
  color: #111;
  border-radius: var(--radius, 6px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.ticket-pass__label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #555;
  margin-bottom: 0.75rem;
}
.ticket-pass__qr {
  display: grid;
  place-items: center;
  min-height: 220px;
}
.ticket-pass__qr img { display: block; }
.ticket-pass__number {
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
  color: #111;
}
.ticket-pass__note {
  font-size: 0.75rem;
  color: #555;
  margin-top: 0.5rem;
}
.ticket-pass__fallback {
  font-family: "Courier New", monospace;
  font-size: 1.4rem;
  color: #111;
  display: inline-block;
  padding: 1rem 1.25rem;
  background: #f4f4f4;
  border-radius: var(--radius, 6px);
}

/* Post-purchase account prompt */
.account-prompt {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: rgba(201, 161, 91, 0.08);
  border: 1px solid rgba(201, 161, 91, 0.25);
  border-radius: 0.4rem;
}
.account-prompt h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.account-prompt p { margin: 0 0 0.75rem; color: var(--fg-dim); font-size: 0.92rem; }
.account-prompt form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.account-prompt input[type="password"] {
  flex: 1 1 200px;
  padding: 0.5rem 0.75rem;
  background: var(--bg, rgba(0, 0, 0, 0.3));
  color: var(--fg, white);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  border-radius: 0.25rem;
  font-family: inherit;
}
.account-prompt .msg { font-size: 0.85rem; color: var(--gold, #c8a15a); margin-top: 0.5rem; min-height: 1em; }
.account-prompt .msg.error { color: #e88; }

/* Free-shipping progress bar — cart + checkout sidebar. Baymard's single
   highest-lift conversion lever. */
.free-ship-bar {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.35rem;
  background: rgba(200, 161, 90, 0.08);
  border: 1px solid rgba(200, 161, 90, 0.18);
}
.free-ship-bar__label {
  font-size: 0.9rem;
  color: var(--fg, white);
  margin-bottom: 0.5rem;
}
.free-ship-bar__label strong { color: var(--gold, #c8a15a); }
.free-ship-bar__track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.free-ship-bar__fill {
  height: 100%;
  background: var(--gold, #c8a15a);
  width: 0%;
  transition: width 0.25s ease-out;
}
.free-ship-bar.is-unlocked {
  background: rgba(120, 180, 120, 0.1);
  border-color: rgba(120, 180, 120, 0.25);
}
.free-ship-bar.is-unlocked .free-ship-bar__fill {
  background: #8ac48a;
}

/* Cross-sell row — cart + order-confirmation pages. */
.cross-sell {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}
.cross-sell__heading {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--fg, white);
}
.cross-sell__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.cross-sell__card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 0.3rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s, transform 0.15s;
}
.cross-sell__card:hover {
  border-color: var(--gold, #c8a15a);
  transform: translateY(-2px);
}
.cross-sell__img {
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cross-sell__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cross-sell__img--ph {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--fg-dim, rgba(255, 255, 255, 0.4));
}
.cross-sell__title {
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.cross-sell__price {
  color: var(--gold, #c8a15a);
  font-size: 0.88rem;
}

/* Cart drawer — slides in on PDP add-to-cart. */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
}
.cart-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.cart-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cart-drawer.is-open .cart-drawer__scrim { opacity: 1; }
.cart-drawer__panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: var(--bg-1, #1a0f1a);
  border-left: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  outline: none;
}
.cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }
.cart-drawer__header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer__header h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: var(--fg, white);
}
.cart-drawer__close {
  background: none;
  border: none;
  color: var(--fg-dim, rgba(255, 255, 255, 0.6));
  font-size: 1.8rem;
  line-height: 1;
  padding: 0 0.25rem;
  cursor: pointer;
}
.cart-drawer__close:hover { color: var(--fg, white); }
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}
.cart-drawer__item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}
.cart-drawer__item:last-child { border-bottom: none; }
.cart-drawer__item-img {
  width: 60px; height: 60px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.25rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-drawer__item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cart-drawer__item-ph {
  font-family: "Playfair Display", serif;
  color: var(--fg-dim, rgba(255, 255, 255, 0.4));
  font-size: 1.4rem;
}
.cart-drawer__item-title {
  font-size: 0.92rem;
  color: var(--fg, white);
  line-height: 1.3;
}
.cart-drawer__item-variant,
.cart-drawer__item-qty {
  font-size: 0.82rem;
  color: var(--fg-dim, rgba(255, 255, 255, 0.6));
}
.cart-drawer__item-price {
  color: var(--gold, #c8a15a);
  font-size: 0.9rem;
}
.cart-drawer__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cart-drawer__subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.cart-drawer__subtotal-row strong { color: var(--gold, #c8a15a); }
.cart-drawer__subtotal-note {
  font-size: 0.8rem;
  color: var(--fg-dim, rgba(255, 255, 255, 0.55));
  margin-bottom: 0.5rem;
}
.cart-drawer__checkout {
  text-align: center;
  width: 100%;
}
.cart-drawer__continue {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  color: var(--fg, white);
  cursor: pointer;
  font: inherit;
  padding: 0.6rem 1rem;
  border-radius: 0.3rem;
}
.cart-drawer__continue:hover { border-color: var(--gold, #c8a15a); }
body.cart-drawer-open { overflow: hidden; }
