/* Bismi Bakery — shared site styles.
   Palette pulled from the real logo: charcoal/black as the primary dark
   color, warm gold as the accent, deep red as a secondary highlight.
   Deliberately not purple/nammahearth-styled — a distinct, bakery-warm
   identity of its own. */

:root {
  --bp-ink: #1a1512;
  --bp-ink-soft: #2b2320;
  --bp-gold: #c99a2e;
  --bp-gold-dark: #a67d20;
  --bp-red: #8c1f2b;
  --bp-red-dark: #6e1721;
  --bp-cream: #faf5ec;
  --bp-text: #2b2320;
  --bp-text-muted: #6f645a;
  --bp-border: #ece3d3;
  --bp-surface: #ffffff;
  --bp-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bp-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bp-cream);
}

body {
  font-family: var(--bp-font);
  color: var(--bp-text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--bp-gold-dark);
  text-decoration: none;
}

a:hover {
  color: var(--bp-red);
}

.bp-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- header ---- */
.bp-header {
  background: var(--bp-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.bp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.bp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bp-font-display);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .bp-brand {
    font-size: 16px;
  }
}

.bp-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

/* Icon-only mark (transparent background, not a circular badge) —
   sized to the same footprint as .bp-brand-logo but without the
   circle-crop, which would clip this mark's star/base. */
.bp-brand-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.bp-nav {
  display: flex;
  gap: 28px;
}

.bp-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bp-nav a:hover,
.bp-nav a.is-active {
  color: var(--bp-gold);
}

.bp-nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
}

/* "Shop Now" — a standout pill button in the header, distinct from the
   plain uppercase nav links, always visible next to the cart icon.
   Duplicated as a plain nav link inside the mobile dropdown (hidden on
   desktop) so it's still reachable once the pill button is hidden on
   small screens for space. */
.bp-shop-now-btn {
  background: var(--bp-gold);
  color: var(--bp-ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bp-shop-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(201, 154, 46, 0.35);
}

.bp-shop-now-link {
  display: none;
}

@media (max-width: 780px) {
  .bp-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bp-ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .bp-nav.is-open {
    display: flex;
  }

  .bp-nav a {
    padding: 12px 24px;
  }

  .bp-nav-toggle {
    display: block;
  }

  .bp-shop-now-btn {
    display: none;
  }

  .bp-shop-now-link {
    display: block;
    color: var(--bp-gold) !important;
    font-weight: 700;
  }
}

/* ---- hero ---- */
/* Full-bleed banner image (the marketing hero graphic already carries
   the logo, tagline, and trust badges) — no separate text/logo overlay
   needed on top of it. */
.bp-hero {
  background: var(--bp-ink);
  line-height: 0;
}

.bp-hero img {
  width: 100%;
  display: block;
}

.bp-hero-ctas {
  background: var(--bp-ink);
  padding: 20px 24px;
  text-align: center;
}

/* ---- buttons ---- */
.bp-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
}

.bp-btn-primary {
  background: var(--bp-gold);
  color: var(--bp-ink);
  border-color: var(--bp-gold-dark);
}

.bp-btn-primary:hover {
  background: var(--bp-gold-dark);
  color: #fff;
}

.bp-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.bp-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--bp-gold);
  border-color: var(--bp-gold);
}

/* On light backgrounds (not the dark hero), the outline button needs
   dark-on-light contrast instead. */
.bp-section .bp-btn-outline {
  color: var(--bp-ink);
  border-color: var(--bp-ink);
}

.bp-section .bp-btn-outline:hover {
  background: var(--bp-ink);
  color: #fff;
}

/* ---- sections ---- */
.bp-section {
  padding: 64px 24px;
}

.bp-section-eyebrow {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bp-red);
  margin-bottom: 10px;
}

.bp-section-title {
  font-family: var(--bp-font-display);
  font-size: 30px;
  color: var(--bp-ink);
  margin: 0 0 12px;
  text-align: center;
}

.bp-section-sub {
  font-size: 15px;
  color: var(--bp-text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}

/* ---- "Our Story" teaser, homepage ---- */
.bp-story {
  background: var(--bp-surface);
  padding: 72px 24px;
}

.bp-story-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}

