/* ============================================================================
   Pastry is Art — the shop: the item customiser, and the cart it fills
   ----------------------------------------------------------------------------
   Shared by every page that sells something, so a customer who puts a cake and
   a breakfast sandwich in the same order has one cart, not two. The colours
   come from the page's own variables.
   ========================================================================== */
/* ------------------------------------------------------- the size picker --- */
.sz{position:fixed;inset:0;z-index:95;background:rgba(43,27,18,.86);backdrop-filter:blur(6px);display:grid;place-items:center;
  padding:26px;opacity:0;pointer-events:none;transition:opacity .4s var(--e)}
.sz.on{opacity:1;pointer-events:auto}
.sz .box{max-width:520px;width:100%;background:var(--white);border-radius:26px;overflow:hidden;transform:scale(.96);
  transition:transform .5s var(--e);max-height:90vh;overflow-y:auto}
.sz.on .box{transform:none}
.sz .box>img{width:100%;aspect-ratio:16/9;object-fit:cover}
.sz .box>.szno{display:none;flex-direction:column;align-items:center;justify-content:center;gap:8px;aspect-ratio:16/6;
  background:linear-gradient(160deg,var(--blush),var(--cream));color:var(--soft);font-size:13px;letter-spacing:.02em}
.sz .box>.szno svg{width:26px;height:26px;color:var(--pink);opacity:.4}
.sz .in{padding:24px 26px 26px}
.sz h3{font-size:25px;margin-bottom:8px}
.sz .ds{font-size:14.5px;line-height:1.65;color:var(--soft);margin-bottom:22px}
.sz .lb2{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--soft);margin-bottom:12px}
.sz .opts{display:grid;gap:10px}
.sz .opt{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:left;
  background:var(--cream);border:1px solid var(--line);border-radius:16px;padding:15px 18px;transition:all .35s var(--e)}
.sz .opt:hover,.sz .opt.on{border-color:var(--pink);background:var(--blush)}
.sz .opt .nm{display:flex;flex-direction:column;gap:3px}
.sz .opt .nm b{font-size:15.5px;font-weight:600;color:var(--cocoa)}
.sz .opt .nm span{font-size:12.5px;color:var(--soft)}
.sz .opt .pr{font-family:var(--sans);font-weight:600;font-size:16.5px;color:var(--pink);flex:none;
  font-variant-numeric:tabular-nums lining-nums;letter-spacing:-.01em}
