:root {
  --lilac: #a57897;
  --lilac-dark: #644257;
  --lilac-light: #f3e7ef;
  --yellow: #faf0ba;
  --paper: #fffaf0;
  --ink: #382c32;
  --muted: #796970;
  --line: #eadce4;
  --brand-lilac: #a57897;
  --brand-cream: #faf0ba;
}

body { background: var(--paper); }

.promo-strip {
  background: var(--brand-lilac);
  color: var(--brand-cream);
}

.hours-strip {
  background: var(--brand-cream);
  border-color: #eadc9d;
  color: #684f43;
}

.topbar { border-color: var(--line); }

.brand-mark {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: none;
}

.brand strong { color: var(--lilac-dark); }

.cart-button,
.primary-button,
.add-button,
.quantity button,
.filter.active,
.view-tab.active { background: var(--brand-lilac); }

.cart-button { color: var(--brand-cream); }
.cart-button span { background: var(--brand-cream); }

.hero-image {
  background: var(--brand-lilac);
  border: 1px solid rgba(100, 66, 87, .1);
}

.hero-image > img {
  object-fit: cover;
  object-position: center;
}

.store-logo {
  overflow: hidden;
  padding: 0;
  border-color: var(--paper);
  background: var(--brand-lilac);
}

.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero h1,
.highlights h2,
.menu h2 { color: var(--lilac-dark); }

.open-status { color: var(--brand-lilac) !important; }
.filters { background: var(--paper); }
.filter { color: var(--lilac-dark); }
.tag,
.highlight-tag { background: var(--brand-lilac); color: var(--brand-cream); }

.brand-promise {
  display: grid;
  max-width: 860px;
  min-height: 360px;
  margin: 18px auto 44px;
  overflow: hidden;
  grid-template-columns: 1fr 1fr;
  border-radius: 28px;
  background: var(--brand-lilac);
  color: var(--brand-cream);
  box-shadow: 0 18px 42px rgba(100, 66, 87, .13);
}

.brand-promise > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-promise > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.brand-promise span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.brand-promise h2 {
  margin: 13px 0;
  font: 700 36px/1.02 Georgia, serif;
}

.brand-promise p {
  margin: 0;
  color: #fff7cf;
  line-height: 1.65;
}

.brand-promise a {
  align-self: flex-start;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--lilac-dark);
  padding: 12px 18px;
  font-weight: 900;
  text-decoration: none;
}

.product,
.login,
.order,
.metric,
.crm-card { border-color: var(--line); }

.product:hover { border-color: #c9a9bd; }
.price,
.cart-item strong { color: var(--lilac-dark); }

footer {
  background: var(--brand-lilac);
  border: 0;
  color: var(--brand-cream);
}

.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 54px; height: 54px; border-radius: 16px; }

.admin-page {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(165, 120, 151, .08) 1px, transparent 1px);
  background-size: 22px 22px;
}

.admin-page .topbar { border-bottom: 3px solid var(--brand-cream); }
.admin-page .section-label { color: var(--brand-lilac); }
.admin-page .admin h1 { color: var(--lilac-dark); }
.admin-page .metric strong { color: var(--lilac-dark); }
.admin-page .badge { background: var(--brand-cream); color: var(--lilac-dark); }
.admin-page .view-tab { background: var(--lilac-light); color: var(--lilac-dark); }
.admin-page .view-tab.active { background: var(--brand-lilac); color: var(--brand-cream); }

@media (max-width: 900px) {
  .brand-promise { max-width: calc(100% - 28px); }
}

@media (max-width: 620px) {
  .brand-mark { width: 42px; height: 42px; }
  .brand-promise { grid-template-columns: 1fr; }
  .brand-promise > img { max-height: 310px; }
  .brand-promise > div { padding: 30px 24px; }
  .brand-promise h2 { font-size: 30px; }
}

img.brand-product {
  transform: none !important;
  object-fit: cover;
  object-position: center;
}

.flagship-product {
  border: 2px solid var(--brand-lilac);
  box-shadow: 0 12px 30px rgba(100, 66, 87, .1);
}

.build-button { white-space: nowrap; }

.builder-dialog { width: min(680px, calc(100% - 24px)); }
.builder-dialog > p { margin-bottom: 20px; }
.builder-kicker { color: var(--brand-lilac); font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.builder-dialog form { gap: 20px; }
.builder-dialog fieldset { margin: 0; border: 0; padding: 0; }
.builder-dialog legend { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; color: var(--lilac-dark); font: 700 18px Georgia, serif; }
.builder-dialog legend b { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--brand-lilac); color: var(--brand-cream); font: 800 13px Arial, sans-serif; }
.builder-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.builder-option { position: relative; display: block; cursor: pointer; }
.builder-option input { position: absolute; opacity: 0; pointer-events: none; }
.builder-option > span { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 12px 14px; transition: .18s; }
.builder-option b { color: var(--ink); font-size: 13px; }
.builder-option small { white-space: nowrap; color: var(--muted); font-size: 11px; }
.builder-option input:checked + span { border-color: var(--brand-lilac); background: var(--lilac-light); box-shadow: inset 0 0 0 1px var(--brand-lilac); }
.builder-option input:checked + span small { color: var(--lilac-dark); font-weight: 800; }
.packaging-note { display: flex; align-items: center; gap: 12px; border-radius: 14px; background: var(--brand-cream); color: var(--lilac-dark); padding: 14px; }
.packaging-note > span { font-size: 24px; }
.packaging-note strong,.packaging-note small { display: block; }
.packaging-note small { margin-top: 4px; color: #7c6754; }
.builder-total { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 17px; }
.builder-total strong { color: var(--lilac-dark); font-size: 23px; }
.cart-customization { display: block; margin: 5px 0 8px; color: var(--muted); font-size: 11px; line-height: 1.45; }

.order-items { display: grid; gap: 8px; margin: 18px 0; }
.order-item { display: block; border-radius: 12px; background: var(--paper); padding: 11px 13px; }
.order-item b,.order-customization { display: block; }
.order-customization { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.settings-card { max-width: 760px; border: 1px solid var(--line); border-radius: 24px; background: #fff; padding: 26px; }
.settings-card h2 { margin: 7px 0; color: var(--lilac-dark); font: 700 28px Georgia, serif; }
.settings-card > p { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.save-status { align-self: center; color: var(--lilac-dark); font-size: 13px; font-weight: 800; }

@media (max-width: 620px) {
  .builder-options,.settings-grid { grid-template-columns: 1fr; }
  .builder-dialog { padding: 24px 18px; }
  .product-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
  .build-button { width: 100%; }
}
