/* Jati Food Marketing Enterprise — local catalog draft
   Colours and type follow the November 2026 Higher-price catalog PDF. */
:root {
  --ink: #1F2A30;
  --teal: #0E5A4A;
  --teal-dark: #0A4639;
  --teal-deep: #07352C;
  --gold: #C8963E;
  --gold-dark: #A67A2E;
  --mute: #66737A;
  --line: #D5DCDF;
  --zebra: #F3F6F6;
  --tint: #E7F0EE;
  --bg: #F4F6F5;
  --white: #ffffff;
  --wa: #128C7E;
  --wa-dark: #0E6E62;
  --ask: #8A5A12;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 48, 0.05), 0 10px 28px rgba(31, 42, 48, 0.07);
  --font: "Source Sans Pro", "Source Sans 3", system-ui, -apple-system, sans-serif;
  --header-h: 3.75rem;
  --max: 72rem;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button, input { font-family: inherit; }
a { color: var(--teal); }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 100;
  border-radius: 6px;
}
.skip:focus { top: 0.5rem; }

/* Draft banner */
.draft-banner {
  background: #F3E3C0;
  color: #5C4314;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid #E0C78A;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--teal);
  color: var(--white);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  background: var(--white);
  color: var(--teal);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}
.brand-text { min-width: 0; line-height: 1.15; }
.brand-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text span {
  display: none;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.header-link {
  display: none;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
}
.header-link:hover, .icon-btn:hover, .wa-chip:hover { background: rgba(255,255,255,0.12); }
.wa-chip, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--white);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  position: relative;
}
.wa-chip svg, .icon-btn svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(25%, -15%);
  background: var(--gold);
  color: var(--teal-deep);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 1.05rem;
  height: 1.05rem;
  border-radius: 99px;
  display: grid;
  place-items: center;
  padding: 0 0.2rem;
  line-height: 1;
}
.cart-count[hidden] { display: none !important; }

/* Hero */
.hero {
  background: var(--teal);
  color: var(--white);
  padding: 2rem 1.25rem 2.4rem;
}
.hero-inner { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 0.65rem;
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 6vw, 3.15rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 12ch;
}
.gold-bar {
  width: 3rem;
  height: 0.28rem;
  background: var(--gold);
  border-radius: 2px;
  margin: 1.15rem 0 1.1rem;
}
.hero-lead {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 400;
  max-width: 36rem;
  color: rgba(255,255,255,0.92);
}
.hero-meta {
  margin: 0 0 1.35rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn svg { width: 1.15rem; height: 1.15rem; fill: currentColor; flex: 0 0 auto; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--teal-deep); border-color: var(--gold); }
.btn-primary:hover { background: #d4a64c; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-wa { background: var(--wa); color: var(--white); border-color: var(--wa); width: 100%; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-outline {
  background: var(--white);
  color: var(--teal);
  border-color: var(--line);
  width: 100%;
}
.btn-outline:hover { border-color: var(--teal); background: var(--tint); }
.btn-sm { padding: 0.55rem 0.7rem; font-size: 0.86rem; }

/* Catalogue */
.catalogue { padding: 1.5rem 1rem 3rem; }
.catalogue-inner { max-width: var(--max); margin: 0 auto; }
.toolbar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
}
.search-wrap { position: relative; margin-bottom: 0.75rem; }
.search-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  fill: var(--mute);
  pointer-events: none;
}
#search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem 0.7rem 2.4rem;
  font-size: 1rem;
  background: var(--zebra);
  color: var(--ink);
  outline: none;
}
#search:focus { border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 3px var(--tint); }
.filters {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.filter-btn {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 99px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.result-count {
  margin: 0.15rem 0 0.9rem;
  color: var(--mute);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-photo {
  aspect-ratio: 1 / 1;
  background: var(--zebra);
  position: relative;
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
}
.photo-pending {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(180deg, var(--tint) 0%, var(--zebra) 100%);
  color: var(--teal);
  text-align: center;
  padding: 1rem;
}
.photo-pending .mono {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.photo-pending small {
  color: var(--mute);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-body {
  padding: 0.85rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.card-brand {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.card-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}
.card-meta {
  margin: 0;
  color: var(--mute);
  font-size: 0.85rem;
}
.card-price {
  margin: 0.45rem 0 0.65rem;
}
.price-main {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: -0.02em;
}
.price-ask {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ask);
}
.price-carton {
  display: block;
  font-size: 0.82rem;
  color: var(--mute);
  font-weight: 400;
  margin-top: 0.1rem;
}
.card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.empty {
  text-align: center;
  color: var(--mute);
  padding: 2.5rem 1rem;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  background: var(--teal-deep);
  color: rgba(255,255,255,0.88);
  padding: 2.25rem 1.25rem 2.5rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
.site-footer h2 {
  margin: 0 0 0.5rem;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.35;
  text-wrap: balance;
}
.site-footer p { margin: 0 0 0.4rem; font-size: 0.95rem; }
.site-footer a { color: #F3E3C0; }
.placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(243, 227, 192, 0.55);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  color: #F3E3C0;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin: 0 0 0.35rem; }
.fineprint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  max-width: 40rem;
}
.gold-rule {
  height: 1px;
  background: rgba(200, 150, 62, 0.45);
  border: 0;
  margin: 0.25rem 0 0.5rem;
}

/* Cart drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 28, 0.45);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(26rem, 100%);
  background: var(--white);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(31, 42, 48, 0.18);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 0; font-size: 1.15rem; }
.drawer-items {
  flex: 1;
  overflow: auto;
  padding: 0.75rem 1rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-item strong { font-size: 0.95rem; }
.cart-item .muted { color: var(--mute); font-size: 0.8rem; }
.qty-row { display: flex; align-items: center; gap: 0.35rem; }
.qty-row button {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.qty-row button:hover { border-color: var(--teal); color: var(--teal); }
.qty-row span { min-width: 1.25rem; text-align: center; font-weight: 600; }
.unit-select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.2rem 0.3rem;
  font-size: 0.8rem;
  background: var(--zebra);
  color: var(--ink);
}
.remove-item {
  grid-column: 1 / -1;
  justify-self: start;
  background: none;
  border: 0;
  color: var(--mute);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
  text-decoration: underline;
}
.drawer-empty { color: var(--mute); text-align: center; padding: 2rem 1rem; }
.drawer-foot {
  padding: 0.9rem 1rem 1.15rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
}
.clear-cart {
  background: none;
  border: 0;
  color: var(--mute);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}

/* Wider layouts */
@media (min-width: 480px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .card-actions { grid-template-columns: 1fr 1fr; }
  .brand-text span { display: block; }
}
@media (min-width: 720px) {
  .site-header, .hero, .catalogue, .site-footer { padding-left: 1.75rem; padding-right: 1.75rem; }
  .header-link { display: inline; }
  .wa-chip span { display: inline; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-top: 3rem; padding-bottom: 3.25rem; }
  .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .catalogue { padding-top: 2rem; padding-bottom: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer, .drawer-backdrop, .btn { transition: none; }
}

.coming-soon {
  color: rgba(255, 255, 255, 0.62);
  font-style: italic;
}
