/* ============================================================
   SHOP LAYER — product / cart / checkout
   Distinct "commerce" surface: airy paper background, bordered
   cards, mono micro-labels. Shares brand tokens with theme-noir
   (--yellow/--black/--paper) via the --ink/--coral aliases in
   style.css so colors stay on-brand while the layout language
   (cards, steppers, receipts) is unique to shopping pages.
   ============================================================ */

.shop-body { background: var(--paper); }

.shop-shell { background: var(--paper); min-height: 60vh; padding-bottom: 40px; }

/* ---------- Panels (fixes previously-unstyled .dash-panel on
   cart/checkout: now a real bordered card) ---------- */
.dash-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}
.dash-panel h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.dash-panel .panel-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}
@media (max-width: 576px) {
  .dash-panel { padding: 22px; border-radius: 14px; }
}

/* ---------- Shop step indicator ---------- */
.shop-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.shop-steps .step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
}
.shop-steps .step.is-active,
.shop-steps .step.is-done {
  opacity: 1;
  color: var(--ink);
  font-weight: 700;
}
.shop-steps .step .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}
.shop-steps .step.is-done .num { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.shop-steps .sep { width: 24px; height: 1px; background: var(--line); }

/* ---------- Product page ---------- */
.product-gallery {
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-gallery i {
  font-size: 4rem;
  color: var(--coral);
  opacity: 0.85;
}
.product-gallery .badge-sale {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 700;
}

.product-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.product-price small {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

.product-highlights {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.product-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink);
}
.product-highlights li i {
  color: var(--coral);
  background: var(--ink);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  margin-top: 2px;
}

.product-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.product-trust span { display: flex; align-items: center; gap: 6px; }
.product-trust i { color: var(--coral); }

.product-buybar {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: none;
}
@media (max-width: 767px) {
  .product-buybar.show-mobile { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
}

/* ---------- Cart ---------- */
.cart-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: none; }
.cart-thumb {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  font-size: 1.4rem;
  flex: none;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { font-size: 1.02rem; margin: 0 0 2px; }
.cart-item-info p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.cart-item-info .item-meta {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral-dark, #7a6f00);
  background: rgba(255,230,0,0.25);
  padding: 3px 10px;
  border-radius: 100px;
}
.cart-item-price { font-weight: 700; font-size: 1.05rem; flex: none; }
.cart-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.05rem;
  padding: 6px;
  flex: none;
  transition: color 0.2s;
}
.cart-remove:hover { color: #e5484d; }

.empty-cart { text-align: center; padding: 60px 20px; }
.empty-cart i { font-size: 3rem; color: var(--muted); margin-bottom: 14px; display: inline-block; }
.empty-cart h2 { margin-bottom: 8px; }
.empty-cart p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Order summary / receipt ---------- */
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 0.94rem;
  color: var(--ink);
}
.summary-row .label { color: var(--muted); }
.summary-row.total {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  padding-top: 14px;
}
.summary-row.total .label { color: var(--ink); font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; }

/* ---------- Checkout ---------- */
.checkout-title {
  font-size: 1.15rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.fieldset-kern .field { margin-bottom: 16px; }
.fieldset-kern .form-label { font-size: 0.84rem; font-weight: 600; margin-bottom: 6px; }
.fieldset-kern .form-control,
.fieldset-kern .form-select {
  border-radius: 10px;
  border: 1.5px solid var(--line);
  padding: 11px 14px;
  font-size: 0.94rem;
}
.fieldset-kern .form-control:focus,
.fieldset-kern .form-select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,230,0,0.25);
}
.section-divider { height: 1px; background: var(--line); margin: 28px 0; }
.payment-icons-strip { display: flex; gap: 12px; margin-bottom: 18px; }
.payment-icons-strip img { height: 26px; width: auto; }
.terms-container { margin-top: 18px; }
.check-box { margin-right: 8px; }

.checkout-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 18px;
}
.checkout-trust-strip span { display: flex; align-items: center; gap: 6px; }
.checkout-trust-strip i { color: var(--coral); }
