:root {
  --bakery-text: #22201e;
  --bakery-page-bg: #fff;
  --bakery-button-text: #fff;
  --bakery-primary: #765043;
  --bakery-box-text: #22201e;
  --bakery-box-bg: #fff;
  --bakery-visual-text: #fff;
  --bakery-visual-bg: #b98766;
  --bakery-border: color-mix(in srgb, var(--bakery-box-text) 14%, var(--bakery-box-bg));
  --bakery-muted-text: color-mix(in srgb, var(--bakery-box-text) 62%, var(--bakery-box-bg));
  --bakery-soft-bg: color-mix(in srgb, var(--bakery-page-bg) 58%, var(--bakery-box-bg));
  --bakery-primary-soft: color-mix(in srgb, var(--bakery-primary) 9%, var(--bakery-box-bg));
  --bakery-radius: 6px;
  --bakery-mobile-banner-height: 300px;
  color: var(--bakery-text);
  background: var(--bakery-page-bg);
  font-family: var(--bakery-font, Arial, sans-serif);
  font-synthesis: none;
}

.event-booking-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-inline-size: 0;
  margin: 18px 0;
  padding: 0;
  border: 0;
}

.event-booking-title {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  padding: 0;
  letter-spacing: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.event-booking-fields label { display: grid; min-width: 0; min-inline-size: 0; gap: 7px; }
.event-time-field { display: grid; min-width: 0; min-inline-size: 0; gap: 7px; }
.event-picker-control {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  color: var(--bakery-box-text);
  background: var(--bakery-box-bg);
  border: 1px solid color-mix(in srgb, var(--bakery-box-text) 22%, transparent);
  border-radius: var(--bakery-radius);
  overflow: hidden;
}
.event-picker-value { font: inherit; line-height: 1; unicode-bidi: isolate; }
.event-picker-trigger {
  position: relative;
  z-index: 3;
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.event-picker-trigger svg { width: 18px; height: 18px; opacity: .72; }
.time-picker-control { overflow: visible; cursor: pointer; }
.event-time-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  inset-inline: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 6px;
  padding: 8px;
  color: var(--bakery-box-text);
  background: var(--bakery-box-bg);
  border: 1px solid color-mix(in srgb, var(--bakery-box-text) 22%, transparent);
  border-radius: var(--bakery-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.event-time-popover select,
.event-time-popover button {
  min-width: 0;
  min-height: 38px;
  padding: 0 8px;
  color: var(--bakery-box-text);
  background: var(--bakery-box-bg);
  border: 1px solid color-mix(in srgb, var(--bakery-box-text) 22%, transparent);
  border-radius: min(var(--bakery-radius), 6px);
}
.event-time-popover button {
  color: var(--bakery-button-text);
  background: var(--bakery-button-bg);
  font-weight: 700;
  cursor: pointer;
}
.event-booking-fields .event-native-picker {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.event-booking-fields input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--bakery-box-text);
  background: var(--bakery-box-bg);
  border: 1px solid color-mix(in srgb, var(--bakery-box-text) 22%, transparent);
  border-radius: var(--bakery-radius);
  font: inherit;
  text-align: start;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
}

.event-booking-fields input::-webkit-date-and-time-value {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  text-align: start;
}

.event-booking-fields input::-webkit-datetime-edit {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 100%;
  padding: 0;
}

.event-booking-fields input::-webkit-datetime-edit-fields-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
}

.event-booking-fields input::-webkit-calendar-picker-indicator {
  flex: 0 0 auto;
  margin-inline-start: auto;
  opacity: .7;
}

[dir="rtl"] .event-booking-fields input,
[dir="rtl"] .event-booking-fields input::-webkit-date-and-time-value,
[dir="rtl"] .event-booking-fields input::-webkit-datetime-edit,
[dir="rtl"] .event-booking-fields input::-webkit-datetime-edit-fields-wrapper {
  direction: ltr;
  text-align: right;
}

/* Firefox closes native date popovers anchored to fully transparent controls. */
@supports (-moz-appearance: none) {
  .event-picker-control { padding-inline: 14px 42px; }
  .event-picker-control > .event-picker-value {
    position: relative;
    z-index: 2;
    pointer-events: none;
  }
  .event-picker-trigger { display: grid; }
  .event-booking-fields .event-native-picker {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: 0 12px;
    color: transparent;
    caret-color: transparent;
    border: 0;
    border-radius: inherit;
    background: transparent;
    opacity: 0.01;
    -moz-appearance: auto;
    appearance: auto;
  }
}

.event-payment-breakdown {
  display: grid;
  gap: 0;
  margin: 18px 0;
  padding: 10px 16px;
  border: 1px solid var(--bakery-border);
  border-radius: var(--bakery-radius);
  background: var(--bakery-primary-soft);
}
.event-payment-breakdown > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.event-payment-breakdown b { text-align: end; white-space: nowrap; }
.event-payment-primary { color: var(--bakery-primary); font-weight: 700; }

@media (max-width: 560px) {
  .event-booking-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; overflow: visible; }
  .event-booking-title { margin-bottom: 2px; font-size: 18px; }
  .event-booking-fields label,
  .event-time-field { gap: 8px; font-size: 14px; font-weight: 600; }
  .event-picker-control { min-height: 50px; padding-inline: 12px; font-size: 16px; }
  .event-booking-fields input { min-height: 50px; padding-inline: 12px; font-size: 16px; }
  .event-time-popover {
    position: fixed;
    z-index: 30;
    top: auto;
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px;
    box-shadow: 0 12px 38px rgba(0, 0, 0, .24);
  }
  .event-time-popover select,
  .event-time-popover button { min-height: 48px; font-size: 16px; }
  .event-time-popover button { grid-column: 1 / -1; }
}

@media (max-width: 800px) and (orientation: landscape) {
  .event-time-popover {
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  }
  .event-time-popover button { grid-column: auto; }
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--bakery-text); background: var(--bakery-page-bg); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.bakery-shell {
  display: grid;
  grid-template-columns: minmax(440px, 42%) 1fr;
  min-height: 100vh;
}

.bakery-panel {
  position: relative;
  min-width: 0;
  padding-bottom: 84px;
  color: var(--bakery-box-text);
  background: var(--bakery-box-bg);
}

.store-header {
  display: grid;
  grid-template-columns: 72px 1fr 28px;
  gap: 18px;
  align-items: center;
  min-height: 112px;
  padding: 18px 24px;
  border-bottom: 1px solid #e8e5e1;
  color: var(--bakery-box-text);
  background: var(--bakery-box-bg);
}

.store-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 6px;
  background: #eeeae5;
}

.store-copy { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.store-copy strong { font-size: 18px; }
.store-copy span { color: color-mix(in srgb, var(--bakery-box-text) 68%, var(--bakery-box-bg)); line-height: 1.4; }
.store-header > a:last-child { display: grid; place-items: center; color: var(--bakery-box-text); text-decoration: none; }
.store-header > a:last-child svg { width: 24px; height: 24px; }

.delivery-summary {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  gap: 20px 16px;
  align-items: center;
  padding: 26px 32px;
  border-bottom: 48px solid #f5f4f2;
}

.delivery-summary svg { color: #a6a29e; }
.delivery-summary button, .delivery-summary a, .section-heading button {
  border: 0;
  color: var(--bakery-primary);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 28px 24px;
  scrollbar-width: thin;
}

.category-strip button {
  display: grid;
  flex: 0 0 116px;
  gap: 8px;
  justify-items: center;
  border: 0;
  color: #888480;
  background: transparent;
  cursor: pointer;
}

.category-strip button.active { color: #22201e; }
.category-strip b {
  display: -webkit-box;
  width: 116px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.category-image {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 50%;
  background: #eeeae5;
}

.active .category-image { border-color: var(--bakery-primary); }
.category-all { display: grid; place-items: center; }
.category-strip-loading { overflow: hidden; }
.category-skeleton { display: grid; flex: 0 0 96px; gap: 8px; justify-items: center; }
.category-skeleton i { display: block; width: 88px; height: 88px; border-radius: 50%; }
.category-skeleton b { display: block; width: 68px; height: 12px; border-radius: 4px; }

.catalog-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #f4f3f1;
}

.catalog-toolbar h1 { margin: 0; font-size: 18px; }
.catalog-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #ddd8d2;
  border-radius: 4px;
}

.catalog-toolbar label svg { width: 18px; }
.catalog-toolbar input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
}
.catalog-toolbar label button { display: grid; padding: 0; border: 0; background: transparent; cursor: pointer; }
.catalog-content { min-height: 360px; padding-top: 1px; color: var(--bakery-text); background: var(--bakery-page-bg); }
.catalog-content .section-heading button,
.catalog-content .product-add,
.catalog-content .catalog-state button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--bakery-primary);
  border-radius: var(--bakery-radius) !important;
  color: var(--bakery-button-text);
  background: var(--bakery-primary);
}
.catalog-content .product-card-copy div,
.catalog-content .catalog-state { color: var(--bakery-text); }
.catalog-content svg { color: currentColor; }
.product-section { padding-top: 12px; }
.product-section + .product-section { margin-top: 12px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--bakery-text) 22%, var(--bakery-page-bg)); }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px 0; }
.section-heading h2 { margin: 0; font-size: 17px; font-weight: 600; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 18px;
  padding: 24px;
}

.product-card img {
  width: 100%;
  aspect-ratio: var(--bakery-product-list-ratio, 4 / 3);
  object-fit: cover;
  border-radius: 6px;
  background: #f1efec;
}

img.is-logo-fallback {
  object-fit: contain !important;
  padding: 16% !important;
  background: var(--bakery-primary-soft) !important;
}
img.is-no-image-fallback {
  object-fit: contain !important;
  padding: 10% !important;
  background: var(--bakery-soft-bg) !important;
}

