/* =========================================================
   PIZZA JUNCTION — MAIN STYLESHEET
   -----------------------------------------------------------
   This file controls how every page looks. It's shared by all
   pages so the site looks consistent everywhere.
   ========================================================= */

/* ---------- Design tokens (change these to re-theme the whole site) ---------- */
:root {
  --color-orange: #D14814;
  --color-orange-dark: #A63A10;
  --color-orange-light: #FBE4D8;
  --color-green: #1E6B3E;
  --color-green-dark: #164F2E;
  --color-green-light: #DCEEE0;
  --color-gold: #F4A340;
  --color-bg: #FFFDF9;
  --color-bg-warm: #FBF3EA;
  --color-text: #2B2118;
  --color-text-muted: #6B5F52;
  --color-border: #EAE1D4;
  --color-danger: #B3402A;
  --color-danger-bg: #FBEAE5;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-card: 0 1px 2px rgba(43, 33, 24, 0.06), 0 8px 24px rgba(43, 33, 24, 0.06);

  --max-width: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em 0; max-width: 65ch; }

:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }

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

.btn-secondary {
  background: transparent;
  border-color: var(--color-green);
  color: var(--color-green);
}
.btn-secondary:hover { background: var(--color-green-light); }

.btn-danger {
  background: transparent;
  border-color: var(--color-danger);
  color: var(--color-danger);
}
.btn-danger:hover { background: var(--color-danger-bg); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-text-muted); }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 30px; font-size: 1.15rem; border-radius: var(--radius-md); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Site header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: inset 0 3px 0 var(--color-green);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
}
.brand-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  font-weight: 500;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-text);
  border-bottom-color: var(--color-orange);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
}
.cart-link:hover { border-color: var(--color-orange); }
.cart-count {
  background: var(--color-orange);
  color: #fff;
  font-size: 0.75rem;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.cart-count.bump { animation: bump 0.35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

@media (max-width: 820px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand-tagline { display: none; }
}

/* mobile nav drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { padding: 10px 24px 18px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--color-border); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 100px;
  background: var(--color-bg-warm);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
/* The blur layer: backdrop-filter blurs the photo sitting behind it,
   and mask-image feathers that blur so it's strongest right behind
   the text and fades to nothing over the rest of the photo — a real
   depth-of-field falloff instead of a hard-edged box. */
.hero-bg-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(100deg,
    rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 28%,
    rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0) 64%);
  mask-image: linear-gradient(100deg,
    rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 28%,
    rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0) 64%);
}
/* The scrim: a soft color wash (no hard edges) for contrast, layered
   on top of the blurred area so text stays legible against whatever
   the photo happens to show through it. */
.hero-bg-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(251, 243, 234, 0.78) 0%,
      rgba(251, 243, 234, 0.6) 22%,
      rgba(251, 243, 234, 0.28) 42%,
      rgba(251, 243, 234, 0.06) 60%,
      rgba(251, 243, 234, 0) 72%),
    linear-gradient(to top,
      rgba(251, 243, 234, 0.55) 0%,
      rgba(251, 243, 234, 0.15) 14%,
      rgba(251, 243, 234, 0) 28%);
}
.hero .container {
  position: relative;
}
.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 1;
}
/* A very soft glow behind the text characters themselves — not a
   box, just enough to keep letters crisp over any busy part of the
   photo that peeks through. */
.hero-content h1,
.hero-content .lede,
.hero-content .hero-eyebrow-badge {
  text-shadow: 0 2px 18px rgba(251, 243, 234, 0.65);
}
.hero-eyebrow-badge {
  display: inline-block;
  background: var(--color-green);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* Small uppercase kicker label used above section headings for a
   consistent, visible touch of green throughout the site. */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-green);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  background: var(--color-green);
  border-radius: 2px;
  display: inline-block;
}
.hero h1 { color: var(--color-text); }
.hero .lede { font-size: 1.15rem; color: var(--color-text); }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .hero { padding: 56px 0 64px; }
  .hero-bg-blur {
    -webkit-mask-image: linear-gradient(to top,
      rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 34%,
      rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0) 78%);
    mask-image: linear-gradient(to top,
      rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 34%,
      rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0) 78%);
  }
  .hero-bg-scrim {
    background:
      linear-gradient(to top,
        rgba(251, 243, 234, 0.82) 0%,
        rgba(251, 243, 234, 0.5) 30%,
        rgba(251, 243, 234, 0.15) 55%,
        rgba(251, 243, 234, 0) 80%);
  }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--color-bg-warm); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head p { margin: 6px 0 0; color: var(--color-text-muted); }

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.product-card-media {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card-media svg { width: 58%; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.product-card-top h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  /* Clamp to 2 lines so every card reserves the same title height,
     whether the name is one short word or wraps to two lines. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}
.product-price { flex-shrink: 0; white-space: nowrap; }

.product-desc {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.4;
  /* Same idea as the title: clamp so every card's description takes
     up identical space, keeping the size picker / buttons below it
     aligned across the whole row instead of drifting up or down. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.4em * 2);
}

.rating-row { min-height: 1.3em; }
.availability { min-height: 1.2em; }
.product-price { font-weight: 700; color: var(--color-orange-dark); font-family: var(--font-display); font-size: 1.15rem; white-space: nowrap; }

.rating-row { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--color-text-muted); }
.stars { color: var(--color-gold); letter-spacing: 1px; }
.rating-value { font-weight: 700; color: var(--color-text); }

.availability { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.availability.available { color: var(--color-green); }
.availability.unavailable { color: var(--color-danger); }
.availability .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

.product-card-actions { margin-top: auto; display: flex; gap: 10px; padding-top: 6px; }
.product-card-actions .btn { flex: 1; padding: 11px 14px; font-size: 0.92rem; }

.size-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  background: #fff;
  margin-top: 4px;
}
.size-select:focus { outline: none; border-color: var(--color-orange); }

/* ---------- Size picker (product detail page) ---------- */
.size-picker-group { margin: 16px 0 4px; }
.size-picker-group > label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; }
.size-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.size-picker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  min-width: 90px;
}
.size-picker-label { font-weight: 700; font-size: 0.95rem; }
.size-picker-price { font-size: 0.8rem; color: var(--color-text-muted); }
.size-picker-btn.active {
  border-color: var(--color-orange);
  background: var(--color-bg-warm);
}
.size-picker-btn.active .size-picker-price { color: var(--color-orange-dark); font-weight: 600; }

/* ---------- Category filter pills ---------- */
.category-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.category-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  font-weight: 600;
  font-size: 0.92rem;
  background: #fff;
}
.category-pill.active, .category-pill:hover {
  border-color: var(--color-orange);
  color: var(--color-orange-dark);
}

