/* Shelf cards: photo, name, details, price, action. Full content remains in the dialog. */
.pm-compact-cards .product-grid{gap:16px;align-items:stretch}
.pm-compact-cards [data-product-card]{min-width:0;display:flex;flex-direction:column;overflow:hidden;border-radius:12px;background:#fffaf5}
.pm-compact-cards [data-product-card][hidden]{display:none!important}
.pm-compact-cards [data-product-card] .product-card__image{display:block;position:relative;width:100%;height:auto!important;min-height:0!important;aspect-ratio:1/1;flex-shrink:0;margin:0;padding:0;border:0;overflow:hidden;border-radius:0;background:#30251e}
.pm-compact-cards [data-product-card] .product-card__image img{display:block;width:100%;height:100%!important;min-height:0!important;max-height:none!important;aspect-ratio:auto;object-fit:cover!important;object-position:center;transform:none!important;filter:none!important}
.pm-compact-cards [data-product-card] .product-card__image:focus-visible{outline:2px solid #fffaf5;outline-offset:-4px}
.pm-compact-cards [data-product-card] .product-card__body{display:grid;flex:1;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto 1fr auto;gap:4px 8px;min-width:0;padding:12px}
.pm-compact-cards [data-product-card] h3{grid-column:1/-1;grid-row:1;min-height:0;font:500 17px/1.35 Prata,Georgia,serif;margin:0;overflow-wrap:anywhere}
.pm-compact-cards [data-product-card] .product-card__desc,.pm-compact-cards [data-product-card] .product-card__meta,.pm-compact-cards [data-product-card] .pm-card-photo-note,.pm-compact-cards [data-product-card] .salad-portions{display:none!important}
.pm-compact-cards [data-product-card] .salad-card-details{grid-column:2;grid-row:3;align-self:end;justify-self:end;min-height:34px;padding:7px 0;margin:0;font:500 12px/1.5 Onest,Arial,sans-serif;color:#77323b;text-underline-offset:3px}
.pm-compact-cards [data-product-card] .product-card__footer{display:contents!important}
.pm-compact-cards [data-product-card] .product-card__price{grid-column:1;grid-row:3;align-self:end;margin:0;padding:5px 0;min-width:0;line-height:1.3}
.pm-compact-cards [data-product-card] .product-card__price span{font:700 20px/1.3 Onest,Arial,sans-serif}
.pm-compact-cards [data-product-card] [data-add]{grid-column:1/-1;grid-row:4;min-width:0;max-width:100%;width:100%!important;min-height:44px;padding:10px 12px;white-space:normal;font:600 13px/1.4 Onest,Arial,sans-serif}
.pm-compact-cards [data-product-card] [data-add][hidden]{display:none!important}
.pm-compact-cards [data-product-card] .pm-card-quantity{grid-column:1/-1;grid-row:4;display:flex;flex-direction:column;align-items:stretch;margin:0;padding:0;border:0;gap:6px}
.pm-compact-cards [data-product-card] .pm-card-quantity[hidden]{display:none}
.pm-compact-cards [data-product-card] .pm-card-stepper{justify-content:space-between;width:100%;min-height:44px}
.pm-compact-cards [data-product-card] .pm-card-stepper button{flex:1;max-width:64px}
.pm-compact-cards [data-product-card] .pm-card-edit{font-size:11px;min-height:32px;padding:5px 0;text-align:left}
.pm-compact-cards [data-product-card] .badge{max-width:calc(100% - 16px);font-size:10px;left:8px;top:8px;right:auto;overflow-wrap:anywhere}
.pm-compact-cards [data-product-card] .pm-preparation{grid-column:1/-1;grid-row:2;justify-self:start;font-size:11px;margin:0}
.pm-modal-portions{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 14px;padding:0;border:0;min-width:0}
.pm-modal-portions legend{margin-bottom:6px;font:600 13px/1.5 Onest,Arial,sans-serif}
.pm-modal-portions button{min-height:44px;padding:8px 14px;border:1px solid #d9cbb7;border-radius:8px;background:#fffaf5;color:#665b50;font:600 14px/1.35 Onest,Arial,sans-serif;cursor:pointer}
.pm-modal-portions button[aria-pressed=true]{background:#77323b;border-color:#77323b;color:#fff}
.pm-modal-portions button:focus-visible{outline:2px solid #77323b;outline-offset:2px}
.pm-cart-list,[data-cart-list],.cart-layout>*{min-width:0}
.cart-layout{grid-template-columns:minmax(0,1.35fr) minmax(270px,.65fr)}
.cart-row{min-width:0;grid-template-columns:92px minmax(0,1fr) auto;gap:12px;align-items:start}
.cart-row__image{width:92px;max-width:100%;grid-column:1;grid-row:1/3}
.cart-row__image img{display:block;width:100%;height:92px;object-fit:cover;background:#30251e}
.cart-row__info .pm-set-edit{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;max-width:100%;margin:8px 0 0;padding:7px 11px;border:1px solid #dcc4c2;border-radius:8px;background:#fff8f4;color:#77323b;font:600 12px/1.35 Onest,Arial,sans-serif;text-align:left;text-decoration:none;cursor:pointer;white-space:normal}
.cart-row__info .pm-set-edit:hover{background:#f7ede7;border-color:#ab767c}
.cart-row__info .pm-set-edit:focus-visible{outline:2px solid #77323b;outline-offset:2px}
.cart-row__info .pm-set-edit svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.cart-layout .summary .summary-line strong{white-space:normal;text-align:right}
.cart-row__info{min-width:0;grid-column:2;grid-row:1/3;overflow-wrap:anywhere}
.cart-row__info h3{line-height:1.4}.cart-row__info p{line-height:1.6}.cart-row>.qty{grid-column:3;grid-row:1;max-width:100%}.cart-row>strong{grid-column:3;grid-row:2;justify-self:end;white-space:nowrap;font-variant-numeric:tabular-nums}.cart-row__remove{grid-column:3;grid-row:3;justify-self:end;min-height:32px;cursor:pointer}.cart-row__info details{max-width:100%}.cart-layout .summary{min-width:0}.cart-layout .summary .btn{white-space:normal;text-align:center}.cart-layout .summary-total{align-items:baseline;gap:12px;font-size:20px;line-height:1.4}.cart-layout .summary-total strong,.cart-layout .summary-line strong{white-space:nowrap;flex-shrink:0}.pm-cart-undo{max-width:calc(100% - 24px);white-space:normal;gap:12px;box-sizing:border-box}
@media(max-width:980px){.cart-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){
 .pm-page-cart main>.section{padding-top:30px}.pm-page-cart .section-head{margin-bottom:20px}.pm-page-cart .cart-layout{gap:20px}
 .pm-compact-cards .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .pm-compact-cards [data-product-card]{border-radius:10px}
 .pm-compact-cards [data-product-card] .product-card__body{padding:10px}
 .pm-compact-cards [data-product-card] h3{font-size:14px;line-height:1.45}
 .pm-compact-cards [data-product-card] .product-card__price span{font-size:18px}
 .pm-compact-cards [data-product-card] [data-add]{font-size:12px;padding:10px 6px}
 body.pm-compact-cards[data-shop-page=sets] [data-product-grid]{grid-template-columns:1fr!important}
 .cart-row{grid-template-columns:74px minmax(0,1fr);padding:12px;gap:10px}
 .cart-row__image{width:74px;grid-row:1}.cart-row__image img{height:74px}
 .cart-row__info{grid-column:2;grid-row:1}.cart-row__info h3{font-size:15px}
 .cart-row>.qty{grid-column:1/-1;grid-row:2;justify-self:start}.cart-row>.qty button{width:34px;min-width:0;height:40px}.cart-row>.qty output{min-width:26px;padding:0}
 .cart-row>strong{grid-column:2;grid-row:2;align-self:center;font-size:18px}.cart-row__remove{grid-column:2;grid-row:3}
}
@media(max-width:365px){.pm-compact-cards [data-product-card] .product-card__body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto 1fr auto}.pm-compact-cards [data-product-card] .salad-card-details{grid-column:1;grid-row:4;justify-self:start;min-height:30px}.pm-compact-cards [data-product-card] [data-add],.pm-compact-cards [data-product-card] .pm-card-quantity{grid-row:5}}
@media(prefers-reduced-motion:reduce){.pm-compact-cards [data-product-card]{animation:none!important;transition:none!important}}

.pm-photo-pending {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 64px;
  padding: 12px;
  box-sizing: border-box;
  background: #f3ede5;
  color: #65564a;
  text-align: center;
  font: 500 14px/1.4 Onest, sans-serif;
}
.cart-row__image > .pm-photo-pending { font-size: 11px; padding: 4px; }
#product-modal img[data-modal-image][hidden] { display: none !important; }
#product-modal .pm-photo-pending { min-height: 180px; }
@media (max-width: 680px) {
  #product-modal .pm-photo-pending { min-height: 84px; }
}

/* One crop for the whole catalogue, including sets and upcoming photos. */
body.pm-compact-cards [data-product-card] .product-card__image { aspect-ratio: 1 / 1 !important; }
.pm-home-shelf { padding-block: clamp(24px, 5vw, 64px); }
.pm-home-shelf .section-head { margin-bottom: clamp(12px, 2.4vw, 28px); }
.pm-home-shelf .section-head h2 { margin: 0; }
.pm-page-index .pie-category > strong + span { display: none; }
.pm-home-shelf:not(.pm-home-sets) .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .pm-home-shelf:not(.pm-home-sets) .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :is(body.pm-compact-cards[data-shop-page=sets] [data-product-grid], .pm-compact-cards .pm-home-sets)
    [data-product-card] .product-card__body { padding: 10px 12px; }
  :is(body.pm-compact-cards[data-shop-page=sets] [data-product-grid], .pm-compact-cards .pm-home-sets)
    [data-product-card] h3 { font-size: 17px; }
}

/* Cake weights belong to the product card, beside its live price and order action. */
body.pm-compact-cards [data-cake-card] .pm-cake-card-portions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-column:1/-1;grid-row:2;gap:5px;margin:5px 0 2px;min-width:0}
.pm-cake-card-portions button{display:block;min-height:44px;min-width:0;padding:7px 3px;border:1px solid #d8cec1;border-radius:8px;background:#fffaf5;color:#65564a;font:500 13px/1.25 Onest,Arial,sans-serif;cursor:pointer;white-space:nowrap}
.pm-cake-card-portions button[aria-pressed=true]{background:#772e36;border-color:#772e36;color:#fff}
.pm-cake-card-portions button:focus-visible{outline:2px solid #a17628;outline-offset:2px}
@media(max-width:600px){.pm-cake-card-portions button{font-size:11px}}

.pm-cake-card-portions button span,.pm-cake-card-portions button strong{display:block;font-size:11px;line-height:1.4}.pm-cake-card-portions button strong{font-weight:600}.pm-pie-discount-note{font-size:14px;line-height:1.6;color:#654d35}.pm-address-manual-toggle{min-height:44px;border:0;background:none;color:#772e36;text-align:left;text-decoration:underline;font:inherit;cursor:pointer}.pm-address-manual textarea{width:100%;box-sizing:border-box;min-height:90px;border:1px solid #d8cec1;border-radius:10px;padding:12px;font:inherit}.pm-address-manual[hidden]{display:none}
