/* ===== 1. COLOURS & FONTS: change them here and the whole site updates ===== */
:root {
  --green: #24462f;      /* main brand colour */
  --green-soft: #e3ece2; /* light tint of green */
  --green-dark: #183323; /* header colour */
  --dip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 30' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440C1200 28 960 30 720 30S240 28 0 0Z'/%3E%3C/svg%3E");
  --yolk: #f2b632;       /* buttons, highlights */
  --red: #b23a2b;        /* main call-to-action */
  --bg: #f6f8f4;
  --ink: #1c2420;
  --muted: #5d6a62;
  --radius: 14px;
  --section-pad: 3rem;   /* the same space above and below every section */
  --gutter: max(5vw, calc((100vw - 1240px) / 2 + 5vw));   /* side space: keeps content lined up with the footer on wide screens */
  --phone-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif;
}

/* ===== 2. BASICS ===== */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.note { color: var(--muted); }
:focus-visible { outline: 3px solid var(--yolk); outline-offset: 2px; }

/* ===== 3. BUTTONS ===== */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: .7rem 1.4rem;
       font: 700 1rem var(--body); cursor: pointer; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-yolk { background: var(--yolk); color: var(--ink); }
.btn-red  { background: var(--red); color: #fff; }
.btn-primary { background: var(--red); color: #fff; }          /* main action button (same as btn-red) */
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); padding: calc(.7rem - 2px) calc(1.4rem - 2px); }
.btn-outline:hover { background: var(--yolk); color: var(--ink); border-color: var(--yolk); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: var(--green-soft); color: var(--green); }
.btn-small { padding: .35rem .9rem; font-size: .9rem; }
.btn:disabled { background: #bbb; cursor: not-allowed; transform: none; }
.icon-btn { background: none; border: 0; font-size: 1.3rem; cursor: pointer; }

/* ===== 4. HEADER ===== */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: .8rem 5vw; background: var(--green-dark); color: #fff; }
/* the gentle wave under the header */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -29px; height: 30px; background: var(--green-dark);
  pointer-events: none; -webkit-mask: var(--dip) center/100% 100% no-repeat; mask: var(--dip) center/100% 100% no-repeat; }
.logo { display: flex; align-items: center; gap: .6rem; }
.logo-icon { width: 2.4rem; height: 2.4rem; display: block; }
.logo b { display: block; font: 800 1.4rem var(--display); line-height: 1; }
.logo small { display: block; font: 700 .62rem var(--body); letter-spacing: .09em; margin-top: .15rem; }
.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a:hover { color: var(--yolk); }
.nav-btn { background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 999px;
  padding: .3rem .9rem; font: 500 .95rem var(--body); cursor: pointer; }
.nav-btn:hover { background: var(--yolk); color: var(--ink); border-color: var(--yolk); }
#cart-count { background: var(--ink); color: #fff; border-radius: 999px; padding: 0 .55rem; margin-left: .3rem; }
/* Yellow announcement band under the menu. Its top part sits under the wave of the header. */
.announce { background: var(--yolk); text-align: center; padding: 2.1rem 5vw .7rem; font-weight: 700; font-size: .95rem; line-height: 1.5; min-height: 4.1rem; }

/* ===== 5. HERO ===== */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center;
  padding: 5rem var(--gutter); background: var(--green); color: #fff; min-height: 86vh; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; margin-bottom: 1rem; }