/* ---------- History / timeline (about page) ---------- */
.timeline { position: relative; margin-top: 20px; padding-left: 28px; border-left: 3px solid var(--color-green-light); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-orange);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-orange);
}
.timeline-year { font-family: var(--font-display); color: var(--color-orange-dark); font-weight: 600; font-size: 1.1rem; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 10px; }
.value-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 22px; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-card p { color: var(--color-text-muted); font-size: 0.93rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-text); color: #EDE6DA; padding: 48px 0 26px; margin-top: 40px; box-shadow: inset 0 3px 0 var(--color-green); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid p, .footer-grid a { color: #C9BEA9; font-size: 0.92rem; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #453A2C; padding-top: 20px; font-size: 0.82rem; color: #A8987E; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--color-orange-dark); }

/* ---------- Product detail page ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 40px; align-items: start; }
.product-detail-media { background: var(--color-bg-warm); border-radius: var(--radius-lg); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; width: 100%; }
.product-detail-media svg { width: 55%; }
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: clamp(2rem, 3.2vw, 2.8rem); margin-bottom: 6px; }
.product-detail-price { font-family: var(--font-display); font-size: 1.8rem; color: var(--color-orange-dark); font-weight: 700; margin: 10px 0; }
.qty-row { display: flex; align-items: center; gap: 16px; margin: 22px 0; }
.qty-control { display: flex; align-items: center; border: 2px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.qty-control button { background: var(--color-bg-warm); border: none; width: 42px; height: 42px; font-size: 1.2rem; font-weight: 700; }
.qty-control input { width: 48px; border: none; text-align: center; font-size: 1.05rem; font-weight: 600; }
.qty-control input:focus { outline: none; }

@media (max-width: 820px) { .product-detail { grid-template-columns: 1fr; } .product-detail-media { max-width: 440px; } }

/* ---------- Reviews ---------- */
.review-summary { display: flex; align-items: center; gap: 20px; padding: 22px; background: var(--color-bg-warm); border-radius: var(--radius-lg); margin-bottom: 24px; }
.review-summary-score { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--color-text); line-height: 1; }
.review-item { border-bottom: 1px solid var(--color-border); padding: 18px 0; }
.review-item:last-child { border-bottom: none; }
.review-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.review-author { font-weight: 700; }
.review-date { font-size: 0.85rem; color: var(--color-text-muted); }
.review-body { color: var(--color-text); margin: 0; font-size: 0.95rem; }
.no-reviews { color: var(--color-text-muted); font-style: italic; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
.contact-detail-list { margin-top: 18px; }
.contact-detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.contact-detail-row:last-child { border-bottom: none; }
.contact-detail-label { color: var(--color-text-muted); font-size: 0.9rem; }
.contact-detail-value { font-weight: 700; }
.contact-detail-pending { font-weight: 500; font-style: italic; color: var(--color-text-muted); }
.general-review-category-tag {
  display: inline-block;
  background: var(--color-bg-warm);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Review submission form ---------- */
.review-form-card {
  background: var(--color-bg-warm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-top: 28px;
  max-width: 560px;
}
.star-picker { display: flex; gap: 6px; }
.star-picker-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-border);
  padding: 2px;
  transition: color 0.1s ease, transform 0.1s ease;
}
.star-picker-btn.active { color: var(--color-gold); }
.star-picker-btn:hover { transform: scale(1.1); }

/* ---------- Cart page ---------- */
.cart-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--color-border); }
.cart-item-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--color-bg-warm); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-item-thumb svg { width: 65%; }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 600; }
.cart-item-price { color: var(--color-text-muted); font-size: 0.9rem; }
.cart-item-remove { color: var(--color-danger); font-size: 0.85rem; font-weight: 600; background: none; border: none; padding: 4px 0; }
.summary-card { background: var(--color-bg-warm); border-radius: var(--radius-lg); padding: 26px; position: sticky; top: 96px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.96rem; }
.summary-row.total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--color-border); padding-top: 14px; margin-top: 6px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--color-text-muted); }
.empty-state svg { width: 80px; margin: 0 auto 18px; opacity: 0.7; }

@media (max-width: 880px) { .cart-layout { grid-template-columns: 1fr; } .summary-card { position: static; } }

@media (max-width: 560px) {
  .cart-item { display: flex; flex-wrap: wrap; gap: 10px 12px; }
  .cart-item-thumb { width: 56px; height: 56px; }
  .cart-item > div:nth-child(2) { flex: 1; min-width: 140px; }
  .cart-item .qty-control { order: 3; }
  .cart-item > div:last-child { order: 4; margin-left: auto; align-self: center; }
  .qty-control button { width: 36px; height: 36px; font-size: 1rem; }
  .qty-control input { width: 38px; font-size: 0.95rem; }
}

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.94rem; }
.form-group .hint { color: var(--color-text-muted); font-size: 0.82rem; margin-top: 4px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--color-orange);
  outline: none;
}
.form-group.error input, .form-group.error textarea { border-color: var(--color-danger); }
.field-error { color: var(--color-danger); font-size: 0.83rem; margin-top: 5px; display: none; }
.form-group.error .field-error { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

fieldset { border: none; padding: 0; margin: 0 0 20px; }
legend { font-weight: 600; padding: 0 0 10px; font-size: 0.94rem; }

.payment-options { display: grid; gap: 12px; }
.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
}
.payment-option:has(input:checked) { border-color: var(--color-orange); background: var(--color-bg-warm); }
.payment-option input { width: auto; margin-top: 3px; }
.payment-option-title { font-weight: 700; }
.payment-option-desc { color: var(--color-text-muted); font-size: 0.87rem; margin: 2px 0 0; }
.payment-note {
  background: var(--color-green-light);
  color: var(--color-green);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.87rem;
  margin-top: 10px;
}

/* ---------- Delivery location map (checkout) ---------- */
.delivery-map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  overflow: hidden;
  background: var(--color-bg-warm);
  position: relative;
  z-index: 0;
  isolation: isolate;
}
.location-confirmed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-green-light);
  color: var(--color-green);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- Steps indicator ---------- */
