/* /cart/ — page styles. Tokens and panels come from /assets/wp/wp.css. */

.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 3vw, 1.75rem);
}
.head { display: flex; flex-direction: column; gap: 0.6rem; }
.eyebrow {
  margin: 0;
  font-family: var(--wp-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wp-brass);
}
.title {
  margin: 0;
  font-family: var(--wp-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: 0.9;
  color: var(--wp-bone);
}
.lede { margin: 0; max-width: 52ch; font-family: var(--wp-body); line-height: 1.6; color: var(--wp-bone-dim); }
.lede a, .cart__more a { color: var(--wp-brass); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cart__flash {
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(220, 90, 70, 0.55);
  background: rgba(220, 90, 70, 0.08);
  font-family: var(--wp-body);
  line-height: 1.5;
  color: var(--wp-bone);
}
.cart__flash.is-ok { border-color: var(--wp-brass); background: rgba(201, 162, 75, 0.08); }

/* ---- lines ------------------------------------------------------------ */
.cart__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cart__line {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto auto;
  grid-template-areas: "thumb what qty total" "thumb what rm rm";
  gap: 0.3rem 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--wp-rule);
}
.cart__line.is-new { background: linear-gradient(90deg, rgba(201, 162, 75, 0.10), transparent 70%); }
.cart__thumb {
  grid-area: thumb;
  width: 4.5rem; height: 4.5rem;
  border: 1px solid var(--wp-rule);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.cart__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart__what { grid-area: what; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.cart__name { font-family: var(--wp-display); font-size: 1.05rem; color: var(--wp-bone); text-decoration: none; }
.cart__name:hover { color: var(--wp-brass-bright); }
.cart__opt, .cart__each { font-family: var(--wp-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--wp-bone-dim); }
.cart__warn { font-family: var(--wp-body); font-size: 0.8rem; color: #e08a78; }

.cart__qty { grid-area: qty; margin: 0; }
.cart__qty select, .cart__to select {
  font: inherit;
  font-family: var(--wp-mono);
  padding: 0.35rem 0.5rem;
  background: var(--wp-void);
  color: var(--wp-bone);
  border: 1px solid var(--wp-rule);
}
.cart__total { grid-area: total; margin: 0; font-family: var(--wp-display); font-size: 1.1rem; color: var(--wp-bone); text-align: right; min-width: 4.5rem; }
.cart__rm { grid-area: rm; margin: 0; justify-self: end; }
.cart__rm button, .cart__qty button, .cart__to button {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--wp-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--wp-bone-faint); text-decoration: underline;
}
.cart__rm button:hover { color: var(--wp-bone); }

@media (max-width: 560px) {
  .cart__line {
    grid-template-columns: 3.5rem 1fr auto;
    grid-template-areas: "thumb what total" "thumb qty rm";
  }
  .cart__thumb { width: 3.5rem; height: 3.5rem; }
  .cart__qty { justify-self: start; }
}


/* ---- summary ---------------------------------------------------------- */
.cart__sum { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.1rem, 3vw, 1.6rem); }
.cart__to { display: flex; align-items: center; gap: 0.75rem; margin: 0; }
.cart__to label { font-family: var(--wp-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp-brass); }
.cart__rows { margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.cart__rows > div { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--wp-body); color: var(--wp-bone); }
.cart__rows dt, .cart__rows dd { margin: 0; }
.cart__rows dd { text-align: right; }
.cart__rows .is-note { color: var(--wp-bone-dim); font-size: 0.88rem; }
.cart__rows .is-bad { color: #e08a78; }
.cart__rows .is-total { font-family: var(--wp-display); font-size: 1.2rem; padding-top: 0.45rem; border-top: 1px solid var(--wp-rule); }

.cart__go { margin: 0; }
.cart__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0 1.4rem;
  font-family: var(--wp-mono); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  color: var(--wp-void); background: var(--wp-brass); border: 1px solid var(--wp-brass);
}
.cart__btn:hover, .cart__btn:focus-visible { filter: brightness(1.12); }
.cart__btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.cart__btn--big { width: 100%; min-height: 3.25rem; font-size: 0.9rem; }
.cart__small { margin: 0; font-family: var(--wp-body); font-size: 0.82rem; line-height: 1.5; color: var(--wp-bone-dim); }
.cart__more { margin: 0; font-family: var(--wp-body); font-size: 0.9rem; color: var(--wp-bone-dim); }
.cart__empty { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; padding: 1.4rem; }
.cart__empty p { margin: 0; font-family: var(--wp-body); color: var(--wp-bone-dim); }

.cart__receipt { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.cart__receipt li { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--wp-body); color: var(--wp-bone); }
.cart__receipt em { font-style: normal; font-family: var(--wp-mono); font-size: 0.72rem; color: var(--wp-brass); }
/* ---- deals (store-fix-013, 2026-10-07) ----------------------------------
   A line on a live deal: list price struck, the deal price beside it, and
   the deal's flag in brass. The summary gets a "Deal −$x" row above the
   subtotal only when something actually came off. */
.cart__each s { color: var(--wp-bone-faint); margin-right: 0.15em; }
.cart__deal { font-style: normal; color: var(--wp-brass); margin-left: 0.5em; }
.cart__rows .is-deal dd { color: var(--wp-brass-bright); }
