/*
Theme Name: Astra Child Bhilad
Theme URI: https://orchid-echidna-599721.hostingersite.com/
Description: Art-directed hyperlocal grocery storefront for Bhilad Grocery (By Adarsh Provision Store). Based on Bhilad Grocery UI Reference v1 (Terracotta Market).
Author: Antigravity & Adarsh Provision Store
Template: astra
Version: 2.3.0
Text Domain: astra-child-bhilad
*/

/* =====================================================================
   BHILAD GROCERY — DESIGN TOKENS (from Bhilad_Grocery_UI_Reference.html)
   ===================================================================== */
:root {
  color-scheme: light;
  --primary: #A9432A;
  --primary-dark: #8A3520;
  --primary-tint: #F4EAE2;
  --accent: #14535C;
  --accent-ink: #FFFFFF;
  --accent-tint: #E3EEEF;
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --ink: #221A16;
  --muted: #6A5F58;
  --border: #E9DFD5;
  --border-strong: #DCCFC2;
  --success: #1E7A3C;
  --success-bg: #E8F5EC;
  --warning: #8A4800;
  --warning-bg: #FFF1E0;
  --error: #B3123B;
  --error-bg: #FCE8EE;
  --disabled-bg: #F1ECE6;
  --disabled-ink: #7A7068;
  --r-btn: 8px;
  --r-card: 12px;
  --r-badge: 4px;
  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-width: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--primary-dark);
}

