:root {
  --bg: #fafafa;
  --card: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --brand: #9cbb80; /* Yoda Green */
  --brand-700: #33b5e5;
  --stroke: #e5e5e5;
  --success: #10b981;
  --warn: #b45309;
  --amber: #fbbf24;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow: 0 6px 20px rgba(17,17,17,0.08);
}

/* Brand display font */
@font-face {
  font-family: "SF Distant Galaxy";
  src: url("../fonts/SF Distant Galaxy.ttf") format("truetype"); /* from assets/css/ -> ../fonts */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family:"The Hashtag";
  src:url("../fonts/The\ Hashtag.otf") format("opentype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stroke);
}
.header-inner {
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 0;
  position: relative; /* needed for the dropdown nav positioning */
}
.brand { display:flex; gap:12px; align-items:center; }
.brand-logo {
  height: 40px; width: 40px; display:grid; place-items:center;
  background:#ffe4ef; border-radius: 14px; font-size:20px;
}
.brand h1 {
  font-size: 18px;
  margin: 0;
  font-family: "SF Distant Galaxy", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


/* --- RIGHT SIDE ACTIONS (Cart + Burger) --- */
.actions { display:flex; align-items:center; gap:10px; }

/* ===== Burger menu (always visible on desktop) ===== */
.menu-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--stroke);
  padding: 6px;
  border-radius: 12px;
}
.menu-btn img { width: 26px; height: 26px; display: block; }

/* Collapsed nav panel that drops under the header */
.nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  padding: 12px 20px;
  display: none;               /* hidden by default */
  z-index: 55;
}
.nav.open {
  display: flex;               /* horizontal row */
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav a {
  padding: 8px 12px; border-radius: 12px; color:#222;
}
.nav a.active { background:#111; color:white; }
.nav a:hover { background:#f1f1f1; }

/* Keep this horizontal layout across sizes.
   On very small screens it will wrap naturally. */

/* ---- Rest of your existing styles ---- */

.hero { padding: 32px 0 10px; }
.hero-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  display:grid; grid-template-columns: 1.2fr 1fr; gap:0;
}
@media (max-width: 900px){
  .hero-card { grid-template-columns: 1fr; }
}
.hero-media { min-height: 260px; background:linear-gradient(135deg,#fde68a,#fbcfe8); }
.hero-copy { padding: 22px; }
.hero h2 { margin: 0 0 6px 0; font-size: 28px; }
.hero p { margin: 0; color: var(--muted); }
.cta-row { display:flex; gap:10px; margin-top: 14px; flex-wrap:wrap; }
.btn {
  border: 1px solid var(--stroke);
  padding: 10px 14px; border-radius: 12px; background:white;
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-700); }
.btn.icon { display:inline-flex; align-items:center; gap:8px; }
.badge{
  display: inline-grid;         /* grid makes centering dead simple */
  place-items: center;          /* centers horizontally + vertically */
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1;               /* avoids extra vertical slack */
  color: #fff;
  background: #111;
  border-radius: 999px;
  text-align: center;
}

.grid { display:grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 900px){
  .grid.two, .grid.three { grid-template-columns: 1fr; }
}

/* Handmade Dog Treats grid: always 3 per row on desktop */
#treat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Product cards stay uniform */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  background: #fff;
}

/* Image container with fixed aspect */
.product-card .product-media {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #f5f5f5;
}
.product-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Inner layout tidy-up */
.product-card .product-body {
  gap: 8px;
  margin-top: 10px;
  flex: 1;
}
.product-card .product-title {
  word-break: break-word;
}

/* Buttons and selects fill width neatly */
#treat-grid select {
  width: 100%;
}

/* Responsive breakpoints */
@media (max-width: 900px) {
  #treat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  #treat-grid {
    grid-template-columns: 1fr;
  }
}


/* Make the hero container a positioning context */
.container.page-hero { position: relative; }

