/* Shop chrome — bakery premium, customer pages only */
.page {
  --shop-radius: 12px;
  --shop-gold: #C9A227;
  --shop-line: rgba(31, 77, 58, 0.1);
  --shop-shadow: 0 1px 1px rgba(31, 77, 58, 0.04), 0 8px 20px rgba(31, 77, 58, 0.06);
}

.page .topbar,
.page .site-header {
  background: rgba(251, 249, 245, 0.96) !important;
  border-bottom: 1px solid var(--shop-line) !important;
  padding: 0.65rem 0.9rem !important;
  min-height: 3.25rem;
}
.page .brand-lockup-text strong,
.page .brand-center {
  font-family: var(--font-display);
  color: var(--green);
  letter-spacing: -0.02em;
}
.page .icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--shop-line);
  color: var(--green);
}
.page .cart-link .bn-ico { width: 1.15rem; height: 1.15rem; }
.page .badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.05rem;
  height: 1.05rem;
  font-size: 0.62rem;
  background: var(--green);
}

.quick-links {
  padding: 0.2rem 0.9rem 0.75rem;
  gap: 0.4rem;
  scrollbar-width: none;
}
.quick-links::-webkit-scrollbar { display: none; }
.quick-links a {
  box-shadow: none;
  border: 1px solid var(--shop-line);
  font-weight: 650;
  font-size: 0.76rem;
  padding: 0.4rem 0.8rem;
}

.page .account-session-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--shop-line);
}
.page .account-heading { margin-top: 0; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0 0 0.95rem;
  padding: 0.25rem;
  background: #F4F1EA;
  border-radius: 12px;
}
.auth-tab {
  border: 0;
  background: transparent;
  min-height: 2.45rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  color: var(--muted, #5A6A62);
  cursor: pointer;
}
.auth-tab.active {
  background: #fff;
  color: var(--green, #1F4D3A);
  box-shadow: 0 1px 4px rgba(31, 77, 58, 0.1);
}
#otp-code {
  letter-spacing: 0.28em;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}
#customerPhone[readonly] {
  background: #F4F7F5;
  color: #3A4A42;
}

.page .hero,
.page .organic-hero {
  border-radius: 16px;
  margin: 0.15rem 0.9rem 0.95rem;
  min-height: 200px;
}
.page .eyebrow {
  letter-spacing: 0.14em;
  color: #E8C35A;
  opacity: 1;
  font-weight: 700;
}
.page .hero .lede { max-width: 28ch; }
.page .btn {
  border-radius: 10px;
  font-weight: 700;
  min-height: 2.55rem;
  padding: 0.65rem 1.05rem;
}
.page .btn-ghost {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #C5D0CA;
}
.page .hero .btn-primary { border-radius: 10px; }
.page .hero .btn-ghost { background: transparent; }

.trust-row { padding: 0 0.9rem 1rem; gap: 0.5rem; }
.trust-item {
  min-width: 5.6rem;
  border-radius: 12px;
  box-shadow: var(--shop-shadow);
  border: 1px solid var(--shop-line);
  padding: 0.65rem 0.35rem;
}
.page .section-head { padding: 0.55rem 0.95rem 0.65rem; }
.page .section-head h2 { font-size: 1.22rem; }
.page .section-head p { font-size: 0.82rem; }

.promo-slider {
  margin: 0.1rem 0.9rem 0.95rem;
  border-radius: 14px;
  box-shadow: var(--shop-shadow);
}

.offer-card,
.home-cta,
.product-card,
.cart-item,
.page .form-card,
.page .cart-summary,
.page .empty-state,
.page .status-card,
.page .order-card {
  border-radius: var(--shop-radius);
  box-shadow: var(--shop-shadow);
  border: 1px solid var(--shop-line);
}
.offer-card { padding: 0.55rem; }
.offer-thumb { border-radius: 10px; }
.home-cta {
  border: 0;
  min-height: 5rem;
  box-shadow: var(--shop-shadow);
}
.tag-offer {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8A5A00;
  background: #F8E7C8;
  border-radius: 4px;
  padding: 0.12rem 0.35rem;
}

.product-card { border-radius: var(--shop-radius); }
.product-body { padding: 0.7rem 0.7rem 0.8rem; }
.page .chip {
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--shop-line);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 650;
}
.page .chip.active { background: var(--green); color: #fff; box-shadow: none; }

.shop-empty,
.page .product-grid > .muted,
.page #offer-zone > .muted,
.page #offer-grid > .muted {
  display: block;
  margin: 0;
  padding: 1.1rem 0.9rem;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--shop-line);
  border-radius: var(--shop-radius);
  color: var(--muted);
}
.product-grid .shop-empty { grid-column: 1 / -1; }

.page .form-card {
  padding: 1.05rem 1rem 1.1rem;
}
.page .form-card legend,
.page .checkout-aside h2,
.page .account-heading,
.page .offer-hero h1,
.page #req-title {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.page .form-card input,
.page .form-card textarea,
.page .form-card select,
.page .phone-lookup input,
.page .shop-search {
  border: 1px solid #C8D2CC;
  border-radius: 10px;
  background: #fff;
  min-height: 2.45rem;
}
.page .form-card input:focus,
.page .form-card textarea:focus,
.page .form-card select:focus,
.page .shop-search:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 77, 58, 0.12);
}
.page .radio-card {
  border-radius: 10px;
  border: 1px solid var(--shop-line);
  background: #F7F4EF;
}
.page .radio-card:has(input:checked) {
  border-color: var(--green);
  background: #EEF4F0;
}

