/* M & M Meats (Beef & Lamb) - Heritage Label & Butcher Storefront */
:root {
  --bg: #f6f2ea;
  --surface: #ffffff;
  --surface-alt: #fbf8f1;
  --ink: #181614;
  --muted: #584f44;
  --border: #d4cbb8;
  --border-strong: #9c8f79;
  --green: #1f4b26;
  --green-hover: #16371c;
  --green-soft: #eaf2eb;
  --red: #7a1c20;
  --red-soft: #fdf2f2;
  --amber: #854d0e;
  --amber-soft: #fef9c3;
  --shadow-sm: 0 2px 8px rgba(24, 22, 20, 0.06);
  --shadow-md: 0 10px 26px rgba(24, 22, 20, 0.10);
  --shadow-lg: 0 18px 42px rgba(24, 22, 20, 0.22);
  --radius: 10px;
  --font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

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

/* Sticky Header */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #141311;
  color: #ffffff;
  border-bottom: 2px solid #2e2923;
}
.top-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.top-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.top-brand-badge {
  border: 1.5px solid #ffffff;
  outline: 2px solid #141311;
  background: #141311;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.top-brand-text { display: flex; flex-direction: column; }
.top-brand-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
}
.top-brand-sub {
  font-size: 0.78rem;
  color: #ddd4c3;
  font-weight: 600;
}
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1.5px solid #8a7f6c;
  background: #23201b;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  min-height: 46px;
}
.phone-pill:hover { background: #312c25; border-color: #d4cbb8; }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1.5px solid #ffffff;
  background: var(--green);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  min-height: 46px;
}
.cart-btn:hover { background: var(--green-hover); }
.cart-count {
  background: #ffffff;
  color: var(--ink);
  border-radius: 999px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 800;
}

.notice-bar {
  background: #fcf4d9;
  color: #181614;
  border-bottom: 1.5px solid #d4cbb8;
  text-align: center;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Pasture Hero with Real Photograph + Label Plaque */
.label-hero {
  position: relative;
  background-color: #24331d;
  background-image:
    linear-gradient(100deg, rgba(17, 16, 14, 0.85) 0%, rgba(17, 16, 14, 0.56) 48%, rgba(17, 16, 14, 0.34) 100%),
    url('/static/images/pasture_hero.webp');
  background-size: cover;
  background-position: center 42%;
  border-bottom: 2px solid #141311;
  padding: 46px 0 48px;
}
.hero-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 32px;
  align-items: center;
}

.hero-label-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.ranch-plaque {
  background: #12110f;
  color: #ffffff;
  padding: 8px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  max-width: 470px;
  width: 100%;
}
.ranch-plaque-inner {
  border: 2px solid #ffffff;
  border-radius: 6px;
  padding: 20px 26px 18px;
  text-align: center;
}
.ranch-plaque-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: #ffffff;
}
.ranch-plaque-rule {
  width: 72%;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.65);
  margin: 10px auto 9px;
}
.ranch-plaque-sub {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #f3ecde;
}

.owner-caption {
  background: rgba(20, 19, 17, 0.90);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 12px 18px;
  max-width: 470px;
  width: 100%;
  font-size: 0.94rem;
  line-height: 1.45;
  box-shadow: var(--shadow-md);
}
.owner-caption strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
}
.owner-caption .owner-meta {
  color: #e6dfd1;
  font-weight: 600;
}
.owner-caption .owner-usda {
  display: block;
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  color: #d4cbb8;
  font-weight: 600;
}

