/* Carney's Feed Store — mobile-first, system fonts, high contrast */
:root {
  --cream: #f7f2e8;
  --cream-dark: #ebe4d6;
  --forest: #1e4d2b;
  --forest-light: #2d6a3e;
  --barn: #8b2e2e;
  --barn-dark: #6e2424;
  --ink: #1a1a1a;
  --muted: #4a4a4a;
  --white: #ffffff;
  --tap: 48px;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  --max: 1100px;
  --bottom-nav: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  padding-bottom: calc(var(--bottom-nav) + 16px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--forest); }
a:hover, a:focus { color: var(--barn); }

:focus-visible {
  outline: 3px solid var(--forest-light);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  background: var(--forest);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  min-height: var(--tap);
}
.logo-link img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: var(--white);
  border-radius: 6px;
  padding: 2px;
}
.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.9;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-header-call {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 16px;
  background: var(--barn);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
}
.btn-header-call:hover, .btn-header-call:focus {
  background: var(--barn-dark);
  color: var(--white);
}

.nav-toggle {
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--forest-light);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  cursor: pointer;
}

.site-nav {
  width: 100%;
  display: none;
  background: var(--forest-light);
  border-radius: var(--radius);
  margin-top: 4px;
}
.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.site-nav a {
  display: block;
  padding: 14px 16px;
  min-height: var(--tap);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}
.site-nav a:hover, .site-nav a:focus,
.site-nav a[aria-current="page"] {
  background: rgba(0,0,0,0.15);
}

.full-range-wrap {
  position: relative;
  width: 100%;
  padding: 8px 0 4px;
}

.btn-full-range {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: var(--tap);
  padding: 12px 16px;
  background: var(--barn);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn-full-range:hover, .btn-full-range:focus {
  background: var(--barn-dark);
  color: var(--white);
}

.tooltip {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--ink);
  color: var(--white);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.45;
  z-index: 110;
  box-shadow: var(--shadow);
}
.tooltip.is-visible { display: block; }

/* Main */
main { max-width: var(--max); margin: 0 auto; }

.hero {
  position: relative;
  background: var(--forest);
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 960 / 365;
  opacity: 0.92;
}
.hero-content {
  padding: 20px 16px 28px;
  color: var(--white);
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.2;
}
.hero p {
  margin: 0 0 20px;
  font-size: 1.05rem;
  max-width: 42ch;
}

.section {
  padding: 28px 16px;
}
.section-alt { background: var(--cream-dark); }
.section-forest {
  background: var(--forest);
  color: var(--white);
}
.section-forest a { color: #c9e8d0; }

.container { max-width: var(--max); margin: 0 auto; }

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  color: var(--forest);
  line-height: 1.25;
}
.section-forest h2 { color: var(--white); }

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--barn);
}
.section-forest .eyebrow { color: #c9e8d0; }

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 55ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 12px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--barn);
  color: var(--white);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--barn-dark);
  color: var(--white);
}
.btn-secondary {
  background: var(--white);
  color: var(--forest);
  border-color: var(--forest);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--cream-dark);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cards & grids */
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 800px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 16px; }
.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--forest);
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.product-grid .card { text-align: center; }
.product-grid .card-img-placeholder {
  aspect-ratio: 1;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 16px;
}

.shop-pilot-images {
  margin: -8px 0 20px;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}
.shop-card-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: var(--cream-dark);
}
.shop-card-img-out {
  filter: grayscale(0.85);
  opacity: 0.72;
}

/* Shop placeholder */
.shop-notice {
  background: var(--white);
  border: 2px dashed var(--forest-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.shop-notice strong { color: var(--forest); display: block; margin-bottom: 8px; font-size: 1.1rem; }

/* About */
.two-col {
  display: grid;
  gap: 24px;
}
@media (min-width: 700px) {
  .two-col { grid-template-columns: 1fr 1fr; align-items: start; }
}

.bullet-list {
  margin: 16px 0 0;
  padding-left: 1.2rem;
}
.bullet-list li { margin-bottom: 10px; }

.review {
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  border-left: 4px solid var(--barn);
  margin-bottom: 16px;
}
.review cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
  color: var(--forest);
}

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.2s;
}
.gallery-grid a:hover img { transform: scale(1.03); }

