/* Customer-only presentation: preserve existing checkout and responsive controls. */
.storefront {
  --bg: #faf8f5;
  --red: #ad2328;
  background:
    radial-gradient(ellipse at top left, #fff0e4, transparent 55%), var(--bg);
}
.storefront header {
  box-shadow: 0 4px 20px #44201308;
}
.storefront .menuhead {
  padding: 20px 0;
}
.storefront .menuhead h2 {
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.7px;
  color: #342520;
}
.storefront .categories {
  gap: 8px;
  padding: 6px 0 16px;
}
.storefront .categories button {
  border-radius: 24px;
  padding: 10px 18px;
  box-shadow: 0 2px 8px #44201306;
}
.storefront .categorytitle {
  color: #4b3027;
  font-size: 22px;
  margin-top: 28px;
}
.storefront .card {
  background: white;
  border: 1px solid #eee4dc;
  border-radius: 20px;
  box-shadow: 0 5px 20px #44201309;
  overflow: hidden;
  transition: box-shadow 150ms ease;
}
.storefront .cardbody h3 {
  color: #342520;
  font-size: 19px;
  line-height: 1.3;
}
.storefront .cardbody p {
  color: #796b63;
  line-height: 1.55;
}
.storefront .cardfoot button {
  border-radius: 12px;
  min-height: 44px;
}
.storefront .cardfoot .price {
  color: #ad2328;
  font-weight: 700;
}
.storefront #builder fieldset {
  border: 1px solid #ece2da;
  border-radius: 14px;
  padding: 14px;
  margin: 18px 0;
}
.storefront #builder legend {
  font-weight: 700;
  color: #4b3027;
}
.storefront #builder .option {
  border-radius: 10px;
  padding: 12px;
  margin: 5px 0;
  background: #faf8f5;
}
.storefront #builder .option:has(input:checked) {
  background: #fff0e9;
  box-shadow: inset 0 0 0 1px #e5aaa1;
}
.storefront #builder input {
  accent-color: #ad2328;
}
.customer-map-shortcut #deliverymapslot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.customer-map-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  border-radius: 12px;
  background: #e0f3e5;
  color: #235f34;
}
.customer-map-icon:focus-visible {
  outline: 3px solid #235f34;
  outline-offset: 3px;
}
@media (hover: hover) {
  .storefront .card:hover {
    box-shadow: 0 8px 25px #44201314;
  }
}
@media (max-width: 650px) {
  .storefront .menuhead {
    padding: 10px 0;
  }
  .storefront .cardbody h3 {
    font-size: 17px;
  }
}
/* Approved customer design. */
.storefront {
  font-family: "DM Sans", system-ui, sans-serif;
  background: #f8f7f5;
}
.storefront h2,
.storefront h3,
.storefront .price {
  font-family: "Manrope", system-ui, sans-serif;
}
.storefront .menuhead h2 {
  font-weight: 800;
  letter-spacing: -1px;
}
.storefront #categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 20px;
  flex-wrap: nowrap;
}
.storefront #categories button {
  flex: 1 0 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 108px;
  padding: 12px 8px;
  background: white;
  color: #69594e;
  border: 1px solid #eee7e1;
  border-radius: 18px;
  box-shadow: none;
  font-size: 13px;
}
.storefront #categories button.active {
  color: #a1252b;
  background: #fff0ec;
  border-color: #edc5bc;
}
.storefront .category-drawing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
}
.storefront .category-drawing svg {
  width: 34px;
  height: 34px;
}
.storefront .drawing-promo {
  background: #ffe6e3;
  color: #ad2328;
}
.storefront .drawing-pizza {
  background: #fff0d4;
  color: #b16a12;
}
.storefront .drawing-sweet {
  background: #f7e5df;
  color: #925846;
}
.storefront .drawing-sachet {
  background: #f1e9dd;
  color: #876642;
}
.storefront .drawing-drink {
  background: #e4f0e7;
  color: #367148;
}
.storefront #categories .active .category-drawing {
  background: #ae232a;
  color: white;
}
.storefront .card {
  display: flex;
  flex-direction: column;
  border: 0;
}
.storefront .cardbody {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.storefront .cardfoot {
  margin-top: auto;
  gap: 12px;
}
.storefront .cardfoot button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: white;
  background: #ae232a;
  box-shadow: 0 4px 10px #ae232a20;
  border-radius: 12px;
  font-size: 13px;
}
.storefront .cardfoot button svg {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 7px;
  background: #ffffff20;
}
.storefront #checkout,
.storefront #send,
.storefront #add,
.storefront #mobilecheckout {
  min-height: 48px;
  background: #24723c;
  color: white;
  border-radius: 14px;
  box-shadow: 0 5px 12px #24723c20;
}
.storefront #checkout:disabled,
.storefront #mobilecheckout:disabled {
  background: #eeebe7;
  color: #93887e;
  box-shadow: none;
  opacity: 1;
}
.storefront .header-icon,
.storefront .customer-menu summary {
  border: 1px solid #ebe4df;
  border-radius: 14px;
  box-shadow: 0 3px 8px #33262107;
  background: white;
}
.storefront .customer-menu > div {
  min-width: 250px;
  padding: 12px;
  border-radius: 20px;
}
.storefront .customer-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: none;
  min-height: 54px;
  border-radius: 12px;
  font-size: 14px;
}
.storefront .customer-menu button svg {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 8px;
  background: #fff0ec;
  color: #ae232a;
  border-radius: 10px;
}
.storefront #cart {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 5px 24px #452e2008;
}
.storefront button {
  transition:
    background 150ms ease,
    box-shadow 150ms ease;
}
@media (min-width: 1100px) {
  .storefront #products .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .storefront #categories {
    gap: 6px;
  }
  .storefront #categories button {
    flex: 1 0 72px;
    min-height: 100px;
    padding: 9px 4px;
    font-size: 11px;
    border-radius: 14px;
  }
  .storefront .category-drawing {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
  .storefront .category-drawing svg {
    width: 28px;
    height: 28px;
  }
  .storefront #products .cards {
    grid-template-columns: 1fr;
  }
  .storefront #products .card {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
  }
  .storefront #products .card:not(:has(> img)) {
    grid-template-columns: 1fr;
  }
  .storefront #products .card > img {
    height: 100%;
    width: 105px;
    min-height: 145px;
    object-fit: cover;
  }
  .storefront #products .cardbody {
    min-width: 0;
    padding: 12px;
  }
  .storefront #products .cardbody h3 {
    font-size: 17px;
    margin-top: 0;
  }
  .storefront #products .cardbody p {
    font-size: 12px;
    margin: 0 0 10px;
  }
  .storefront #products .cardfoot {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .storefront #products .cardfoot button {
    width: auto;
    margin-left: auto;
    padding: 8px 10px;
    min-height: 44px;
    font-size: 12px;
  }
  .storefront .customer-menu > div {
    max-width: calc(100vw - 32px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .storefront button {
    transition: none;
  }
}
/* Keep the full menu browsable while category highlighting follows scrolling. */
.storefront #categories {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f8f7f5;
  border-bottom: 1px solid #eee6df;
}
.storefront .menu-category-section {
  scroll-margin-top: 155px;
}
.delivery-area-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin: 12px 0;
  background: #fff0ec;
  border-radius: 12px;
  font-size: 13px;
  color: #806256;
}
.delivery-area-notice button {
  flex-shrink: 0;
  font-size: 12px;
}
@media (max-width: 650px) {
  .delivery-area-notice {
    flex-wrap: wrap;
  }
  .storefront .menu-category-section {
    scroll-margin-top: 145px;
  }
}