.shop-footer {
  border-radius: 14px;
  margin: 1.35rem 0.9rem 0.65rem;
  padding: 1.15rem 1rem 1rem;
}
.shop-footer-nav a { font-size: 0.8rem; }
.shop-admin-quiet {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
}
.shop-admin-quiet:hover { color: var(--green); }

.side-drawer {
  background: #0C1F16;
  padding: 0 !important;
  width: min(300px, 86vw);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
}
.drawer-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: calc(0.95rem + env(safe-area-inset-top, 0px)) 0.75rem 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}
.drawer-brand-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.drawer-close {
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.drawer-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0.4rem 0.7rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  gap: 0.06rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.28) transparent;
}
.drawer-nav-label {
  margin: 0.7rem 0 0.15rem;
  padding: 0 0.65rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}
.drawer-nav-label:first-child { margin-top: 0.2rem; }
.drawer-nav a {
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-weight: 550;
  font-size: 0.9rem;
}
.drawer-nav a:hover { background: rgba(255,255,255,0.07); }
.drawer-nav .drawer-admin {
  margin-top: 0.75rem;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  font-weight: 550;
}

.bottom-nav {
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--shop-line);
  backdrop-filter: blur(12px);
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  color: #6B7A72;
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.bottom-nav a.active { color: var(--green); }
.bn-ico {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-grid;
  place-items: center;
  position: relative;
}
.bn-ico::before,
.bn-ico::after {
  content: "";
  box-sizing: border-box;
}
.bn-ico[data-ico="home"]::before {
  width: 0;
  height: 0;
  border-left: 0.46rem solid transparent;
  border-right: 0.46rem solid transparent;
  border-bottom: 0.4rem solid currentColor;
  margin-bottom: 0.5rem;
}
.bn-ico[data-ico="home"]::after {
  position: absolute;
  bottom: 0.06rem;
  width: 0.7rem;
  height: 0.48rem;
  border: 1.6px solid currentColor;
  border-top: 0;
}
.bn-ico[data-ico="cats"]::before {
  width: 0.95rem; height: 0.95rem;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 40% 40% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 40% 40% no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 40% 40% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 40% 40% no-repeat;
  border-radius: 1px;
  opacity: 0.92;
}
.bn-ico[data-ico="cart"]::before {
  width: 0.85rem; height: 0.62rem;
  border: 1.6px solid currentColor;
  border-radius: 0 0 3px 3px;
  margin-top: 0.15rem;
}
.bn-ico[data-ico="cart"]::after {
  position: absolute;
  top: 0.12rem;
  width: 0.55rem; height: 0.28rem;
  border: 1.6px solid currentColor;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.bn-ico[data-ico="orders"]::before {
  width: 0.78rem; height: 0.95rem;
  border: 1.6px solid currentColor;
  border-radius: 2px;
  background:
    linear-gradient(currentColor, currentColor) 50% 32% / 50% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 52% / 50% 1.5px no-repeat;
}
.bn-ico[data-ico="user"]::before {
  width: 0.38rem; height: 0.38rem;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}
.bn-ico[data-ico="user"]::after {
  position: absolute;
  bottom: 0.08rem;
  width: 0.78rem; height: 0.36rem;
  border: 1.6px solid currentColor;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}
.bn-ico[data-ico="menu"]::before {
  width: 0.9rem; height: 0.72rem;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 1.7px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 1.7px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 70% 1.7px no-repeat;
}

.page .status-card { padding: 1.25rem 1.1rem; }
.page .status-icon { border-radius: 12px; }
.page .pickup-address {
  background: #F7F9F8;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  line-height: 1.45;
}
.store-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  margin: 0.55rem 0;
}
.store-map-wrap iframe { width: 100%; height: 180px; border: 0; display: block; }

.page .account-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 0.85rem;
}
.page .account-fieldset legend {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 0.5rem;
  width: 100%;
  border-bottom: 1px solid var(--shop-line);
  margin-bottom: 0.75rem;
}
.offer-hero { padding-top: 0.35rem; }
.offer-hero .lede { color: var(--muted); max-width: 40ch; }

.shop-page-lead {
  margin: 0.15rem 0.95rem 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 46ch;
}
.checkout-section {
  padding: 0 0.9rem 1.25rem;
}
.checkout-section .form-card {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.checkout-section .form-card legend {
  width: 100%;
  border-bottom: 1px solid var(--shop-line);
  padding-bottom: 0.55rem;
  margin-bottom: 0.85rem;
}
.checkout-section .chip-row.wrap {
  padding: 0;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.checkout-section .label {
  margin: 0.35rem 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.checkout-aside {
  background: #fff;
}
.checkout-aside .summary-row.total strong {
  font-size: 1.15rem;
  color: var(--green);
}

@media (min-width: 800px) {
  .page:has(#checkout-form) {
    width: min(920px, 100%);
  }
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 1rem;
  }
  .checkout-aside {
    position: sticky;
    top: 4.1rem;
  }
}

@media (min-width: 720px) {
  .page .hero { min-height: 240px; }
  .home-cta-row, .offer-row { padding-left: 0.9rem; padding-right: 0.9rem; }
}