.product-card > a { position: relative; }
.product-stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--bakery-button-text);
  background: var(--bakery-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
[dir="rtl"] .product-stock-badge { right: 10px; left: auto; }
.product-low-stock-text {
  display: inline-flex;
  width: fit-content;
  margin: -2px 0 16px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--bakery-button-text);
  background: var(--bakery-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card > a { position: relative; display: block; color: inherit; text-decoration: none; }
.product-card-copy { display: flex; flex: 1; flex-direction: column; gap: 8px; padding-top: 10px; }
.product-card-copy > a { display: -webkit-box; max-height: 2.7em; overflow: hidden; color: inherit; font-size: 15px; font-weight: 700; line-height: 1.35; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-card-copy div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; color: var(--bakery-primary); }
.product-add { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 12px; border: 1px solid var(--bakery-primary); border-radius: 4px; color: var(--bakery-primary); background: transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.product-add > span,
.search-product-add > span { font: inherit; font-weight: inherit; line-height: 1; }
.product-add:disabled { cursor: wait; opacity: .65; }
.catalog-state { display: grid; justify-items: center; gap: 12px; padding: 60px 24px; color: #77736f; text-align: center; }
.catalog-state p { margin: 0; }
.catalog-state button { padding: 9px 14px; border: 0; border-radius: 4px; color: #fff; background: var(--bakery-primary); cursor: pointer; }
.loading-grid span { height: 210px; border-radius: 6px; background: color-mix(in srgb, var(--bakery-box-text) 8%, var(--bakery-box-bg)); animation: pulse 1.2s infinite alternate; }
@keyframes pulse { to { opacity: .45; } }

/* Stable, layout-matched loading placeholders for SPA route transitions. */
.skeleton-shimmer {
  overflow: hidden;
  background: color-mix(in srgb, var(--bakery-box-text) 8%, var(--bakery-box-bg));
  background-image: linear-gradient(90deg, transparent 20%, color-mix(in srgb, var(--bakery-box-bg) 72%, transparent) 50%, transparent 80%);
  background-size: 220% 100%;
  animation: skeleton-sweep 1.25s ease-in-out infinite;
}
@keyframes skeleton-sweep { to { background-position: -220% 0; } }

.skeleton-panel { min-height: 100vh; }
.skeleton-topbar { grid-template-columns: 44px 1fr 44px; }
.skeleton-icon { width: 32px; height: 32px; border-radius: 50%; }
.skeleton-hero { width: calc(100% - 48px); margin: 24px; aspect-ratio: var(--bakery-product-detail-ratio, 4 / 3); border-radius: min(var(--bakery-radius), 8px); }
.skeleton-page-copy { display: grid; gap: 18px; padding: 8px 24px 32px; }
.skeleton-line, .skeleton-field, .skeleton-action, .skeleton-order-icon { display: block; }
.skeleton-line { height: 14px; border-radius: 4px; }
.skeleton-line-wide { width: 82%; }
.skeleton-line-medium { width: 58%; }
.skeleton-line-short { width: 34%; }
.skeleton-field { width: 100%; height: 52px; border-radius: var(--bakery-radius); }
.skeleton-action { width: 100%; height: 54px; margin-top: 8px; border-radius: var(--bakery-radius); }
.skeleton-checkout-copy { gap: 24px; padding-top: 28px; }
.skeleton-order-copy { justify-items: center; gap: 22px; padding-top: 54px; }
.skeleton-order-copy .skeleton-line { margin-inline: auto; }
.skeleton-order-icon { width: 72px; height: 72px; border-radius: 50%; }

.content-skeleton { display: grid; gap: 0; width: 100%; padding: 14px 24px 36px; }
.skeleton-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; min-height: 116px; padding: 16px 0; border-bottom: 1px solid var(--bakery-border); }
.skeleton-media { width: 84px; height: 84px; border-radius: min(var(--bakery-radius), 8px); }
.skeleton-copy { display: grid; gap: 12px; min-width: 0; }
.skeleton-form .skeleton-row { grid-template-columns: 1fr; min-height: 104px; }
.skeleton-form .skeleton-line-medium { width: 38%; }
.skeleton-form .skeleton-field { height: 54px; }
.skeleton-checkout-copy .content-skeleton, .skeleton-order-copy .content-skeleton { padding: 0; }

@media (prefers-reduced-motion: reduce) {
  .skeleton-shimmer { animation: none; background-image: none; }
}

@media (max-width: 800px) {
  .skeleton-shell .skeleton-visual { display: none; }
  .skeleton-shell .skeleton-panel { min-height: 100vh; }
  .skeleton-hero { width: calc(100% - 36px); margin: 18px; }
  .skeleton-page-copy { padding-inline: 18px; }
  .content-skeleton { padding-inline: 18px; }
}

.catalog-search-page {
  position: absolute;
  z-index: 6;
  inset: 0;
  min-height: 100vh;
  color: var(--bakery-box-text);
  background: var(--bakery-box-bg);
}

.catalog-search-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 14px 24px;
  border-bottom: 1px solid #e4e0dc;
  background: var(--bakery-box-bg);
}

.catalog-search-header > button,
.catalog-search-header label button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.catalog-search-header label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
  min-height: 48px;
}

.catalog-search-header label > svg { width: 20px; color: #77716c; }
.catalog-search-header input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font-size: 19px;
}

.catalog-search-results { display: grid; }
.search-product-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  min-height: 168px;
  padding: 24px;
  border-bottom: 1px solid #ebe7e3;
}

.search-product-image { align-self: start; }
.search-product-image img {
  display: block;
  width: 112px;
  aspect-ratio: var(--bakery-product-list-ratio, 1 / 1);
  object-fit: cover;
  border-radius: min(var(--bakery-radius), 8px);
  background: #f1efec;
}

.search-product-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.search-product-copy > a {
  color: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.search-product-copy mark { padding: 0 2px; color: inherit; background: #f7df83; }
.search-product-copy > div { display: flex; gap: 16px; align-items: center; justify-content: flex-end; }
.search-product-copy > div > b { color: var(--bakery-primary); }
.search-product-add {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--bakery-primary);
  border-radius: var(--bakery-radius);
  color: var(--bakery-primary);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.search-product-add svg { width: 17px; height: 17px; }
.search-product-add:disabled { cursor: wait; opacity: .6; }
.search-empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 72px 24px;
  color: #77716c;
  text-align: center;
}
.search-empty-state svg { width: 30px; height: 30px; }
.search-empty-state p { margin: 0; }

@media (max-width: 600px) {
  .catalog-search-header { min-height: 68px; padding: 10px 12px; }
  .catalog-search-header input { font-size: 17px; }
  .search-product-row { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; min-height: 136px; padding: 18px 14px; }
  .search-product-image img { width: 88px; }
  .search-product-copy { gap: 14px; }
  .search-product-copy > a { font-size: 15px; }
  .search-product-copy > div { gap: 10px; }
  .search-product-add { min-height: 36px; padding: 6px 11px; }
}

.order-bar {
  position: fixed;
  z-index: 4;
  bottom: 14px;
  left: 18px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 16px;
  align-items: center;
  width: calc(42% - 36px);
  min-width: 404px;
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
  background: var(--bakery-primary);
  border-radius: 5px;
}

.order-bar span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--bakery-primary);
  border-radius: 5px;
}

.order-bar strong { text-align: center; }
.bakery-visual {
  position: sticky;
  top: 0;
  height: 100vh;
  color: var(--bakery-visual-text);
  background: var(--bakery-visual-bg) center / cover no-repeat;
}