.help-card {
  background: #faf7f0;
  border: 1.5px solid #d4cbb8;
  border-radius: 12px;
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-lg);
}
.help-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.3vw, 1.72rem);
  font-weight: 700;
  line-height: 1.24;
  color: var(--ink);
  margin-bottom: 6px;
}
.help-lead {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.help-steps {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.help-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.help-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary, .btn-green { background: var(--green); color: #ffffff; border-color: var(--green); }
.btn-primary:hover, .btn-green:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn-dark { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.btn-dark:hover { background: #2c2824; }
.btn-outline { background: #ffffff; color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { background: #f2ece0; border-color: var(--ink); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* At-a-Glance Pickup & Delivery Bar */
.info-strip {
  background: #efe9dc;
  border-bottom: 1.5px solid var(--border);
  padding: 20px 0;
}
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.info-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 15px 17px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.info-card h2 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 3px;
}
.info-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.42;
}
.info-card a { color: var(--green); font-weight: 800; }

/* Shop Section */
.shop-section { padding: 36px 0 64px; }
.shop-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.shop-heading-row h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--ink);
}
.shop-subnote {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tab {
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.93rem;
}
.filter-tab:hover { background: #f2ece0; border-color: var(--ink); }
.filter-tab.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
  min-width: 260px;
}
.search-wrap { position: relative; min-width: 220px; flex: 1; max-width: 340px; }
.search-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 9px 68px 9px 40px;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}
.search-wrap input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.search-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.clear-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #efe9dc;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 8px;
}
.clear-search-btn:hover { background: #e3dac7; }

.sort-select {
  min-height: 44px;
  padding: 9px 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 700;
}
.sort-select:focus { outline: 2px solid var(--green); outline-offset: 1px; }

/* Product Grid & Photo Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e7dfd0;
  border-bottom: 1.5px solid var(--border);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(20, 18, 15, 0.24) 0%, transparent 32%, transparent 68%, rgba(20, 18, 15, 0.26) 100%);
  pointer-events: none;
}
.product-media-fallback {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  background: linear-gradient(135deg, #efe8da, #dfd5c2);
  color: var(--ink);
}
.media-cut-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.04em; }
.media-cut-sub { font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-top: 4px; }

.cat-pill {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(24, 22, 20, 0.90);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}
.cat-pill.cat-beef { background: var(--red); }
.cat-pill.cat-lamb { background: var(--green); }
.cat-pill.cat-bundle { background: #181614; }

.badge-pill {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 5px;
  background: #faf6eb;
  color: var(--ink);
  border: 1px solid #d4cbb8;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.in-cart-pill {
  position: absolute;
  bottom: 10px;
  left: 11px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 999px;
  background: #14532d;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.product-body {
  padding: 18px 18px 19px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 4px;
}
.product-weight {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 9px;
}
.product-desc {
  font-size: 0.91rem;
  color: #3a342c;
  margin-bottom: 15px;
  flex: 1;
  line-height: 1.48;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 13px;
  padding-top: 10px;
  border-top: 1px solid #ebe4d5;
  gap: 8px;
}
.product-price {
  font-size: 1.48rem;
  font-weight: 800;
  color: var(--ink);
}
.stock-note {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--green);
}
.stock-note.low { color: var(--amber); }
.stock-note.out { color: var(--red); }

.add-controls { display: flex; gap: 9px; align-items: stretch; }
.card-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  background: #faf7f0;
  overflow: hidden;
  flex-shrink: 0;
}
.card-stepper button {
  width: 40px;
  height: 46px;
  border: none;
  background: #faf7f0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}
.card-stepper button:hover { background: #eae2d2; }
.card-stepper span {
  min-width: 30px;
  text-align: center;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--ink);
}
.btn-add {
  flex: 1;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--green);
  background: var(--green);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.94rem;
  transition: background-color 0.15s ease;
}
.btn-add:hover:not(:disabled) { background: var(--green-hover); border-color: var(--green-hover); }
.btn-add.added { background: #14532d; border-color: #14532d; }
.btn-add:disabled {
  background: #d6d0c4;
  border-color: #b7afa0;
  color: #554e43;
  cursor: not-allowed;
}

/* USDA & Safe Handling Label Section */
.label-footer-section {
  background: #ece5d6;
  border-top: 1.5px solid var(--border);
  padding: 40px 0 48px;
}
.label-sheet {
  background: #ffffff;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.label-sheet-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  padding: 26px;
  align-items: start;
}
.safe-box {
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 18px 20px;
  background: #ffffff;
}
.safe-box h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 13px;
}
.safe-list { list-style: none; display: grid; gap: 11px; }
.safe-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.44;
  color: #2c2823;
}
.safe-list svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--ink); }

.usda-panel { display: flex; flex-direction: column; gap: 16px; }
.usda-row { display: flex; align-items: center; gap: 16px; }
.usda-seal { width: 88px; height: 88px; flex-shrink: 0; }
.contact-box {
  background: #faf7f0;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 15px 17px;
  font-size: 0.93rem;
  line-height: 1.52;
}
.contact-box a { color: var(--green); }
.keep-frozen-bar {
  background: #141311;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.14em;
  padding: 11px 16px;
}

/* Site Footer */
.site-footer {
  background: #141311;
  color: #e2dac9;
  padding: 24px 0 92px;
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #ffffff; font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Sticky Bottom Order Bar */
.sticky-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: #141311;
  color: #ffffff;
  border-top: 2px solid #2e2923;
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.28);
  padding: 10px 20px;
  display: none;
}
.sticky-cart-bar.show { display: block; }
.sticky-cart-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sticky-cart-summary { font-size: 1.02rem; font-weight: 800; }
.sticky-cart-btns { display: flex; gap: 10px; align-items: center; }

