/* Top */
.pc-top { padding-block: 22px 28px; }
.pc-top .pc-crumbs ol { display: flex; flex-flow: row wrap; align-items: center; gap: 4px 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 12px; line-height: 1.4; color: var(--muted); }
.pc-top .pc-crumbs li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.pc-top .pc-crumbs li::marker { content: none; }
.pc-crumbs li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.pc-crumbs a:hover { color: var(--brown); }
.pc-crumbs [aria-current] { color: var(--ink); }
.pc-title { font: 600 clamp(36px, 4vw, 52px)/1.08 var(--serif); color: var(--ink); }
.pc-lede { max-width: 640px; margin-top: 10px; font-size: 14.5px; line-height: 1.75; color: var(--text); }
.pc-from { margin-top: 12px; font-size: 14px; color: var(--muted); }
.pc-from strong { font: 600 24px/1 var(--serif); color: var(--ink); }

/* Layout */
.pc-main { padding-bottom: clamp(48px, 5vw, 80px); }
.pc-form { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.pc-steps { min-width: 0; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }

/* Steps */
.pc-step { min-width: 0; margin: 0; padding: 24px 0; border: 0; border-top: 1px solid var(--line); }
.pc-step:first-child { padding-top: 0; border-top: 0; }
.pc-step:last-child { padding-bottom: 0; }
.pc-step__title {
  float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 0;
  font: 600 23px/1.2 var(--serif); color: var(--ink);
}
.pc-step__title + * { clear: both; }
.pc-step__title span {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--cream); color: var(--gold); font: 600 12px/1 var(--sans);
}
.pc-step__title small { margin-left: auto; font: 400 12px/1.4 var(--sans); color: var(--muted); }