/* Contact */
.location-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tab-btn {
  flex: 1;
  min-width: 140px;
  min-height: var(--tap);
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--white);
  color: var(--forest);
  border: 2px solid var(--forest);
  border-radius: var(--radius);
  cursor: pointer;
}
.tab-btn[aria-selected="true"] {
  background: var(--forest);
  color: var(--white);
}

.location-panel { display: none; }
.location-panel.is-active { display: block; }

.location-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.location-card h3 { margin: 0 0 12px; color: var(--forest); font-size: 1.25rem; }
.location-card p { margin: 0 0 10px; }
.location-card a.phone-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--barn);
  text-decoration: none;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.95rem;
}
.hours-table th, .hours-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--cream-dark);
}
.hours-table th { color: var(--forest); font-weight: 700; }

.map-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-top: 12px;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--forest);
  color: var(--white);
  padding: 28px 16px calc(var(--bottom-nav) + 28px);
  margin-top: 20px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.site-footer h2 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.footer-locations {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
@media (min-width: 600px) {
  .footer-locations { grid-template-columns: 1fr 1fr; }
}
.footer-loc p { margin: 0 0 6px; }
.footer-loc a { color: #c9e8d0; font-weight: 600; }
.footer-meta {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  opacity: 0.9;
}
.footer-social { display: flex; gap: 16px; margin-top: 12px; }
.footer-social a {
  color: var(--white);
  font-weight: 600;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

/* Mobile bottom bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  background: var(--white);
  border-top: 2px solid var(--forest);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  height: var(--bottom-nav);
}
.mobile-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.8rem;
  min-height: var(--tap);
}
.mobile-bar a:hover, .mobile-bar a:focus { background: var(--cream); color: var(--barn); }
.mobile-bar svg { width: 22px; height: 22px; fill: currentColor; }

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .site-footer { padding-bottom: 28px; }
  .btn-header-call { display: inline-flex; }
  .site-nav {
    display: block !important;
    width: auto;
    background: transparent;
    margin-top: 0;
  }
  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    gap: 4px;
  }
  .site-nav a { padding: 10px 12px; border-radius: var(--radius); }
  .nav-toggle { display: none; }
  .full-range-wrap { width: auto; padding: 0; }
  .btn-full-range { width: auto; white-space: nowrap; }
  .header-inner { flex-wrap: nowrap; }
}

/* Stock update banner */
.stock-banner {
  background: #e8f4ec;
  color: var(--forest);
  text-align: center;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 2px solid var(--forest-light);
}

/* Shop product cards */
.shop-count {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}
.shop-product-grid .shop-card .card-body { text-align: left; }
.shop-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 6px;
}
.shop-stock {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 0.92rem;
}
.shop-stock.stock-ok { color: var(--forest); }
.shop-stock.stock-low { color: #b45309; }
.shop-stock.stock-out { color: var(--barn); }
.shop-barcode {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.shop-barcode span {
  font-weight: 700;
  color: var(--ink);
}
.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.95rem;
}

/* —— Modern shop browse —— */
.shop-page { padding-top: 28px; }
.shop-container { max-width: 1120px; }
.shop-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 18px;
}
.shop-page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
}
.shop-page-head .lead {
  margin: 0;
  max-width: 52ch;
}
.shop-page-aside {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.shop-notice-compact {
  margin-bottom: 18px;
  padding: 12px 14px;
}
.shop-notice-compact p { margin: 4px 0 0; font-size: 0.92rem; }

.shop-toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, var(--cream) 70%, rgba(244, 241, 234, 0.92));
  border: 1px solid rgba(45, 80, 22, 0.12);
  border-radius: 16px;
  padding: 14px 14px 12px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(20, 30, 18, 0.06);
  backdrop-filter: blur(8px);
}
.shop-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}
.shop-search-label {
  flex: 1 1 220px;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.shop-search-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  font-size: 1.15rem;
  pointer-events: none;
}
.shop-search-label input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 40px 10px 40px;
  border: 2px solid rgba(45, 80, 22, 0.18);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.shop-search-label input[type="search"]:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(47, 107, 58, 0.18);
}
.shop-search-clear {
  position: absolute;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  background: rgba(0,0,0,0.05);
}
.shop-search-btn {
  flex: 0 0 auto;
  min-height: 48px;
  padding-left: 20px;
  padding-right: 20px;
}
.shop-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 12px;
}
.shop-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-sort-wrap label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
.shop-sort-wrap select {
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(45, 80, 22, 0.2);
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.shop-stock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.shop-stock-toggle input { width: 18px; height: 18px; accent-color: var(--forest); }
.shop-result-count {
  margin: 0 0 0 auto;
  font-size: 0.9rem;
  color: var(--muted);
}
.shop-result-count strong { color: var(--forest); font-size: 1.05rem; }
.shop-reset {
  margin-left: 10px;
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
}
.shop-reset:hover { text-decoration: underline; }
.shop-reset[hidden] { display: none !important; }

.shop-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  max-height: 120px;
  overflow-y: auto;
}
.shop-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(45, 80, 22, 0.18);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
}
.shop-cat-chip span {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  background: rgba(45, 80, 22, 0.08);
  padding: 2px 7px;
  border-radius: 999px;
}
.shop-cat-chip:hover {
  border-color: rgba(47, 107, 58, 0.45);
  background: #f3f8f3;
}
.shop-cat-chip.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.shop-cat-chip.is-active span {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.shop-section {
  margin: 0 0 28px;
  scroll-margin-top: 120px;
}
.shop-section[hidden] { display: none !important; }
.shop-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(45, 80, 22, 0.12);
}
.shop-section-head h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--forest);
  letter-spacing: -0.01em;
}
.shop-section-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.12s, box-shadow 0.12s;
}
.shop-card[hidden],
.shop-card.is-filtered-out { display: none !important; }
.shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 30, 18, 0.1);
}
.shop-card-media {
  position: relative;
  background: #eef2ea;
}
.shop-card-media img,
.shop-card .shop-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.shop-card-img-out { opacity: 0.55; filter: grayscale(0.25); }
.shop-card-cat {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--forest);
  border: 1px solid rgba(45, 80, 22, 0.12);
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-card-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 8px;
  color: #fff;
}
.shop-card-badge-out { background: #9b2c2c; }
.shop-card-badge-low { background: #b45309; }
.shop-card h3 {
  font-size: 1.02rem;
  line-height: 1.3;
  margin: 0 0 8px;
  min-height: 2.6em;
}
.shop-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.shop-add-form { display: inline; }
.shop-card .btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 640px) {
  .shop-toolbar { top: 0; border-radius: 12px; }
  .shop-result-count { margin-left: 0; width: 100%; }
  .shop-page-aside { width: 100%; }
  .shop-page-aside .btn { flex: 1; text-align: center; }
  .shop-search-btn { width: 100%; }
}

/* Gallery buttons + lightbox */
.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  background: transparent;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.2s;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.03); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop[hidden] { display: none; }
.lightbox {
  position: relative;
  max-width: min(960px, 100%);
  max-height: 90vh;
}
.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  min-width: var(--tap);
  min-height: var(--tap);
  border: none;
  background: var(--white);
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
}