/* Slide-over Cart Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 14, 0.58);
  z-index: 80;
  display: none;
}
.drawer-backdrop.open { display: block; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100vw);
  background: #ffffff;
  border-left: 2px solid var(--border-strong);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 17px 20px;
  border-bottom: 1.5px solid var(--border);
  background: #faf7f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.drawer-head h2 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
}
.drawer-head-actions { display: flex; align-items: center; gap: 8px; }
.close-btn {
  min-width: 40px;
  min-height: 40px;
  padding: 6px 13px;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}
.close-btn:hover { background: #f2ece0; border-color: var(--ink); }
.clear-cart-link {
  border: none;
  background: transparent;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: underline;
  padding: 6px 8px;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.cart-empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #e6dfd1;
}
.cart-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #e7dfd0;
}
.cart-item-title { font-weight: 800; font-size: 0.98rem; line-height: 1.3; margin-bottom: 2px; }
.cart-item-meta { font-size: 0.83rem; color: var(--muted); font-weight: 600; margin-bottom: 9px; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  background: #faf7f0;
}
.qty-stepper button {
  width: 38px;
  height: 36px;
  border: none;
  background: #faf7f0;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.qty-stepper button:hover { background: #e8e0cf; }
.qty-stepper span { min-width: 34px; text-align: center; font-weight: 800; font-size: 0.95rem; }
.remove-link {
  background: none;
  border: none;
  color: var(--red);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: underline;
  margin-top: 6px;
}
.drawer-foot {
  padding: 17px 20px 20px;
  border-top: 1.5px solid var(--border);
  background: #faf7f0;
}
.summary-row { display: flex; justify-content: space-between; font-size: 0.96rem; margin-bottom: 7px; font-weight: 600; }
.summary-row.total {
  font-size: 1.18rem;
  font-weight: 800;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1.5px solid var(--border-strong);
  margin-bottom: 14px;
}

/* Checkout Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 14, 0.66);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: #ffffff;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  width: min(690px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #faf7f0;
  border-bottom: 1.5px solid var(--border);
  padding: 15px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.modal-head h2 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
}
.modal-body { padding: 20px 22px 24px; }

.step-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.step-pill {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #faf7f0;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  color: var(--muted);
}
.step-pill.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.order-summary-pill {
  background: #faf7f0;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.fulfillment-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.fulfillment-opt {
  padding: 12px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  text-align: left;
  min-height: 60px;
}
.fulfillment-opt strong { display: block; font-size: 0.96rem; color: var(--ink); }
.fulfillment-opt span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.fulfillment-opt.active {
  background: var(--green-soft);
  border: 2px solid var(--green);
}
.fulfillment-opt.active strong { color: var(--green); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.89rem; font-weight: 800; color: var(--ink); }
.form-field input, .form-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.96rem;
  background: #ffffff;
  color: var(--ink);
}
.form-field input:focus, .form-field select:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.payment-box {
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  padding: 16px;
  background: #ffffff;
  margin-bottom: 14px;
}
.secure-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 12px;
}
.secure-caption svg { width: 18px; height: 18px; }

.alert { padding: 12px 14px; border-radius: 8px; font-weight: 700; font-size: 0.92rem; margin-bottom: 14px; }
.alert-err { background: var(--red-soft); color: var(--red); border: 1.5px solid #e5b4b6; }

.toast {
  position: fixed;
  bottom: 78px;
  right: 20px;
  background: var(--ink);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 9px;
  border: 1.5px solid #595043;
  font-weight: 700;
  font-size: 0.93rem;
  box-shadow: var(--shadow-md);
  z-index: 120;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.receipt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 1000px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .label-sheet-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  html { font-size: 17px; }
  .top-brand-badge { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .form-grid, .fulfillment-toggle, .receipt-actions { grid-template-columns: 1fr; }
  .sticky-cart-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .sticky-cart-btns { justify-content: center; }
  .toolbar-right { min-width: 100%; }
  .search-wrap { max-width: none; }
}

.print-receipt-head { display: none; }

@media print {
  body > *:not(#checkoutModal) { display: none !important; }
  #checkoutModal {
    position: static !important;
    background: #ffffff !important;
    padding: 0 !important;
    display: block !important;
  }
  .modal-box {
    border: none !important;
    box-shadow: none !important;
    max-height: none !important;
    width: 100% !important;
  }
  .modal-head, .step-pills, .receipt-actions { display: none !important; }
  .print-receipt-head {
    display: block !important;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #181614;
  }
}