.pc-label { display: block; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.pc-label small { margin-left: 6px; font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.pc-label--gap { margin-top: 20px; }
.pc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pc-err { margin-top: 8px; font-size: 12.5px; color: var(--wine); }
.pc-err:empty { display: none; }
.pc-note { margin-top: 8px; font-size: 12px; color: var(--muted); }
.pc-note:empty { display: none; }

/* Upload */
.pc-drop {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer;
  border: 1.5px dashed rgba(184, 138, 74, .55); border-radius: 16px; background: var(--bg);
  transition: border-color .2s, background-color .2s;
}
.pc-drop:hover { border-color: var(--brown); background: #fffaf4; }
.pc-drop:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.pc-drop.has-photo { border-style: solid; border-color: rgba(63, 107, 58, .45); background: #f6faf3; }
.pc-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pc-drop__icon {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); color: var(--gold); box-shadow: 0 8px 20px rgba(184, 138, 74, .18);
}
.pc-drop__icon svg { width: 24px; height: 24px; }
.pc-drop.has-photo .pc-drop__icon { display: none; }
.pc-drop__preview { flex: none; max-width:100px; height: 72px; object-fit: cover; border-radius: 12px; }
.pc-drop__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc-drop__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--ink); }
.pc-drop__text small { font-size: 12px; color: var(--muted); }

/* Pills */
.pc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-pill { position: relative; cursor: pointer; }
.pc-pill input { position: absolute; opacity: 0; pointer-events: none; }
.pc-pill span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font-size: 13.5px; font-weight: 500; color: var(--ink); text-align: center;
  transition: border-color .2s, background-color .2s, box-shadow .2s, opacity .2s;
}
.pc-pill:hover span { border-color: rgba(184, 138, 74, .6); }
.pc-pill input:checked + span { border-color: var(--brown); background: #fffaf4; box-shadow: inset 0 0 0 1px var(--brown); }
.pc-pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pc-pill.is-off { cursor: not-allowed; }
.pc-pill.is-off span { opacity: .4; background: var(--bg); }

.pc-pills--weight .pc-pill { flex: 0 0 calc((100% - 40px) / 6); }
.pc-pills--weight .pc-pill span { padding: 8px 4px; }
.pc-pills--weight .is-extra { display: none; }
.pc-pills--weight.is-open .is-extra { display: block; }
.pc-more {
  flex: 0 0 calc((100% - 40px) / 6); min-height: 44px; border: 1px dashed rgba(184, 138, 74, .6); border-radius: 12px;
  font-size: 12.5px; font-weight: 500; color: var(--brown);
}
.pc-more:hover { border-color: var(--brown); background: #fffaf4; }

.pc-pills--size { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-pill--size span { flex-direction: column; gap: 2px; padding: 12px 8px; }
.pc-pill--size b { font-size: 16px; font-weight: 600; }
.pc-pill--size small { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.pc-pill--size em { font-style: normal; font-size: 12.5px; color: var(--brown); }

.veg { position: relative; width: 14px; height: 14px; border: 1.5px solid #3f8a3a; border-radius: 3px; flex: none; }
.veg::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: #3f8a3a; }
.veg--egg { border-color: #a0522d; }
.veg--egg::after { background: #a0522d; }

/* Inputs */
.pc-select { position: relative; }
.pc-select select,
.pc-field input {
  display: block; width: 100%; height: 50px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  font: inherit; font-size: 14px; color: var(--ink); appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.pc-select select { padding-right: 40px; cursor: pointer; }
.pc-select select:disabled { opacity: .55; cursor: not-allowed; }
.pc-select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.pc-select select:focus,
.pc-field input:focus { outline: none; background: var(--surface); border-color: rgba(90, 55, 32, .5); box-shadow: 0 0 0 4px rgba(184, 138, 74, .12); }
.pc-field { position: relative; }
.pc-field input { padding-right: 64px; }
.pc-field input::placeholder { color: #a39488; }
.pc-field span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 11.5px; color: var(--muted); pointer-events: none; }
.pc-step.is-invalid .pc-drop,
.pc-step.is-invalid .pc-select select { border-color: var(--wine); }

/* Summary */
/* Side */
.pc-side { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 961px) and (min-height: 860px) {
  .pc-side { position: sticky; top: calc(var(--header-h) + 64px); }
}

/* Look */
.pc-look { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.pc-look__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.pc-look__title { font: 600 20px/1.2 var(--serif); color: var(--ink); }
.pc-look__switch {
  flex: none; padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px;
  font-size: 11.5px; font-weight: 500; color: var(--brown); transition: border-color .2s, background-color .2s;
}
.pc-look__switch:hover { border-color: var(--brown); background: #fffaf4; }
.pc-look__stage { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--cream); }
.pc-look__gallery { position: absolute; inset: 0; }
.pc-look__track {
  display: flex; height: 100%; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.pc-look__track::-webkit-scrollbar { display: none; }
.pc-look__track li { flex: 0 0 100%; scroll-snap-align: start; }
.pc-look__track img { width: 100%; height: 100%; object-fit: cover; }
.pc-look__nav {
  position: absolute; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px;
  border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 4px 12px rgba(60, 35, 20, .15);
  opacity: 0; transition: opacity .2s;
}
.pc-look__nav .chev { width: 7px; height: 7px; }
.pc-look__nav--prev { left: 10px; }
.pc-look__nav--prev .chev { margin-left: 3px; }
.pc-look__nav--next { right: 10px; }
.pc-look__nav--next .chev { margin-left: -3px; }
.pc-look__stage:hover .pc-look__nav,
.pc-look__nav:focus-visible { opacity: 1; }
.pc-look__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.pc-look__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(43, 26, 18, .15); transition: width .25s var(--ease), background-color .25s; }
.pc-look__dots span.is-active { width: 18px; border-radius: 99px; background: #fff; }
.pc-look__note { margin-top: 10px; font-size: 12px; line-height: 1.55; color: var(--muted); }

/* Preview */
.pc-look__preview {
  position: absolute; inset: 0; display: none; place-items: center;
  background: radial-gradient(circle at 50% 42%, #fff 0, var(--cream) 70%);
}
.pc-look.is-preview .pc-look__preview { display: grid; }
.pc-look.is-preview .pc-look__gallery { display: none; }
.pc-cake {
  --print: .66;
  position: relative; display: grid; place-items: center; width: 78%; aspect-ratio: 1;
  background: radial-gradient(circle at 35% 30%, #fffdf9, #f6ead9 70%);
  box-shadow: 0 18px 30px rgba(60, 35, 20, .18), inset 0 0 0 6px #fff, inset 0 0 0 7px rgba(184, 138, 74, .25);
  transition: border-radius .3s var(--ease);
}
.pc-cake::after { content: ""; position: absolute; inset: 4%; border: 5px dotted rgba(255, 255, 255, .95); border-radius: inherit; pointer-events: none; }
.pc-cake--round { border-radius: 50%; }
.pc-cake--square { border-radius: 10%; }
.pc-cake--heart { clip-path: url(#pcHeart); box-shadow: none; background: radial-gradient(circle at 35% 30%, #fffdf9, #f1e2cf 70%); }
.pc-cake--heart::after { display: none; }
.pc-cake__photo { width: calc(var(--print) * 100%); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 2px 8px rgba(60, 35, 20, .18); transition: width .3s var(--ease); }
.pc-cake__photo.is-portrait { width: calc(var(--print) * 78%); aspect-ratio: 3 / 4; }
.pc-cake--heart .pc-cake__photo { margin-bottom: 12%; }
.pc-cake__empty {
  display: grid; place-items: center; width: calc(var(--print) * 100%); aspect-ratio: 4 / 3; border: 1.5px dashed rgba(184, 138, 74, .6); border-radius: 6px;
  font-size: 12px; line-height: 1.4; text-align: center; color: var(--muted);
}
.pc-cake--heart .pc-cake__empty { margin-bottom: 12%; }
.pc-cake [hidden] { display: none; }

.pc-sum {
  min-width: 0; padding: 26px; border-radius: 24px; color: #e9dccf;
  background: radial-gradient(circle at 85% 0%, rgba(184, 138, 74, .2), transparent 50%), var(--brown-dark);
}
.pc-sum__title { font: 600 26px/1.2 var(--serif); color: #fff; }
.pc-sum__rows { margin: 16px 0 0; }
.pc-sum__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(184, 138, 74, .22); font-size: 13px; }
.pc-sum__rows dt { flex: none; color: rgba(233, 220, 207, .65); }
.pc-sum__rows dd { margin: 0; min-width: 0; text-align: right; font-weight: 500; color: #fff; overflow-wrap: anywhere; }
.pc-sum__rows dd.is-empty { font-weight: 400; color: rgba(233, 220, 207, .4); }
.pc-sum__rows dd.is-ok { color: #b9dcae; }
.pc-sum__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid rgba(184, 138, 74, .35); }
.pc-sum__total span { font-size: 13px; color: rgba(233, 220, 207, .75); }
.pc-sum__total strong { font: 600 32px/1 var(--serif); color: #fff; }
.pc-add { width: 100%; min-height: 52px; margin-top: 18px; background: #fff; color: var(--ink); }
.pc-add:hover { background: var(--cream); }
.pc-add.is-busy { opacity: .7; }
.pc-sum .pc-err { color: #f3b8b8; }
.pc-sum__eta { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: rgba(233, 220, 207, .8); }
.pc-sum__eta svg { width: 16px; height: 16px; flex: none; color: var(--gold); }
.pc-sum__eta strong { font-weight: 500; color: #fff; }

.pc-soon { padding: 24px; border-radius: 16px; background: var(--cream); font-size: 14px; }
.pc-soon a { color: var(--ink); border-bottom: 1px solid var(--gold); }

/* How */
.pc-how { padding-block: clamp(44px, 5vw, 72px); background: var(--cream); border-top: 1px solid var(--line); }
.pc-how .title { text-align: center; }
.pc-how__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 30px 0 0; padding: 0; list-style: none; }
.pc-how__list li { text-align: center; }
.pc-how__list span {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--surface); color: var(--brown); box-shadow: 0 10px 26px rgba(107, 26, 39, .08);
}
.pc-how__list svg { width: 32px; height: 32px; stroke-width: 1.2; }
.pc-how__list h3 { font: 600 21px/1.2 var(--serif); color: var(--ink); }
.pc-how__list p { max-width: 230px; margin: 6px auto 0; font-size: 13px; line-height: 1.65; color: var(--muted); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; padding: 12px 20px; border-radius: 99px;
  background: var(--brown-dark); color: #fff; font-size: 13px; box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Tablet */
@media (max-width: 960px) {
  .pc-form { grid-template-columns: 1fr; }
  .pc-side { display: contents; }
  .pc-look { order: -1; max-width: 520px; width: 100%; margin-inline: auto; }
  .pc-sum { order: 1; }
  .pc-how__list { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}

/* Mobile */
@media (max-width: 767px) {
  .pc-top { padding-block: 14px 20px; }
  .pc-crumbs ol { margin-bottom: 14px; }
  .pc-title { font-size: 34px; }
  .pc-lede { font-size: 13.5px; }
  .pc-steps { margin-inline: calc(var(--gutter) * -1 + 6px); padding: 22px 16px; border-radius: 20px; }
  .pc-step { padding: 22px 0; }
  .pc-step__title { font-size: 21px; }
  .pc-step__title small { display: none; }
  .pc-row { grid-template-columns: 1fr; gap: 14px; }
  .pc-drop { padding: 14px; gap: 12px; }
  .pc-drop__icon { width: 44px; height: 44px; }
  .pc-pills--weight .pc-pill,
  .pc-more { flex-basis: calc((100% - 24px) / 4); }
  .pc-pill--size span { padding: 10px 4px; }
  .pc-sum { padding: 22px 18px; border-radius: 20px; }
  .pc-look { padding: 12px; border-radius: 20px; }
  .pc-look__nav { opacity: 1; }
  .pc-how__list { grid-template-columns: 1fr; gap: 22px; }
}