.bp-story-image {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bp-cream);
  border-radius: 4px;
  min-height: 280px;
}

.bp-story-copy {
  flex: 1 1 380px;
}

.bp-hero-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.bp-story-copy h2 {
  font-family: var(--bp-font-display);
  font-size: 30px;
  color: var(--bp-ink);
  margin: 0 0 16px;
}

.bp-story-copy p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--bp-text-muted);
  margin: 0 0 22px;
}

/* ---- product / category grid ---- */
.bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.bp-card {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.bp-card:hover {
  box-shadow: 0 10px 28px rgba(26, 21, 18, 0.12);
  transform: translateY(-2px);
}

.bp-card-image {
  height: 180px;
  background: var(--bp-cream);
  border-bottom: 3px solid var(--bp-gold);
  overflow: hidden;
}

.bp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-card-body {
  padding: 20px 20px 24px;
}

.bp-card-body h3 {
  font-family: var(--bp-font-display);
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--bp-ink);
}

.bp-card-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--bp-text-muted);
}

/* ---- branches page: two-up grid, image-on-top cards ---- */
.bp-branch-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Third card spans both columns so the first two sit side by side
   above it. */
.bp-branch-card:last-child {
  grid-column: 1 / -1;
}

.bp-branch-card {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(26, 21, 18, 0.08);
}

.bp-branch-image {
  height: 320px;
  background: var(--bp-cream);
}

/* The full-width third card gets a shorter image so it doesn't blow
   past a comfortable aspect ratio at double the column width. */
.bp-branch-card:last-child .bp-branch-image {
  height: 260px;
}

.bp-branch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-branch-body {
  padding: 24px 28px 28px;
}

.bp-branch-body h3 {
  font-family: var(--bp-font-display);
  color: var(--bp-ink);
  font-size: 21px;
  margin: 0 0 8px;
}

.bp-branch-tag {
  display: inline-block;
  color: var(--bp-red);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.bp-branch-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--bp-text-muted);
  margin: 0 0 8px;
}

.bp-branch-body a {
  color: var(--bp-ink);
  font-weight: 600;
}

@media (max-width: 720px) {
  .bp-branch-grid {
    grid-template-columns: 1fr;
  }

  .bp-branch-image,
  .bp-branch-card:last-child .bp-branch-image {
    height: 220px;
  }
}

.bp-price {
  margin-top: 10px;
  font-weight: 700;
  color: var(--bp-red);
}

/* category tile — used on the homepage category grid (image + label,
   Wooden Bakery menu-grid style) */
.bp-cat-tile {
  position: relative;
  height: 220px;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--bp-ink);
  background-size: cover;
  /* Category photos have a small prop cup in the top-left and the
     actual product lower/center — biasing the vertical anchor down
     keeps the product in frame instead of cropping into the cup. */
  background-position: center 68%;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.bp-cat-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 21, 18, 0) 40%, rgba(26, 21, 18, 0.82) 100%);
}

.bp-cat-tile span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--bp-font-display);
  font-size: 18px;
  font-weight: 700;
}

/* ---- footer ---- */
.bp-footer {
  background: var(--bp-ink);
  color: rgba(255, 255, 255, 0.86);
  padding: 48px 24px 24px;
  margin-top: 0;
}

.bp-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.bp-footer-col h4 {
  color: var(--bp-gold);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.bp-footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  margin-bottom: 8px;
}

.bp-footer-col a:hover {
  color: var(--bp-gold);
}

.bp-footer-bottom {
  max-width: 1180px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---- generic content page ---- */
.bp-page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.bp-page-content h1 {
  font-family: var(--bp-font-display);
  color: var(--bp-ink);
  font-size: 32px;
  margin: 0 0 20px;
}

.bp-page-content h2 {
  font-family: var(--bp-font-display);
  color: var(--bp-ink);
  font-size: 20px;
  margin: 28px 0 10px;
}

.bp-page-content p,
.bp-page-content li {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--bp-text);
}

.bp-form-field {
  margin-bottom: 16px;
}

.bp-form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bp-text);
  margin-bottom: 6px;
}

