/* Wardrobe package builder. Loaded after styles.css, reusing its tokens. */

.wardrobemain { max-width: 1100px; margin: 0 auto; }

.indicative,
.handoff {
  border-radius: var(--radius);
  padding: 13px 17px;
  font-size: 13.5px;
  margin: 0 0 16px;
  line-height: 1.5;
}
.indicative { background: #faf4e8; border: 1px solid #ecdcc0; color: #6c5731; }
.handoff { background: var(--accent-soft); border: 1px solid #cfe0d4; color: var(--accent); }
.handoff .hnote { color: var(--muted); }

.wardrobegrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

/* ── Categories ──────────────────────────────────────────────────────────── */
.cat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 12px;
  overflow: hidden;
}
.cat > summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
}
.cat > summary::-webkit-details-marker { display: none; }
.cat > summary:hover { background: #fbfaf7; }
.cat > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.catmeta { display: inline-flex; align-items: center; gap: 10px; }
.catcount {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  display: grid;
  place-items: center;
}
.catchev {
  width: 9px;
  height: 9px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}
.cat[open] > summary .catchev { transform: rotate(-135deg) translate(-2px, -2px); }
.catblurb { margin: -4px 18px 8px; color: var(--muted); font-size: 13px; }

.itemlist { list-style: none; margin: 0; padding: 0 18px 8px; }
.item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.item:first-child { border-top: 0; }
.itemtext { min-width: 0; }
.itemtext b { font-size: 14.5px; display: block; }
.itemnote { font-size: 12.5px; color: var(--muted); }
.itemprice { font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.itemprice span { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; }
/* The cloth the concierge picked for this piece — why its price is a figure
   and not a floor. */
.itemcloth { font-size: 12px; color: var(--accent); }
.item.chosen { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); }
.item.chosen .itemtext b { color: var(--accent); }

.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.stepper button {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
  border-radius: 999px;
}
.stepper button:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.stepper button:disabled { opacity: 0.3; cursor: default; }
.stepper input {
  width: 40px;
  border: 0;
  background: none;
  text-align: center;
  font: inherit;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }

/* ── Summary ─────────────────────────────────────────────────────────────── */
.summary { position: sticky; top: 18px; }
.summarycard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px;
  box-shadow: var(--shadow);
}
.summarycard h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 12px;
}
.summarylines { display: grid; gap: 6px; margin-bottom: 12px; }
.sline { display: grid; grid-template-columns: 30px 1fr auto; gap: 6px; font-size: 13.5px; }
.sqty { color: var(--muted); font-variant-numeric: tabular-nums; }
.samt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sname small { display: block; font-size: 11.5px; color: var(--muted); }
.sdrop { border: 0; background: none; cursor: pointer; color: var(--muted); font: inherit; font-size: 14px; line-height: 1; padding: 0 0 0 6px; }
.sdrop:hover { color: var(--accent); }
.upto { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; margin-left: 4px; font-weight: 500; }
.summarylines .empty { font-size: 13px; color: var(--muted); margin: 0; }

.summarytotals { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
.trow { display: flex; justify-content: space-between; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.trow.disc { color: var(--accent); }
.trow.total { font-size: 17px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 9px; margin-top: 3px; }

.nudge { margin: 14px 0 4px; font-size: 13px; }
.nudge p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.nudge b { color: var(--ink); }
.bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.25s ease; }
.nudge.favourable { background: #f3f8f4; border: 1px solid #cfe0d4; border-radius: 11px; padding: 11px 13px; }
.nudge.favourable p, .nudge.favourable b { color: var(--accent); }
.nudge.topped p { color: var(--accent); }

.ladder { margin: 14px 0; display: grid; gap: 3px; }
.rung {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 7px;
  font-variant-numeric: tabular-nums;
}
.rung.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rpct { font-weight: 600; }

.summarycard .primary { width: 100%; margin-top: 4px; }
.summarycard .ghost.small { width: 100%; margin-top: 8px; padding: 8px 14px; font-size: 13px; }
.summaryfoot { font-size: 11.5px; color: var(--muted); margin: 12px 0 0; line-height: 1.45; }

@media (max-width: 900px) {
  .wardrobegrid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .item { grid-template-columns: 1fr auto; row-gap: 8px; }
  .itemprice { text-align: left; grid-column: 1; }
  .stepper { grid-column: 2; grid-row: 1 / span 2; }
  /* Touch targets: 32px is comfortable with a mouse and too small with a
     thumb, and these are the only controls on the page. */
  .stepper button { width: 44px; height: 44px; font-size: 19px; }
  .stepper input { width: 44px; font-size: 15px; }
  .cat > summary { padding: 17px 18px; }
}

/* ── Two ways in ─────────────────────────────────────────────────────────── */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.mode {
  text-align: left; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 2px; transition: border-color 0.15s, background 0.15s;
}
.mode b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; font-weight: 600; }
.mode small { font-size: 12.5px; color: var(--muted); }
.mode:hover { border-color: var(--accent); }
.mode.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.mode.on small { color: var(--accent); }

.modelead { font-family: "Cormorant Garamond", Georgia, serif; font-size: 21px; font-weight: 600; margin: 4px 0 10px; }
.modelead .legendnote { font-family: "Inter", system-ui, sans-serif; font-size: 12.5px; font-weight: 400; color: var(--muted); }

.piecegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.piececard {
  text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font: inherit; color: var(--ink);
  display: flex; flex-direction: column; gap: 4px; min-height: 108px; transition: border-color 0.15s, background 0.15s;
}
.piececard b { font-size: 15px; font-weight: 600; }
.piececard small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.pieceprice { margin-top: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.piececard:hover { border-color: var(--accent); }
.piececard.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.piececard.on b, .piececard.on .pieceprice { color: var(--accent); }

.clothcta { margin: 14px 0 6px; padding: 12px 14px; border: 1px solid #cfe0d4; background: #f3f8f4; border-radius: 11px; font-size: 13px; color: var(--accent); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.clothcta .primary { padding: 8px 14px; font-size: 13.5px; text-decoration: none; }
.clothcta span { color: var(--muted); flex: 1; min-width: 200px; line-height: 1.45; }
.clothcta a:not(.primary) { color: var(--accent); }

.addons { margin-top: 18px; }
.addons .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.addons .chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 11px; line-height: 1.25; }
.addons .chip em { font-style: normal; font-weight: 700; }
.addons .chip small { font-size: 10.5px; color: var(--muted); }
.addons .chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.addons .chip.on small { color: var(--accent); }
.customrow { display: flex; gap: 8px; margin-top: 10px; }
.customrow input { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 13.5px; background: var(--card); }
.customrow input:focus { outline: none; border-color: var(--accent); }

.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.ways a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.ways a:hover { border-color: var(--accent); border-style: solid; }
.ways b { font-size: 14px; }
.ways small { font-size: 12px; color: var(--muted); }

.sline.custom .sname { color: var(--ink); }
.sline .sdrop { opacity: 0.55; }
.sline:hover .sdrop { opacity: 1; }

@media (max-width: 900px) {
  .modes, .ways { grid-template-columns: 1fr; }
  .piecegrid { grid-template-columns: 1fr 1fr; }
}

/* The staple's render on a one-piece card. */
.piececard.haspic { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: start; text-align: left; }
.piececard .piecepic { grid-row: 1 / span 3; width: 64px; height: 80px; object-fit: cover; border-radius: 8px; background: #e8e0d3; }