img, svg {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* =====================================================================
   SITE-WIDE STRUCTURAL STYLES
   ===================================================================== */

/* Strip */
.strip {
  background: var(--primary);
  color: #FFF;
  font-size: 12px;
  font-weight: 500;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  padding: 0 12px;
  width: 100%;
}
.strip b {
  background: var(--accent);
  padding: 1px 6px;
  border-radius: var(--r-badge);
  font-weight: 800;
  color: #FFF;
}

/* Header Mobile (under 1024px) */
.hdr {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.hdr .r1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
}
.logo .wm {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.logo .wm b {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .02em;
  white-space: nowrap;
}
.logo .wm i {
  font-style: normal;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}
.iconbtn {
  color: var(--ink);
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
form.search {
  position: relative;
  display: block;
  margin: 0 16px 10px;
}
form.search input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 0 14px 0 42px;
  font-size: 14px;
  color: var(--ink);
}
form.search svg {
  position: absolute;
  left: 14px;
  top: 14px;
}
.hdr .r3 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 10px;
}
.loc {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  border: none;
  border-radius: var(--r-btn);
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 12.5px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.loc span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loc em {
  font-style: normal;
  color: var(--primary);
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
}
.slotpill {
  flex-shrink: 0;
  height: 36px;
  border-radius: var(--r-btn);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* Desktop Header (1024px and up) */
.dhdr {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.dhdr .in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.dhdr form.search {
  flex: 1;
  margin: 0;
}
.dhdr .loc {
  flex: 0 0 auto;
  height: 44px;
}
.dcart {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: var(--r-btn);
  background: var(--primary);
  color: #FFF !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.dacct {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .hdr { display: none; }
  .dhdr { display: block; }
}

/* Bottom Nav (Mobile) */
.bnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 1000;
}
.bnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.bnav a.on {
  color: var(--primary);
  font-weight: 700;
}

/* Sticky Cart Bar (Mobile) */
.cartbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 74px;
  height: 56px;
  border-radius: 12px;
  background: var(--primary);
  color: #FFF !important;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  text-decoration: none;
  overflow: hidden;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(169, 67, 42, 0.3);
}
.cartbar.show {
  display: flex;
}
.cartbar .t {
  display: flex;
  flex-direction: column;
}
.cartbar .t b {
  font-size: 13px;
  color: #FFF;
}
.cartbar .t span {
  font-size: 11.5px;
  color: #FBE3DA;
}
.cartbar .go {
  font-size: 14px;
  font-weight: 700;
  color: #FFF;
}
.cartbar .cbline {
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  background: #FFFFFF;
  opacity: .9;
}

@media (min-width: 1024px) {
  .bnav, .cartbar { display: none !important; }
}

/* Sections & Layout */
.pad {
  padding: 0 16px;
}
.sh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 22px 16px 12px;
}
.sh h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.sh a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

/* Next Slot Card */
.nslot {
  margin: 12px 16px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nslot .ic {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nslot .t {
  flex: 1;
}
.nslot .t small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.nslot .t b {
  font-size: 15px;
}
.nslot .by {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* Category Tiles */
.cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 10px;
  padding: 0 16px;
}
.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}
.cat .ph {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-card);
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat span {
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

/* Product Card (Component G) */
.pc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.pc .img {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--primary-tint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
}
.pc .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pc .img small {
  font-size: 10.5px;
  color: var(--primary);
  font-weight: 600;
}
.off {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--accent);
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: var(--r-badge);
  z-index: 2;
}
.pc .nm {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  height: 34px;
  overflow: hidden;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pc .sz {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc .pr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  gap: 4px;
}
.price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.price b {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.price s {
  font-size: 11.5px;
  color: var(--muted);
}
.add {
  height: 34px;
  padding: 0 14px;
  border: 1.5px solid var(--primary);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.add:hover {
  background: var(--primary-tint);
}
.step {
  display: inline-flex;
  align-items: center;
  height: 34px;
  border-radius: var(--r-btn);
  background: var(--primary);
  color: #FFF;
  flex-shrink: 0;
}
.step button {
  width: 32px;
  height: 34px;
  border: none;
  background: transparent;
  color: #FFF;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
}
.step span {
  min-width: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

/* Grids & Horizontal Scrollers */
.hscroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.hscroll .pc {
  flex: 0 0 148px;
  scroll-snap-align: start;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .grid2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .grid2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (min-width: 1280px) {
  .grid2 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }
}

/* How It Works & Trust */
.how {
  margin: 24px 16px 0;
  background: var(--primary-tint);
  border-radius: var(--r-card);
  padding: 16px;
  display: grid;
  gap: 14px;
}
.how .s {
  display: flex;
  gap: 12px;
}
.how .n {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--primary);
  color: #FFF;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.how b {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.how span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.trust {
  margin: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.trust div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 12px;
}
.trust b {
  display: block;
  font-size: 13px;
  color: var(--primary);
}
.trust span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Footer (Mobile & Desktop) */
.foot {
  background: var(--primary);
  color: #FBEFE9;
  padding: 24px 16px 100px;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 24px;
}
.foot b {
  color: #FFF;
  display: block;
  margin-bottom: 4px;
}
.foot .g {
  display: grid;
  gap: 16px;
}
.dfoot {
  display: none;
  background: var(--primary);
  color: #FBEFE9;
}
.dfoot .in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  font-size: 13px;
  line-height: 1.6;
}
.dfoot b {
  color: #FFF;
  display: block;
  margin-bottom: 4px;
}

.bg-site-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (min-width: 1024px) {
  .bg-site-footer {
    display: block !important;
  }
}

/* Buttons, Notices, Forms */
.btn {
  height: 48px;
  border: none;
  border-radius: var(--r-btn);
  background: var(--primary);
  color: #FFF !important;
  font-weight: 700;
  font-size: 15px;
  padding: 0 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn:hover {
  background: var(--primary-dark);
}
.btn.block {
  width: 100%;
}
.btn.sec {
  background: var(--surface);
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
}
.btn.sec:hover {
  background: var(--primary-tint);
}
.btn[disabled], .btn:disabled {
  background: var(--disabled-bg) !important;
  color: var(--disabled-ink) !important;
  cursor: not-allowed;
  border: none;
}
.btn.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.note {
  border-radius: var(--r-btn);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.note.warn {
  background: var(--warning-bg);
  color: var(--warning);
}
.note.ok {
  background: var(--success-bg);
  color: var(--success);
}
.note.err {
  background: var(--error-bg);
  color: var(--error);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.field label {
  font-size: 12.5px;
  font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-btn);
  padding: 0 12px;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(169, 67, 42, .25);
}
.field small {
  font-size: 11.5px;
  color: var(--muted);
}
.field.bad input {
  border-color: var(--error);
}
.field.bad small {
  color: var(--error);
}
.prefix {
  display: flex;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-btn);
  overflow: hidden;
  background: var(--surface);
}
.prefix span {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--primary-tint);
  color: var(--muted);
  border-right: 1px solid var(--border);
  font-size: 14px;
  flex-shrink: 0;
}
.prefix input {
  border: none;
  flex: 1;
  padding: 0 12px;
  font-size: 14px;
  min-width: 0;
}

.cardh {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.cardh .n {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: var(--primary);
  color: #FFF;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chips {
  display: grid;
  gap: 8px;
}
.chip {
  border: 1.5px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--surface);
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
}
.chip small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
}
.chip.on {
  border: 2px solid var(--primary);
  background: var(--primary-tint);
  color: var(--primary);
}
.chip.closed {
  background: var(--disabled-bg);
  color: var(--disabled-ink);
  cursor: not-allowed;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-btn);
  padding: 0 12px;
  font-size: 14px;
  background: var(--surface);
  cursor: pointer;
}
.radio.on {
  border: 2px solid var(--primary);
  background: var(--primary-tint);
}
.radio i {
  width: 18px;
  height: 18px;
  border-radius: 9px;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.radio.on i::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--primary);
}

.bill .r {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-top: 8px;
}
.bill .r span:first-child {
  color: var(--muted);
}
.bill .tot {
  border-top: 1px dashed var(--border-strong);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 800;
}

.prog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 12px 14px;
}
.prog p {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.prog p b {
  color: var(--primary);
}
.bar {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 8px;
  background: var(--accent);
  border-radius: 4px;
}

.line {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.line .th {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--primary-tint);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.line .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.line .mid {
  flex: 1;
  min-width: 0;
}
.line .mid b {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.line .mid small {
  font-size: 12px;
  color: var(--muted);
}
.line .mid .lt {
  font-size: 14px;
  font-weight: 700;
  margin-top: 3px;
  color: var(--ink);
}

.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 16px 14px;
  z-index: 998;
}

.toast {
  background: var(--ink);
  color: #FFF;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  position: fixed;
  bottom: 80px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.toast a {
  color: #F7C9B8;
  font-weight: 700;
  text-decoration: none;
}

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.topbar h1 {
  font-size: 18px;
  margin: 0;
  color: var(--ink);
}
.topbar small {
  color: var(--muted);
  font-size: 13px;
}

.sizechip {
  flex-shrink: 0;
  white-space: nowrap;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--surface);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
}
.sizechip.on {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: var(--primary-tint);
}

/* Desktop layout styles (D1, D2) */
.din {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}
.dgrid6 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .dgrid6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .dgrid6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (min-width: 1280px) {
  .dgrid6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }
}
.drow3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dco {
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  gap: 24px;
  align-items: start;
}
.dco .side {
  position: sticky;
  top: 24px;
}

@media (max-width: 1023px) {
  .dco {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =====================================================================
   SUPPRESS DEFAULT WOOCOMMERCE/ASTRA JUNK (Rule 7)
   ===================================================================== */
.ast-breadcrumbs-wrapper,
.woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-pagination,
.entry-meta,
.posted-on,
.byline,
.woocommerce-Tabs-panel--reviews,
#tab-title-reviews,
.woocommerce-product-rating,
.single-product .product_meta .posted_in,
.onsale,
.woocommerce-error .button,
.woocommerce-info .button,
.woocommerce-message .button,
.shop_table.cart .actions .coupon,
.shop_table.cart .actions [name="update_cart"],
.woocommerce-checkout-review-order-table thead,
.woocommerce-privacy-policy-text {
  display: none !important;
}

/* Reset Astra container widths */
.ast-container, #content, .site-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
#primary, #main {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   FIX 6: FORCE SENTENCE CASE EVERYWHERE (OVERRIDE ASTRA UPPERCASE STYLES)
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.woocommerce-products-header__title,
.topbar h1,
.sh h2,
.nslot b,
.nslot small,
.loc,
.loc span,
.loc em,
.slotpill,
.dacct,
.dcart,
.cardh,
.card b,
.nm,
.price b,
.sizechip,
.chip,
.btn,
.add,
.step,
.bnav span,
.cartbar span {
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* Ensure proper brand wordmark preserves styling */
.logo .wm b {
  text-transform: uppercase !important;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   FIX 7: HIDE BOTTOM NAV AND STICKY CART BAR AT >= 1024px ON EVERY PAGE
   ========================================================================== */
@media (min-width: 1024px) {
  .bnav,
  .cartbar,
  #bg-cartbar,
  .bg-bottom-nav,
  .bg-sticky-cart-bar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* ==========================================================================
   FIX 1 & 4: SUPPRESS WOOCOMMERCE SALE PILLS, BREADCRUMBS, RED NOTICES
   ========================================================================== */
.woocommerce span.onsale,
.onsale,
.ast-onsale-card {
  display: none !important;
}

.woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering {
  display: none !important;
}

/* ==========================================================================
   MOBILE-FIRST TOUCH INTERACTION & ACCESSIBILITY (WCAG 2.5.5 / 2.5.8)
   ========================================================================== */
.card .bot .add,
.pc .pr .add,
.add {
  min-height: 40px !important;
  min-width: 68px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  touch-action: manipulation;
}

.card .bot .add::after,
.pc .pr .add::after,
.add::after {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -4px;
  right: -4px;
}

.step {
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.step button,
.btn-step-plus,
.btn-step-minus {
  min-width: 38px !important;
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  touch-action: manipulation;
}

.step button::after,
.btn-step-plus::after,
.btn-step-minus::after {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -4px;
  right: -4px;
}

.sizechip {
  min-height: 40px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  touch-action: manipulation;
}

.sizechip::after {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -4px;
  right: -4px;
}

.woocommerce-form-login .show-password-input,
.woocommerce-form-register .show-password-input,
.show-password-input {
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  touch-action: manipulation;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.iconbtn {
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  touch-action: manipulation;
}

form.search input[type="search"] {
  min-height: 44px !important;
  font-size: 15px !important;
}

.loc {
  min-height: 40px !important;
  touch-action: manipulation;
}

.bnav a {
  min-height: 48px !important;
  min-width: 48px !important;
  touch-action: manipulation;
}

/* ==========================================================================
   FIX 2026-11: LAYOUT + STEPPER REPAIRS
   ========================================================================== */
/* Centre the home page content on desktop (was stuck to the left edge) */
#primary, #main {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Price row: keep the quantity stepper inside narrow product cards */
.pc .pr,
.card .bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.pc .pr .val,
.card .bot .val { min-width: 0; }
.pc .pr .step,
.card .bot .step {
  flex: 0 1 auto;
  max-width: 100%;
  overflow: hidden;
}
.pc .pr .step button,
.card .bot .step button {
  min-width: 30px !important;
  width: 30px !important;
  padding: 0 !important;
}
.pc .pr .step span,
.card .bot .step span { min-width: 18px; }

/* Toast: keep "Added …  View cart" on one tidy line */
.toast {
  width: max-content;
  max-width: calc(100vw - 32px);
}
.toast a { flex-shrink: 0; }

/* ==========================================================================
   2026-11 REBUILD: shared storefront components (bg-store.js)
   ========================================================================== */
/* Toast — one element, slides in, never stacks */
#bg-toast.toast {
  left: 50%; right: auto; transform: translate(-50%, 20px);
  width: max-content; max-width: calc(100vw - 32px);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
#bg-toast.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (min-width: 1024px) { #bg-toast.toast { bottom: 28px; } }

/* Badges hidden at zero */
.count[hidden] { display: none !important; }

/* Product card details */
.pc .img .img-link { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; text-decoration: none; }
.pc .nm a { color: inherit; text-decoration: none; }
.pc .nm a:hover { color: var(--primary); }
.pc.oos .img { opacity: .55; }
.oos-tag { font-size: 12px; font-weight: 700; color: var(--disabled-ink); background: var(--disabled-bg); border-radius: var(--r-btn); padding: 6px 8px; white-space: nowrap; }
.oos-tag.big { display: inline-flex; padding: 12px 18px; font-size: 14px; }
.pc-scroll { min-width: 148px; max-width: 148px; flex-shrink: 0; scroll-snap-align: start; }

/* Product page add-to-cart / stepper */
.pdp-ctl .btn.bg-pdp-add {
  width: 100%; max-width: 280px; height: 48px; border: none; border-radius: 10px;
  background: var(--primary); color: #FFF; font-weight: 700; font-size: 16px; cursor: pointer;
}
.bg-pdp-sticky-bar .pdp-ctl { flex: 1; max-width: 240px; display: flex; justify-content: flex-end; }
.bg-pdp-sticky-bar .pdp-ctl .btn.bg-pdp-add { height: 46px; font-size: 15px; }
.step.step-lg { height: 48px !important; border-radius: 10px; }
.step.step-lg button { min-width: 48px !important; font-size: 20px; }
.step.step-lg span { min-width: 36px; font-size: 16px; }

/* Free-delivery progress states */
.bg-free-prog p.ok { color: var(--success); }
.bg-free-prog .bar i { transition: width .3s ease; }
.bg-free-prog .bar i.ok { background: var(--success); }

/* Listing pages (shop / category / search) */
.listing-top { display: flex; align-items: center; gap: 12px; height: auto; min-height: 56px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
.listing-top .iconbtn { border: none; background: none; display: flex; color: var(--ink); }
.listing-top h1 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-top small { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.listing-body { max-width: 1200px; margin: 0 auto; padding: 16px 16px 100px; }
.listing-body .grid2 { padding: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips .sizechip { text-decoration: none; flex-shrink: 0; }
.chips.center { justify-content: center; flex-wrap: wrap; overflow: visible; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 40px 16px; }
.empty-state .empty-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.empty-state h2 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.empty-state p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.empty-state .btn { display: inline-flex; margin-top: 12px; }
.empty-note { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--muted); }
.load-more-wrap { text-align: center; padding: 28px 0 16px; }
.btn-load-more { background: #FFF; color: var(--primary); border: 2px solid var(--primary); padding: 12px 36px; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; min-height: 48px; }
.btn-load-more:disabled { opacity: .6; cursor: progress; }

/* Live search suggestions */
form.search { position: relative; }
.bg-sugg {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1200;
  margin: 0; padding: 6px 0; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(34,26,22,.14); max-height: min(70vh, 460px); overflow-y: auto;
}
.hdr form.search .bg-sugg { left: 0; right: 0; }
.bg-sugg li a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--ink); text-decoration: none; font-size: 14px; min-height: 48px; }
.bg-sugg li.on a, .bg-sugg li a:hover { background: var(--primary-tint); }
.bg-sugg .th { width: 36px; height: 36px; border-radius: 8px; background: var(--primary-tint); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.bg-sugg .th img { width: 100%; height: 100%; object-fit: cover; }
form.search .bg-sugg svg { position: static; }
.bg-sugg .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bg-sugg b { font-weight: 700; }
.bg-sugg li.all a { color: var(--primary); font-weight: 600; justify-content: center; border-top: 1px solid var(--border); }
.bg-sugg li.none { padding: 14px 12px; color: var(--muted); font-size: 14px; }

/* Location picker opens as a centered dialog / bottom sheet */
#bg-location-modal { align-items: flex-end; justify-content: center; }
@media (min-width: 768px) { #bg-location-modal { align-items: center; } }
.loc { cursor: pointer; }

/* Keyboard focus is always visible */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, label:focus-within {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chip input.vh:disabled + * { cursor: not-allowed; }

/* ==========================================================================
   Store Information & Policy Pages (13 Core Pages)
   Terracotta Market Palette, Sentence-Case, Mobile-First
   ========================================================================== */

.bg-policy-layout-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 80px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink, #1F1612);
}

.bg-policy-breadcrumbs {
  font-size: 13px;
  color: var(--muted, #78716C);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.bg-policy-breadcrumbs a {
  color: var(--primary, var(--primary));
  text-decoration: none;
  font-weight: 500;
}
.bg-policy-breadcrumbs a:hover {
  text-decoration: underline;
}
.bg-crumb-sep {
  color: #D6D3D1;
}
.bg-crumb-current {
  color: var(--ink, #1F1612);
  font-weight: 600;
}

/* Mobile Quick Navigation Pills */
.bg-mobile-policy-pills {
  display: none;
  margin-bottom: 20px;
}
.bg-pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.bg-pills-scroll::-webkit-scrollbar {
  display: none;
}
.bg-policy-pill {
  white-space: nowrap;
  padding: 8px 16px;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #E7E5E4);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1F1612);
  text-decoration: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}
.bg-policy-pill.active {
  background: var(--primary, var(--primary));
  color: #FFFFFF;
  border-color: var(--primary, var(--primary));
}

/* Grid Layout */
.bg-policy-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* Desktop Sidebar */
.bg-policy-sidebar {
  position: sticky;
  top: 80px;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #E7E5E4);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.bg-sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #1F1612);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border, #E7E5E4);
  text-transform: none;
}
.bg-sidebar-group {
  margin-bottom: 16px;
}
.bg-group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--muted, #78716C);
  margin: 0 0 6px 4px;
  display: block;
}
.bg-sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bg-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13.5px;
  color: #44403C;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.bg-sidebar-link:hover {
  background: #FFF7ED;
  color: var(--primary, var(--primary));
}
.bg-sidebar-link.is-active {
  background: #FFF2E6;
  color: var(--primary, var(--primary));
  font-weight: 700;
}
.bg-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary, var(--primary));
}
.bg-sidebar-help-card {
  margin-top: 20px;
  padding: 14px;
  background: var(--bg, #FFFBF7);
  border: 1px solid var(--border, #E7E5E4);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #57534E;
}
.bg-sidebar-help-card strong {
  color: var(--ink, #1F1612);
  display: block;
  margin: 4px 0 2px;
}
.bg-sidebar-wa-btn {
  display: block;
  margin-top: 10px;
  background: #25D366;
  color: #FFFFFF !important;
  font-weight: 600;
  text-align: center;
  padding: 9px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  touch-action: manipulation;
}

/* Main Article Card */
.bg-policy-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #E7E5E4);
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.bg-article-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #F0EEEE;
}
.bg-article-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary, var(--primary));
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.bg-article-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink, #1F1612);
  margin: 0 0 10px;
  line-height: 1.25;
  text-transform: none !important;
}
.bg-article-lead {
  font-size: 15px;
  color: #57534E;
  line-height: 1.6;
  margin: 0;
}

/* Content Elements */
.bg-badge-pill {
  display: inline-block;
  background: #FFF2E6;
  color: var(--primary, var(--primary));
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.bg-policy-hero {
  margin-bottom: 24px;
}
.bg-policy-hero h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink, #1F1612);
  margin: 0 0 6px;
  text-transform: none;
}
.bg-hero-sub {
  font-size: 14.5px;
  color: #57534E;
  margin: 0;
  line-height: 1.6;
}

/* Feature & Contact Grids */
.bg-feature-grid,
.bg-contact-grid,
.bg-payment-methods-grid,
.bg-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.bg-feature-card,
.bg-contact-card,
.bg-pay-card,
.bg-area-card {
  background: var(--bg, #FFFBF7);
  border: 1px solid #F0EEEE;
  border-radius: 10px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  display: block;
}
.bg-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.15s ease;
}
.bg-contact-card:hover {
  background: #FFF2E6;
  border-color: var(--primary, var(--primary));
}
.bg-contact-icon, .bg-card-icon, .bg-pay-icon {
  font-size: 26px;
  line-height: 1;
}
.bg-contact-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bg-contact-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary, var(--primary));
  text-transform: uppercase;
}
.bg-contact-meta strong {
  font-size: 15px;
  color: var(--ink, #1F1612);
}
.bg-contact-meta span {
  font-size: 13.5px;
  color: #44403C;
}
.bg-contact-meta small {
  font-size: 11.5px;
  color: var(--muted, #78716C);
}

.bg-feature-card h3,
.bg-pay-card h3,
.bg-area-header h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink, #1F1612);
  margin: 10px 0 6px;
  text-transform: none;
}
.bg-feature-card p,
.bg-pay-card p,
.bg-area-desc {
  font-size: 13px;
  color: #57534E;
  margin: 0;
  line-height: 1.5;
}

/* Area Card specifics */
.bg-area-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bg-pin-badge {
  background: var(--primary, var(--primary));
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.bg-locality-list {
  padding-left: 18px;
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #44403C;
  line-height: 1.8;
}

/* Highlights & Owner Protection Callouts */
.bg-highlight-box {
  background: #FFF8F0;
  border-left: 4px solid var(--primary, var(--primary));
  padding: 18px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}
.bg-highlight-box.bg-owner-favor {
  background: #FEF7EE;
  border-left: 4px solid #D97706;
}
.bg-highlight-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1F1612);
  margin: 0 0 8px;
  text-transform: none;
}
.bg-highlight-box p {
  font-size: 13.5px;
  color: #44403C;
  margin: 0 0 8px;
  line-height: 1.6;
}
.bg-highlight-box p:last-child {
  margin-bottom: 0;
}

.bg-policy-section {
  margin: 28px 0;
}
.bg-policy-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink, #1F1612);
  margin: 0 0 12px;
  text-transform: none;
}
.bg-policy-section p {
  font-size: 14px;
  color: #44403C;
  line-height: 1.65;
  margin: 0 0 12px;
}

.bg-styled-list {
  padding-left: 20px;
  margin: 12px 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: #44403C;
}

/* FAQ Accordion */
.bg-faq-group {
  margin-bottom: 24px;
}
.bg-faq-group-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #1F1612);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border, #E7E5E4);
  text-transform: none;
}
.bg-faq-item {
  background: var(--bg, #FFFBF7);
  border: 1px solid var(--border, #E7E5E4);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 14px 18px;
  transition: all 0.15s ease;
}
.bg-faq-item[open] {
  background: #FFFFFF;
  border-color: var(--primary, var(--primary));
  box-shadow: 0 1px 4px rgba(184, 93, 25, 0.08);
}
.bg-faq-item summary {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink, #1F1612);
  cursor: pointer;
  outline: none;
}
.bg-faq-answer {
  padding-top: 12px;
  font-size: 13.5px;
  color: #44403C;
  line-height: 1.65;
  border-top: 1px solid #F5F2EF;
  margin-top: 10px;
}
.bg-faq-answer p {
  margin: 0 0 8px;
}
.bg-faq-answer p:last-child {
  margin-bottom: 0;
}

/* Data Tables */
.bg-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 8px;
  border: 1px solid var(--border, #E7E5E4);
}
.bg-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.bg-data-table th {
  background: #F5F5F4;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--ink, #1F1612);
  border-bottom: 1px solid var(--border, #E7E5E4);
}
.bg-data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #F0EEEE;
  color: #44403C;
}
.bg-data-table tr:last-child td {
  border-bottom: none;
}
.bg-status-open {
  background: #DCFCE7;
  color: #166534;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Process Steps */
.bg-process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.bg-step-item {
  background: var(--bg, #FFFBF7);
  border: 1px solid #F0EEEE;
  border-radius: 8px;
  padding: 16px;
  position: relative;
}
.bg-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary, var(--primary));
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.bg-step-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #1F1612);
  margin: 0 0 6px;
  text-transform: none;
}
.bg-step-item p {
  font-size: 12.5px;
  color: #57534E;
  margin: 0;
  line-height: 1.45;
}

/* Footer Banner */
.bg-policy-contact-footer {
  margin-top: 36px;
  padding: 20px;
  background: #FFF8F0;
  border: 1px dashed #E7C7AE;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.bg-pcf-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1F1612);
  margin: 0 0 4px;
  text-transform: none;
}
.bg-pcf-text p {
  font-size: 13px;
  color: #57534E;
  margin: 0;
}
.bg-pcf-actions {
  display: flex;
  gap: 10px;
}
.bg-btn-wa {
  background: #25D366;
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  touch-action: manipulation;
}
.bg-btn-outline {
  background: transparent;
  color: var(--primary, var(--primary)) !important;
  border: 1px solid var(--primary, var(--primary));
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  touch-action: manipulation;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .bg-policy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bg-policy-sidebar {
    display: none;
  }
  .bg-mobile-policy-pills {
    display: block;
  }
  .bg-policy-card {
    padding: 24px 16px;
  }
  .bg-article-title {
    font-size: 22px;
  }
}

/* ---------- SEO blocks: home intro, local info, breadcrumbs, category about ---------- */
.bg-home-intro { padding: 14px 0 2px; }
.bg-home-intro h1 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: var(--ink); text-transform: none; }
.bg-home-intro p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
@media (min-width: 1024px) {
  .bg-home-intro { padding-top: 22px; }
  .bg-home-intro h1 { font-size: 26px; }
  .bg-home-intro p { font-size: 14.5px; }
  .bg-home-intro + .mobile-only + .desktop-only { padding-top: 14px !important; }
}
.bg-local, .bg-cat-about { margin-top: 28px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.bg-local h2, .bg-cat-about h2 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--ink); text-transform: none; }
.bg-local p, .bg-cat-about p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.bg-local p b { color: var(--ink); }
.bg-local-links { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bg-local-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--primary-tint); color: var(--primary); font-size: 13px; font-weight: 600; text-decoration: none; }
.bg-local-links a:hover { text-decoration: underline; }
.bg-crumbs { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.bg-crumbs p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-crumbs a { color: var(--muted); text-decoration: none; font-weight: 500; }
.bg-crumbs a:hover { color: var(--primary); text-decoration: underline; }
.bg-crumbs .separator { margin: 0 5px; color: #B9AEA6; }
.bg-crumbs .last { color: var(--ink); font-weight: 600; }
.listing-body > .bg-crumbs { margin: 2px 0 10px; }
@media (max-width: 1023px) { .bg-home-intro { padding-left: 16px; padding-right: 16px; } .bg-home-intro h1 { font-size: 18px; } }

/* ---------- Narrow-screen overflow guards (found at 320px / 768px) ---------- */
.bg-cart-wrapper > *, .bg-cart-wrapper .prog, .bg-free-prog, .bg-free-prog p { min-width: 0; max-width: 100%; box-sizing: border-box; }
.bg-free-prog p { overflow-wrap: anywhere; }
.bg-policy-grid > *, .bg-policy-main-content, .bg-policy-card, .bg-contact-card, .bg-contact-meta { min-width: 0; }
.bg-article-body, .bg-contact-meta, .bg-contact-meta strong, .bg-pcf-text, .bg-policy-contact-footer { overflow-wrap: anywhere; }
/* ---------- WCAG: links inside text are underlined (not colour-only) ---------- */
.bg-article-body p a, .bg-article-body li a, .bg-article-body td a, aside p a, .bg-local p a, .bg-cat-about p a, .woocommerce-checkout p a { text-decoration: underline; text-underline-offset: 2px; }
/* ---------- WCAG: WhatsApp buttons — white on #25D366 was ~2:1; #0E7A3E gives ~5.4:1 ---------- */
.bg-btn-wa, .bg-sidebar-wa-btn { background: #0E7A3E !important; }
.bg-btn-wa:hover, .bg-sidebar-wa-btn:hover { background: #0B6332 !important; }
.bg-cart-wrapper .pad { grid-template-columns: minmax(0, 1fr); } .bg-cart-wrapper .pad > * { min-width: 0; }
.bg-search-hint { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--primary-tint); color: var(--ink); font-size: 13.5px; }