/* Staff manage area */
.manage-body {
  padding-bottom: 0;
  background: var(--cream-dark);
  scroll-behavior: smooth;
}
.manage-header {
  background: var(--forest);
  color: var(--white);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 150;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
/* When demo suite bar is sticky above, stack under it */
.demo-suite-bar + .manage-header {
  top: 0;
}
.manage-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}
.manage-wide .manage-header-inner,
.manage-container-wide {
  max-width: min(1200px, 100%);
}
.manage-header-brand-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.manage-header-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.manage-who-name {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  font-weight: 600;
}
.manage-brand {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.08rem;
}
.manage-brand:hover { text-decoration: underline; }
.manage-primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.manage-nav-link {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.84rem;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  white-space: nowrap;
}
.manage-nav-link:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
}
.manage-nav-link.is-active {
  background: #f0c14b;
  color: #1a1a1a;
  border-color: #f0c14b;
}
.manage-nav-signout {
  border-color: rgba(255,255,255,0.35);
  opacity: 0.95;
}
.manage-section-bar {
  background: #e8efe6;
  border-bottom: 1px solid #c5d4c0;
  padding: 10px 16px;
  position: sticky;
  top: 56px;
  z-index: 140;
}
.manage-section-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.manage-wide .manage-section-bar-inner {
  max-width: min(1200px, 100%);
}
.manage-back-home {
  display: inline-flex;
  align-items: center;
  font-weight: 750;
  font-size: 0.9rem;
  color: var(--forest);
  text-decoration: none;
  background: #fff;
  border: 1px solid #b7c9b4;
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.manage-back-home:hover {
  background: #f4faf3;
  border-color: var(--forest);
}
.manage-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
  min-width: 0;
}
.manage-crumbs a {
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
}
.manage-crumbs a:hover { text-decoration: underline; }
.manage-crumb-sep { opacity: 0.45; }
.manage-crumb-current { color: #1f2a1c; font-weight: 700; }
.manage-section-extra { margin-left: auto; }
.manage-main { padding: 20px 16px 28px; }
.manage-container {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.manage-container-wide {
  max-width: min(1200px, 100%);
}
.manage-footer {
  border-top: 1px solid #d5e0d2;
  background: #f3f6f1;
  padding: 14px 16px 28px;
  margin-top: 8px;
}
.manage-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  font-size: 0.9rem;
}
.manage-footer a {
  color: var(--forest);
  font-weight: 650;
  text-decoration: none;
}
.manage-footer a:hover { text-decoration: underline; }
.manage-footer-sep { color: #9aab96; }

/* Hub tile menus (owner / manager / staff home) */
.manage-card-hero {
  background: linear-gradient(165deg, #ffffff 0%, #f4faf5 100%);
  border-left: 5px solid var(--forest);
}
.manage-hub { display: grid; gap: 22px; }
.manage-hub-group-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c6b58;
}
.manage-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.manage-hub-grid-compact {
  margin-bottom: 4px;
}
.manage-hub-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #d5e0d2;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(26, 45, 28, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  min-height: 88px;
}
.manage-hub-tile:hover {
  border-color: #3d7a4a;
  box-shadow: 0 6px 18px rgba(26, 45, 28, 0.1);
  transform: translateY(-1px);
}
.manage-hub-icon {
  font-size: 1.45rem;
  line-height: 1;
  width: 2.2rem;
  text-align: center;
}
.manage-hub-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.manage-hub-label {
  font-weight: 750;
  font-size: 1.02rem;
  color: var(--forest);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.manage-hub-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  background: #0f766e;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0.02em;
}
.manage-hub-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
}
.manage-hub-arrow,
.manage-hub-ext {
  color: #7a8f76;
  font-weight: 700;
  font-size: 1.1rem;
}
.manage-work-section {
  scroll-margin-top: 120px;
}
.manage-work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.manage-work-head h2 { margin: 0; }
.manage-subh {
  margin: 18px 0 8px;
  font-size: 1rem;
  color: var(--forest);
}
@media (max-width: 640px) {
  .manage-nav-link { font-size: 0.78rem; padding: 6px 9px; }
  .manage-section-bar { top: 0; position: relative; }
  .manage-hub-grid { grid-template-columns: 1fr; }
}
.manage-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}
.manage-card h1,
.manage-card h2 {
  margin-top: 0;
  color: var(--forest);
}
.manage-lead { color: var(--muted); }
.manage-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.manage-form label {
  font-weight: 700;
  color: var(--forest);
}
.manage-form input[type="password"],
.manage-form input[type="text"],
.manage-form input[type="file"],
.manage-form select {
  min-height: var(--tap);
  padding: 10px 12px;
  font-size: 1rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--cream);
}
.manage-pin-input {
  font-family: ui-monospace, monospace;
  font-size: 1.5rem !important;
  letter-spacing: 0.35em;
  text-align: center;
  max-width: 8rem;
}
.manage-pin-display {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.manage-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.manage-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.manage-badge-owner {
  background: #f59e0b;
  color: #1a1a1a;
}
.manage-badge-manager {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.manage-badge-staff {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.manage-badge-store {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
  text-transform: none;
}
.manage-card-warning {
  border-color: #f59e0b;
  background: #fffbeb;
}
.manage-staff-links {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.manage-staff-links li {
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.manage-staff-links li:last-child { border-bottom: none; }
.manage-fieldset {
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0;
}
.manage-fieldset legend {
  font-weight: 700;
  color: var(--forest);
  padding: 0 6px;
}
.manage-perm-grid {
  display: grid;
  gap: 10px;
}
.manage-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}
.manage-checkbox input { margin-top: 3px; }
.manage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.manage-stat {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--cream-dark);
}
.manage-stat span {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.2;
}
.manage-alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-bottom: 16px;
}
.manage-alert-success {
  background: #e8f4ec;
  color: var(--forest);
  border: 1px solid var(--forest-light);
}
.manage-alert-error {
  background: #fde8e8;
  color: var(--barn-dark);
  border: 1px solid var(--barn);
}
.manage-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Preview banner */
.preview-banner {
  background: #f59e0b;
  color: #1a1a1a;
  text-align: center;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Cart & checkout */
.header-cart {
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.15);
  white-space: nowrap;
}
.header-cart:hover, .header-cart:focus { background: rgba(255,255,255,0.25); color: var(--white); }
.shop-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.shop-add-form { margin: 0; }
.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}
.shop-alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-weight: 600;
}
.shop-alert-success { background: #e8f4ec; color: var(--forest); border: 1px solid var(--forest-light); }
.shop-alert-error { background: #fde8e8; color: var(--barn-dark); border: 1px solid var(--barn); }
.checkout-container { max-width: 960px; }
.checkout-grid {
  display: grid;
  gap: 24px;
  margin-top: 20px;
}
@media (min-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr 280px; align-items: start; }
}
.checkout-summary, .checkout-form {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 20px;
}
.checkout-summary h3 { margin: 0 0 12px; color: var(--forest); }
.checkout-lines {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.checkout-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.95rem;
}
.checkout-total { font-size: 1.1rem; margin: 0 0 12px; }
.checkout-fieldset {
  border: none;
  margin: 0 0 16px;
  padding: 0;
}
.checkout-fieldset legend { font-weight: 700; margin-bottom: 8px; color: var(--forest); }
.checkout-radio { display: block; margin-bottom: 8px; cursor: pointer; }
.cart-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cart-table th, .cart-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--cream-dark);
}
.cart-table th { background: var(--cream-dark); color: var(--forest); font-size: 0.9rem; }
.cart-qty-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cart-qty-form input[type="number"] { width: 4rem; padding: 8px; }
.cart-subtotal { font-size: 1.15rem; margin-bottom: 16px; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.order-confirm-box { margin-bottom: 20px; }
.manage-table-wrap { overflow-x: auto; margin-top: 12px; }
.manage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.manage-table th, .manage-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--cream-dark);
  vertical-align: top;
  text-align: left;
}
.manage-table th { background: var(--cream-dark); color: var(--forest); }
.manage-order-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}
.manage-order-lines li { margin-bottom: 4px; }
.manage-inline-form { display: inline-block; margin-right: 12px; margin-top: 8px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
@media (max-width: 640px) {
  .cart-table thead { display: none; }
  .cart-table tr { display: block; margin-bottom: 16px; border: 1px solid var(--cream-dark); border-radius: var(--radius); }
  .cart-table td { display: block; border: none; padding: 8px 14px; }
  .cart-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--forest); }
}
/* Demo suite chrome (BinaryLane demos host) */
.demo-suite-bar {
  background: #0c100e;
  border-bottom: 2px solid #e0b33a;
  color: #f2f5f0;
  font-size: 0.82rem;
  position: sticky;
  top: 0;
  z-index: 200;
}
.demo-suite-inner {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.demo-suite-bar a {
  color: #e8e4d8;
  text-decoration: none;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.demo-suite-bar a:hover {
  background: rgba(255,255,255,0.06);
  border-color: #3d4a3f;
}
.demo-suite-bar a.is-current {
  background: rgba(61, 154, 85, 0.35);
  color: #fff;
  border-color: rgba(143, 212, 156, 0.4);
}
.demo-suite-bar a.demo-suite-hot {
  background: rgba(61, 154, 85, 0.18);
  border-color: rgba(61, 154, 85, 0.4);
  color: #c5e0cc;
}
.demo-suite-home {
  color: #e0b33a !important;
  border-color: rgba(224, 179, 58, 0.45) !important;
  margin-right: 2px;
}
.demo-suite-label {
  color: #8a958c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 2px 0 6px;
}
@media (max-width: 720px) {
  .demo-suite-label { display: none; }
}

/* Demo notice under suite bar */
.demo-suite-notice {
  background: linear-gradient(165deg, #1a3224 0%, #161d18 70%);
  border-bottom: 1px solid #2c3a30;
  color: #c5d4c8;
}
.demo-suite-notice-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px 16px;
}
.demo-suite-notice p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #9aab9f;
}
.demo-suite-notice strong { color: #f2f5f0; }
.demo-suite-notice code {
  color: #e0b33a;
  font-size: 0.88em;
}
.demo-suite-notice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.demo-suite-notice-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(61, 154, 85, 0.25);
  border: 1px solid rgba(61, 154, 85, 0.45);
  color: #8fd49c;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.88rem;
}
.demo-suite-notice-links a:hover {
  filter: brightness(1.08);
}

.stock-banner-demo {
  background: #1a3224;
  color: #c5e0cc;
  border-bottom-color: #3d9a55;
  font-weight: 600;
}

/* Home suite alignment cards (demos) */
.suite-align-section {
  background: #0f1411;
  color: #f2f5f0;
}
.suite-align-section .eyebrow { color: #e0b33a; }
.suite-align-section h2 { color: #f2f5f0; }
.suite-align-section .lead { color: #9aab9f; max-width: 58ch; }
.suite-align-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.suite-align-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 15px;
  border-radius: 14px;
  background: #161d18;
  border: 1px solid #2c3a30;
  text-decoration: none;
  color: inherit;
  min-height: 110px;
  transition: border-color 0.12s, transform 0.1s;
}
.suite-align-card:hover {
  border-color: rgba(61, 154, 85, 0.55);
  transform: translateY(-1px);
}
.suite-align-card.hot {
  border-color: rgba(61, 154, 85, 0.5);
  background: linear-gradient(165deg, #1a3224 0%, #161d18 72%);
}
.suite-align-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fd49c;
}
.suite-align-card strong {
  font-size: 1.05rem;
  color: #f2f5f0;
}
.suite-align-card span:last-child {
  font-size: 0.88rem;
  color: #9aab9f;
}

.footer-suite {
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-suite strong {
  display: block;
  margin-bottom: 8px;
  color: #e0b33a;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-suite-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
}
.footer-suite-links a {
  color: #c5e0cc;
  font-weight: 600;
  text-decoration: none;
}
.footer-suite-links a:hover { text-decoration: underline; }

.manage-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* Checkout fulfilment + payment (Demo Hardware port) */
.checkout-subhead { font-size: 1.05rem; margin: 18px 0 8px; color: var(--forest); }
.checkout-delivery { margin: 12px 0 18px; padding: 14px; background: var(--cream-dark); border-radius: var(--radius); }
.checkout-delivery[hidden] { display: none !important; }
.pay-methods { display: grid; gap: 10px; margin-top: 8px; }
.pay-opt { align-items: flex-start !important; }
.pay-opt strong { display: block; }
.pay-instructions-box { margin-top: 16px; border-left: 4px solid var(--forest); }
