: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;
  margin: 18px 0;
  padding: 0;
  border: 0;
}

.event-booking-fields legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-weight: 700;
}

.event-booking-fields label { display: grid; gap: 7px; }
.event-booking-fields input {
  width: 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;
}

.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: 1fr; }
}

* { 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;
}

.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: #7c7975; line-height: 1.4; }
.store-header > a:last-child { display: grid; place-items: center; color: var(--bakery-primary); 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 96px;
  gap: 8px;
  justify-items: center;
  border: 0;
  color: #888480;
  background: transparent;
  cursor: pointer;
}

.category-strip button.active { color: #22201e; }
.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; }

.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; }
.product-section { padding-top: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px 0; }
.section-heading h2 { margin: 0; font-size: 17px; }

.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;
}

.product-card > a { display: block; color: inherit; text-decoration: none; }
.product-card-copy { display: grid; gap: 8px; padding-top: 10px; }
.product-card-copy > a { color: inherit; font-size: 15px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.product-card-copy div { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--bakery-primary); }
.product-add { 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: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: #f1efec; animation: pulse 1.2s infinite alternate; }
@keyframes pulse { to { opacity: .45; } }

.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;
}

.bakery-visual::before { position: absolute; z-index: 0; inset: 0; background: color-mix(in srgb, var(--bakery-page-bg) 25%, transparent); pointer-events: none; content: ""; }
.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; gap: 18px; padding: 18px 5%; }
.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: #171513;
  background: #fff;
  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: 80px; gap: 6px; }
  .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 { 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; }
.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; }
.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; min-height: 52px; padding: 12px 14px; border: 1px solid #d8d3ce; border-radius: 4px; cursor: pointer; }
.payment-list label.active span { border-color: var(--bakery-primary); background: #f5efec; }
.payment-list svg { width: 22px; color: var(--bakery-primary); }
.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-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; 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 1fr auto; 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: column; align-items: flex-end; justify-content: space-between; }
.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: 1fr auto; }
.coupon-form input { min-width: 0; padding: 12px; border: 1px solid #d8d3ce; border-radius: 4px 0 0 4px; }
.coupon-form button { padding: 0 18px; border: 0; border-radius: 0 4px 4px 0; 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; }
.cart-summary b { text-align: right; }
.cart-total { margin-top: 6px; padding-top: 18px; border-top: 1px solid #d8d3ce; font-size: 18px; }
.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; }
.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; }
.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; }
.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: 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; 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: 14px solid #f4f4f2; }
.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 #e8e5e1; 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: 28px 24px; border-top: 14px solid #f4f4f2; }
.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: 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: 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 { grid-column: 1 / -1; 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-row > b { flex: 0 0 auto; }
.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: 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: 1fr auto; }
.track-form input { min-width: 0; padding: 13px; border: 1px solid #d8d3ce; border-radius: 4px 0 0 4px; font: inherit; }
.track-form button { display: flex; gap: 8px; align-items: center; padding: 0 18px; border: 0; border-radius: 0 4px 4px 0; color: #fff; background: var(--bakery-primary); font: inherit; cursor: pointer; }
.track-form button svg { width: 18px; }
.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 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: 430px) {
  .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; 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: 3px; 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-category { margin: 0 0 12px; color: var(--bakery-primary); font-weight: 700; }
.product-details h1 { margin: 0 0 14px; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.product-price { margin: 0 0 24px; color: var(--bakery-primary); font-size: 22px; font-weight: 700; }
.product-about { color: #66615c; font-size: 16px; line-height: 1.65; }
.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 { width: 100%; padding: 0 0 10px; font-size: 17px; font-weight: 700; }
.option-group legend small { float: right; 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); }
.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; }
.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),
.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,
.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"] .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: 18px;
  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;
}

: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 {
  min-height: 56px;
  padding: 21px 12px 7px;
}

:where(.checkout-form, .auth-form, .account-edit-form) label:has(> input:focus, > input: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;
}

[dir="rtl"] :is(.checkout-form, .auth-form, .account-edit-form) label:has(> .phone-input) > 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-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; }

@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; }
  .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)); }
}

/* Match the normal-theme Button Style behavior across Bakery form controls. */
.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: var(--bakery-radius) !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-box-text);
  background: var(--bakery-box-bg);
}

/* 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);
}

.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 {
    width: calc(max(440px, 42vw) - 36px);
    min-width: 0;
    max-width: calc(100vw - 36px);
  }
}

/* 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: max-content;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 5px;
    border: 1px solid color-mix(in srgb, var(--bakery-box-text) 14%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bakery-box-bg) 88%, transparent);
    box-shadow: 0 5px 20px rgb(0 0 0 / 14%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .bakery-visual nav button,
  .bakery-visual nav a {
    width: 46px;
    height: 46px;
    border-radius: var(--bakery-radius);
    background: transparent;
    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;
  }
}