.hero p { max-width: 52ch; margin-bottom: 1.8rem; color: #d5e2d6; }
.hero-facts { list-style: none; padding: 0; display: grid; gap: 1rem; }
.hero-facts li { background: rgba(255,255,255,.08); border-left: 4px solid var(--yolk);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; color: #d5e2d6; }
.hero-facts strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: .1rem; }
.hero-facts span { display: block; font-size: .95rem; }

/* ===== 6. SECTIONS ===== */
.section { padding: var(--section-pad) var(--gutter); }
.band { background: var(--green-soft); }

.cream { background: #fbfaf3; }

/* Contact block on the home page */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact p { color: var(--muted); max-width: 46ch; }
.contact-form { display: grid; gap: .7rem; margin-top: 1.1rem; max-width: 460px; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; padding: .75rem 1rem; border: 1px solid #c5cdc7; border-radius: 12px; background: #fff; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.contact-form textarea { resize: vertical; min-height: 5.5rem; }
.contact-form .contact-actions { margin-top: .2rem; }
.form-note { margin: 0; min-height: 1.3rem; font-size: .92rem; color: var(--muted); }
.form-note.ok { color: var(--green); font-weight: 700; }
.form-note.bad { color: var(--red); font-weight: 700; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.map { min-height: 300px; border-radius: 28px; display: grid; place-items: center; padding: 1.5rem;
  background: radial-gradient(circle, #b9cdbd 2px, transparent 2.6px) 0 0/16px 16px, var(--green-soft); }
.map-card { width: min(300px, 100%); border-radius: 22px; overflow: hidden; background: var(--green-dark); color: #fff; text-align: center;
  box-shadow: 0 14px 34px rgba(0,0,0,.2); }
.map-card div { padding: 1.2rem 1rem; }
.map-card strong, .map-card span { display: block; }
.map-card strong { font: 700 1.2rem var(--display); }
.map-card a { display: block; background: var(--yolk); color: var(--ink); padding: .7rem; font-weight: 700; }

/* ===== 7. PRODUCTS ===== */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.chip { border: 2px solid var(--green); background: transparent; color: var(--green);
  border-radius: 999px; padding: .35rem 1rem; font: 700 .95rem var(--body); cursor: pointer; }
.chip.active { background: var(--green); color: #fff; }

/* Empty columns are kept (auto-fill) and cards never exceed 300px, so a single card never stretches across the page. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 1.5rem; }
.grid > .card { max-width: 300px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(36,70,47,.1); }
.card-art { position: relative; height: 190px; background: var(--green-soft); overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-tag { font-size: .85rem; font-weight: 700; color: var(--green); }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; }
.price { display: flex; flex-direction: column; font: 800 1.4rem var(--display); line-height: 1.15; }
.price small { font: 400 .85rem var(--body); color: var(--muted); }
.oos { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(205, 232, 207, .82); }
.oos span { background: rgba(255,255,255,.65); color: var(--green); font: 800 1.3rem var(--display); padding: .3rem 1.1rem; border-radius: 999px; }
.stock-low { color: var(--red); font-weight: 700; font-size: .85rem; }

/* ===== 8. HOW IT WORKS, PROMISE & DISCOUNTS ===== */
/* ----- How ordering works: a zig-zag path ----- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 4.5rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed #a9c4b0; }
.steps li { counter-increment: step; position: relative; background: #fff; border-radius: var(--radius); padding: 1.4rem 1.5rem; color: var(--muted); box-shadow: 0 2px 10px rgba(36,70,47,.1); }
.steps li:nth-child(even) { background: var(--green-soft); }
.steps li:nth-child(1) { grid-area: 1 / 1; }
.steps li:nth-child(2) { grid-area: 2 / 2; }
.steps li:nth-child(3) { grid-area: 3 / 1; }
.steps li:nth-child(4) { grid-area: 4 / 2; }
.steps li::before { content: counter(step); position: absolute; top: 1.2rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border-radius: 50%; background: var(--yolk); color: var(--ink); font: 800 1.1rem var(--display); box-shadow: 0 0 0 6px var(--bg); }
.steps li:nth-child(odd)::before { right: -3.55rem; }
.steps li:nth-child(even)::before { left: -3.55rem; }
.steps strong { display: block; color: var(--ink); font: 700 1.15rem var(--display); margin-bottom: .2rem; }

/* ----- Farm promise: one big feature card and two smaller ones ----- */
.info-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 1.2rem; }
.info-grid article { border-radius: var(--radius); padding: 1.6rem; }
.info-grid article > * { position: relative; z-index: 1; }
.info-grid article:first-child { grid-row: 1 / 3; background: var(--green); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; overflow: hidden; position: relative; }
.info-grid article:first-child::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--yolk); }
.info-grid article:first-child h3 { font-size: 1.9rem; }
.info-grid article:first-child p { color: #d5e2d6; }
.info-grid article:nth-child(2) { background: #fff3d3; }
.info-grid article:nth-child(3) { background: var(--green-soft); }
.info-grid h3 { margin-bottom: .4rem; }
.kicker { display: inline-block; font: 700 .75rem var(--body); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; opacity: .75; }

/* ----- Buy more, pay less: a staircase that grows with the discount ----- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-top: 1.5rem; align-items: end; border-bottom: 4px solid var(--green); }
.tier { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem; padding: 1.3rem;
  min-height: calc(140px + var(--i) * 54px); border-radius: var(--radius) var(--radius) 0 0; color: var(--ink);
  background: #e3ece2; background: color-mix(in srgb, var(--green) calc(var(--i) * 22%), #e3ece2); }
.tier strong { font: 800 2.3rem var(--display); line-height: 1.05; }
.tier span { font-size: .95rem; }
.tier:nth-child(n+3) { color: #fff; }
.tier em { position: absolute; top: .8rem; right: .8rem; background: var(--yolk); color: var(--ink); font: 700 .75rem var(--body); font-style: normal; padding: .15rem .6rem; border-radius: 999px; }

/* ===== 9. CART DRAWER ===== */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 30; background: #fff;
  padding: 1.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  padding: .6rem 0; border-bottom: 1px solid #e5e9e4; }
.qty { display: flex; align-items: center; gap: .5rem; }
.qty button { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--green); background: #fff; cursor: pointer; font-size: 1rem; }
.cart-total { font-size: 1.2rem; text-align: right; }
.order-form { display: grid; gap: .8rem; }
.order-form label { display: grid; gap: .25rem; font-weight: 700; font-size: .9rem; }
.order-form input, .order-form textarea, .login input, .ann input, .admins-add input, .admin-card input, .table-wrap input, .table-wrap select {
  font: 400 1rem var(--body); padding: .6rem; border: 1px solid #c5cdc7; border-radius: 8px; }
.pay { border: 1px solid #c5cdc7; border-radius: 8px; padding: .7rem .9rem; }
.pay-title { margin: 0 0 .2rem; font-weight: 700; font-size: .9rem; }
.pay label { display: flex; align-items: center; gap: .5rem; font-weight: 500; margin-top: .4rem; }

/* ----- Order received pop-up ----- */
dialog.success { width: min(440px, 92vw); padding: 0; overflow: hidden; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog.success.again { animation: pop .4s cubic-bezier(.2, .9, .3, 1.15); }
dialog.success::backdrop { background: rgba(23, 56, 42, .6); backdrop-filter: blur(3px); }
.success-top { position: relative; display: grid; place-items: center; height: 170px; overflow: hidden; background: linear-gradient(160deg, var(--green), var(--green-dark)); }
.success-top::before { content: ""; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: var(--yolk); }
.success-top::after { content: ""; position: absolute; left: -40px; bottom: -70px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08); }
.check { position: relative; z-index: 1; width: 96px; height: 96px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); }
.check .disc { fill: #fff; }
.check .ring { fill: none; stroke: var(--yolk); stroke-width: 4; stroke-dasharray: 214; stroke-dashoffset: 214; transform: rotate(-90deg); transform-origin: 40px 40px; }
.check path { fill: none; stroke: var(--green); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.again .check .ring { animation: draw .7s .1s ease forwards; }
.again .check path { animation: draw .5s .6s ease forwards; }
.confetti i { position: absolute; z-index: 1; top: -14px; left: calc(var(--x) * 1%); width: 8px; height: 14px; border-radius: 2px; background: var(--c); transform: rotate(var(--r)); opacity: 0; }
.again .confetti i { animation: fall 2.2s var(--d) ease-in 2; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.94); } }
@keyframes fall { 0% { opacity: .95; } to { opacity: 0; transform: translateY(190px) rotate(300deg); } }
.success-body { padding: 1.6rem 1.8rem 1.8rem; text-align: center; }
.success-body h2 { font-size: 1.9rem; margin-bottom: .7rem; }
.success-order { display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 700; padding: .3rem 1rem; border-radius: 999px; margin-bottom: 1rem; }
.success-msg { color: var(--muted); margin-bottom: 1.2rem; }
.success-steps { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; text-align: left; counter-reset: s; }
.success-steps li { counter-increment: s; display: flex; align-items: center; gap: .8rem; background: #fbfaf3; border-radius: 14px; padding: .6rem .9rem; font-weight: 500; }
.success-steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--yolk); font: 800 .85rem var(--display); }
.success-body .btn { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  dialog.success.again, .again .confetti i { animation: none !important; }
  .again .check .ring, .again .check path, .check .ring, .check path { animation: none !important; stroke-dashoffset: 0; }
}

/* ===== 10. ADMIN ===== */
.admin { padding: 3rem 3vw 2rem; }
.panel { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 2px 10px rgba(36,70,47,.1); margin-bottom: 1.5rem; }
.login { display: grid; gap: .8rem; }
.login[hidden] { display: none; }
.login .btn { width: 100%; }
.link-btn { justify-self: center; border: 0; background: none; padding: .2rem; color: var(--green); font: 600 .9rem var(--body); text-decoration: underline; cursor: pointer; }
.login .note.ok { color: var(--green); font-weight: 700; }
.login .note.bad { color: var(--red); font-weight: 700; }                 /* Log in and Cancel are exactly the same size */
.tabs { display: flex; gap: .6rem; margin-bottom: 1.2rem; }
.table-wrap { overflow-x: auto; }

/* Orders and stock tables: one font, one size. Important text is bold. Every cell stays on one line. */
table.data { width: 100%; border-collapse: collapse; font: 400 .92rem var(--body); white-space: nowrap; }
table.data th, table.data td { text-align: left; padding: .65rem .55rem; border-bottom: 1px solid #e3e8e2; vertical-align: middle; font: inherit; }
table.data th { font-weight: 700; background: var(--green-soft); }
table.data b { font-weight: 700; }
table.data td.wrap { white-space: normal; min-width: 130px; }   /* long locations / item lists wrap inside their own column */
#tab-orders.panel, #stock-table.panel { padding: .75rem; }
table.data a { color: inherit; }
table.data select, table.data input { font: inherit; padding: .3rem .4rem; border: 1px solid #c5cdc7; border-radius: 8px; }
table.data input[type=number] { width: 6rem; }
table.data tr.month td { padding: 1.6rem .8rem .6rem; border-bottom: 2px solid var(--green); background: #fff; color: var(--green); font-weight: 700; font-size: 1.05rem; }
table.data tr.month span { color: var(--muted); font-weight: 400; }

/* Narrower screens (tablets, small laptops): each order becomes a neat block so the whole row is always visible. */
@media (max-width: 1279px) {
  table.data.orders thead { display: none; }
  table.data.orders, table.data.orders tbody { display: block; }
  table.data.orders tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem 1.2rem; padding: .9rem .4rem; border-bottom: 1px solid #e3e8e2; }
  table.data.orders tr.month { display: block; padding: 0; border: 0; }
  table.data.orders td { display: block; padding: 0; border: 0; white-space: normal; }
  table.data.orders tr.month td { padding: 1.4rem .4rem .6rem; border-bottom: 2px solid var(--green); }
  table.data.orders td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .78rem; font-weight: 700; }
  table.data.orders td.wrap { grid-column: span 2; min-width: 0; }
}
/* Wide tablets and small laptops: two rows per order instead of four */
@media (min-width: 901px) and (max-width: 1279px) {
  table.data.orders tr { grid-template-columns: .55fr 1.05fr 1.05fr 1.2fr 1.45fr 1.55fr 1fr; }
  table.data.orders td:nth-child(5) { grid-column: 1 / span 3; grid-row: 2; }
  table.data.orders td:nth-child(6) { grid-column: 4 / span 4; grid-row: 2; }
  table.data.orders td:nth-child(7) { grid-column: 5; grid-row: 1; white-space: nowrap; }
  table.data.orders td:nth-child(8) { grid-column: 6; grid-row: 1; }
  table.data.orders td:nth-child(9) { grid-column: 7; grid-row: 1; }
}
@media (max-width: 720px) {
  table.data.orders tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
dialog { margin: auto; border: 0; border-radius: var(--radius); padding: 1.5rem; width: min(380px, 92vw); }   /* margin:auto centres the pop-up */
dialog::backdrop { background: rgba(0,0,0,.5); }

/* ----- Phone-only pieces (hidden on desktop and tablet; the phone rules are in section 11) ----- */
.m-actions { display: none; }
.m-btn { position: relative; display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.14); color: #fff; cursor: pointer; transition: background .15s; }
.m-btn:active { background: rgba(255,255,255,.3); }
.m-btn svg { width: 1.35rem; height: 1.35rem; display: block; }
.m-badge { position: absolute; top: -.4rem; right: -.4rem; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px;
  background: var(--yolk); color: var(--ink); font: 800 .75rem/1.35rem var(--body); text-align: center; box-shadow: 0 0 0 2px var(--green-dark); }
.dot { font-style: normal; }

/* "More" page */
dialog.more { width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fbfaf3; color: var(--ink); overflow: hidden; }
dialog.more[open] { display: flex; flex-direction: column; animation: more-in .28s ease; }
@keyframes more-in { from { opacity: 0; transform: translateY(18px); } }
.more-head { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #fff; background: var(--green-dark);
  padding: .8rem 4vw; padding-top: calc(.8rem + env(safe-area-inset-top)); }
.more-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1.2rem 4vw calc(2rem + env(safe-area-inset-bottom)); }
.more-news { background: var(--yolk); border-radius: 20px; padding: .9rem 1.1rem 1rem; margin-bottom: 1.5rem; }
.more-news-tag { display: block; font: 800 .7rem var(--body); letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.more-news p { margin: .2rem 0 0; font-weight: 700; line-height: 1.45; }
.more-label { margin: 0 0 .55rem .35rem; font: 700 .75rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.more-list { list-style: none; padding: 0; margin: 0 0 1.5rem; background: #fff; border: 1px solid var(--line, #e4ebe5); border-radius: 20px; overflow: hidden; }
.more-list li + li { border-top: 1px solid #e9eee9; }
.more-list a { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; }
.more-list a:active { background: var(--green-soft); }
.mi { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 14px; background: var(--green-soft); color: var(--green); }
.mi svg { width: 1.3rem; height: 1.3rem; }
.mt { flex: 1; min-width: 0; }
.mt b { display: block; font-weight: 700; }
.mt small { color: var(--muted); font-size: .85rem; }
.more-list .go { flex: none; width: 1.1rem; height: 1.1rem; color: #a5b2a9; }
.more-hours { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid #e4ebe5; border-radius: 20px; padding: 1rem; margin-bottom: 1.5rem; }
.more-hours .mi { background: #fdf0cf; color: #9a6b00; }
.more-hours > div { flex: 1; }
.more-hours p { display: flex; justify-content: space-between; gap: 1rem; margin: .25rem 0 0; color: var(--muted); font-size: .95rem; }
.more-social { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding: 0 .35rem; }
.more-social > span { display: flex; gap: .6rem; }
.more-social a { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--green-dark); color: #fff; }
.more-social svg { width: 1.2rem; height: 1.2rem; }
.more-admin { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: .9rem; border-radius: 999px; border: 1.5px solid #d4ddd6;
  background: #fff; color: var(--green); font: 700 1rem var(--body); cursor: pointer; }
.more-admin svg { width: 1.15rem; height: 1.15rem; }
.more-copy { margin: 1.2rem 0 0; text-align: center; color: var(--muted); font-size: .85rem; }
@media (min-width: 761px) { dialog.more { display: none !important; } }

/* Announcement box (admin > Stock) */
.ann { padding: 1rem 1.25rem; }
.ann label { display: block; font-weight: 700; font-size: .95rem; }
.ann .note { font-size: .85rem; margin: .1rem 0 .7rem; }
.ann-row { display: flex; gap: .6rem; align-items: center; }
.ann-row input { flex: 1; min-width: 0; }

/* ===== 11. PHONES: everything below only applies on screens up to 760px wide ===== */
@media (max-width: 760px) {
  :root { --section-pad: 2.25rem; }
  body { -webkit-tap-highlight-color: transparent; }
  body:has(dialog.more[open]) { overflow: hidden; }
  button, a, select, input, textarea { touch-action: manipulation; }
  section[id] { scroll-margin-top: 4.6rem; }
  h2 { font-size: 1.75rem; margin-bottom: 1.1rem; }
  .btn:not(.btn-small) { min-height: 2.9rem; }

  /* ----- top bar: straight edge, logo + slogan on the left, cart and More icons on the right ----- */
  .site-header { gap: .6rem; padding: .8rem 4vw; padding-top: calc(.8rem + env(safe-area-inset-top)); border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-header::after { display: none; }
  .logo-icon { width: 2.6rem; height: 2.6rem; }
  .logo b { font-size: 1.35rem; }
  #nav-shop, #cart-open { display: none; }
  .m-actions { display: flex; gap: .7rem; }
  .m-actions .m-btn { width: 2.8rem; height: 2.8rem; }
  #nav-admin { gap: .4rem; }
  .nav-btn { padding: .4rem .85rem; font-size: .85rem; }
  .announce { display: none; }             /* the yellow band is for desktop and tablet only */

  /* ----- home page ----- */
  .hero { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.2rem var(--gutter) 2.4rem; align-content: center;
    min-height: calc(100vh - 4.5rem); min-height: calc(100svh - 4.5rem); }   /* green fills the first screen, like desktop */
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: 1rem; margin-bottom: 1.4rem; }
  .hero-text .btn { display: block; text-align: center; }
  .hero-facts { gap: .7rem; }
  .hero-facts li { padding: .85rem 1rem; }
  .grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .grid > .card { max-width: none; }
  .card-art { height: 200px; }
  .card-body { padding: 1.1rem; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .tier { min-height: calc(110px + var(--i) * 18px); padding: 1.1rem; }
  .tier strong { font-size: 2rem; }
  .steps { grid-template-columns: 1fr; padding-bottom: 0; }
  .steps::before { display: none; }
  .steps li:nth-child(n) { grid-area: auto; }
  .steps li::before { position: static; margin-bottom: .6rem; box-shadow: none; }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid article:first-child { grid-row: auto; min-height: 200px; }
  .contact { grid-template-columns: 1fr; gap: 1.6rem; }
  .contact-actions .btn { flex: 1; text-align: center; }
  .contact-form { max-width: none; }
  .contact-form input, .contact-form textarea { font-size: 16px; }
  .map { min-height: 240px; }

  /* ----- cart drawer fills the screen ----- */
  .cart { width: 100%; border-radius: 0; padding: 1.1rem 1.1rem calc(1.5rem + env(safe-area-inset-bottom)); }
  .qty button { width: 2.5rem; height: 2.5rem; }
  dialog { width: min(380px, 90vw); }

  /* ----- admin ----- */
  .admin { padding: 1rem 4vw 2rem; }
  .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .3rem; padding: .3rem; margin-bottom: 1rem; border-radius: 999px; background: #e6ede6; }
  .tabs .chip { border: 0; text-align: center; padding: .6rem .5rem; }
  .ann-row { flex-wrap: wrap; }
  .ann-row input { flex: 1 1 100%; font-size: 16px; }
  .ann-row .btn { flex: 1; min-height: 2.6rem; }
  #tab-orders.panel, #stock-table.panel { padding: 0; background: none; box-shadow: none; border-radius: 0; }
  #stock-table.panel { margin-bottom: 0; }
  table.data select, table.data input { font-size: 16px; }
  table.data td.wrap { min-width: 0; }
  #msg:not(:empty) { position: fixed; left: 4vw; right: 4vw; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 15; margin: 0; padding: .8rem 1.1rem;
    border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

  /* orders: one card per order, grouped under a month heading */
  table.data.orders tr:not(.month) { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .8rem; padding: 1rem; margin: 0 0 .8rem;
    background: #fff; border: 1px solid #e4ebe5; border-radius: 20px; box-shadow: 0 4px 14px rgba(36,70,47,.07);
    grid-template-areas: "num placed" "cust cust" "phone phone" "loc loc" "items items" "total pay" "status status"; }
  table.data.orders tr:not(.month) td:nth-child(1) { grid-area: num; }
  table.data.orders tr:not(.month) td:nth-child(2) { grid-area: placed; justify-self: end; align-self: center; color: var(--muted); font-size: .9rem; }
  table.data.orders tr:not(.month) td:nth-child(3) { grid-area: cust; font-size: 1.15rem; }
  table.data.orders tr:not(.month) td:nth-child(4) { grid-area: phone; }
  table.data.orders tr:not(.month) td:nth-child(5) { grid-area: loc; }
  table.data.orders tr:not(.month) td:nth-child(6) { grid-area: items; }
  table.data.orders tr:not(.month) td:nth-child(7) { grid-area: total; }
  table.data.orders tr:not(.month) td:nth-child(8) { grid-area: pay; }
  table.data.orders tr:not(.month) td:nth-child(9) { grid-area: status; }
  table.data.orders tr:not(.month) td:nth-child(-n+4)::before { display: none; }
  table.data.orders tr:not(.month) td:nth-child(1) b { display: inline-block; padding: .1rem .8rem; border-radius: 999px; background: var(--green); color: #fff; }
  table.data.orders tr:not(.month) td:nth-child(4) a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px;
    background: var(--green-soft); color: var(--green); font-weight: 700; }
  table.data.orders tr:not(.month) td:nth-child(4) a::before { content: ""; width: 1.05rem; height: 1.05rem; background: currentColor;
    -webkit-mask: var(--phone-ico) center/contain no-repeat; mask: var(--phone-ico) center/contain no-repeat; }
  table.data.orders tr:not(.month) td:nth-child(7) b { font-size: 1.3rem; }
  table.data.orders tr:not(.month) td:nth-child(8) { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
  table.data.orders tr:not(.month) td:nth-child(8)::before { margin-bottom: 0; }
  table.data.orders tr:not(.month) td select { min-height: 2.6rem; }
  table.data.orders td[data-st] select { width: auto; min-width: 9rem; max-width: 100%; padding: .5rem 1rem; border: 1px solid transparent; border-radius: 999px; font-weight: 700; }
  table.data.orders td[data-st="NEW"] select { background: #fdecc0; color: #7a5200; }
  table.data.orders td[data-st="CONFIRMED"] select { background: #e2f0e4; color: #2f6b3f; }
  table.data.orders td[data-st="DELIVERED"] select { background: #e3f1f7; color: #1d5f7a; }
  table.data.orders td[data-st="CANCELLED"] select { background: #f6dcd7; color: var(--red); }
  table.data.orders tr.month td { display: flex; justify-content: space-between; align-items: center; gap: .3rem .8rem; flex-wrap: wrap;
    margin: 1.5rem 0 .8rem; padding: .75rem 1.1rem; border: 0; border-radius: 16px; background: var(--green); color: #fff; font-size: 1.05rem; }
  table.data.orders tr.month:first-child td { margin-top: .2rem; }
  table.data.orders tr.month span { color: #cfe0d3; font-size: .85rem; font-weight: 400; }
  table.data.orders tr.month .dot { display: none; }

  /* stock: one card per chicken */
  table.data.stock thead { display: none; }
  table.data.stock, table.data.stock tbody { display: block; }
  table.data.stock tr { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 1rem; margin: 0 0 .8rem;
    background: #fff; border: 1px solid #e4ebe5; border-radius: 20px; box-shadow: 0 4px 14px rgba(36,70,47,.07);
    grid-template-areas: "name name" "cat cat" "price stock" "act act"; }
  table.data.stock td { display: block; padding: 0; border: 0; white-space: normal; }
  table.data.stock td:nth-child(1) { grid-area: name; font-size: 1.1rem; }
  table.data.stock td:nth-child(2) { grid-area: cat; justify-self: start; padding: .1rem .8rem; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .8rem; font-weight: 700; }
  table.data.stock td:nth-child(3) { grid-area: price; }
  table.data.stock td:nth-child(4) { grid-area: stock; }
  table.data.stock td:nth-child(5) { grid-area: act; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  table.data.stock td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .25rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
  table.data.stock td input[type=number] { width: 100%; min-height: 2.8rem; padding: .6rem 1rem; border-radius: 14px; }
  table.data.stock td:nth-child(5) .btn { width: 100%; padding: .7rem; font-size: 1rem; }
}

/* ===== Admins tab (owner only) ===== */
.admins-add { display: grid; gap: .6rem; }
.admins-add label { font-weight: 700; font-size: .95rem; }
.admins-add .btn { justify-self: start; }
.admin-card { display: grid; gap: .5rem; padding: .9rem 0; border-bottom: 1px solid #e3e8e2; }
.admin-card:last-child { border-bottom: 0; }
.admin-card .who { font-weight: 700; }
.admin-card .who span { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: .4rem; }
.admin-card .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .5rem; }
.admin-card .buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
#whoami:empty { display: none; }

/* One quiet line under the Place order button */
.consent { margin: .7rem 0 0; font-size: .82rem; color: var(--muted, #6b7a70); text-align: center; }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