.bp-form-field input,
.bp-form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--bp-border);
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
}

.bp-form-field input:focus,
.bp-form-field textarea:focus {
  outline: none;
  border-color: var(--bp-gold);
  box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.2);
}

/* ---- cart: header button + badge ---- */
.bp-cart-toggle {
  position: relative;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: #fff;
  padding: 6px;
  margin-left: 4px;
}

.bp-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bp-red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---- cart: add-to-cart button on product cards ---- */
.bp-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  border: 1px solid var(--bp-gold-dark);
  background: transparent;
  color: var(--bp-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 2px;
  cursor: pointer;
}

.bp-add-btn:hover {
  background: var(--bp-gold);
  color: var(--bp-ink);
}

/* ---- cart: drawer + overlay ---- */
.bp-cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 21, 18, 0.5);
  z-index: 190;
}

.bp-cart-overlay.is-open {
  display: block;
}

.bp-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92vw, 380px);
  background: var(--bp-surface);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  box-shadow: -8px 0 24px rgba(26, 21, 18, 0.18);
}

.bp-cart-drawer.is-open {
  transform: translateX(0);
}

.bp-cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--bp-border);
}

.bp-cart-drawer-header h3 {
  font-family: var(--bp-font-display);
  margin: 0;
  font-size: 18px;
  color: var(--bp-ink);
}

.bp-cart-close {
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: var(--bp-text-muted);
  cursor: pointer;
  padding: 4px;
}

.bp-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}

.bp-cart-empty {
  color: var(--bp-text-muted);
  font-size: 13.5px;
  margin-top: 20px;
}

.bp-cart-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bp-border);
}

.bp-cart-line-name {
  flex: 1;
  font-size: 13.5px;
  color: var(--bp-text);
  font-weight: 600;
}

.bp-cart-line-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-cart-qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--bp-border);
  background: #fff;
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--bp-ink);
}

.bp-cart-qty-btn:hover {
  border-color: var(--bp-gold);
}

.bp-cart-qty {
  min-width: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.bp-cart-line-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--bp-red);
  min-width: 60px;
  text-align: right;
}

.bp-cart-drawer-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--bp-border);
}

.bp-cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14.5px;
  margin-bottom: 14px;
}

.bp-cart-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 13px;
  border-radius: 2px;
  text-decoration: none;
}

.bp-cart-wa-btn:hover {
  background: #1fb855;
  color: #fff;
}

.bp-cart-wa-btn.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.bp-cart-note {
  font-size: 11.5px;
  color: var(--bp-text-muted);
  line-height: 1.5;
  margin: 10px 0 0;
}

/* ---- checkout popup: collects name/phone/address before WhatsApp ---- */
.bp-checkout-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 21, 18, 0.55);
  z-index: 210;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bp-checkout-overlay.is-open {
  display: flex;
}

.bp-checkout-modal {
  background: var(--bp-surface);
  width: min(92vw, 420px);
  border-radius: 6px;
  box-shadow: 0 20px 48px rgba(26, 21, 18, 0.28);
  max-height: 90vh;
  overflow-y: auto;
}

.bp-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--bp-border);
}

.bp-checkout-header h3 {
  font-family: var(--bp-font-display);
  margin: 0;
  font-size: 18px;
  color: var(--bp-ink);
}

.bp-checkout-body {
  padding: 20px;
}

.bp-checkout-body p.bp-checkout-intro {
  font-size: 13px;
  color: var(--bp-text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.bp-checkout-field {
  margin-bottom: 14px;
}

.bp-checkout-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bp-ink);
  margin-bottom: 6px;
}

.bp-checkout-field input,
.bp-checkout-field textarea {
  width: 100%;
  border: 1px solid var(--bp-border);
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--bp-text);
  background: #fff;
}

.bp-checkout-field input:focus,
.bp-checkout-field textarea:focus {
  outline: none;
  border-color: var(--bp-gold);
}

.bp-checkout-field textarea {
  resize: vertical;
  min-height: 64px;
}

.bp-checkout-error {
  color: var(--bp-red);
  font-size: 12.5px;
  margin: -6px 0 14px;
}

.bp-checkout-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