.checkout-steps { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.checkout-step { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--color-text-muted); }
.checkout-step .num { width: 24px; height: 24px; border-radius: 50%; background: var(--color-border); color: var(--color-text); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; }
.checkout-step.active { color: var(--color-orange-dark); }
.checkout-step.active .num { background: var(--color-orange); color: #fff; }
.checkout-step.done .num { background: var(--color-green); color: #fff; }

/* ---------- Confirmation ---------- */
.confirmation-hero { text-align: center; padding: 20px 0 40px; }
.confirmation-icon { width: 76px; height: 76px; margin: 0 auto 20px; }
.order-number-badge {
  display: inline-block;
  background: var(--color-bg-warm);
  border: 2px dashed var(--color-orange);
  border-radius: var(--radius-md);
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-orange-dark);
  margin: 10px 0 6px;
}
.status-tracker { display: flex; justify-content: space-between; margin: 40px 0; position: relative; }
.status-tracker::before {
  content: "";
  position: absolute;
  top: 15px; left: 0; right: 0;
  height: 3px;
  background: var(--color-border);
  z-index: 0;
}
.status-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; text-align: center; }
.status-step .dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--color-text-muted); }
.status-step.done .dot { border-color: var(--color-green); background: var(--color-green); color: #fff; }
.status-step.current .dot { border-color: var(--color-orange); background: var(--color-orange); color: #fff; }
.status-step span.label { font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted); }
.status-step.done span.label, .status-step.current span.label { color: var(--color-text); }

.summary-block { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 20px; }
.summary-block h3 { font-size: 1.05rem; margin-bottom: 14px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-grid .label { font-size: 0.8rem; color: var(--color-text-muted); text-transform: none; }
.info-grid .value { font-weight: 600; }
@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- Badges / status pills (shared with staff dashboard) ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.status-pill.pending { background: #FCEFD9; color: #9A6A0C; }
.status-pill.confirmed { background: #E3EEFB; color: #2B5FA3; }
.status-pill.preparing { background: #FDEBE0; color: var(--color-orange-dark); }
.status-pill.out-for-delivery { background: #EAE3FB; color: #5A3AA3; }
.status-pill.delivered { background: var(--color-green-light); color: var(--color-green); }
.status-pill.rejected { background: var(--color-danger-bg); color: var(--color-danger); }

/* ---------- Staff / admin pages ---------- */
.staff-shell { min-height: 100vh; background: var(--color-bg-warm); }
.staff-topbar {
  background: var(--color-text);
  color: #fff;
  padding: 16px 0;
}
.staff-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.staff-topbar .brand-name { color: #fff; }
.staff-topbar a.logout { color: #E8D9C4; font-weight: 600; font-size: 0.92rem; }
.staff-topbar a.logout:hover { color: #fff; }

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-warm);
  padding: 24px;
}
.login-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 42px; max-width: 420px; width: 100%; }
.login-card .brand { justify-content: center; margin-bottom: 22px; }
.login-card h1 { text-align: center; font-size: 1.7rem; margin-bottom: 6px; }
.login-card .lede { text-align: center; color: var(--color-text-muted); margin-bottom: 26px; font-size: 0.95rem; }
.demo-note { background: var(--color-green-light); color: var(--color-green); border-radius: var(--radius-md); padding: 12px 14px; font-size: 0.85rem; margin-top: 18px; }

.staff-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 24px 0 6px; }
.staff-tab {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 2px solid var(--color-border);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.staff-tab .count { background: var(--color-bg-warm); border-radius: 999px; padding: 1px 9px; font-size: 0.8rem; }
.staff-tab.active { border-color: var(--color-orange); color: var(--color-orange-dark); }

.order-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.order-card-main { display: flex; flex-direction: column; gap: 6px; }
.order-card-id { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.order-card-meta { color: var(--color-text-muted); font-size: 0.9rem; }
.order-card-total { font-weight: 700; font-size: 1.2rem; color: var(--color-orange-dark); font-family: var(--font-display); }
.order-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.order-card-actions .btn { padding: 12px 18px; font-size: 0.95rem; }

.order-detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .order-detail-grid { grid-template-columns: 1fr; } }

.detail-item-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.detail-item-row:last-child { border-bottom: none; }

.action-panel { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 96px; }
.action-panel h3 { margin-bottom: 16px; }
.action-panel .btn { margin-bottom: 12px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 200;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Floating order tracker ---------- */
/* Lets a customer see their order status from anywhere on the site
   without needing to save or type a ticket number — it's simply
   remembered in this browser after checkout. */
.order-tracker {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 150;
  width: 280px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(43, 33, 24, 0.16);
  overflow: hidden;
  cursor: pointer;
  animation: tracker-in 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
@keyframes tracker-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.order-tracker-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 0;
}
.order-tracker-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.order-tracker-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
}
.order-tracker-close:hover { background: var(--color-bg-warm); color: var(--color-text); }
.order-tracker-body { padding: 8px 14px 14px; }
.order-tracker-id { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.order-tracker-progress { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.order-tracker-progress .seg { flex: 1; height: 5px; border-radius: 3px; background: var(--color-border); }
.order-tracker-progress .seg.done { background: var(--color-green); }
.order-tracker-progress .seg.current { background: var(--color-orange); }
.order-tracker-hint { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 8px; }

@media (max-width: 480px) {
  .order-tracker { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 32px); }
  .brand-name { font-size: 1.1rem; }
  .brand-mark { width: 36px; height: 36px; }
  .cart-link { padding: 8px 10px; font-size: 0.9rem; gap: 4px; }
  .cart-link .cart-count { min-width: 18px; height: 18px; font-size: 0.7rem; }
  .header-actions { gap: 8px; }
}

@media (max-width: 380px) {
  .cart-label { display: none; }
  .cart-link { padding: 8px; }
  .site-header .container { padding-left: 16px; padding-right: 16px; }
}

/* =========================================================
   ADDED: back buttons, auto-growing review boxes, and the
   staff dashboard sections (Revenue, Contacts,
   Reviews).
   ========================================================= */

/* Back buttons — real buttons instead of small text links */
.back-row { margin: 0 0 22px; }
.back-row .btn { padding: 10px 20px; font-size: 0.95rem; }

/* Review boxes grow by themselves instead of being dragged */
textarea.auto-grow { resize: none; overflow: hidden; }

/* Staff section menu */
.staff-nav { background: #fff; border-bottom: 1px solid var(--color-border); }
.staff-nav .container { display: flex; gap: 4px; overflow-x: auto; }
.staff-nav a {
  padding: 14px 18px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
}
.staff-nav a:hover { color: var(--color-text); }
.staff-nav a.active { color: var(--color-orange-dark); border-bottom-color: var(--color-orange); }

.staff-title { padding-top: 30px; }
.staff-title h1 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 18px 0; }
.stat-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 18px 20px; }
.stat-label { color: var(--color-text-muted); font-size: 0.88rem; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--color-text); margin-top: 4px; }

.panel-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 20px; }
.panel-card h3 { margin-bottom: 12px; }

/* Revenue chart */
.chart-readout { min-height: 1.5em; font-weight: 600; color: var(--color-orange-dark); font-size: 0.95rem; margin-bottom: 6px; }
#revenue-chart svg { display: block; width: 100%; touch-action: pan-y; }
.chart-line { fill: none; stroke: var(--color-orange); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: var(--color-orange-light); opacity: 0.6; }
.chart-grid { stroke: var(--color-border); stroke-width: 1; }
.chart-text { fill: var(--color-text-muted); font-size: 11px; font-family: var(--font-body); }
.chart-dot { fill: #fff; stroke: var(--color-orange); stroke-width: 2; }
.chart-focus { fill: var(--color-orange); stroke: #fff; stroke-width: 2; }

.table-scroll { overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th, .history-table td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--color-border); }
.history-table th { font-size: 0.85rem; color: var(--color-text-muted); font-weight: 600; }
.history-table .num { text-align: right; }
.history-table tr:last-child td { border-bottom: none; }

/* Contacts and reviews lists */
.message-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 14px; }
.message-card-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 4px; }
.message-card-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.message-card-date { color: var(--color-text-muted); font-size: 0.85rem; }
.message-card-contact { color: var(--color-green); font-weight: 600; font-size: 0.92rem; margin-bottom: 10px; word-break: break-word; }
.message-card-body { margin: 0; max-width: none; white-space: pre-wrap; overflow-wrap: anywhere; }

.delivery-address { color: var(--color-text); font-size: 0.92rem; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .panel-card { padding: 18px 16px; }
  .message-card { padding: 18px 16px; }
  .staff-nav a { padding: 13px 14px; }
  .history-table th, .history-table td { padding: 10px 4px; font-size: 0.92rem; }
  .stat-value { font-size: 1.4rem; }
}

/* =========================================================
   ADDED: minimized order tracker, contact links
   ========================================================= */
.order-tracker.minimized {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  animation: none;
}
.order-tracker-mini-text { font-weight: 600; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-tracker-mini-expand { font-size: 0.7rem; color: var(--color-text-muted); }
.order-tracker-close { font-size: 1.4rem; padding: 2px 10px; }

.contact-detail-value a { color: var(--color-green); text-decoration: underline; overflow-wrap: anywhere; }
.contact-detail-value a:hover { color: var(--color-green-dark); }
.footer-grid li a[href^="http"], .footer-grid li a[href^="mailto"] { text-decoration: underline; overflow-wrap: anywhere; }

/* =========================================================
   ADDED: highlighted borders on contact cards and reviews,
   review date shown under the message
   ========================================================= */
.contact-grid .form-card { border: 2px solid #D9C2A3; }

.review-item {
  border: 2px solid #D9C2A3;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.review-item:last-child { border: 2px solid #D9C2A3; margin-bottom: 0; }
.review-item .review-date { margin-top: 10px; }

/* =========================================================
   ADDED: customer accounts — header button, login page,
   Google/Facebook dialog, "log in to review" prompt
   ========================================================= */

/* Header account button */
.account { position: relative; }
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  color: var(--color-text);
  background: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  cursor: pointer;
  max-width: 190px;
}
.account-btn:hover { border-color: var(--color-orange); }
.account-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-avatar {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-orange);
  color: #fff;
  font-size: 0.8rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 12px;
  z-index: 200;
}
.account-dropdown[hidden] { display: none; }
.account-dropdown-name { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 10px; overflow-wrap: anywhere; }
.account-dropdown-name strong { color: var(--color-text); }
.account-logout {
  width: 100%;
  font: inherit; font-weight: 600;
  padding: 10px;
  background: #fff;
  color: var(--color-orange-dark);
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.account-logout:hover { background: var(--color-orange-light); }

@media (max-width: 480px) {
  .account-btn { padding: 8px; gap: 0; }
  .account-text { display: none; }
  .account-icon { font-size: 1rem; }
}

/* Login / sign-up page */
.auth-section { padding-top: 40px; }
.auth-card {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid #D9C2A3;
  border-radius: var(--radius-lg);
  padding: 32px;
}
.auth-title { font-size: 1.7rem; text-align: center; margin-bottom: 18px; }
.auth-reason {
  background: var(--color-orange-light);
  color: var(--color-orange-dark);
  font-weight: 600;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin: -4px 0 18px;
  font-size: 0.94rem;
}
.auth-reason[hidden] { display: none; }
.auth-social { display: grid; gap: 10px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600;
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  color: var(--color-text);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.social-btn:hover { border-color: var(--color-text-muted); background: var(--color-bg-warm); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; color: var(--color-text-muted); font-size: 0.85rem; text-align: center; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--color-bg-warm); padding: 5px; border-radius: var(--radius-md); margin-bottom: 22px; }
.auth-tab {
  font: inherit; font-weight: 600;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.auth-tab.active { background: #fff; color: var(--color-orange-dark); box-shadow: 0 1px 3px rgba(43, 33, 24, 0.12); }
#login-form[hidden], #register-form[hidden] { display: none; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 72px; }
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font: inherit; font-size: 0.85rem; font-weight: 600;
  background: none; border: none; padding: 6px 8px;
  color: var(--color-green);
  cursor: pointer;
}

/* Google / Facebook dialog */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(43, 33, 24, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  position: relative;
  width: 100%; max-width: 400px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 26px 24px;
  box-shadow: 0 20px 50px rgba(43, 33, 24, 0.3);
}
.modal-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--color-text-muted); cursor: pointer; padding: 4px 8px; }
.modal-icon { display: flex; justify-content: center; margin-bottom: 8px; }
.modal-icon svg { width: 36px; height: 36px; }
.modal-title { font-size: 1.3rem; text-align: center; margin-bottom: 18px; }
#social-group-number[hidden] { display: none; }

/* "Log in to review" prompt shown instead of the review form */
.login-prompt {
  text-align: center;
  background: #fff;
  border: 2px solid #D9C2A3;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}
.login-prompt p { margin: 0 0 14px; font-weight: 600; }

@media (max-width: 480px) {
  .auth-card { padding: 24px 18px; }
  .auth-section { padding-top: 24px; }
}

/* =========================================================
   ADDED: demo GCash QR code, staff Users table
   ========================================================= */
.gcash-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 12px auto 4px; }
.gcash-qr-code {
  width: 220px;
  max-width: 100%;
  padding: 10px;
  background: #fff;
  border: 2px solid #D9C2A3;
  border-radius: var(--radius-md);
}
.gcash-qr-code svg, .gcash-qr-code img { display: block; width: 100%; height: auto; }
.gcash-qr-caption { font-weight: 600; font-size: 0.92rem; text-align: center; }
.gcash-qr-small { margin: 12px auto 6px; }
.gcash-qr-small .gcash-qr-code { width: 150px; padding: 6px; }
.gcash-qr-small .gcash-qr-caption { font-size: 0.8rem; }

.users-table { width: 100%; border-collapse: collapse; }
.users-table th, .users-table td { text-align: left; padding: 13px 8px; border-bottom: 1px solid var(--color-border); overflow-wrap: anywhere; }
.users-table th { font-size: 0.85rem; color: var(--color-text-muted); font-weight: 600; }
.users-table tr:last-child td { border-bottom: none; }

@media (max-width: 700px) {
  .users-table thead { display: none; }
  .users-table, .users-table tbody, .users-table tr, .users-table td { display: block; width: 100%; }
  .users-table tr { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .users-table tr:last-child { border-bottom: none; }
  .users-table td { border: none; padding: 4px 0; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .users-table td::before { content: attr(data-label); color: var(--color-text-muted); font-size: 0.85rem; text-align: left; flex: none; }
}

/* Tall tracker (with QR) stays inside short screens */
.order-tracker:not(.minimized) { max-height: calc(100vh - 32px); overflow-y: auto; }

/* =========================================================
   ADDED: staff Menu page, reset button
   ========================================================= */
.staff-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; }
.btn-danger-outline { background: #fff; color: var(--color-danger); border: 2px solid var(--color-danger); padding: 10px 18px; font-size: 0.92rem; }
.btn-danger-outline:hover { background: var(--color-danger-bg); }

.menu-admin { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 18px; }
.menu-admin .panel-card { margin-bottom: 0; }
.menu-preview { position: sticky; top: 16px; }
@media (max-width: 900px) {
  .menu-admin { grid-template-columns: 1fr; }
  .menu-preview { position: static; }
}
.menu-admin select, .menu-admin textarea, .menu-admin input[type="text"], .menu-admin input[type="number"] { width: 100%; }
.menu-admin textarea { resize: none; overflow: hidden; }
.price-field { display: flex; align-items: center; gap: 8px; }
.price-field span { font-weight: 700; font-size: 1.1rem; }

.image-picker { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.image-picker input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.image-thumb {
  width: 96px; height: 72px; flex: none;
  border: 2px dashed #D9C2A3; border-radius: var(--radius-md);
  background: var(--color-bg-warm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--color-text-muted); text-align: center;
  overflow: hidden;
}
.image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.image-thumb.has-image { border-style: solid; }

.post-status { font-size: 0.9rem; color: var(--color-text-muted); margin: 14px 0 12px; }
.post-status.ready { color: var(--color-green); font-weight: 600; }
.post-success {
  background: var(--color-green-light, #DDEEDD); color: var(--color-green);
  border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 16px; font-weight: 600;
}
.post-success[hidden] { display: none; }
.post-success a { color: inherit; text-decoration: underline; margin-left: 6px; white-space: nowrap; }

.posted-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.posted-item:last-child { border-bottom: none; }
.posted-item-img { width: 72px; height: 54px; flex: none; border-radius: var(--radius-sm); object-fit: cover; background: var(--color-bg-warm); }
.posted-item-info { flex: 1; min-width: 0; }
.posted-item-name { font-weight: 700; overflow-wrap: anywhere; }
.posted-item-meta { color: var(--color-text-muted); font-size: 0.88rem; }
.posted-item .btn { padding: 8px 14px; font-size: 0.88rem; }

/* =========================================================
   ADDED: stronger borders on the Contact page review area,
   staff hamburger menu, customer profile page, livelier logo
   ========================================================= */
body[data-page="contact"] .review-form-card { border: 2px solid #D9C2A3; }
body[data-page="contact"] #general-category-pills .category-pill:not(.active):not(:hover) { border-color: #D9C2A3; }

.brand-mark { filter: drop-shadow(0 2px 3px rgba(43, 33, 24, 0.25)); }

/* Staff section menu: hamburger on small screens */
.staff-nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  color: #fff;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}
.staff-nav .staff-nav-logout { display: none; }
@media (max-width: 768px) {
  .staff-nav-toggle { display: inline-flex; }
  .staff-topbar .container.has-staff-menu a.logout { display: none; }   /* Log Out moves into the ☰ menu, but only on pages that have that menu */
  .staff-nav { display: none; }
  .staff-nav.open { display: block; }
  .staff-nav .container { flex-direction: column; gap: 0; overflow: visible; padding-top: 6px; padding-bottom: 10px; }
  .staff-nav a { border-bottom: 1px solid var(--color-border); padding: 14px 4px; }
  .staff-nav a:last-child { border-bottom: none; }
  .staff-nav a.active { border-bottom-color: var(--color-border); box-shadow: inset 3px 0 0 var(--color-orange); padding-left: 14px; }
  .staff-nav .staff-nav-logout { display: block; color: var(--color-danger); }
}

/* Customer profile page */
.profile-section { padding-top: 40px; }
.profile-card {
  max-width: 520px; margin: 0 auto;
  background: #fff; border: 2px solid #D9C2A3; border-radius: var(--radius-lg);
  padding: 32px; text-align: center;
}
.profile-avatar {
  width: 120px; height: 120px; margin: 0 auto 14px;
  border-radius: 50%; overflow: hidden;
  background: var(--color-orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 3rem;
  border: 4px solid #fff; box-shadow: 0 0 0 3px #D9C2A3;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.profile-photo-actions .btn { padding: 9px 16px; font-size: 0.92rem; }
.profile-photo-actions input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.profile-error { color: var(--color-danger); font-size: 0.88rem; margin: 10px 0 0; min-height: 1em; }
.profile-name { font-size: 1.7rem; margin: 14px 0 20px; overflow-wrap: anywhere; }
.profile-details { margin: 0; text-align: left; border-top: 1px solid var(--color-border); }
.profile-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.profile-row dt { color: var(--color-text-muted); flex: none; }
.profile-row dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.profile-row dd small { display: block; font-weight: 500; color: var(--color-text-muted); }
@media (max-width: 480px) {
  .profile-card { padding: 24px 18px; }
  .profile-section { padding-top: 24px; }
}

/* Account button: profile photo */
.account-avatar img, .account-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.account-avatar { overflow: hidden; }
.account-dropdown-link {
  display: block; width: 100%; text-align: center;
  font: inherit; font-weight: 600; color: var(--color-text);
  padding: 10px; margin-bottom: 8px;
  background: #fff; border: 2px solid var(--color-border); border-radius: var(--radius-md);
}
.account-dropdown-link:hover { border-color: var(--color-orange); color: var(--color-orange-dark); }

/* Contact details: when the box gets narrow, every row stacks the same way
   (label above, value below) so long values like the email line up evenly. */
@media (min-width: 821px) and (max-width: 960px), (max-width: 560px) {
  .contact-detail-row { flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 2px; }
  .contact-detail-value { overflow-wrap: anywhere; }
  .contact-detail-value a { font-size: 0.92rem; }
}

/* Very small phones (about 320px wide): tighten the header so nothing spills over */
@media (max-width: 340px) {
  .header-actions { gap: 6px; }
  .account-btn { padding: 6px; }
  .nav-toggle { padding: 8px; }
}

/* Anything marked hidden stays hidden, even buttons and flex rows */
[hidden] { display: none !important; }

/* GCash payment: paid badge and receipt upload */
.paid-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--color-green-light, #DDEEDD); color: var(--color-green); font-weight: 700; font-size: 0.85rem; padding: 5px 12px; border-radius: 999px; }
.paid-badge-lg { font-size: 1rem; padding: 8px 18px; }
.paid-chip-row { margin-top: 12px; }
.paid-note { color: var(--color-text-muted); font-size: 0.9rem; margin: 10px 0 14px; }
.receipt-thumb { display: block; max-width: 220px; width: 100%; max-height: 320px; object-fit: contain; margin: 10px auto 0; border: 2px solid #D9C2A3; border-radius: var(--radius-md); background: #fff; }
.receipt-upload { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.receipt-upload h4 { font-size: 1rem; margin-bottom: 12px; }
.receipt-picker input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.receipt-error { color: var(--color-danger); font-size: 0.88rem; min-height: 1.2em; margin: 8px 0; }
.receipt-open { display: block; padding: 0; background: none; border: none; cursor: zoom-in; }
.receipt-open .receipt-thumb { margin: 0; }
.receipt-tap-hint { color: var(--color-text-muted); font-size: 0.82rem; margin: 8px 0 0; }

/* =========================================================
   ADDED: staff Menu page — editing any item, full item list
   ========================================================= */
.editing-note { background: var(--color-orange-light); color: var(--color-orange-dark); font-weight: 600; font-size: 0.92rem; padding: 8px 12px; border-radius: var(--radius-md); margin: -4px 0 14px; overflow-wrap: anywhere; }
.form-extra-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.form-extra-actions .btn { padding: 10px 18px; font-size: 0.92rem; }
.size-price { margin-bottom: 8px; }
.size-price .size-label { width: 72px; flex: none; font-weight: 600; font-size: 0.92rem; color: var(--color-text-muted); }
.item-total { font-weight: 500; color: var(--color-text-muted); font-size: 0.95rem; }
.item-search { width: 100%; max-width: 360px; }
.posted-item-actions { display: flex; gap: 8px; flex: none; }
.posted-item.editing { background: var(--color-orange-light); border-radius: var(--radius-md); padding-left: 10px; padding-right: 10px; }
.posted-item-name .general-review-category-tag { margin-left: 6px; vertical-align: middle; }
@media (max-width: 560px) {
  .posted-item { flex-wrap: wrap; }
  .posted-item-info { flex-basis: calc(100% - 90px); }
  .posted-item-actions { width: 100%; }
  .posted-item-actions .btn { flex: 1; }
}
.item-search {
  display: block;
  font: inherit;
  padding: 11px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
}
.item-search:focus { outline: none; border-color: var(--color-orange); }

/* =========================================================
   ADDED: "comes in sizes" switch and size rows (staff Menu)
   ========================================================= */
.form-group .switch { display: inline-flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; position: relative; font-weight: 600; }
.switch-row { margin: 4px 0 14px; }
.form-group .switch input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; border: 0; }
.switch-track { flex: none; position: relative; width: 48px; height: 28px; border-radius: 999px; background: #CBBBA4; transition: background 0.2s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(43, 33, 24, 0.3); transition: transform 0.2s; }
.form-group .switch input:checked + .switch-track { background: var(--color-green); }
.form-group .switch input:checked + .switch-track::after { transform: translateX(20px); }
.form-group .switch input:focus-visible + .switch-track { outline: 2px solid var(--color-orange); outline-offset: 2px; }
.switch-text { font-size: 0.95rem; }

.size-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.size-row .peso { font-weight: 700; font-size: 1.1rem; }
.form-group .size-check { display: flex; align-items: center; gap: 8px; width: 118px; flex: none; margin: 0; font-weight: 600; cursor: pointer; }
.form-group .size-check input[type="checkbox"] { width: 20px; height: 20px; padding: 0; margin: 0; accent-color: var(--color-green); flex: none; }
.size-price-input:disabled { opacity: 0.45; background: var(--color-bg-warm); }

.preview-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.size-chip { background: var(--color-bg-warm); border: 1px solid var(--color-border); border-radius: 999px; padding: 3px 10px; font-size: 0.82rem; font-weight: 600; }

/* =========================================================
   ADDED: "Add" button with cart icon, Contact page map
   ========================================================= */
.btn-add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-add .btn-icon { flex: none; }

.contact-left { display: grid; gap: 24px; min-width: 0; }
.map-frame { position: relative; width: 100%; height: 300px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-bg-warm); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 480px) { .map-frame { height: 250px; } }

/* =========================================================
   ADDED: tidier, symmetrical Contact page
   Two equal columns that match in height, then a full-width map.
   ========================================================= */
.contact-grid { align-items: stretch; }
@media (min-width: 821px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid > .form-card { display: flex; flex-direction: column; }
  .contact-grid .contact-detail-list { flex: 1; display: flex; flex-direction: column; margin-top: 12px; }
  .contact-grid .contact-detail-row { flex: 1; align-items: center; padding-top: 0; padding-bottom: 0; }
  .contact-grid #inquiry-form { flex: 1; display: flex; flex-direction: column; }
  .contact-grid #inquiry-form > .btn { margin-top: auto; }
}
.map-card { border: 2px solid #D9C2A3; margin-top: 24px; }
.map-card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 14px; }
.map-card-head h3 { margin: 0; }
.map-card-head span { color: var(--color-text-muted); font-size: 0.92rem; }
.map-card .map-frame { height: 340px; }
@media (max-width: 480px) { .map-card .map-frame { height: 250px; } }

/* One-tap link to Google Maps (the embedded map needs two fingers on phones) */
.btn-map { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
@media (max-width: 560px) { .btn-map { display: flex; width: 100%; } }

/* Map / Street View switch */
.map-tabs { max-width: 320px; margin-bottom: 14px; }

/* =========================================================
   ADDED: confirmation pop-ups, order cancelling, review moderation
   ========================================================= */
.confirm-dialog { max-width: 420px; }
.confirm-title { margin-bottom: 8px; }
.confirm-message { margin: 0 0 14px; color: var(--color-text-muted); }
.confirm-list { list-style: none; margin: 0 0 12px; padding: 12px 14px; background: var(--color-bg-warm); border-radius: var(--radius-md); max-height: 220px; overflow-y: auto; }
.confirm-list li { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-weight: 500; }
.confirm-list li span:first-child { overflow-wrap: anywhere; }
.confirm-list li span:last-child { flex: none; font-weight: 700; }
.confirm-total { display: flex; justify-content: space-between; gap: 14px; font-weight: 700; font-size: 1.1rem; padding: 4px 2px; }
.confirm-actions { display: flex; gap: 10px; margin-top: 18px; }
.confirm-actions .btn { flex: 1; padding-left: 12px; padding-right: 12px; }

.cancel-order-box { text-align: center; margin-top: 22px; }
.cancel-note { text-align: center; color: var(--color-text-muted); font-size: 0.9rem; margin: 18px 0 0; }

.message-card.is-hidden { opacity: 0.65; border-style: dashed; }
.hidden-tag { background: var(--color-danger-bg); color: var(--color-danger); }
.review-admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.review-admin-actions .btn { padding: 8px 16px; font-size: 0.9rem; }

/* Dismiss button on the floating tracker once an order is finished */
.tracker-dismiss { display: block; width: 100%; margin-top: 10px; font: inherit; font-weight: 600; font-size: 0.88rem; padding: 8px; background: #fff; color: var(--color-text); border: 2px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; }
.tracker-dismiss:hover { border-color: var(--color-orange); color: var(--color-orange-dark); }

/* =========================================================
   ADDED: home page hero fills the screen down to the footer
   The footer normally keeps a 40px gap above it, which showed
   as a white strip under the home photo. On the home page the
   photo now runs right up to the footer and is taller.
   ========================================================= */
body[data-page="home"] .site-footer { margin-top: 0; }
body[data-page="home"] .hero {
  display: flex;
  align-items: center;
  min-height: max(560px, calc(100vh - 170px));
  border-bottom: 0;
}
body[data-page="home"] .hero .container { width: 100%; }
@media (max-width: 820px) {
  body[data-page="home"] .hero { min-height: max(520px, calc(100vh - 150px)); }
}

/* =========================================================
   ADDED: Our Story page — photo of the old shop, owner photo
   ========================================================= */
.story-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.story-photo { margin: 0; position: relative; }
.story-photo img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-lg);
  border: 6px solid #fff;
  box-shadow: 0 18px 40px rgba(43, 33, 24, 0.22);
}
.story-photo figcaption {
  margin-top: 12px; text-align: center;
  font-family: var(--font-display); font-style: italic;
  color: var(--color-text-muted); font-size: 1rem;
}
@media (max-width: 900px) {
  .story-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .story-photo { max-width: 560px; }
}

.owner-section[hidden] { display: none; }
.owner-card {
  margin: 0 auto; max-width: 760px;
  display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center;
  background: #fff; border: 2px solid #D9C2A3; border-radius: var(--radius-lg); padding: 24px;
}
.owner-card img { width: 220px; height: 260px; object-fit: cover; border-radius: var(--radius-md); display: block; }
.owner-card figcaption { display: flex; flex-direction: column; gap: 6px; }
.owner-card figcaption strong { font-family: var(--font-display); font-size: 1.6rem; }
.owner-card figcaption span:last-child { color: var(--color-text-muted); }
@media (max-width: 600px) {
  .owner-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 20px; }
  .owner-card img { width: 100%; max-width: 260px; height: 300px; }
}

/* =========================================================
   ADDED: professional staff Menu form, photo drop area,
   classification manager
   ========================================================= */
.mf-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: 0 2px 10px rgba(43, 33, 24, 0.04); }
.mf-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.mf-header h3 { margin: 0; font-size: 1.35rem; }
.mf-sub { margin: 4px 0 0; color: var(--color-text-muted); font-size: 0.92rem; max-width: 60ch; }
.mf-badge { background: var(--color-orange-light); color: var(--color-orange-dark); font-weight: 600; font-size: 0.85rem; padding: 6px 14px; border-radius: 999px; max-width: 100%; overflow-wrap: anywhere; }

.mf-section { border: 0; margin: 0 0 6px; padding: 18px 0 8px; border-top: 1px solid var(--color-border); min-width: 0; }
.mf-section legend { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 0; margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.mf-step { width: 26px; height: 26px; border-radius: 50%; background: var(--color-green); color: #fff; font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mf-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.mf-label-row label { margin: 0; }
.req { color: var(--color-danger); font-weight: 700; }
.mf-counter { color: var(--color-text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.mf-link { font-size: 0.85rem; font-weight: 600; color: var(--color-green); text-decoration: underline; }

.mf-drop {
  display: flex; align-items: center; gap: 18px;
  padding: 16px; margin: 0;
  border: 2px dashed #D9C2A3; border-radius: var(--radius-lg);
  background: var(--color-bg-warm); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.mf-drop:hover, .mf-drop.dragging { border-color: var(--color-green); background: #F1F6EE; }
.mf-drop-preview { width: 120px; height: 90px; flex: none; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); overflow: hidden; }
.mf-drop-preview.has-image { border-color: #D9C2A3; }
.mf-drop-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mf-drop-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mf-drop-text strong { color: var(--color-green); font-size: 1rem; }
.mf-drop-text span { color: var(--color-text-muted); font-size: 0.85rem; }
.mf-card input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mf-remove-photo { margin-top: 10px; padding: 8px 16px; font-size: 0.88rem; }

.mf-footer { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--color-border); }
.mf-footer .post-status { margin: 0 0 14px; }
.mf-footer-buttons { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mf-edit-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mf-footer-buttons .btn { padding: 12px 22px; }
.mf-footer-buttons #post-btn { margin-left: auto; min-width: 170px; }
.mf-edit-actions[hidden] + #post-btn { margin-left: auto; }
.mf-preview-card .mf-header { margin-bottom: 14px; }
.menu-admin select, .menu-admin textarea, .menu-admin input[type="text"], .menu-admin input[type="number"] { width: 100%; }

/* Classification manager */
.cls-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.cls-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; background: var(--color-bg-warm); border: 1px solid #D9C2A3; border-radius: 999px; }
.cls-chip-name { font-weight: 600; }
.cls-chip-count { background: #fff; border-radius: 999px; padding: 1px 9px; font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted); }
.cls-chip-del { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--color-danger); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cls-chip-del:hover { background: var(--color-danger-bg); }
.cls-add { display: flex; gap: 10px; flex-wrap: wrap; }
.cls-add input { flex: 1 1 220px; min-width: 0; }
.cls-add .btn { padding: 12px 20px; }
.cls-error { color: var(--color-danger); min-height: 1.2em; margin: 8px 0 0; }

/* A drop-down inside the confirm pop-up */
.confirm-select-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.confirm-select { width: 100%; font: inherit; padding: 11px 12px; border: 2px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }

@media (max-width: 560px) {
  .mf-card { padding: 22px 18px; }
  .mf-drop { flex-direction: column; text-align: center; }
  .mf-drop-preview { width: 100%; height: 150px; }
  .mf-footer-buttons { flex-direction: column-reverse; align-items: stretch; }
  .mf-footer-buttons #post-btn { margin-left: 0; width: 100%; }
  .mf-edit-actions .btn { flex: 1; }
}

/* =========================================================
   ADDED: tidier profile page and "Edit profile picture" pop-up
   ========================================================= */
.profile-card.pf { padding: 0; overflow: hidden; max-width: 540px; text-align: center; }
.pf-cover { height: 110px; background: linear-gradient(120deg, var(--color-green) 0%, #2E8B57 45%, var(--color-orange) 130%); }
.pf-top { padding: 0 28px; margin-top: -60px; display: flex; flex-direction: column; align-items: center; }
.pf-top .profile-avatar { margin: 0 0 12px; background: var(--color-orange); }
.pf-top .profile-name { margin: 0 0 8px; }
.pf-provider { display: inline-flex; align-items: center; gap: 8px; background: var(--color-bg-warm); border: 1px solid #D9C2A3; border-radius: 999px; padding: 5px 14px; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }
.pf-edit-btn { padding: 10px 22px; }
.pf-body { padding: 8px 32px 30px; }
.pf-body .profile-details { margin-top: 22px; }
.pf-actions { display: flex; gap: 12px; margin-top: 24px; }
.pf-actions .btn { flex: 1; }
.profile-row[hidden] { display: none; }

.avatar-modal-card { max-width: 420px; text-align: center; }
.avatar-modal-card .modal-title { margin-bottom: 4px; }
.avatar-modal-sub { color: var(--color-text-muted); font-size: 0.92rem; margin: 0 0 18px; }
.avatar-preview { width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; background: var(--color-orange); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; display: flex; align-items: center; justify-content: center; border: 4px solid #fff; box-shadow: 0 0 0 3px #D9C2A3; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-drop { justify-content: center; text-align: center; }
.avatar-modal-card input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.avatar-remove { margin-top: 10px; padding: 8px 16px; font-size: 0.9rem; }
.avatar-modal-card .profile-error { min-height: 1.2em; }
@media (max-width: 480px) {
  .pf-body { padding: 8px 20px 24px; }
  .pf-actions { flex-direction: column-reverse; }
}

/* =========================================================
   ADDED: customer Order History page
   ========================================================= */
.history-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.history-card { background: #fff; border: 2px solid #D9C2A3; border-radius: var(--radius-lg); padding: 22px 24px; margin-top: 16px; }
.history-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--color-border); }
.history-id { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.history-date { color: var(--color-text-muted); font-size: 0.88rem; margin-top: 2px; }
.history-items { list-style: none; margin: 0; padding: 8px 0; }
.history-items li { display: grid; grid-template-columns: 1fr auto 84px; gap: 12px; padding: 7px 0; align-items: baseline; }
.history-item-name { overflow-wrap: anywhere; font-weight: 500; }
.history-item-qty { color: var(--color-text-muted); font-weight: 600; }
.history-item-price { text-align: right; font-variant-numeric: tabular-nums; }
.history-fee { color: var(--color-text-muted); font-size: 0.92rem; }
.history-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--color-border); }
.history-total { display: flex; flex-direction: column; line-height: 1.2; }
.history-total span { color: var(--color-text-muted); font-size: 0.82rem; }
.history-total strong { font-family: var(--font-display); font-size: 1.35rem; }
.history-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--color-text-muted); font-size: 0.9rem; }
.history-card-bottom .btn { padding: 10px 20px; }
@media (max-width: 560px) {
  .history-card { padding: 18px 16px; }
  .history-items li { grid-template-columns: 1fr auto 70px; }
  .history-card-bottom { flex-direction: column; align-items: stretch; }
  .history-card-bottom .btn { width: 100%; }
}
.pf-actions .btn { font-size: 1rem; padding: 12px 18px; }

/* =========================================================
   ADDED: receipt check badges, small delete buttons
   ========================================================= */
.btn-sm { padding: 8px 14px; font-size: 0.88rem; }
.tag-attention { background: #FDF0D5; color: #8A5A00; }
.check-badge, .invalid-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.9rem; padding: 7px 14px; border-radius: 999px; }
.check-badge { background: #FDF0D5; color: #8A5A00; }
.invalid-badge { background: var(--color-danger-bg); color: var(--color-danger); }
.receipt-verdict { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.receipt-verdict .btn { flex: 1 1 140px; }
.users-actions-col { text-align: right; width: 1%; white-space: nowrap; }
@media (max-width: 700px) { .users-table .users-actions-col { justify-content: flex-end; } .users-table .users-actions-col::before { content: none; } }

/* =========================================================
   ADDED: login page with separate "Log in" and "Sign in with
   Google" boxes, Forgot password pop-up
   ========================================================= */
.auth-section .auth-reason { max-width: 920px; margin: 0 auto 20px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; align-items: stretch; }
.auth-box { background: #fff; border: 2px solid #D9C2A3; border-radius: var(--radius-lg); padding: 34px 32px; display: flex; flex-direction: column; min-width: 0; }
.auth-box-alt { background: var(--color-bg-warm); }
.auth-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-green); margin-bottom: 6px; }
.auth-box .auth-title { text-align: left; font-size: 1.8rem; margin: 0 0 8px; }
.auth-sub { color: var(--color-text-muted); margin: 0 0 22px; font-size: 0.97rem; }
.social-btn-lg { padding: 14px 18px; font-size: 1.02rem; margin-bottom: 22px; }
.auth-steps { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid #D9C2A3; display: grid; gap: 12px; }
.auth-steps li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.auth-steps li span { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--color-green); color: #fff; font-size: 0.82rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.auth-box .mf-label-row { margin-bottom: 6px; }
.modal-sub { color: var(--color-text-muted); font-size: 0.95rem; margin: 0 0 16px; text-align: center; }
.modal-note { margin: 14px 0 0; text-align: center; color: var(--color-text-muted); font-size: 0.8rem; }
.demo-code { background: var(--color-bg-warm); border: 1px dashed #D9C2A3; border-radius: var(--radius-md); padding: 10px 14px; margin: 0 0 16px; text-align: center; font-size: 0.95rem; }
.demo-code strong { letter-spacing: 0.25em; font-size: 1.2rem; }
#forgot-modal .modal-card, #social-modal .modal-card { max-width: 420px; }
@media (max-width: 820px) {
  .auth-grid { grid-template-columns: 1fr; max-width: 520px; }
  .auth-box { padding: 28px 22px; }
}

/* GCash account details under the QR */
.gcash-qr-details { text-align: center; line-height: 1.5; }
.gcash-qr-name { font-weight: 700; font-size: 1.05rem; color: #1A73C9; }
.gcash-qr-number { font-weight: 600; letter-spacing: 0.04em; }
.gcash-qr-note { font-size: 0.85rem; color: var(--color-text-muted); }
.gcash-qr-small .gcash-qr-name { font-size: 0.9rem; }
.gcash-qr-small .gcash-qr-number, .gcash-qr-small .gcash-qr-note { font-size: 0.78rem; }

/* Shop open / closed */
.shop-closed-banner {
  background: #7A1F12; color: #fff; text-align: center;
  padding: 10px 16px; font-weight: 600; font-size: 0.95rem;
}
.shop-toggle-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; margin: 4px 0 18px; border-radius: var(--radius-md);
  border: 2px solid #BFD8C0; background: #F1F8F1;
}
.shop-toggle-card.is-closed { border-color: #E3B3AA; background: #FCEFEC; }
.shop-toggle-text { flex: 1 1 260px; }
.shop-toggle-text strong { display: block; font-size: 1.05rem; }
.shop-toggle-text span { color: var(--color-text-muted); font-size: 0.9rem; }
.shop-toggle-warning { margin-top: 6px; font-size: 0.88rem; font-weight: 600; color: #7A1F12; }
.shop-switch {
  position: relative; width: 74px; height: 38px; flex: none; border: 0; border-radius: 999px;
  background: #3E8E41; cursor: pointer; color: #fff; font-weight: 700; font-size: 0.8rem;
  transition: background 0.2s;
}
.shop-switch::after {
  content: ""; position: absolute; top: 4px; left: 40px; width: 30px; height: 30px;
  border-radius: 50%; background: #fff; transition: left 0.2s;
}
.shop-switch span { position: absolute; top: 0; bottom: 0; left: 12px; display: flex; align-items: center; }
.shop-switch.off { background: #B04A3A; }
.shop-switch.off::after { left: 4px; }
.shop-switch.off span { left: auto; right: 10px; }