/* Compact customer header and four visible mobile categories. */
.storefront header .customer-points-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-width: 44px;
  min-height: 44px;
  padding: 5px 8px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 2px 7px #30202005;
  color: var(--red);
  font-size: 13px;
  white-space: nowrap;
}
.customer-points-badge strong { font-size: 17px; line-height: 1.2; }
.customer-points-badge small { font-size: 9px; line-height: 1.1; }
.storefront .delivery-area-notice {
  padding: 0;
  margin: 0 0 4px;
  background: transparent;
  border-radius: 0;
  flex-wrap: nowrap;
  font-size: 12px;
}
.storefront .delivery-area-notice button {
  padding: 4px;
  min-height: 44px;
  background: transparent;
  border: 0;
}
.storefront .category-navigation {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f8f7f5;
  padding-bottom: 8px;
}
.storefront #categories {
  position: static;
  padding: 4px 0 8px;
  margin: 0;
  border: 0;
  scrollbar-width: none;
}
.storefront #categories::-webkit-scrollbar {
  display: none;
}
.storefront .category-scroll-track {
  height: 3px;
  background: #eee8e2;
  border-radius: 8px;
  overflow: hidden;
}
.storefront .category-scroll-track span {
  display: block;
  height: 100%;
  background: #c9c0b8;
  border-radius: 8px;
}
.storefront .cardfoot button {
  background: #f8e5e3;
  color: #9c3036;
  border: 1px solid #efd3d0;
  box-shadow: none;
}
.storefront .cardfoot button:hover {
  background: #f1d5d2;
  filter: none;
}
@media (max-width: 650px) {
  .storefront > header {
    padding: 10px 14px;
    gap: 6px;
  }
  .storefront > header .brand img {
    width: 95px !important;
    height: 58px !important;
  }
  .storefront > header nav {
    gap: 4px;
    flex-wrap: nowrap;
    margin-left: auto;
  }
  .storefront .header-store-info {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
  }
  .storefront .header-store-info p {
    margin: 0;
    font-size: 11px;
  }
  .storefront .header-store-info .storebadge {
    margin: 0;
    padding: 4px 8px;
    font-size: 11px;
  }
  .storefront .shell {
    padding-top: 10px;
  }
  .storefront #categories {
    gap: 6px;
  }
  .storefront #categories button {
    flex: 0 0 calc((100% - 18px) / 4);
    min-width: 0;
    min-height: 94px;
    padding: 7px 3px;
    gap: 5px;
    font-size: 11px;
    white-space: normal;
  }
  .storefront .category-drawing {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .storefront .category-drawing svg {
    width: 27px;
    height: 27px;
  }
}