.sz .opt .pr.tbd{font-family:var(--sans);font-size:13px;color:var(--soft)}
.sz .act{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.sz .act .btn{flex:1;justify-content:center}
.sz .x{position:absolute;top:22px;right:22px;width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.14);
  color:#fff;display:grid;place-items:center;border:0;cursor:pointer;transition:background .35s}
.sz .x:hover{background:rgba(255,255,255,.28)}
.sz .x svg{width:20px}
/* the item customiser: one block per group of options */
.sz .box{display:flex;flex-direction:column}
.sz .in{overflow-y:auto;flex:1}
.sz .grp{background:var(--cream);border:1px solid var(--line);border-radius:16px;padding:16px 18px;margin-bottom:12px}
.sz .gh{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
.sz .gh b{font-size:15px;font-weight:600;color:var(--cocoa)}
.sz .gh .req{font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--pink);
  background:var(--blush);border-radius:999px;padding:4px 9px}
.sz .gs{font-size:12.5px;color:var(--soft);margin-bottom:12px}
.sz .row{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;text-align:left;
  background:none;border:0;border-top:1px solid var(--line);padding:13px 0 12px;transition:color .3s}
.sz .row:first-of-type{border-top:0;padding-top:4px}
.sz .row .nm{display:flex;flex-direction:column;gap:2px}
.sz .row .nm b{font-size:14.5px;font-weight:500;color:var(--cocoa)}
.sz .row .nm span{font-size:13px;color:var(--soft)}
.sz .row .bx{width:22px;height:22px;border-radius:7px;border:1.5px solid rgba(43,27,18,.28);flex:none;
  display:grid;place-items:center;transition:all .3s var(--e)}
.sz .row.rad .bx{border-radius:50%}
.sz .row .bx svg{width:13px;height:13px;color:#fff;opacity:0;transition:opacity .2s}
.sz .row.on .bx{background:var(--pink);border-color:var(--pink)}
.sz .row.on .bx svg{opacity:1}
.sz .row:hover .bx{border-color:var(--pink)}
.sz textarea{width:100%;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:12px 14px;
  font:inherit;font-size:14px;color:var(--text);resize:vertical;min-height:72px}
.sz textarea:focus{outline:2px solid var(--pink);outline-offset:1px;border-color:transparent}
.sz .cnt{text-align:right;font-size:12px;color:var(--soft);margin-top:6px}
.sz .foot{display:flex;align-items:center;gap:12px;padding:16px 26px;border-top:1px solid var(--line);background:var(--white)}
.sz .qty{display:flex;align-items:center;gap:4px;background:var(--cream);border:1px solid var(--line);border-radius:14px;padding:4px}
.sz .qty button{width:36px;height:36px;border:0;background:none;border-radius:10px;font-size:19px;line-height:1;color:var(--cocoa);transition:background .3s}
.sz .qty button:hover{background:var(--white)}
.sz .qty span{min-width:26px;text-align:center;font-size:15px;font-weight:600;color:var(--cocoa)}
.sz .qty input{width:58px;border:0;background:none;outline:0;text-align:center;font:inherit;font-size:15px;font-weight:600;color:var(--cocoa);-moz-appearance:textfield}
.sz .qty input::-webkit-outer-spin-button,.sz .qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.sz .add{flex:1;justify-content:space-between;height:48px}
.sz .add b{font-weight:600;font-variant-numeric:tabular-nums lining-nums;letter-spacing:-.01em}
.sz .add[disabled]{opacity:.45;pointer-events:none}
.sz .add span,.sz .add b{white-space:nowrap}
@media(max-width:420px){
  .sz .foot{padding:13px 16px;gap:9px}
  .sz .qty button{width:32px;height:32px}
  .sz .add{padding:14px 16px}
}
.dock .ord b{margin-left:auto;background:rgba(255,255,255,.35);border-radius:999px;padding:1px 9px;font-size:12px;font-weight:600}
.dock .ord.has b{background:var(--cocoa);color:#fff}

/* ------------------------------------------------------------- the cart ---
   A panel over the page rather than a page of its own: the shopper is in the
   middle of choosing and should not lose their place. ------------------- */
.cart{position:fixed;inset:0;z-index:97;background:rgba(43,27,18,.5);backdrop-filter:blur(4px);
  opacity:0;pointer-events:none;transition:opacity .4s var(--e)}
.cart.on{opacity:1;pointer-events:auto}
.cart .panel{position:absolute;top:0;right:0;bottom:0;width:min(440px,100%);background:var(--cream);
  display:flex;flex-direction:column;transform:translateX(20px);transition:transform .45s var(--e);
  box-shadow:-30px 0 60px -40px rgba(43,27,18,.6)}
.cart.on .panel{transform:none}
.cart header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;
  border-bottom:1px solid var(--line);background:var(--white)}
.cart header h3{font-size:23px}
.cart .x{width:40px;height:40px;border-radius:50%;border:0;background:var(--cream);display:grid;place-items:center;
  cursor:pointer;transition:background .3s}
.cart .x:hover{background:var(--blush)}
.cart .x svg{width:18px}
/* ----------------------------------------------------------------- money ---
   Prices are read, not admired. Young Serif is the right face for a heading
   and the wrong one for a column of amounts: its figures are heavy, they are
   not the same width, so nothing lines up, and a cart is the one place on the
   site where somebody is checking a number rather than enjoying it.

   So money is set in the sans, at a weight that holds, with tabular lining
   figures — every digit the same width, sitting on the baseline, which is
   what makes a column of totals scannable.
   -------------------------------------------------------------------------- */
.cart .lines{flex:1;overflow-y:auto;padding:18px 24px}
.cart .ln{display:grid;grid-template-columns:62px minmax(0,1fr);gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}
.cart .ln:last-child{border-bottom:0}
.cart .ln img{width:62px;height:62px;border-radius:12px;object-fit:cover;background:var(--blush)}
.cart .ln .noim{width:62px;height:62px;border-radius:12px;background:var(--blush);display:grid;place-items:center}
.cart .ln .noim svg{width:18px;color:var(--pink);opacity:.5}
.cart .ln .top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.cart .ln b{font-size:15px;font-weight:600;color:var(--cocoa);line-height:1.3}
.cart .ln .pr{font-family:var(--sans);font-weight:600;font-size:15.5px;color:var(--cocoa);flex:none;
  font-variant-numeric:tabular-nums lining-nums;letter-spacing:-.01em}
.cart .ln ul{list-style:none;margin:6px 0 0;display:grid;gap:3px}
.cart .ln li{font-size:12.5px;color:var(--soft);line-height:1.45}
.cart .ln .note{font-size:12.5px;color:var(--soft);font-style:italic;margin-top:6px;line-height:1.45}
.cart .ln .act{display:flex;align-items:center;gap:10px;margin-top:11px}
.cart .ln .q{display:flex;align-items:center;gap:2px;background:var(--white);border:1px solid var(--line);border-radius:10px;padding:2px}
.cart .ln .q button{width:28px;height:28px;border:0;background:none;border-radius:7px;font-size:16px;line-height:1;color:var(--cocoa);transition:background .3s}
.cart .ln .q button:hover{background:var(--cream)}
.cart .ln .q span{min-width:22px;text-align:center;font-size:14px;font-weight:600}
.cart .ln .rm{border:0;background:none;font-size:12.5px;color:var(--soft);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.cart .ln .rm:hover{color:var(--pink)}
.cart footer{padding:20px 24px;border-top:1px solid var(--line);background:var(--white)}
.cart .sum{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:4px}
.cart .sum span{font-size:14px;color:var(--soft)}
.cart .sum b{font-family:var(--sans);font-weight:700;font-size:27px;color:var(--cocoa);
  font-variant-numeric:tabular-nums lining-nums;letter-spacing:-.025em}
.cart .fine{font-size:12.5px;color:var(--soft);margin-bottom:16px}
.cart .go{width:100%;justify-content:center;height:50px}
.cart .clear{width:100%;justify-content:center;margin-top:9px;height:42px;font-size:13.5px;color:var(--soft)}
.cart .empty{text-align:center;padding:60px 20px}
.cart .empty svg{width:34px;height:34px;color:var(--pink);opacity:.4;margin:0 auto 14px}
.cart .empty b{display:block;font-family:var(--serif);font-weight:400;font-size:21px;color:var(--cocoa);margin-bottom:7px}
.cart .empty p{font-size:14px;color:var(--soft);line-height:1.6}
@media(max-width:560px){.cart .panel{width:100%}}

/* the confirmation after Add to cart */
#toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,16px);z-index:120;display:flex;align-items:center;gap:10px;
  background:var(--cocoa);color:#fff;border-radius:14px;padding:13px 18px;font-size:14px;box-shadow:0 20px 40px -22px rgba(43,27,18,.7);
  opacity:0;pointer-events:none;transition:opacity .35s var(--e),transform .35s var(--e)}
#toast.on{opacity:1;transform:translate(-50%,0)}
#toast svg{width:17px;height:17px;color:var(--green)}

.sz .note2{margin-top:18px;font-size:13px;line-height:1.6;color:var(--soft);display:flex;gap:10px}
.sz .note2 svg{width:16px;height:16px;color:var(--pink);flex:none;margin-top:2px}

/* --------------------------------------------------------------- sold out --
   The bakery has run out. The card stays on the menu — people look for what
   they came for, and not finding it at all reads as a mistake — but it stops
   being something you can order and says why. */
.soldout{opacity:.55}
.soldout .th,.soldout img{filter:grayscale(1)}
.soldout .th{cursor:default;pointer-events:none}
.soldout .th .zoom{display:none}
.soldout .pr{text-decoration:line-through;text-decoration-thickness:1.5px;
  text-underline-offset:2px;color:var(--soft)}
.soldtag{display:inline-block;margin-left:9px;padding:2px 9px;border-radius:999px;
  background:var(--blush);color:var(--pink);font-family:var(--sans);font-size:11.5px;
  font-weight:700;letter-spacing:.03em;vertical-align:1px;white-space:nowrap}

/* ------------------------------------------------------------ order button --
   The same button on every menu that sells something. It lived inside
   breakfast.html while that was the only page with a cart; drinks and the
   dessert case have one now too, and three copies of a button is three
   chances for them to drift apart. */
.addb{flex:none;display:inline-flex;align-items:center;gap:5px;border:0;cursor:pointer;font-family:var(--sans);
  font-size:12.5px;font-weight:600;color:#fff;background:var(--pink);padding:7px 13px;border-radius:999px;
  transition:transform .3s var(--e),background .3s var(--e);white-space:nowrap}
.addb:hover{transform:translateY(-1px);background:#c40069}
.addb svg{width:13px;height:13px}
.can .th{cursor:pointer}

/* The floating cart: only once something is in the cart, springing in, and bumping when more is added */
.fab{position:fixed;right:24px;bottom:24px;z-index:90;width:64px;height:64px;border:0;border-radius:50%;padding:0;cursor:pointer;
  display:grid;place-items:center;background:var(--pink);color:#fff;
  box-shadow:0 18px 36px -12px rgba(229,0,125,.55),0 4px 10px rgba(43,27,18,.18);
  opacity:0;pointer-events:none;transform:translateY(28px) scale(.35) rotate(-14deg);
  transition:opacity .3s ease,transform .7s cubic-bezier(.34,1.56,.64,1),background .3s}
.fab.show{opacity:1;pointer-events:auto;transform:none}
.fab.show.hide{opacity:0;pointer-events:none;transform:translateY(12px) scale(.8)}
.fab:hover{background:#c40069;transform:translateY(-3px) scale(1.05)}
.fab:focus-visible{outline:3px solid var(--cocoa);outline-offset:3px}
.fab svg{width:26px;height:26px}
.fab b{position:absolute;top:-5px;right:-5px;min-width:24px;height:24px;padding:0 6px;border-radius:999px;box-sizing:border-box;
  background:var(--cocoa);color:#fff;border:2px solid var(--cream,#fff);font-size:12px;font-weight:600;line-height:20px;text-align:center}
.fab.bump{animation:fabBump .7s cubic-bezier(.34,1.56,.64,1)}
.fab.bump::after{content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;animation:fabRing .9s ease-out}
@keyframes fabBump{0%{transform:scale(1)}30%{transform:scale(1.28) rotate(-10deg)}60%{transform:scale(.94) rotate(6deg)}100%{transform:scale(1)}}
@keyframes fabRing{0%{box-shadow:0 0 0 0 rgba(229,0,125,.55)}100%{box-shadow:0 0 0 22px rgba(229,0,125,0)}}
@media(max-width:900px){.fab{right:16px;bottom:96px;width:58px;height:58px}}   /* above the phone's bottom bar */
@media(prefers-reduced-motion:reduce){.fab{transition:opacity .2s}.fab.bump,.fab.bump::after{animation:none}}