/* Center-left overlay title */
.hero-title{
  position: absolute;
  left: 20px;          /* “to the left of the image” with a little inset */
  top: 50%;            /* vertical middle */
  transform: translateY(-50%); /* perfect vertical centering */
  z-index: 2;

  /* Typography (keep your font stack) */
  font-family: "The Hashtag","SF Distant Galaxy",Inter,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size: clamp(28px, 4vw + 8px, 60px);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
  letter-spacing: .02em;
  max-width: 60%;
  pointer-events: none; /* clicks pass through to image/links if any */
}

@media (max-width: 600px){
  .hero-title{
    left: 12px;
    max-width: 86%;
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  padding: 16px;
  box-shadow: var(--shadow);
}

.hstack { display:flex; gap:10px; align-items:center; }
.vstack { display:flex; flex-direction:column; gap:6px; }

.label { font-size: 13px; color: var(--muted); }
input[type="text"],input[type="email"],input[type="tel"],input[type="number"],input[type="date"],select,textarea {
  width:100%; border:1px solid var(--stroke); border-radius:12px; padding:10px 12px; background:white;
}
textarea { min-height: 90px; }

.kv { display:flex; justify-content:space-between; gap:12px; font-size:14px; }
.kv .dim { color: var(--muted); }

.badges { display:flex; flex-wrap: wrap; gap:6px; }
.badge-allergen {
  font-size: 12px; background:#fff7ed; color:#92400e; border-radius: 8px; padding: 4px 8px; border: 1px solid #fed7aa;
}
.badge-ok { background:#ecfdf5; color:#065f46; border: 1px solid #a7f3d0; }

.price-xl { font-weight: 700; font-size: 22px; }
.progress { height:8px; background:#eee; border-radius: 999px; overflow:hidden; }
.progress > div { height:100%; background: var(--success); }

.table { width:100%; border-collapse: collapse; }
.table th, .table td { padding:8px 10px; border-bottom:1px solid var(--stroke); text-align:left; }
.table th { font-size:13px; color: var(--muted); }

footer {
  border-top: 1px solid var(--stroke);
  margin-top: 36px;
  padding: 24px 0;
  font-size: 14px; color: var(--muted);
  background: #fff;
}
footer .links { display:flex; gap:12px; flex-wrap:wrap;}
.cart-pill {
  display:inline-flex; align-items:center; gap:8px;
  background:#111; color:#fff; padding:8px 12px; border-radius:14px;
}
.cart-count { background:#fff; color:#111; padding:2px 8px; border-radius:999px; font-weight:600; }

/* Gallery */
.gallery-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:12px; }
@media (max-width: 900px){ .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { overflow:hidden; border-radius:16px; border:1px solid var(--stroke); background:#fff; }
.gallery-item img { width:100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-body { padding: 10px; }
.dot { height:16px; width:16px; border-radius:999px; border:1px solid #ddd; display:inline-block; }

/* Cart drawer */
.drawer { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.drawer.open { pointer-events:auto; }
.drawer .backdrop {
  position: absolute; inset:0; background: rgba(0,0,0,.4); opacity:0; transition: opacity .2s;
}
.drawer.open .backdrop { opacity:1; }
.drawer .panel {
  position:absolute; top:0; right:0; height:100%; width: min(420px, 92vw);
  background:#fff; border-left:1px solid var(--stroke); transform: translateX(100%);
  transition: transform .2s;
  display:flex; flex-direction:column;
}
.drawer.open .panel { transform: translateX(0); }
.panel header { padding: 14px 16px; border-bottom:1px solid var(--stroke); display:flex; justify-content:space-between; align-items:center;}
.panel main { padding: 14px 16px; overflow:auto; flex:1; display:flex; flex-direction:column; gap:10px;}
.panel footer { padding: 14px 16px; border-top:1px solid var(--stroke); display:grid; gap:8px; }
.line { height:1px; background:var(--stroke); margin:6px 0; }

/* ===== Cookies banner & Mailing list modal ===== */
#cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20000;
  background: #111; color: #fff; border-radius: 14px; padding: 14px;
  box-shadow: var(--shadow);
}
#cookie-banner .row { display:flex; gap:12px; align-items:center; }
#cookie-banner p { margin: 0; font-size: 14px; color: #e5e5e5; }
#cookie-banner .actions { margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
#cookie-banner .btn { background:#333; color:#fff; border-color:#333; }
#cookie-banner .btn.primary { background: var(--brand); border-color: var(--brand); }
#cookie-banner a { color: #fff; text-decoration: underline; }

#cookie-prefs { position: fixed; inset: 0; z-index: 20010; display:none; }
#cookie-prefs.open { display:block; }
#cookie-prefs .backdrop { position:absolute; inset:0; background: rgba(0,0,0,.5); }
#cookie-prefs .panel {
  position:absolute; right:0; top:0; bottom:0; width: min(420px, 92vw);
  background:#fff; color:#111; padding:16px; border-left:1px solid var(--stroke);
  display:flex; flex-direction:column; gap:10px;
}

#ml-modal { position: fixed; inset: 0; z-index: 20000; display:none; }
#ml-modal.open { display:block; }
#ml-modal .backdrop { position:absolute; inset:0; background: rgba(0,0,0,.45); }
#ml-modal .panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, 92vw); background:#fff; color:#111; padding:18px; border-radius: 16px;
  border:1px solid var(--stroke); box-shadow: var(--shadow);
}
#ml-modal h3 { margin: 0 0 6px 0; }
#ml-modal .muted { color: var(--muted); font-size: 14px; }
#ml-modal .row { display:grid; gap:10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px){ #ml-modal .row { grid-template-columns: 1fr; } }
#ml-success { display:none; background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; padding:10px; border-radius:12px; }

/* ===== Page hero image (below header) ===== */
.page-hero { padding: 12px 0 0; }
.page-hero .hero-img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  background: #f5f5f5;
}

/* ===== Hero Gallery (thumb slider) ===== */
.hero-gallery { margin: 12px auto 0; display: grid; gap: .75rem; }

.hero-gallery__hero {
  position: relative;
  aspect-ratio: 16 / 7;                 /* mirrors your previous hero shape */
  background: #f5f5f5;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-gallery__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s ease;
}
.hero-gallery__hero img.is-fading { opacity: 0; }

/* Keep using your existing .hero-title overlay styles */
.hero-gallery__thumbs-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .5rem;
  align-items: center;
}

.hero-gallery__thumbs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .25rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.hero-gallery__thumb {
  border: 0;
  background: none;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
  outline-offset: 2px;
  border: 1px solid var(--stroke);
  background: #fff;
}
.hero-gallery__thumb img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  display: block;
  opacity: .85;
  transform: translateY(0);
  transition: opacity .15s, transform .15s;
}
.hero-gallery__thumb:hover img { opacity: 1; transform: translateY(-1px); }
.hero-gallery__thumb.is-active img { opacity: 1; outline: 2px solid #000; }

.hero-gallery__nav {
  inline-size: 36px;
  block-size: 36px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}
.hero-gallery__nav:disabled { opacity: .4; cursor: default; }

@media (prefers-color-scheme: dark) {
  .hero-gallery__nav { background: #111; border-color: #333; color: #eee; }
  .hero-gallery__thumb.is-active img { outline-color: #fff; }
}


/* Builder rows ... (unchanged) */
.builder-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
@media (max-width: 900px){ .builder-row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .builder-row-3 .field-upload { grid-column: 1 / -1; } }
@media (max-width: 640px){ .builder-row-3 { grid-template-columns: 1fr; } }

.builder-row-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
@media (max-width: 900px){ .builder-row-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .builder-row-colors .field-complexity { grid-column: 1 / -1; } }
@media (max-width: 640px){ .builder-row-colors { grid-template-columns: 1fr; } }
.builder-row-colors .field-primary,
.builder-row-colors .field-secondary { display: flex; flex-direction: column; justify-content: flex-end; }
.builder-row-colors .field-primary .label,
.builder-row-colors .field-secondary .label { display: block; margin: 0 0 6px 0; line-height: 1.1; }
.builder-row-colors input[type="color"] {
  width: 56px; height: 32px; border-radius: 8px; box-shadow: none; align-self: flex-start;
}

/* Home info cards CTA pinning */
.home-info > .card { display: flex; flex-direction: column; }
.home-info > .card a.btn:last-child { margin-top: 12px; align-self: flex-start; }
.home-info > .card table { flex: 1 1 auto; }
.home-info > .card #next-date { flex: 1 1 auto; }

/* Align ML inputs with Name field */
#ml-modal input[type="text"],
#ml-modal input[type="email"],
#ml-modal input[type="tel"],
#ml-modal select,
#ml-modal textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

/* Footer layout refinements */
.footer-bar{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
}
.footer-right{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
}
footer .links { display:flex; gap:12px; }

/* Social icons */
.socials{ display:flex; align-items:center; gap:10px; }
.socials img{
  display:block; width:28px; height:28px;
  filter: grayscale(10%);
  opacity: .9;
  transition: transform .15s ease, opacity .15s ease, filter .15s ease;
}
.socials a:hover img{
  transform: translateY(-2px);
  opacity: 1;
  filter: none;
}

/* Built-by */
.built-by{ display:flex; align-items:center; gap:8px; }
.built-by .label{ font-size:12px; color: var(--muted); }
.built-by-link{ font-size:12px; text-decoration: underline; color: inherit; }
.built-by-logo{ height:18px; }

/* ===== Inspiration image upload preview ===== */
.inspo-preview{ display:flex; align-items:flex-start; gap:10px; }
.inspo-thumb{
  width:72px; height:72px; object-fit:cover;
  border-radius:12px; border:1px solid var(--stroke);
  box-shadow: var(--shadow); background:#f5f5f5;
}

/* --- About section --- */
.about { padding: 28px 0 6px; }

.features { gap: 12px; }
.feature {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff; border: 1px solid var(--stroke);
  border-radius: 12px; padding: 12px;
}
.feature .icon { font-size: 22px; line-height: 1; }
.feature h4 { margin: 0 0 4px 0; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }

@media (max-width: 900px){
  .features { grid-template-columns: 1fr !important; }
}

/* Selection box item thumbnails */
.box-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 12px;
  align-items: center;
}

.box-thumb-wrap {
  width: 96px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #f5f5f5;
}

.box-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.box-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

@media (max-width: 640px) {
  .box-row {
    grid-template-columns: 80px 1fr;
    grid-auto-rows: auto;
  }
  .box-actions {
    flex-direction: row;
    justify-content: flex-start;
  }
}

.hero-card {
  margin-bottom: 32px; /* or 40px if you want more separation */
}

.slot-chip {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: #fff7ea;
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.slot-chip-label {
  font-weight: 600;
}

.slot-chip-summary {
  opacity: 0.8;
}

.slot-chip-change {
  margin-left: auto;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Force burger-style nav on ALL screen sizes */
.header .nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 72px; /* adjust to match your header height if needed */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    max-height 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  z-index: 950;
}

/* When burger toggles .open, show the full menu */
.header .nav.open {
  max-height: 90vh;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

    .gallery-row {
      cursor: default;
    }
    .gallery-row.is-dragging {
      opacity: 0.7;
    }
    .drag-handle {
      cursor: grab;
      font-size: 18px;
      line-height: 1;
      padding: 4px 6px;
    }

        .order-row.order-overdue {
      border:1px solid #f97316;
      box-shadow: 0 0 0 1px rgba(249,115,22,0.15);
    }
    .order-row.order-overdue .label {
      color:#7c2d12;
    }
    .orders-kpi {
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-top:6px;
      font-size:12px;
    }
    .orders-kpi span {
      padding:2px 8px;
      border-radius:999px;
      border:1px solid var(--stroke);
      background:#fff;
    }
    .table-wrapper table {
      width:100%;
      border-collapse:collapse;
      font-size:13px;
    }
    .table-wrapper th,
    .table-wrapper td {
      padding:4px 6px;
      border-bottom:1px solid var(--stroke);
      text-align:left;
    }
    .table-wrapper th {
      font-weight:600;
    }

    /* Food Hygiene Rating Card */
.hygiene-card {
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.hygiene-img {
  width: 180px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

@media (max-width: 700px) {
  .hygiene-card .hstack {
    flex-direction: column;
    text-align: center;
  }
  .hygiene-img {
    width: 220px;
  }
}