#paymentoptions { margin: 16px 0; padding: 16px; border: 1px solid #e9ded4; border-radius: 14px; background: #fff; }
#paymentoptions legend { font-weight: 700; padding: 0 6px; }
#paymentchoices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#paymentchoices .customer-payment-choice { display: flex; gap: 8px; align-items: center; padding: 12px; margin: 0; border: 1px solid #e8dfd7; border-radius: 10px; cursor: pointer; }
#paymentchoices input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: #ad2328; }
#paymentchoices label:has(input:checked) { background: #fff1ed; border-color: #ad2328; }
@media (max-width: 480px) { #paymentchoices { grid-template-columns: 1fr; } }

/* v178: framed photos preserve desktop ratios and stretch down the mobile card. */
.storefront #products .product-photo-frame{display:contents}
body.storefront #products .card .product-photo-frame[data-photo-ratio="square"]>img{aspect-ratio:1 / 1!important;height:auto!important;max-height:none!important;min-height:0!important;width:100%!important}
body.storefront #products .card .product-photo-frame[data-photo-ratio="landscape"]>img{aspect-ratio:4 / 3!important;height:auto!important;max-height:none!important;min-height:0!important;width:100%!important}
@media(max-width:650px){
 body.storefront #products .card:has(>.product-photo-frame){grid-template-columns:minmax(0,clamp(105px,30vw,140px)) minmax(0,1fr);align-items:stretch;gap:0}
 body.storefront #products .card:has(>.product-photo-frame[data-photo-ratio="landscape"]){grid-template-columns:minmax(0,clamp(115px,36vw,175px)) minmax(0,1fr)}
 body.storefront #products .card>.product-photo-frame[data-photo-ratio]{display:block;position:relative;align-self:stretch;min-width:0;min-height:145px;background:#fff;overflow:hidden}
 body.storefront #products .card .product-photo-frame[data-photo-ratio]>img{display:block;position:absolute;inset:0;width:100%!important;max-width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;aspect-ratio:auto!important;object-position:center;background:#fff!important}
 body.storefront #products .cardbody{min-width:0}
}
