: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-radius: 6px;
  --bakery-mobile-banner-height: 300px;
  color: var(--bakery-text);
  background: var(--bakery-page-bg);
  font-family: Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--bakery-text); background: var(--bakery-page-bg); }
button, input { 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; }

.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: 24px;
  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: 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); text-decoration: none; }
.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; } }

.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 nav { display: flex; gap: 28px; padding: 20px 6%; }
.bakery-visual nav button,
.bakery-visual nav a {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  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 small { position: absolute; top: -3px; right: -3px; display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; color: #fff; background: #287d68; }
.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;
    height: min(55vh, var(--bakery-mobile-banner-height));
    min-height: 240px;
  }
  .store-header {
    grid-template-columns: 60px 1fr 24px;
    min-height: 94px;
    padding: 14px 18px;
  }
  .store-logo { width: 60px; height: 60px; }
  .delivery-summary {
    grid-template-columns: 22px 1fr auto;
    gap: 16px 12px;
    padding: 20px 18px;
    border-bottom-width: 24px;
  }
  .delivery-summary strong { grid-column: 2; }
  .category-strip { padding-inline: 18px; }
  .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; }
.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; }
  .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 { 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 { 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 { 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) { .bakery-visual { height: min(55vh, var(--bakery-mobile-banner-height)); } .product-grid { padding-inline: 14px; } .product-card img { aspect-ratio: 1; } }
@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 {
  border-radius: var(--bakery-radius);
}

.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-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 { 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%; max-height: 440px; aspect-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: 24px 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; }
.product-field { display: grid; gap: 8px; margin: 24px 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; }
.product-notice { padding: 12px; border-left: 4px solid #287d68; background: #edf6f3; }
.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%; max-height: none; aspect-ratio: 1 / 1; object-fit: cover; }
  .product-details { padding: 28px 18px 92px; }
  .product-details h1 { font-size: 28px; }
  .add-cart-button { position: fixed; z-index: 7; right: 14px; bottom: 14px; left: 14px; width: calc(100% - 28px); box-shadow: 0 5px 22px rgb(0 0 0 / 20%); }
  .related-products { padding: 36px 18px; }
  .related-products .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