.visual-home-logo { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; place-items: center; width: min(30%, 200px); min-width: 140px; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.visual-home-logo img { display: block; width: 100%; max-height: 100%; object-fit: contain; }
.bakery-visual nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 18px 5%; }
.visual-tool-group { display: flex; align-items: center; gap: 12px; }
.bakery-visual nav button,
.bakery-visual nav a {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--bakery-button-text);
  background: var(--bakery-primary);
  box-shadow: 0 3px 16px rgb(0 0 0 / 10%);
  cursor: pointer;
  text-decoration: none;
}
.bakery-visual nav svg { width: 20px; height: 20px; stroke-width: 2; }
.bakery-visual nav small { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; color: var(--bakery-button-text); background: var(--bakery-primary); font-size: 11px; line-height: 1; }
.menu-layer { position: fixed; z-index: 20; inset: 0; display: grid; grid-template-columns: minmax(280px, 390px) 1fr; }
.menu-backdrop { grid-column: 1 / -1; grid-row: 1; border: 0; background: rgb(20 16 13 / 46%); }
.menu-drawer { z-index: 1; grid-column: 1; grid-row: 1; display: flex; flex-direction: column; background: #fff; }
.menu-drawer header { display: grid; grid-template-columns: 44px 1fr; align-items: center; min-height: 76px; padding: 12px 18px; border-bottom: 1px solid #e8e5e1; }
.menu-drawer header button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; background: transparent; }
.menu-drawer header strong { text-align: center; }
.menu-drawer > a { display: flex; gap: 16px; align-items: center; min-height: 58px; padding: 12px 28px; border-bottom: 1px solid #efedeb; color: inherit; text-decoration: none; }

[dir="rtl"] .order-bar { right: 18px; left: auto; }

@media (max-width: 800px) {
  .bakery-shell { display: flex; flex-direction: column; }
  .bakery-visual {
    position: relative;
    order: -1;
    width: 100%;
    height: auto;
    max-height: 55vh;
    aspect-ratio: var(--bakery-mobile-banner-ratio, 1 / 1);
    min-height: 240px;
  }
  .visual-home-logo { width: 110px; min-width: 110px; }
  .store-header {
    grid-template-columns: 52px 1fr 24px;
    gap: 12px;
    min-height: 76px;
    padding: 10px 14px;
  }
  .store-logo { width: 52px; height: 52px; }
  .delivery-summary {
    grid-template-columns: 22px 1fr auto;
    gap: 6px 10px;
    padding: 12px 14px;
    border-bottom-width: 12px;
  }
  .delivery-summary strong { grid-column: 2; }
  .category-strip { gap: 8px; padding: 16px 14px; }
  .category-strip button { flex-basis: 88px; gap: 6px; }
  .category-strip b { width: 88px; font-size: 13px; line-height: 1.08; }
  .category-image { width: 76px; height: 76px; }
  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding-inline: 18px;
  }
  .catalog-toolbar label { max-width: none; }
  .product-grid { padding: 18px; }
  .product-card-copy div { align-items: flex-start; flex-direction: column; }
  .product-add { width: 100%; text-align: center; }
  .order-bar {
    width: calc(100% - 28px);
    min-width: 0;
    left: 14px;
  }
  [dir="rtl"] .order-bar { right: 14px; }
}

.checkout-page { min-height: 100vh; padding-bottom: 92px; }
.checkout-form { display: grid; }
.checkout-form > section { display: grid; gap: 16px; padding: 24px; border-bottom: 20px solid #f4f4f2; }
.checkout-form h1, .checkout-form h2 { margin: 0; font-size: 19px; }
.checkout-auth-prompt { grid-template-columns: 1fr auto; align-items: center; }
.checkout-auth-prompt p { margin: 6px 0 0; color: #716c67; }
.checkout-auth-prompt > div:last-child { display: flex; gap: 8px; }
.checkout-auth-prompt a, .section-heading a, .checkout-no-address a { padding: 10px 13px; border: 1px solid var(--bakery-primary); border-radius: 4px; color: var(--bakery-primary); font-weight: 700; text-decoration: none; }
.checkout-auth-prompt a.primary { color: #fff; background: var(--bakery-primary); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.checkout-address-list { display: grid; gap: 10px; }
.checkout-address-list > button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 15px; border: 1px solid #d8d3ce; border-radius: 4px; color: inherit; background: #fff; text-align: left; cursor: pointer; }
.checkout-address-list > button.active { border-color: var(--bakery-primary); box-shadow: inset 0 0 0 1px var(--bakery-primary); }
.checkout-address-list button > span:first-child { display: grid; gap: 5px; }
.checkout-address-list small { color: #716c67; font-weight: 400; line-height: 1.45; }
.address-choice { width: 18px; height: 18px; flex: 0 0 18px; border: 2px solid #aaa39c; border-radius: 50%; }
.checkout-address-list button.active .address-choice { border: 5px solid var(--bakery-primary); }
.checkout-no-address { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.checkout-no-address p { margin: 0; color: #716c67; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checkout-form label { display: grid; gap: 7px; font-weight: 700; }
.checkout-form input, .checkout-form textarea, .checkout-form select { min-width: 0; width: 100%; padding: 11px 12px; border: 1px solid #d8d3ce; border-radius: 4px; font: inherit; }
.checkout-form label > small, .field-error { margin: 0; color: #a23e35; font-size: 12px; font-weight: 400; }
.phone-input { display: grid; grid-template-columns: auto 1fr; align-items: center; border: 1px solid #d8d3ce; border-radius: 4px; }
.phone-input b { padding: 0 10px; color: #706b66; }
.phone-input input { border: 0; border-left: 1px solid #d8d3ce; border-radius: 0; }
.checkout-form select { color: inherit; background: #fff; }
.address-type { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.address-type button { display: flex; gap: 7px; align-items: center; justify-content: center; min-height: 46px; border: 1px solid #d8d3ce; border-radius: 4px; background: #fff; cursor: pointer; }
.address-type button.active { border-color: var(--bakery-primary); color: var(--bakery-primary); background: #f5efec; }
.address-type svg { width: 18px; }
.checkout-traditional-fulfillment { gap: 18px !important; }
.checkout-method-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checkout-method-cards.single { grid-template-columns: 1fr; }
.checkout-method-cards button { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 14px; border: 1px solid #d8d3ce; border-radius: var(--bakery-radius); color: inherit; background: var(--bakery-box-bg); font: inherit; text-align: start; cursor: pointer; }
.checkout-method-cards button.active { border-color: var(--bakery-primary); box-shadow: inset 0 0 0 1px var(--bakery-primary); background: color-mix(in srgb, var(--bakery-primary) 8%, var(--bakery-box-bg)); }
.checkout-method-cards button:disabled { cursor: wait; opacity: .7; }
.checkout-method-cards svg { flex: 0 0 auto; width: 23px; height: 23px; color: var(--bakery-primary); }
.checkout-method-cards span { display: grid; gap: 4px; }
.checkout-method-cards small { color: #716c67; font-weight: 400; }
.traditional-location-fields { display: grid; gap: 14px; }
.traditional-schedule-fields { display: grid; gap: 12px; }
.traditional-branch-list { display: grid; gap: 10px; }
.traditional-branch-list button { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 12px; width: 100%; padding: 15px; border: 1px solid #d8d3ce; border-radius: var(--bakery-radius); color: inherit; background: var(--bakery-box-bg); font: inherit; text-align: start; cursor: pointer; }
.traditional-branch-list button.active { border-color: var(--bakery-primary); box-shadow: inset 0 0 0 1px var(--bakery-primary); background: color-mix(in srgb, var(--bakery-primary) 7%, var(--bakery-box-bg)); }
.traditional-branch-list button:disabled { cursor: wait; opacity: .7; }
.traditional-branch-list .branch-choice { width: 18px; height: 18px; margin-top: 2px; border: 2px solid #aaa39c; border-radius: 50%; }
.traditional-branch-list button.active .branch-choice { border: 5px solid var(--bakery-primary); }
.traditional-branch-list button > span:last-child { display: grid; gap: 5px; }
.traditional-branch-list small { color: #716c67; font-weight: 400; line-height: 1.45; overflow-wrap: anywhere; }
.checkout-traditional-schedule { gap: 18px !important; }
.checkout-traditional-schedule .date-strip.traditional { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; overflow: visible; }
.checkout-traditional-schedule .date-strip.traditional button { display: grid; place-items: center; gap: 7px; min-height: 70px; padding: 13px 10px; border: 1px solid #d8d3ce; border-radius: var(--bakery-radius); color: var(--bakery-primary); background: var(--bakery-box-bg); font: inherit; cursor: pointer; }
.checkout-traditional-schedule .date-strip.traditional button.active { border-color: var(--bakery-primary); color: #fff; background: var(--bakery-primary); box-shadow: 0 8px 18px color-mix(in srgb, var(--bakery-primary) 24%, transparent); }
.checkout-traditional-schedule .date-strip.traditional small { color: inherit; font-size: 14px; font-weight: 700; }
.checkout-traditional-schedule .date-strip.traditional b { color: inherit; font-size: 18px; }
.checkout-traditional-schedule .time-slots.traditional { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 10px; }
.checkout-traditional-schedule .time-slots.traditional button { display: grid; grid-template-columns: 22px minmax(0, 1fr) 20px; align-items: center; gap: 12px; min-height: 62px; padding: 13px 15px; border: 1px solid #d8d3ce; border-radius: var(--bakery-radius); color: var(--bakery-primary); background: var(--bakery-box-bg); font: inherit; font-weight: 700; text-align: start; cursor: pointer; }
.checkout-traditional-schedule .time-slots.traditional button.active { border-color: var(--bakery-primary); box-shadow: inset 0 0 0 1px var(--bakery-primary); background: color-mix(in srgb, var(--bakery-primary) 8%, var(--bakery-box-bg)); }
.checkout-traditional-schedule .time-slots.traditional button:disabled { cursor: wait; opacity: .7; }
.checkout-traditional-schedule .time-slots.traditional svg { width: 21px; height: 21px; color: currentColor; }
.checkout-pickup-summary.inline { gap: 10px !important; padding: 14px; border: 1px solid #d8d3ce; border-radius: var(--bakery-radius); background: var(--bakery-box-bg); }
.checkout-pickup-summary.inline p { margin: 4px 0 0; color: #716c67; }
.checkout-pickup-summary.inline iframe { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 190px; border: 0; border-radius: calc(var(--bakery-radius) + 2px); background: #f4f1ec; }
.checkout-pickup-summary.inline a { display: inline-flex; align-items: center; gap: 7px; justify-self: start; color: var(--bakery-primary); font-weight: 700; text-decoration: none; }
.checkout-pickup-summary.inline a svg { width: 18px; height: 18px; }
.payment-list { display: grid; gap: 9px; }
.payment-list label { display: block; }
.payment-list input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.payment-list span { display: flex; gap: 12px; align-items: center; justify-content: flex-start; width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #d8d3ce; border-radius: 4px; font-size: 16px; font-weight: 600; line-height: 1.35; text-align: start; cursor: pointer; }
.payment-list label.active span { border-color: var(--bakery-primary); background: #f5efec; }
.payment-list svg { width: 22px; color: var(--bakery-primary); }
.event-payment-choice > div { display: grid; gap: 10px; }
.event-payment-choice label { grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 12px; padding: 16px; border: 1px solid #d8d3ce; border-radius: 5px; cursor: pointer; }
.event-payment-choice label.active { border-color: var(--bakery-primary); box-shadow: inset 0 0 0 1px var(--bakery-primary); background: color-mix(in srgb, var(--bakery-primary) 8%, white); }
.event-payment-choice input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--bakery-primary); }
.event-payment-choice label > span { display: grid; gap: 5px; }
.event-payment-choice strong { display: flex; justify-content: space-between; gap: 12px; }
.event-payment-choice strong b { white-space: nowrap; }
.event-payment-choice small { color: #716c67; font-weight: 400; line-height: 1.4; }
.event-full-payment-notice { gap: 5px !important; border-bottom-width: 1px !important; color: var(--bakery-box-text); background: var(--bakery-box-bg); }
.event-full-payment-notice p { margin: 0; color: inherit; line-height: 1.45; }
.checkout-summary { border-bottom: 0 !important; }
.checkout-summary > div { display: flex; justify-content: space-between; gap: 15px; }
.checkout-summary > div:last-child { padding-top: 15px; border-top: 1px solid #d8d3ce; font-size: 18px; }
.checkout-error { margin: 0 24px 18px; }
.place-order-button { position: fixed; z-index: 8; bottom: 14px; left: 18px; display: flex; justify-content: space-between; width: calc(42% - 36px); min-width: 464px; min-height: 58px; padding: 18px 20px; border: 0; border-radius: 5px; color: #fff; background: var(--bakery-primary); box-shadow: 0 4px 20px rgb(0 0 0 / 16%); font: inherit; cursor: pointer; }

@media (max-width: 800px) {
  .checkout-shell { display: block; }
  .checkout-visual { display: none; }
  .checkout-page { padding-bottom: calc(118px + env(safe-area-inset-bottom)); scroll-padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
  .checkout-form > section { padding-inline: 18px; }
  .checkout-auth-prompt { grid-template-columns: 1fr; }
  .checkout-auth-prompt > div:last-child { width: 100%; }
  .checkout-auth-prompt a { flex: 1; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .place-order-button { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); left: 14px; width: calc(100% - 28px); min-width: 0; }
}

.cart-page { min-height: 100vh; padding-bottom: 96px; }
.cart-items { display: grid; }
.cart-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 20px 24px; border-bottom: 1px solid #e8e5e1; }
.cart-item img { display: block; width: 110px; height: 110px; object-fit: cover; border-radius: 5px; background: #f2efeb; }
.cart-item-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-item-copy > a { color: inherit; font-weight: 700; text-decoration: none; }
.cart-item-copy small { color: #716c67; line-height: 1.35; }
.cart-item-copy b { margin-top: auto; color: var(--bakery-primary); }
.cart-item-actions { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 4px; }
.cart-item-actions > button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; color: #8d3f37; background: transparent; cursor: pointer; }
.cart-item-actions .quantity-control { margin: 0; grid-template-columns: 34px 38px 34px; }
.cart-item-actions .quantity-control button { height: 36px; }
.coupon-form { display: grid; gap: 10px; padding: 24px; border-bottom: 20px solid #f4f4f2; }
.coupon-form label { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.coupon-form label svg { width: 19px; }
.coupon-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.coupon-form input { min-width: 0; padding: 12px; border: 1px solid #d8d3ce; border-radius: var(--bakery-radius); }
.coupon-form button { padding: 0 18px; border: 0; border-radius: var(--bakery-radius); color: #fff; background: var(--bakery-primary); }
.cart-summary { display: grid; gap: 14px; padding: 24px; }
.cart-summary > div { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; }
.cart-summary b { text-align: right; }
.cart-total { margin-top: 6px; padding-top: 18px; border-top: 1px solid #d8d3ce; }
.checkout-button { position: fixed; z-index: 7; bottom: 14px; left: 18px; display: flex; justify-content: space-between; width: calc(42% - 36px); min-width: 464px; min-height: 58px; padding: 18px 20px; border-radius: 5px; color: #fff; background: var(--bakery-primary); box-shadow: 0 4px 20px rgb(0 0 0 / 16%); text-decoration: none; }
.checkout-button,
.place-order-button,
.order-bar { font-weight: 700; }
.checkout-button > span,
.checkout-button > b,
.place-order-button > span,
.place-order-button > b,
.order-bar strong,
.order-bar-total b { font-weight: 700; }
.cart-empty, .cart-state { display: grid; justify-items: center; gap: 12px; min-height: 60vh; align-content: center; padding: 40px 24px; text-align: center; }
.cart-empty svg { width: 52px; height: 52px; color: var(--bakery-primary); }
.cart-empty h1, .cart-empty p { margin: 0; }
.cart-empty a, .cart-state button { padding: 11px 16px; border: 0; border-radius: 4px; color: #fff; background: var(--bakery-primary); text-decoration: none; }
.cart-confirm-layer { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(0 0 0 / 42%); }
.cart-confirm-dialog { display: grid; justify-items: center; width: min(100%, 380px); padding: 24px; color: var(--bakery-box-text); background: var(--bakery-box-bg); border: 1px solid var(--bakery-border); border-radius: 8px; box-shadow: 0 18px 50px rgb(0 0 0 / 24%); text-align: center; }
.cart-confirm-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 50%; color: #9d3d35; background: color-mix(in srgb, #9d3d35 10%, var(--bakery-box-bg)); }
.cart-confirm-icon svg { width: 24px; height: 24px; }
.cart-confirm-dialog h2 { margin: 0 0 8px; font-size: 21px; }
.cart-confirm-dialog > strong { overflow-wrap: anywhere; }
.cart-confirm-dialog p { margin: 8px 0 22px; color: var(--bakery-muted-text); }
.cart-confirm-dialog > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.cart-confirm-dialog button { min-height: 46px; padding: 9px 14px; color: var(--bakery-primary); background: var(--bakery-box-bg); border: 1px solid var(--bakery-primary); border-radius: var(--bakery-radius); font-weight: 700; cursor: pointer; }
.cart-confirm-dialog button.danger { color: var(--bakery-button-text); background: #9d3d35; border-color: #9d3d35; }
.compact-delivery { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 15px 24px; border-bottom: 1px solid #e8e5e1; color: inherit; text-decoration: none; }
.compact-delivery svg { color: var(--bakery-primary); }
.compact-delivery span { display: grid; gap: 3px; }
.compact-delivery small { color: #77736f; }
.compact-delivery > strong { color: var(--bakery-primary); font-size: 14px; }
.product-topbar > button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.fulfillment-choice-panel { display: grid; gap: 14px; padding: 20px 24px 8px; }
.fulfillment-choice-panel h1 { margin: 0; font-size: 22px; }
.fulfillment-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fulfillment-choice-grid.single { grid-template-columns: 1fr; }
.fulfillment-choice-grid button { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px; border: 1px solid #d8d3ce; border-radius: var(--bakery-radius); color: inherit; background: var(--bakery-box-bg); text-align: start; cursor: pointer; }
.fulfillment-choice-grid button.active { border-color: var(--bakery-primary); box-shadow: inset 0 0 0 1px var(--bakery-primary); background: color-mix(in srgb, var(--bakery-primary) 8%, var(--bakery-box-bg)); }
.fulfillment-choice-grid button:disabled { cursor: wait; opacity: .7; }
.fulfillment-choice-grid svg { flex: 0 0 auto; width: 24px; height: 24px; color: var(--bakery-primary); }
.fulfillment-choice-grid span { display: grid; gap: 4px; }
.fulfillment-choice-grid small { color: var(--bakery-muted-text); font-weight: 400; }
.pickup-location-list button span { display: grid; gap: 4px; }
.pickup-location-list button span b, .pickup-location-list button span small { overflow-wrap: anywhere; }
.pickup-location-list a { color: var(--bakery-primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.location-empty { margin: 0; padding: 18px 24px; color: var(--bakery-muted-text); }
.checkout-pickup-summary { gap: 6px !important; }
.checkout-pickup-summary p { margin: 0; color: var(--bakery-muted-text); }
.delivery-summary.pickup-summary { grid-template-columns: 30px 1fr auto; }
@media (max-width: 520px) { .fulfillment-choice-grid { grid-template-columns: 1fr; } }

.location-page { min-height: 100vh; background: #fff; }
.location-search { display: flex; gap: 10px; align-items: center; margin: 18px 24px; padding: 11px 14px; border: 1px solid #d8d3ce; border-radius: 4px; }
.location-search svg { width: 20px; color: #77736f; }
.location-search input { min-width: 0; width: 100%; border: 0; outline: 0; }
.location-list { display: grid; border-top: 1px solid #e8e5e1; }
.location-list > button { display: grid; grid-template-columns: 24px 1fr 20px; gap: 14px; align-items: center; min-height: 64px; padding: 12px 24px; border: 0; border-bottom: 1px solid #e8e5e1; color: inherit; background: #fff; text-align: left; cursor: pointer; }
.location-list > button:hover { background: #f6f4f1; }
.location-list > button > svg:first-child { color: var(--bakery-primary); }
.location-list > button > svg:last-child { width: 18px; transform: rotate(180deg); color: #999590; }
.area-list span { display: grid; gap: 4px; }
.area-list small { color: #77736f; }
.location-visual { display: grid; place-items: center; background-color: var(--bakery-visual-bg); }
.location-visual > div:not(.visual-home-logo) { display: grid; justify-items: center; gap: 14px; padding: 30px; color: #fff; font-size: 22px; text-align: center; }
.location-visual svg { width: 54px; height: 54px; }
.schedule-page { min-height: 100vh; background: #fff; }
.schedule-content { padding: 32px 24px 100px; }
.schedule-content h1 { margin: 0 0 8px; font-size: 27px; }
.schedule-content > p { margin: 0 0 26px; color: #716c67; }
.date-strip { display: grid; grid-template-columns: repeat(4, minmax(76px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.date-strip button { display: grid; gap: 5px; min-height: 68px; padding: 10px; border: 1px solid #ded9d3; border-radius: 5px; color: inherit; background: #fff; cursor: pointer; }
.date-strip button small { color: #77716c; }
.date-strip button.active { border-color: var(--bakery-primary); color: #fff; background: var(--bakery-primary); }
.date-strip button.active small { color: #fff; }
.time-slots { display: grid; gap: 9px; margin-top: 24px; }
.time-slots button { display: grid; grid-template-columns: 22px 1fr 22px; gap: 12px; align-items: center; min-height: 54px; padding: 12px 16px; border: 1px solid #ded9d3; border-radius: 5px; color: inherit; background: #fff; text-align: left; cursor: pointer; }
.time-slots button svg { width: 19px; color: #8b685a; }
.time-slots button.active { border-color: var(--bakery-primary); background: #f7f1ed; }
.schedule-save { position: fixed; z-index: 7; bottom: 14px; left: 18px; width: calc(42% - 36px); min-width: 464px; min-height: 58px; border: 0; border-radius: 5px; color: #fff; background: var(--bakery-primary); box-shadow: 0 4px 20px rgb(0 0 0 / 16%); font: inherit; font-weight: 700; cursor: pointer; }
.info-page { min-height: 100vh; background: #fff; }
.info-content { padding-bottom: 50px; }
.info-content > header { display: grid; justify-items: center; padding: 36px 24px 28px; border-bottom: 1px solid color-mix(in srgb, var(--bakery-primary) 22%, transparent); text-align: center; }
.info-content > header img { width: 82px; height: 82px; object-fit: contain; border-radius: 6px; }
.info-content > header h1 { margin: 18px 0 5px; font-size: 27px; }
.info-content > header p { margin: 0; color: #716c67; }
.info-links { display: grid; border-top: 0; }
.info-links a { display: grid; grid-template-columns: 24px 1fr 20px; gap: 14px; align-items: center; min-height: 70px; padding: 12px 24px; border-bottom: 1px solid color-mix(in srgb, var(--bakery-primary) 22%, transparent); color: inherit; text-decoration: none; }
.info-links a > svg:first-child { color: var(--bakery-primary); }
.info-links a > svg:last-child { width: 18px; transform: rotate(180deg); color: #aaa49e; }
.info-links span { display: grid; gap: 4px; min-width: 0; }
.info-links small { color: #77716c; }
.info-links b { overflow-wrap: anywhere; }
.info-block { padding: 24px; border-top: 1px solid color-mix(in srgb, var(--bakery-primary) 22%, transparent); }
.info-block h2 { margin: 0 0 16px; font-size: 20px; }
.info-block p { color: #625d59; line-height: 1.6; }
.info-block > a { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; color: var(--bakery-primary); font-weight: 700; text-decoration: none; }
.info-block > a svg { width: 18px; }
.opening-hours { display: grid; gap: 12px; }
.opening-hours > div { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid #eeeae6; }
.opening-hours b { text-align: right; }
.info-visual { display: grid; place-items: end start; background-color: var(--bakery-visual-bg); }
.info-visual > div:not(.visual-home-logo) { display: grid; gap: 8px; padding: 50px; color: #fff; }
.info-visual strong { font-size: 38px; }
.info-visual span { font-size: 18px; }
.account-page { min-height: 100vh; background: #fff; }
.auth-content, .account-content { width: min(100%, 620px); margin: 0 auto; padding: 34px 24px 60px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 30px; border-bottom: 1px solid #ddd8d2; }
.auth-tabs button { padding: 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.auth-tabs button.active { border-color: var(--bakery-primary); color: var(--bakery-primary); }
.auth-form { display: grid; gap: 18px; }
.auth-heading { display: grid; justify-items: center; margin-bottom: 8px; text-align: center; }
.auth-heading > svg { width: 42px; height: 42px; color: var(--bakery-primary); }
.auth-heading h1 { margin: 12px 0 5px; font-size: 27px; }
.auth-heading p { margin: 0; color: #716c67; }
.auth-form > label, .register-form .form-grid label { display: grid; gap: 7px; font-weight: 700; }
.auth-form input:not([type="checkbox"]) { min-width: 0; width: 100%; padding: 13px; border: 1px solid #d8d3ce; border-radius: 4px; font: inherit; font-weight: 400; }
.auth-form label small { color: #a43730; font-weight: 500; }
.auth-form > button { min-height: 52px; border: 0; border-radius: 4px; color: #fff; background: var(--bakery-primary); font: inherit; font-weight: 700; cursor: pointer; }
.terms-check { grid-template-columns: 20px 1fr; align-items: start; }
.terms-check input { margin-top: 3px; }
.account-identity { display: grid; grid-template-columns: 58px 1fr 44px; gap: 14px; align-items: center; padding-bottom: 28px; }
.account-identity > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: var(--bakery-primary); }
.account-identity h1 { margin: 0 0 5px; font-size: 22px; }
.account-identity p, .account-identity small { margin: 0; color: #716c67; }
.account-identity button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--bakery-primary); cursor: pointer; }
.account-orders { padding-top: 25px; border-top: 14px solid #f4f4f2; }
.account-orders h2 { display: flex; gap: 9px; align-items: center; margin: 0 0 18px; font-size: 20px; }
.account-orders h2 svg { width: 21px; color: var(--bakery-primary); }
.account-orders article { display: flex; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid #e8e4df; }
.account-orders article > div { display: grid; gap: 5px; }
.account-orders article > div:last-child { justify-items: end; text-align: right; }
.account-orders article small { color: #77716c; }
.account-orders article span { color: var(--bakery-primary); font-size: 13px; font-weight: 700; }
.account-empty { display: grid; justify-items: center; padding: 40px 20px; text-align: center; }
.account-empty svg { width: 42px; color: var(--bakery-primary); }
.account-empty a { color: var(--bakery-primary); font-weight: 700; }
.account-visual { display: grid; place-items: center; background-color: var(--bakery-visual-bg); }
.account-visual > div:not(.visual-home-logo) { display: grid; justify-items: center; gap: 14px; color: #fff; font-size: 25px; }
.account-visual svg { width: 56px; height: 56px; }
.account-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 26px; border-bottom: 1px solid #ddd8d2; }
.account-tabs button { padding: 13px 8px; border: 0; border-bottom: 3px solid transparent; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.account-tabs button.active { border-color: var(--bakery-primary); color: var(--bakery-primary); }
.account-edit-form { display: grid; gap: 17px; }
.account-edit-form h2 { margin: 0 0 6px; font-size: 21px; }
.account-edit-form label { display: grid; gap: 7px; font-weight: 700; }
.account-edit-form input, .account-edit-form select { min-width: 0; width: 100%; padding: 12px; border: 1px solid #d8d3ce; border-radius: 4px; background: #fff; font: inherit; font-weight: 400; }
.account-edit-form label small { color: #a43730; }
.account-edit-form > button { min-height: 50px; border: 0; border-radius: 4px; color: #fff; background: var(--bakery-primary); font: inherit; font-weight: 700; }
.saved-addresses > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.saved-addresses > header h2 { margin: 0; font-size: 21px; }
.saved-addresses > header button { padding: 9px 12px; border: 1px solid var(--bakery-primary); border-radius: 4px; color: var(--bakery-primary); background: #fff; font-weight: 700; cursor: pointer; }
.address-list { display: grid; gap: 12px; }
.address-list article { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 16px; border: 1px solid #e2ddd7; border-radius: 5px; }
.address-list article p { margin: 7px 0; color: #68625d; line-height: 1.5; }
.address-list article small { color: #77716c; }
.address-list article > div:last-child { display: flex; gap: 5px; align-items: start; }
.address-list article button { min-height: 36px; padding: 7px 10px; border: 0; color: var(--bakery-primary); background: #f5f1ed; cursor: pointer; }
.address-list article button.danger { display: grid; place-items: center; width: 36px; padding: 0; color: #9d3d35; }
.address-list article button svg { width: 17px; }
.address-form .address-type { margin: 0; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.form-actions button { min-height: 48px; border: 1px solid var(--bakery-primary); border-radius: 4px; color: var(--bakery-primary); background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.form-actions button.primary { color: #fff; background: var(--bakery-primary); }

@media (max-width: 800px) {
  .cart-shell { display: block; }
  .cart-shell .cart-visual { display: none; }
  .cart-item { grid-template-columns: 82px 1fr; gap: 12px; padding: 16px 14px; }
  .cart-item img { width: 82px; height: 82px; }
  .cart-item-actions { flex-direction: row-reverse; align-items: center; }
  .coupon-form, .cart-summary { padding-inline: 18px; }
  .checkout-button { right: 14px; left: 14px; width: calc(100% - 28px); min-width: 0; }
  .location-shell { display: block; }
  .location-visual { display: none; }
  .location-search { margin-inline: 14px; }
  .location-list > button { padding-inline: 18px; }
  .schedule-shell { display: block; }
  .schedule-shell .location-visual { display: none; }
  .schedule-content { padding-inline: 18px; }
  .date-strip { grid-template-columns: repeat(7, 82px); }
  .schedule-save { right: 14px; left: 14px; width: calc(100% - 28px); min-width: 0; }
  .info-shell { display: block; }
  .info-shell .info-visual { display: none; }
  .account-shell { display: block; }
  .account-shell .account-visual { display: none; }
  .auth-content, .account-content { padding-inline: 18px; }
}
@media (max-width: 420px) { .product-grid { padding-inline: 14px; } }
@media (prefers-reduced-motion: reduce) { .loading-grid span { animation: none; } }

/* Theme 18 design controls supplied by the admin settings page. */
.product-page, .cart-page, .location-page, .schedule-page, .info-page, .account-page,
.checkout-page, .order-page { color: var(--bakery-box-text); background: var(--bakery-box-bg); }
.product-topbar, .menu-drawer { color: var(--bakery-box-text); background: var(--bakery-box-bg); }
.bakery-visual, .location-visual, .order-visual, .info-visual, .account-visual {
  color: var(--bakery-visual-text);
  background-color: var(--bakery-visual-bg);
}
.catalog-state button, .order-bar, .add-cart-button, .coupon-form button, .checkout-button,
.place-order-button, .cart-empty a, .cart-state button, .schedule-save, .order-actions a.primary,
.track-form button, .auth-form > button, .account-edit-form > button, .form-actions button.primary {
  color: var(--bakery-button-text);
  background: var(--bakery-primary);
}
.product-add, .order-actions a, .saved-addresses > header button, .form-actions button {
  border-color: var(--bakery-primary);
  color: var(--bakery-primary);
}
.catalog-state button, .order-bar, .order-bar span, .add-cart-button, .coupon-form button,
.checkout-button, .place-order-button, .cart-empty a, .cart-state button, .schedule-save,
.order-actions a, .track-form button, .auth-form > button, .account-edit-form > button,
.product-add, .saved-addresses > header button, .form-actions button, .address-list article button,
.checkout-auth-prompt a, .section-heading a, .checkout-no-address a, .checkout-address-list > button {
  border-radius: var(--bakery-radius) !important;
}

.order-page { min-height: 100vh; background: #fff; }
.order-content { width: min(100%, 620px); margin: 0 auto; padding: 48px 28px 70px; }
.order-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: var(--bakery-primary); }
.order-icon svg { width: 38px; height: 38px; }
.order-content > h1 { margin: 0; font-size: 30px; text-align: center; }
.order-lead { margin: 12px auto 28px; color: #6f6964; line-height: 1.6; text-align: center; }
.order-reference { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid #e1dcd6; background: #f8f6f3; }
.order-reference strong { color: var(--bakery-primary); font-size: 22px; }
.order-progress { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 32px 0; }
.order-progress::before { position: absolute; top: 19px; right: 12%; left: 12%; height: 2px; content: ""; background: #ddd7d1; }
.order-progress > div { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; color: #99938e; text-align: center; }
.order-progress > div span { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid #ddd7d1; border-radius: 50%; background: #fff; }
.order-progress > div svg { width: 19px; }
.order-progress > div.active { color: var(--bakery-primary); font-weight: 700; }
.order-progress > div.active span { border-color: var(--bakery-primary); color: #fff; background: var(--bakery-primary); }
.order-progress > p { grid-column: 1 / -1; margin: 20px 0 0; color: var(--bakery-primary); font-weight: 700; text-align: center; }
.order-progress.cancelled > p { color: #9d3d35; }
.order-products { margin-top: 28px; border-top: 1px solid #e1dcd6; }
.order-products h2 { margin: 24px 0 12px; font-size: 19px; }
.order-products > div { display: flex; justify-content: space-between; padding: 10px 0; }
.order-product-row { align-items: center; gap: 20px; }
.order-product-info { display: grid; gap: 4px; min-width: 0; }
.order-product-info strong { font-weight: 500; }
.order-product-info small { color: #77716c; font-size: 13px; }
.order-product-info .order-product-option { display: block; line-height: 1.45; }
.order-product-info .order-product-option b { color: inherit; font-weight: 700; }
.order-product-row > b { flex: 0 0 auto; }
.order-products > .order-delivery-details { display: grid; gap: 12px; margin: 14px 0 4px; padding: 16px; border: 1px solid color-mix(in srgb, var(--bakery-primary) 22%, #e1dcd6); border-radius: 12px; background: color-mix(in srgb, var(--bakery-primary) 5%, transparent); }
.order-delivery-details h3 { margin: 0; font-size: 16px; color: var(--bakery-primary); }
.order-delivery-details div { display: flex; gap: 10px; align-items: flex-start; }
.order-delivery-details span { width: 28px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center; color: var(--bakery-primary); background: color-mix(in srgb, var(--bakery-primary) 10%, transparent); flex: 0 0 auto; }
.order-delivery-details svg { width: 16px; height: 16px; }
.order-delivery-details p { margin: 0; display: grid; gap: 3px; min-width: 0; }
.order-delivery-details small { color: var(--bakery-muted-text); }
.order-delivery-details b, .order-delivery-details em { font-style: normal; overflow-wrap: anywhere; }
.order-delivery-charge span { color: var(--bakery-muted-text); }
.order-products .order-total { margin-top: 8px; padding-top: 18px; border-top: 1px solid #e1dcd6; font-size: 18px; }
.order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.order-actions a { display: grid; place-items: center; min-height: 50px; padding: 10px; border: 1px solid var(--bakery-primary); border-radius: 4px; color: var(--bakery-primary); text-align: center; text-decoration: none; }
.order-actions a.primary { color: #fff; background: var(--bakery-primary); }
.order-visual { display: grid; place-items: end center; background-color: var(--bakery-visual-bg); }
.order-visual > div:not(.visual-home-logo) { width: 100%; padding: 50px; color: #fff; font-size: 34px; line-height: 1.25; }
.track-form { margin-top: 30px; }
.track-form label { display: grid; gap: 8px; font-weight: 700; }
.track-form label > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.track-form input { min-width: 0; width: 100%; padding: 13px; border: 1px solid #d8d3ce; border-radius: var(--bakery-radius); font: inherit; }
.track-form button { display: flex; gap: 8px; align-items: center; padding: 0 18px; border: 0; border-radius: var(--bakery-radius); color: #fff; background: var(--bakery-primary); font: inherit; cursor: pointer; }
.track-form button svg { width: 18px; }
.track-form ~ .order-actions { grid-template-columns: minmax(0, 1fr); }
.track-notice { padding: 13px; background: #f5f2ee; text-align: center; }
.tracked-orders { display: grid; gap: 16px; margin-top: 24px; }
.tracked-orders article { padding: 18px; border: 1px solid #e1dcd6; border-radius: 5px; }
.tracked-orders article .order-reference { margin: -18px -18px 0; border-width: 0 0 1px; }
.tracked-orders article .order-products { margin-top: 0; }
.tracked-orders header { display: flex; justify-content: space-between; gap: 16px; }
.tracked-orders header span { font-weight: 700; }
.tracked-orders article > p { color: #6f6964; line-height: 1.5; }

@media (max-width: 800px) {
  .order-shell { display: block; }
  .order-shell .order-visual { display: none; }
  .order-content { padding: 36px 18px 60px; }
}

@media (max-width: 560px) {
  .order-actions { grid-template-columns: 1fr; }
  .order-progress small { font-size: 10px; }
  .track-form label > div { grid-template-columns: 1fr; gap: 8px; }
  .track-form input, .track-form button { min-height: 48px; border-radius: 4px; }
  .track-form button { justify-content: center; }
}

.product-shell { align-items: start; }
.product-page { min-width: 0; min-height: 100vh; padding-bottom: 0; background: #fff; }
.product-topbar { position: sticky; z-index: 8; top: 0; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; min-height: 68px; padding: 10px 24px; border-bottom: 1px solid #e8e5e1; background: rgb(255 255 255 / 96%); }
.product-topbar strong { text-align: center; }
.product-topbar a { display: grid; place-items: center; width: 44px; height: 44px; color: inherit; }
.product-layout { display: block; min-height: 0; }
.product-gallery { display: grid; place-items: center; min-height: 0; padding: 24px; background: #f3f0ec; }
.product-main-image { width: 100%; aspect-ratio: var(--bakery-product-detail-ratio, 4 / 3); object-fit: cover; border-radius: 6px; }
.product-thumbnails { display: flex; gap: 10px; margin-top: 16px; }
.product-thumbnails button { width: 64px; height: 64px; padding: 6px; border: 2px solid transparent; border-radius: 4px; background: #fff; }
.product-thumbnails button.active { border-color: var(--bakery-primary); }
.product-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.product-details { padding: 30px 24px 44px; }
.product-details:not(.event-product-details) { background: var(--bakery-page-bg); }
.product-category { margin: 0 0 12px; color: var(--bakery-primary); font-weight: 700; }
.product-details h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.2; }
.product-price { margin: 0 0 22px; color: var(--bakery-text); font-size: 18px; font-weight: 700; }
.product-about { color: #66615c; font-size: 16px; line-height: 1.65; }
.product-full-description { margin-top: 18px; color: inherit; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.product-full-description > :first-child { margin-top: 0; }
.product-full-description > :last-child { margin-bottom: 0; }
.product-full-description img,
.product-full-description video,
.product-full-description iframe { display: block; max-width: 100%; height: auto; }
.product-full-description table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.product-full-description a { color: var(--bakery-primary); }
.event-product-details { color: var(--bakery-text); background: var(--bakery-page-bg); }
.event-product-details .event-box { width: 100%; min-width: 0; margin: 0 0 14px; padding: 18px; border: 1px solid var(--bakery-border); border-radius: 6px; color: var(--bakery-box-text); background: var(--bakery-box-bg); }
.event-product-details .event-box > :first-child { margin-top: 0; }
.event-product-details .event-box > :last-child { margin-bottom: 0; }
.event-product-details .event-addons-section:empty { display: none; }
.event-product-details .event-product-info-box { margin-bottom: 24px; color: var(--bakery-text); }
.event-product-details .event-product-info-box h1 { color: var(--bakery-text); }
.event-product-details .event-product-info-box .product-about { color: color-mix(in srgb, var(--bakery-text) 68%, var(--bakery-page-bg)); }
.event-product-details .event-notes-section .product-field { margin: 0; }
.event-product-details .event-booking-fields { margin-bottom: 14px; }
.event-product-details .event-booking-fields input,
.event-product-details .event-notes-section textarea { color: var(--bakery-box-text); background: color-mix(in srgb, var(--bakery-page-bg) 72%, var(--bakery-box-bg)); }
.event-product-details .event-payment-breakdown { padding: 10px 18px; background: var(--bakery-box-bg); }
.event-product-details .event-payment-primary { color: var(--bakery-box-text); }
.event-product-details { padding-bottom: 78px; }
.event-product-details .event-purchase-row {
  position: fixed;
  z-index: 7;
  bottom: 14px;
  left: 36px;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  width: calc(100vw - 72px);
  min-width: 0;
  max-width: calc(100vw - 72px);
  margin: 0;
  padding: 3px;
  border: 1px solid var(--bakery-border);
  border-radius: 8px;
  background: var(--bakery-box-bg);
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}
.event-product-details .event-purchase-row .quantity-control { height: 46px; min-height: 46px; margin: 0; color: var(--bakery-text); }
.event-product-details .event-purchase-row .quantity-control button { height: 44px; padding: 0; border: 0; color: inherit; background: transparent; -webkit-appearance: none; appearance: none; }
.event-product-details .event-purchase-row .quantity-control svg { color: inherit; stroke: currentColor; }
.event-product-details .event-purchase-row .add-cart-button { height: 46px; min-width: 0; min-height: 46px; justify-content: center; font-weight: 600; }
.event-product-details .event-purchase-row.is-review .add-cart-button { grid-column: 1 / -1; }
@media (max-width: 420px) {
  .event-product-details .event-purchase-row { grid-template-columns: 124px minmax(0, 1fr); gap: 9px; }
  .event-product-details .event-purchase-row .quantity-control { grid-template-columns: 1fr 1fr 1fr; }
  .event-product-details .event-purchase-row .add-cart-button { padding-inline: 12px; }
  .event-product-details .event-purchase-row .add-cart-button b { font-size: 12px; }
}
.quantity-control { display: grid; grid-template-columns: 42px 52px 42px; align-items: center; width: max-content; margin: 28px 0; border: 1px solid #d8d3ce; border-radius: 4px; }
.quantity-control button { display: grid; place-items: center; height: 42px; border: 0; background: transparent; cursor: pointer; }
.quantity-control svg { width: 17px; }
.quantity-control strong { text-align: center; }
.option-group { display: grid; gap: 8px; margin: 18px 0; padding: 0; border: 0; }
.option-group legend { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; padding: 0 0 10px; font-size: 17px; font-weight: 700; }
.option-group legend span { min-width: 0; overflow-wrap: anywhere; }
.option-group legend small { flex: 0 0 auto; color: var(--bakery-primary); font-size: 12px; }
.option-group label { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; min-height: 48px; padding: 10px 12px; border: 1px solid #e2ded9; border-radius: 4px; cursor: pointer; }
.option-group label b { color: var(--bakery-primary); font-size: 13px; }
.quantity-addon-group { gap: 0; }
.addon-limit { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 0 0 10px; color: #716c67; font-size: 13px; }
.addon-limit b { color: var(--bakery-primary); }
@media (max-width: 430px) {
  .option-group legend { align-items: flex-start; flex-wrap: wrap; gap: 4px 10px; }
  .addon-limit { flex-wrap: wrap; gap: 4px 12px; }
}
.quantity-addon-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 10px 0; border-top: 1px solid #e5e1dc; }
.quantity-addon-item > span { display: grid; gap: 4px; }
.quantity-addon-item > span small { color: #716c67; font-size: 12px; }
.quantity-addon-item .quantity-control { flex: 0 0 auto; margin: 0; }
.quantity-addon-item .quantity-control button {
  padding: 0;
  border: 0;
  color: var(--bakery-box-text);
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.quantity-addon-item .quantity-control svg {
  color: inherit;
  stroke: currentColor;
}
.product-field { display: grid; gap: 8px; margin: 18px 0; font-weight: 700; }
.product-field textarea { width: 100%; resize: vertical; padding: 12px; border: 1px solid #d8d3ce; border-radius: 4px; font: inherit; }
.product-field textarea:disabled { background: #f4f2ef; }

/* Floating labels for Bakery text-entry forms. */
:where(.checkout-form, .auth-form, .account-edit-form) label:has(> input:not([type="radio"]):not([type="checkbox"]), > textarea, > .phone-input, > select),
:where(.checkout-form, .auth-form, .account-edit-form) label:has(> .area-combobox),
.product-field {
  position: relative;
  display: block;
  font-weight: 400;
}

:where(.checkout-form, .auth-form, .account-edit-form) label:has(> input:not([type="radio"]):not([type="checkbox"]), > textarea, > .phone-input, > select) > span,
:where(.checkout-form, .auth-form, .account-edit-form) label:has(> .area-combobox) > span,
.product-field > span {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 13px;
  max-width: calc(100% - 26px);
  overflow: hidden;
  color: #77716c;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  transition: top .16s ease, color .16s ease, font-size .16s ease;
}

[dir="rtl"] :where(.checkout-form, .auth-form, .account-edit-form) label:has(> input:not([type="radio"]):not([type="checkbox"]), > textarea, > .phone-input, > select) > span,
[dir="rtl"] :where(.checkout-form, .auth-form, .account-edit-form) label:has(> .area-combobox) > span,
[dir="rtl"] .product-field > span {
  right: 13px;
  left: auto;
}

:where(.checkout-form, .auth-form, .account-edit-form) label > input:not([type="radio"]):not([type="checkbox"]),
:where(.checkout-form, .auth-form, .account-edit-form) label > textarea,
.product-field textarea {
  min-height: 56px;
  padding: 23px 12px 8px;
}

:where(.checkout-form, .auth-form, .account-edit-form) label > textarea {
  min-height: 112px;
  padding: 36px 18px 14px;
  line-height: 1.5;
}

:where(.checkout-form, .auth-form, .account-edit-form) label:has(> textarea) > span {
  left: 18px;
}

[dir="rtl"] :where(.checkout-form, .auth-form, .account-edit-form) label:has(> textarea) > span {
  right: 36px;
  left: auto;
}

.product-field > span {
  top: 20px;
  left: 24px;
  max-width: calc(100% - 48px);
}

[dir="rtl"] .product-field > span {
  right: 24px;
  left: auto;
}

.product-field textarea {
  padding: 30px 24px 14px;
}

:where(.checkout-form, .auth-form, .account-edit-form) label > .phone-input {
  min-height: 56px;
  grid-template-columns: 68px minmax(0, 1fr);
  overflow: hidden;
  background: var(--bakery-box-bg);
}

:where(.checkout-form, .auth-form, .account-edit-form) label > .phone-input b {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 10px 0;
  color: #706b66;
  font-size: 14px;
  font-weight: 600;
}
.product-details:not(.event-product-details) .product-purchase-row .add-cart-button span { white-space: nowrap; }

:where(.checkout-form, .auth-form, .account-edit-form) label > .phone-input input {
  min-height: 54px;
  padding-top: 21px;
  padding-bottom: 7px;
  border: 0;
  border-inline-start: 1px solid #d8d3ce;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none;
}

:where(.checkout-form, .auth-form, .account-edit-form) label:has(> select) > select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 56px;
  padding: 21px 40px 7px 12px;
  color: var(--bakery-box-text);
  background-color: var(--bakery-box-bg);
}

.area-combobox { position: relative; z-index: 3; width: 100%; min-width: 0; font-weight: 400; }
.area-combobox.is-open { z-index: 20; }
.area-combobox > input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  height: 56px;
  padding: 0 42px !important;
  line-height: 56px;
  color: var(--bakery-box-text);
  border: 1px solid var(--bakery-border);
  border-radius: var(--bakery-radius) !important;
  background: var(--bakery-box-bg);
  outline: 0;
}
.area-combobox-search,
.area-combobox-chevron { position: absolute; z-index: 2; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; }
.area-combobox-search { inset-inline-start: 14px; }
.area-combobox-chevron { inset-inline-end: 14px; transition: transform .16s ease; }
.area-combobox.is-open .area-combobox-chevron { transform: translateY(-50%) rotate(180deg); }
.area-combobox-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  inset-inline: 0;
  max-height: min(320px, 45vh);
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--bakery-box-text);
  border: 1px solid var(--bakery-border);
  border-radius: var(--bakery-radius);
  background: var(--bakery-box-bg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
}
.area-combobox-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 42px; padding: 9px 10px; color: inherit; border: 0; border-radius: max(2px, calc(var(--bakery-radius) / 2)); background: transparent; text-align: start; cursor: pointer; }
.area-combobox-menu button:hover,
.area-combobox-menu button:focus-visible,
.area-combobox-menu button.selected { color: var(--bakery-button-text); background: var(--bakery-primary); outline: 0; }
.area-combobox-menu button svg { width: 17px; height: 17px; flex: 0 0 auto; }
.area-combobox-menu p { margin: 0; padding: 14px 10px; color: var(--bakery-muted-text); text-align: center; }

:where(.checkout-form, .auth-form, .account-edit-form) label:has(> .area-combobox) > span {
  z-index: 25;
  top: -6px;
  padding: 0 8px;
  color: var(--bakery-primary);
  background: var(--bakery-box-bg);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}
:where(.checkout-form, .auth-form, .account-edit-form) label:focus-within > .area-combobox > input { border-color: var(--bakery-primary); box-shadow: 0 0 0 1px var(--bakery-primary); }

:where(.checkout-form, .auth-form, .account-edit-form) label:has(> input:not([type="radio"]):not([type="checkbox"]):focus, > input:not([type="radio"]):not([type="checkbox"]):not(:placeholder-shown), > textarea:focus, > textarea:not(:placeholder-shown), > .phone-input input:focus, > .phone-input input:not(:placeholder-shown), > select) > span,
.product-field:has(textarea:focus, textarea:not(:placeholder-shown)) > span {
  top: -6px;
  padding: 0 8px;
  color: var(--bakery-primary);
  background: var(--bakery-box-bg);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

:where(.checkout-form, .auth-form, .account-edit-form) label:has(> textarea:focus, > textarea:not(:placeholder-shown)) > span {
  top: -6px;
}

:is(.checkout-form, .auth-form, .account-edit-form) label:has(> .phone-input) > span {
  top: -6px;
  left: 82px !important;
  padding: 0 8px;
  color: var(--bakery-primary);
  background: var(--bakery-box-bg);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

.checkout-form .phone-field > span {
  top: -6px;
  left: 82px !important;
  padding: 0 8px;
  color: var(--bakery-primary);
  background: var(--bakery-box-bg);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

[dir="rtl"] :is(.checkout-form, .auth-form, .account-edit-form) label:has(> .phone-input) > span {
  right: 82px !important;
  left: auto !important;
}

[dir="rtl"] .checkout-form .phone-field > span {
  right: 82px !important;
  left: auto !important;
}

:where(.checkout-form, .auth-form, .account-edit-form) label:focus-within > input,
:where(.checkout-form, .auth-form, .account-edit-form) label:focus-within > textarea,
:where(.checkout-form, .auth-form, .account-edit-form) label:focus-within > .phone-input,
:where(.checkout-form, .auth-form, .account-edit-form) label:focus-within > select,
.product-field:focus-within textarea {
  border-color: var(--bakery-primary);
  box-shadow: 0 0 0 1px var(--bakery-primary);
  outline: 0;
}

:where(.checkout-form, .auth-form, .account-edit-form) label > small {
  display: block;
  margin-top: 6px;
}
.product-notice { padding: 12px; border-left: 4px solid #287d68; background: #edf6f3; }
.product-notice-inline {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin: 0 0 2px;
  padding: 10px 12px;
  border-left-color: #b42318;
  color: #9f1c14;
  background: color-mix(in srgb, #d92d20 9%, var(--bakery-box-bg));
  font-weight: 600;
  line-height: 1.4;
}
[dir="rtl"] .product-notice-inline { border-right: 4px solid #b42318; border-left: 0; }
.product-cart-block { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; min-height: 58px; margin-bottom: 12px; padding: 8px 14px; border: 1px solid var(--bakery-primary); border-radius: var(--bakery-radius); color: var(--bakery-primary); text-decoration: none; background: var(--bakery-box-bg); }
.product-cart-block > span { position: relative; display: grid; place-items: center; width: 42px; height: 42px; }
.product-cart-block svg { width: 22px; height: 22px; }
.product-cart-block small { position: absolute; top: -2px; right: -2px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; color: var(--bakery-button-text); background: var(--bakery-primary); font-size: 11px; }
.product-cart-block strong { text-align: center; }
.product-cart-block b { white-space: nowrap; }
.product-cart-payment { grid-column: 1 / -1; display: grid; gap: 5px; padding-top: 8px; border-top: 1px solid var(--bakery-border); }
.product-cart-payment span { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.add-cart-button { display: flex; justify-content: space-between; width: 100%; min-height: 58px; padding: 17px 20px; border: 0; border-radius: 5px; color: #fff; background: var(--bakery-primary); font: inherit; cursor: pointer; }
.add-cart-button:disabled { cursor: not-allowed; opacity: .55; }
.related-products { margin: 0 auto; padding: 36px 24px; border-top: 20px solid #f4f4f2; }
.related-products h2 { margin: 0 0 8px; font-size: 22px; }
.related-products .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 0; }
.product-visual { background-color: #c69b78; }
.product-page-state { display: grid; place-items: center; min-height: 100vh; padding: 24px; text-align: center; }
.product-page-state { align-content: center; gap: 14px; }
.page-retry-button { min-width: 120px; min-height: 44px; padding: 10px 22px; border: 1px solid var(--bakery-primary); border-radius: var(--bakery-control-radius); color: var(--bakery-on-primary); background: var(--bakery-primary); font: inherit; cursor: pointer; }

@media (max-width: 800px) {
  .product-shell { display: block; }
  .product-shell .product-visual { display: none; }
  .product-topbar { padding-inline: 12px; }
  .product-layout { display: block; }
  .product-gallery { position: relative; top: 0; min-height: 0; padding: 18px; }
  .product-main-image { width: 100%; aspect-ratio: var(--bakery-product-detail-ratio, 1 / 1); object-fit: cover; }
  .product-details { padding: 28px 18px 44px; }
  .event-product-details { padding-bottom: 78px; }
  .event-product-details .event-purchase-row {
    right: 18px;
    width: auto;
    max-width: none;
  }
  .product-details h1 { font-size: 28px; }
  .product-cart-block { position: static; width: 100%; margin: 0 0 12px; box-shadow: none; }
  .add-cart-button { position: static; width: 100%; box-shadow: none; }
  .related-products { padding: 36px 18px; }
  .related-products .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Form fields and content boxes keep a stable shape independent of button style. */
.bakery-panel input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.bakery-panel textarea,
.bakery-panel select,
.catalog-toolbar label,
.location-search,
.phone-input,
.quantity-control,
.option-group label,
.payment-list span,
.address-type button,
.date-strip button,
.time-slots button,
.checkout-address-list > button,
.checkout-no-address,
.track-notice,
.tracked-orders article {
  border-radius: 6px !important;
}

.quantity-control,
.phone-input,
.catalog-toolbar label,
.location-search {
  overflow: hidden;
}

.phone-input input,
.location-search input,
.catalog-toolbar label input {
  border-radius: 0 !important;
}

.bakery-panel :is(.checkout-form, .auth-form, .account-edit-form) label > .phone-input input:not([type="radio"]):not([type="checkbox"]) {
  border: 0;
  border-inline-start: 1px solid #d8d3ce;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none;
}

.bakery-panel :is(.checkout-form, .auth-form, .account-edit-form) label > textarea {
  min-height: 112px;
  padding: 20px 18px 14px;
  line-height: 1.5;
}

/* Keep every Bakery surface tied to the normal theme color settings. */
.store-header,
.compact-delivery,
.product-topbar,
.cart-item,
.catalog-search-header,
.search-product-row,
.location-list,
.location-list > button,
.info-links a,
.opening-hours > div,
.account-orders article,
.quantity-addon-item {
  border-color: var(--bakery-border);
}

.delivery-summary { border-bottom-color: var(--bakery-page-bg); }
.catalog-toolbar { background: var(--bakery-page-bg); }
.checkout-form > section,
.coupon-form,
.info-links,
.info-block,
.account-orders,
.related-products {
  border-color: var(--bakery-page-bg);
}

.product-page,
.location-page,
.schedule-page,
.info-page,
.account-page,
.order-page,
.checkout-page,
.cart-page,
.catalog-search-page,
.menu-drawer {
  color: var(--bakery-box-text);
  background: var(--bakery-box-bg);
}

.product-topbar {
  background: color-mix(in srgb, var(--bakery-box-bg) 96%, transparent);
}

.catalog-toolbar label,
.checkout-address-list > button,
.address-type button,
.location-list > button,
.date-strip button,
.time-slots button,
.account-edit-form input,
.account-edit-form select,
.saved-addresses > header button,
.form-actions button,
.product-thumbnails button,
.order-progress > div span,
.menu-drawer {
  color: var(--bakery-box-text);
  background: var(--bakery-box-bg);
}

.bakery-panel input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.bakery-panel textarea,
.bakery-panel select {
  color: var(--bakery-box-text);
  border-color: var(--bakery-border);
  background-color: var(--bakery-box-bg);
}

.phone-input input,
.location-search input,
.catalog-toolbar label input {
  background: transparent;
}

.store-logo,
.category-image,
.product-card img,
.search-product-image img,
.cart-item img,
.loading-grid span,
.product-field textarea:disabled,
.product-gallery,
.track-notice,
.order-reference,
.address-list article button {
  background-color: var(--bakery-soft-bg);
}

.address-type button.active,
.payment-list label.active span,
.time-slots button.active {
  background: var(--bakery-primary-soft);
}

.location-list > button:hover { background: var(--bakery-soft-bg); }
.product-visual { background-color: var(--bakery-visual-bg); }

.catalog-state button,
.checkout-auth-prompt a.primary,
.place-order-button,
.coupon-form button,
.checkout-button,
.cart-empty a,
.cart-state button,
.date-strip button.active,
.schedule-save,
.auth-form > button,
.account-identity > span,
.account-edit-form > button,
.form-actions button.primary,
.order-icon,
.order-progress > div.active span,
.order-actions a.primary,
.track-form button,
.add-cart-button {
  color: var(--bakery-button-text);
}

.bakery-visual nav button,
.bakery-visual nav a {
  color: var(--bakery-button-text);
  background: var(--bakery-primary);
}

/* Make checkout payment selection unmistakable without using fixed colors. */
.payment-list span {
  position: relative;
  border-color: var(--bakery-border);
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.payment-list span::after {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-inline-start: auto;
  border: 2px solid var(--bakery-border);
  border-radius: 50%;
  background: var(--bakery-box-bg);
}

.section-heading a,
.checkout-no-address a,
.saved-addresses > header button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.checkout-no-address p,
.section-heading :is(h1, h2) {
  min-width: 0;
}

/* Payment options are selectable rows, not floating-label form fields. */
.checkout-form .payment-list label > span {
  position: relative;
  z-index: auto;
  inset: auto;
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 52px;
  padding: 12px 14px;
  overflow: visible;
  color: var(--bakery-box-text);
  background: var(--bakery-box-bg);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-align: start;
  white-space: normal;
  pointer-events: auto;
}

.checkout-saved-addresses .section-heading,
.checkout-saved-addresses .checkout-no-address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 0;
}

.checkout-saved-addresses .checkout-no-address { margin-top: 16px; }
.checkout-saved-addresses :is(.section-heading, .checkout-no-address) > :first-child { justify-self: start; text-align: start; }
.checkout-saved-addresses :is(.section-heading, .checkout-no-address) > a { justify-self: end; }

.payment-list label.active span {
  border: 2px solid var(--bakery-primary);
  color: var(--bakery-box-text);
  background: color-mix(in srgb, var(--bakery-primary) 14%, var(--bakery-box-bg));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--bakery-primary) 12%, transparent);
}

.payment-list label.active span::after {
  border-color: var(--bakery-primary);
  background: var(--bakery-primary);
  box-shadow: inset 0 0 0 4px var(--bakery-box-bg);
}

.payment-list label:not(.active) span:hover {
  border-color: color-mix(in srgb, var(--bakery-primary) 45%, var(--bakery-border));
  background: var(--bakery-soft-bg);
}

/* Fixed actions must follow the left panel when landscape enters split view. */
@media (min-width: 801px) {
  .order-bar,
  .checkout-button,
  .place-order-button,
  .schedule-save,
  .event-product-details .event-purchase-row {
    width: calc(max(440px, 42vw) - 36px);
    min-width: 0;
    max-width: calc(100vw - 36px);
  }

  [dir="rtl"] :is(
    .order-bar,
    .checkout-button,
    .place-order-button,
    .schedule-save,
    .event-product-details .event-purchase-row
  ) {
    right: 18px;
    left: auto;
  }
}

/* Compact, scannable cart dock for the persistent Review order action. */
.order-bar {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 64px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--bakery-button-text) 22%, transparent);
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

.order-bar .order-bar-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--bakery-button-text);
  background: color-mix(in srgb, var(--bakery-button-text) 16%, transparent);
  border-radius: var(--bakery-radius) !important;
}

.order-bar-icon > svg { width: 21px; height: 21px; }
.order-bar-icon > small {
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 2px solid var(--bakery-primary);
  border-radius: 10px;
  color: var(--bakery-primary);
  background: var(--bakery-button-text);
  font-size: 10px;
  line-height: 1;
}

.order-bar strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-bar .order-bar-total {
  display: flex;
  gap: 7px;
  align-items: center;
  width: auto;
  height: auto;
  border-radius: 0 !important;
  background: transparent;
  white-space: nowrap;
}

.order-bar-total b { font-size: 15px; }
.order-bar-total svg { width: 17px; height: 17px; }
[dir="ltr"] .order-bar-total svg { transform: rotate(180deg); }

@media (max-width: 430px) {
  .order-bar { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 9px; padding-inline: 10px; }
  .order-bar .order-bar-icon { width: 42px; height: 42px; }
  .order-bar strong { font-size: 15px; }
  .order-bar-total b { font-size: 13px; }
}

.gift-wrap-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--bakery-border);
  background: var(--bakery-box-bg);
}

.gift-wrap-option > div { display: flex; gap: 12px; align-items: center; }
.gift-wrap-option > div:first-child > svg {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  color: var(--bakery-primary);
}

.gift-wrap-option span { display: grid; gap: 3px; }
.gift-wrap-option small { color: var(--bakery-muted-text); }
.gift-wrap-option > div:last-child { justify-content: flex-end; }
.gift-wrap-option b { color: var(--bakery-primary); white-space: nowrap; }
.gift-wrap-option button[role="switch"] {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  padding: 3px;
  border: 1px solid var(--bakery-border);
  border-radius: 999px !important;
  background: var(--bakery-soft-bg);
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}

.gift-wrap-option button[role="switch"] > span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bakery-muted-text);
  transition: transform .18s ease, background-color .16s ease;
}

.gift-wrap-option button[role="switch"][aria-checked="true"] {
  border-color: var(--bakery-primary);
  background: var(--bakery-primary);
}

.gift-wrap-option button[role="switch"][aria-checked="true"] > span {
  background: var(--bakery-button-text);
  transform: translateX(20px);
}

[dir="rtl"] .gift-wrap-option button[role="switch"][aria-checked="true"] > span {
  transform: translateX(-20px);
}

.gift-wrap-option button[role="switch"]:disabled { cursor: wait; opacity: .6; }
.gift-wrap-option button[role="switch"]:focus-visible {
  outline: 2px solid var(--bakery-primary);
  outline-offset: 2px;
}

.order-gift-wrap > span { display: flex; gap: 8px; align-items: center; }
.order-gift-wrap svg { width: 18px; height: 18px; color: var(--bakery-primary); }

@media (max-width: 520px) {
  .gift-wrap-option { gap: 12px; padding: 16px 14px; }
  .gift-wrap-option > div { gap: 8px; }
  .gift-wrap-option > div:last-child { flex-direction: column; align-items: flex-end; gap: 6px; }
  .gift-wrap-option small { font-size: 12px; }
  .gift-wrap-option b { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .gift-wrap-option button[role="switch"],
  .gift-wrap-option button[role="switch"] > span { transition: none; }
}

/* Keep primary commerce actions compact while preserving touch accessibility. */
.add-cart-button,
.checkout-button,
.place-order-button {
  align-items: center;
  height: 52px;
  min-height: 52px;
  padding: 0 18px;
  line-height: 1.2;
}

.order-bar {
  height: 52px;
  min-height: 52px;
  padding: 6px 10px;
}

.order-bar .order-bar-icon {
  width: 38px;
  height: 38px;
}

.order-bar-icon > svg { width: 19px; height: 19px; }
.order-bar strong { font-size: 15px; }
.order-bar-total b { font-size: 13px; }

.product-cart-block {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 7px 12px;
}

.product-cart-block > span {
  width: 36px;
  height: 36px;
}

.product-cart-block svg { width: 20px; height: 20px; }

@media (max-width: 430px) {
  .add-cart-button,
  .checkout-button,
  .place-order-button { padding-inline: 15px; }
  .order-bar { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; }
  .order-bar .order-bar-icon { width: 38px; height: 38px; }
}

/* Option 2: vertical tool rail for split-screen desktop and landscape views. */
@media (min-width: 801px) {
  .bakery-visual nav {
    position: absolute;
    top: 18px;
    inset-inline-start: 5%;
    width: 90%;
    flex-direction: row;
    gap: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .bakery-visual nav .visual-action-tools { gap: 8px; }

  .bakery-visual nav button,
  .bakery-visual nav a {
    width: 46px;
    height: 46px;
    border-radius: var(--bakery-radius);
    background: var(--bakery-primary);
    box-shadow: none;
    transition: color .16s ease, background-color .16s ease;
  }

  .bakery-visual nav button:hover,
  .bakery-visual nav a:hover,
  .bakery-visual nav button:focus-visible,
  .bakery-visual nav a:focus-visible {
    color: var(--bakery-button-text);
    background: var(--bakery-primary);
    outline: none;
  }

  .bakery-visual nav svg { width: 19px; height: 19px; }
  .bakery-visual nav small {
    top: 1px;
    right: auto;
    inset-inline-end: 1px;
    min-width: 17px;
    height: 17px;
    border: 2px solid var(--bakery-box-bg);
    font-size: 10px;
  }
}

@media (max-width: 800px) {
  .bakery-visual nav { gap: 10px; padding: 14px; }
  .bakery-visual nav button,
  .bakery-visual nav a { width: 42px; height: 42px; }
}

/* Give genuinely horizontal brand marks enough width without affecting square logos. */
.store-header:has(.store-logo-wide) {
  grid-template-columns: 132px minmax(0, 1fr) 28px;
}

.store-logo.store-logo-wide {
  width: 132px;
  height: 58px;
  border-radius: 0;
  background: transparent;
  object-position: left center;
}

[dir="rtl"] .store-logo.store-logo-wide { object-position: right center; }

@media (max-width: 800px) {
  .store-header:has(.store-logo-wide) {
    grid-template-columns: 96px minmax(0, 1fr) 24px;
  }

  .store-logo.store-logo-wide {
    width: 96px;
    height: 44px;
  }
}


/* Stable product detail purchase dock. Keep this explicit instead of relying on :has() sibling selectors. */
.product-details:not(.event-product-details) .product-purchase-row {
  position: fixed;
  z-index: 8;
  bottom: 14px;
  left: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: calc(max(440px, 42vw) - 36px);
  min-width: 0;
  max-width: calc(100vw - 36px);
  margin: 0;
  padding: 3px;
  border: 1px solid var(--bakery-border);
  border-radius: 8px;
  background: var(--bakery-box-bg);
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}
.product-details:not(.event-product-details) .product-purchase-row .quantity-control {
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  height: 64px;
  min-height: 64px;
  margin: 0;
  color: var(--bakery-text);
  background: var(--bakery-box-bg);
}
.product-details:not(.event-product-details) .product-purchase-row .quantity-control button {
  height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.product-details:not(.event-product-details) .product-purchase-row .quantity-control svg {
  color: inherit;
  stroke: currentColor;
}
.product-details:not(.event-product-details) .product-purchase-row .add-cart-button {
  justify-content: center;
  height: 64px;
  min-width: 0;
  min-height: 64px;
  padding: 0 16px;
  font-weight: 600;
}
.product-details:not(.event-product-details) .product-purchase-row.is-review {
  grid-template-columns: minmax(0, 1fr);
}
[dir="rtl"] .product-details:not(.event-product-details) .product-purchase-row {
  right: 18px;
  left: auto;
}
@media (max-width: 430px) {
  .product-details:not(.event-product-details) .product-purchase-row {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 10px;
  }
  .product-details:not(.event-product-details) .product-purchase-row.is-review {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-details:not(.event-product-details) .product-purchase-row .quantity-control {
    grid-template-columns: 36px 44px 36px;
  }
}

/* Final normal product dock sizing: full-width floating bar like the reference screenshot. */
.event-product-details .event-purchase-row {
  left: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  width: calc(max(440px, 42vw) - 36px);
  max-width: calc(100vw - 36px);
  padding: 3px;
}
[dir="rtl"] .event-product-details .event-purchase-row {
  right: 18px;
  left: auto;
}
@media (max-width: 600px) {
  .event-product-details .event-purchase-row {
    right: 18px;
    left: 18px;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 6px;
    width: auto;
    max-width: none;
  }
  [dir="rtl"] .event-product-details .event-purchase-row {
    right: 18px;
    left: 18px;
  }
}
.product-details:not(.event-product-details) .product-purchase-row {
  bottom: 10px;
  left: 36px;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 20px;
  width: calc(100vw - 72px);
  max-width: calc(100vw - 72px);
  padding: 4px;
}
.product-details:not(.event-product-details) .product-purchase-row .quantity-control {
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  height: 46px;
  min-height: 46px;
}
.product-details:not(.event-product-details) .product-purchase-row .quantity-control button {
  height: 44px;
}
.product-details:not(.event-product-details) .product-purchase-row .add-cart-button {
  height: 46px;
  min-height: 46px;
  padding: 0 18px;
}
.product-details:not(.event-product-details) .product-purchase-row .add-cart-button span {
  white-space: nowrap;
}
.product-details:not(.event-product-details) .product-purchase-row.is-review {
  grid-template-columns: minmax(0, 1fr);
}
[dir="rtl"] .product-details:not(.event-product-details) .product-purchase-row {
  right: 36px;
  left: auto;
}
@media (max-width: 600px) {
  .product-details:not(.event-product-details) .product-purchase-row {
    right: 18px;
    left: 18px;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 10px;
    width: auto;
    max-width: none;
    padding: 4px;
  }
  [dir="rtl"] .product-details:not(.event-product-details) .product-purchase-row {
    right: 18px;
    left: 18px;
  }
}

/* Event mobile purchase dock: fill the row without dead space between quantity and action. */
@media (max-width: 600px) {
  .event-product-details .event-purchase-row {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    column-gap: 6px;
    justify-content: stretch;
    align-items: stretch;
  }
  .event-product-details .event-purchase-row .quantity-control,
  .event-product-details .event-purchase-row .add-cart-button {
    width: 100%;
    margin: 0;
  }
  .event-product-details .event-purchase-row .add-cart-button {
    justify-self: stretch;
  }
}

/* Normal bakery mobile purchase dock: match event mobile dock spacing. */
@media (max-width: 600px) {
  .product-details:not(.event-product-details) .product-purchase-row {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    column-gap: 6px;
    justify-content: stretch;
    align-items: stretch;
  }
  .product-details:not(.event-product-details) .product-purchase-row .quantity-control,
  .product-details:not(.event-product-details) .product-purchase-row .add-cart-button {
    width: 100%;
    margin: 0;
  }
  .product-details:not(.event-product-details) .product-purchase-row .add-cart-button {
    justify-self: stretch;
  }
}

/* Normal bakery mobile dock: exact same control height as event products. */
@media (max-width: 600px) {
  .product-details:not(.event-product-details) .product-purchase-row {
    padding: 3px;
  }
  .product-details:not(.event-product-details) .product-purchase-row .quantity-control {
    height: 46px;
    min-height: 46px;
  }
  .product-details:not(.event-product-details) .product-purchase-row .quantity-control button {
    height: 44px;
  }
  .product-details:not(.event-product-details) .product-purchase-row .add-cart-button {
    height: 46px;
    min-height: 46px;
  }
}

/* Normal bakery desktop dock must stay inside the product panel, not span the visual pane. */
@media (min-width: 601px) {
  .product-details:not(.event-product-details) .product-purchase-row {
    right: auto;
    left: 18px;
    width: calc(max(440px, 42vw) - 36px);
    max-width: calc(100vw - 36px);
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 6px;
  }
  [dir="rtl"] .product-details:not(.event-product-details) .product-purchase-row {
    right: 18px;
    left: auto;
  }
}

/* Keep normal product content clear of the fixed add-to-cart dock. */
.product-details:not(.event-product-details) { padding-bottom: 118px; }
@media (max-width: 800px) {
  .product-details:not(.event-product-details) { padding-bottom: 132px; }
}

/* Theme-colored section separators for cart and checkout. */
.checkout-form > section,
.coupon-form {
  border-bottom: 1px solid color-mix(in srgb, var(--bakery-primary) 24%, transparent);
}
.cart-item,
.compact-delivery {
  border-bottom-color: color-mix(in srgb, var(--bakery-primary) 24%, transparent);
}
.cart-summary {
  border-top: 1px solid color-mix(in srgb, var(--bakery-primary) 24%, transparent);
}

/* Prevent many product thumbnails from widening the mobile page. */
.product-page,
.product-layout,
.product-gallery {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
.product-thumbnails {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-thumbnails::-webkit-scrollbar { display: none; }
.product-thumbnails button {
  flex: 0 0 64px;
}
@media (max-width: 800px) {
  .product-thumbnails {
    justify-content: flex-start;
    padding-inline: 0;
  }
}
