/* Shared masthead and links, using the approved Dakkah type and colour tokens. */
.store-nav { display: none; }
.site-footer nav, .store-nav { align-items: center; gap: 20px; }
.site-footer nav { display: flex; }
.site-footer nav a, .store-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.site-footer nav a:hover, .store-nav a:hover { color:var(--green); text-decoration:underline; text-underline-offset:.3em; }
.site-footer { gap:24px; }
.farm-page, .info-page { padding-top:0; }
.farm-page > .site-header, .info-page > .site-header {
  display:flex; width:min(calc(100% - 64px),1160px); max-width:none; min-height:70px; padding:12px 0;
}
.farm-page .site-header .brand-wordmark, .info-page .site-header .brand-wordmark { height:37px; width:auto; }
.farm-page .store-nav { display:flex; font-size:14px; }
.farm-page main { width:min(calc(100% - 64px),1160px); max-width:none; padding:0; }
.store-hero { overflow:hidden; background:var(--surface); border:1px solid var(--line); border-radius:22px; }
.store-cover { display:grid; place-items:center; position:relative; isolation:isolate; overflow:hidden; height:clamp(178px,23vw,286px); background:var(--sand); }
.store-cover img, .produce-photo img { width:100%; height:100%; display:block; object-fit:cover; }
.store-cover img { position:absolute; inset:0; object-position:center 51%; }
.store-cover.no-photo {
  background-color:#254936;
  background-image:repeating-radial-gradient(ellipse 100% 250% at 95% 178%,transparent 0 23px,#bbccb527 24px 26px,transparent 27px 43px);
}
.store-cover.no-photo > .icon { display:none; }
.store-cover.no-photo::after { content:''; position:absolute; inset-inline-end:7%; bottom:18%; width:clamp(32px,4vw,52px); aspect-ratio:1; background:#d1ddc6; mask:url('./assets/mark.svg') center / contain no-repeat; }
.store-heading { padding:clamp(18px,3vw,34px) clamp(20px,3.8vw,50px); }
.store-heading h1 { margin:0; font-size:clamp(32px,4vw,54px); line-height:1.18; color:var(--ink); overflow-wrap:anywhere; }
.store-meta { display:flex; flex-wrap:wrap; gap:6px 19px; align-items:center; margin-top:12px; color:var(--muted); }
.store-meta-item { display:inline-flex; align-items:center; gap:5px; font-family:Tajawal,system-ui,sans-serif; font-weight:700; }
.store-meta-item > .icon { width:17px; height:17px; }
.store-intro, .store-description { overflow-wrap:anywhere; white-space:pre-line; }
.store-intro { max-width:72ch; margin-top:10px; font-size:16px; line-height:1.65; }
.store-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(255px,28%); gap:clamp(24px,3.5vw,50px); align-items:start; margin-top:34px; }
.store-catalog, .store-visit { min-width:0; scroll-margin-block:16px; }
.store-section-title { display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.store-section-title h2 { font-size:clamp(25px,3.1vw,38px); line-height:1.25; }
.available-count, .store-updated, .produce-unit, .visit-row span { color:var(--muted); }
.available-count { font-size:14px; }
.store-updated { font-size:13px; margin:-7px 0 16px; }
.produce-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.produce-card { min-width:0; background:var(--surface); border-radius:15px; overflow:hidden; border:1px solid var(--line); }
.produce-photo { display:grid; place-items:center; position:relative; background:var(--sand); aspect-ratio:1.25; overflow:hidden; }
.produce-photo img { position:absolute; inset:0; }
.produce-photo > .icon { color:var(--muted); width:32px; height:32px; opacity:.67; }
.produce-caption { padding:13px 15px 14px; }
.produce-caption h3 { font-size:20px; overflow-wrap:anywhere; line-height:1.35; }
.produce-unit { font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.produce-price { color:var(--green); font:700 19px/1.45 Tajawal,system-ui,sans-serif; margin-top:12px; overflow-wrap:anywhere; }
.sold-out img { opacity:.65; }
.stock-note { background:var(--surface); color:var(--ink); position:absolute; bottom:8px; inset-inline-start:8px; padding:3px 9px; font-size:12px; border-radius:5px; }
.store-visit { background:var(--surface); padding:22px; border:1px solid var(--line); border-radius:17px; }
.store-visit h2 { font-size:23px; }
.visit-row { display:flex; align-items:flex-start; gap:10px; padding-block:13px; border-bottom:1px solid var(--line); }
.visit-row > .icon { width:18px; height:18px; margin-top:4px; color:var(--green); }
.visit-row span { font-size:13px; }
.visit-row p { font-size:15px; }
.store-visit .action-buttons { min-width:0; flex-wrap:wrap; margin-top:18px; gap:7px; }
.store-visit .action-buttons .action { font-size:15px; min-height:44px; padding:8px 12px; border-radius:11px; }
.store-visit .farm-about { border:0; border-radius:0; margin:10px 0 0; }
.store-visit .farm-about summary { min-height:44px; padding:11px 0; font-size:15px; }
.store-description { font-size:15px; }
.farm-page .catalog-empty { border:1px solid var(--line); padding:25px; }
.catalog-empty > .icon { color:var(--green); margin-bottom:8px; }
.farm-page .action-dock { display:none; }
.farm-page { padding-bottom:20px; }
.farm-page .site-footer { max-width:1160px; margin:36px auto 0; padding:14px 0; border-top:1px solid var(--line); }
@media(max-width:960px) { .produce-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) {
  .farm-page > .site-header, .info-page > .site-header { width:calc(100% - 36px); min-height:55px; padding:4px 0; }
  .farm-page .site-header .brand-wordmark, .info-page .site-header .brand-wordmark { height:31px; }
  .farm-page .store-nav { gap:16px; font-size:13px; }
  .farm-page { padding-bottom:calc(76px + env(safe-area-inset-bottom,0px)); }
  .farm-page:not(:has(.action-dock:not([hidden]))) { padding-bottom:15px; }
  .farm-page main { width:100%; margin-inline:0; }
  .farm-page .demo-banner { margin:0 16px 8px; white-space:normal; }
  .store-hero { border:0; border-block-end:1px solid var(--line); border-radius:0; }
  .store-cover { height:clamp(132px,43vw,205px); }
  .store-heading { padding:19px 20px 18px; }
  .store-heading h1 { font-size:clamp(31px,7.8vw,42px); }
  .store-meta { gap:5px 12px; font-size:14px; margin-top:9px; }
  .store-meta .status { font-size:12px; padding:3px 8px; }
  .store-intro { font-size:15px; margin-top:8px; }
  .store-columns { display:block; margin:22px 16px 0; }
  .store-section-title { margin-bottom:12px; gap:5px; }
  .store-section-title h2 { font-size:27px; }
  .available-count { font-size:12px; }
  .store-updated { font-size:12px; margin-bottom:10px; }
  .produce-grid { gap:10px; }
  .produce-card { border-radius:13px; }
  .produce-caption { padding:9px 11px 10px; }
  .produce-caption h3 { font-size:19px; }
  .produce-price { margin-top:7px; font-size:17px; }
  .produce-unit { font-size:13px; }
  .store-visit { margin-top:26px; padding:17px; }
  .store-visit .action-buttons { display:none; }
  .store-visit .visit-row:last-child { border:0; }
  .farm-page .action-dock { display:flex; padding:9px 16px calc(9px + env(safe-area-inset-bottom,0px)); }
  .farm-page .action-dock .action-buttons { width:min(100%,500px); margin:auto; }
  .farm-page .action-dock .action { border-radius:13px; min-height:47px; }
  .farm-page .site-footer { margin:20px 16px 0; }
}
.info-page { padding-bottom:20px; }
.info-page main { width:min(calc(100% - 36px),700px); margin:clamp(20px,5vw,60px) auto 32px; padding:0; }
.info-page h1 { font-size:clamp(34px,6vw,50px); color:var(--green); margin-bottom:12px; }
.info-page section { padding:18px 0; border-top:1px solid var(--line); }
.info-page h2 { font-size:23px; margin-bottom:6px; }
.info-page p { max-width:65ch; }
.info-page main a { color:var(--green); text-underline-offset:.25em; }
.info-page .site-footer { border-top:1px solid var(--line); padding-top:15px; }
/* A farm with just one item gets a full-width shelf, including on a small phone. */
.produce-grid > .produce-card:only-child {
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:minmax(0,39%) minmax(0,1fr);
  align-items:stretch;
}
.produce-card:only-child .produce-photo { min-height:116px; aspect-ratio:1.48; }
.produce-card:only-child .produce-caption { align-self:center; padding:16px clamp(14px,2.5vw,30px); }
.produce-card:only-child .produce-caption h3 { font-size:clamp(21px,2.6vw,31px); }
.produce-card:only-child .produce-price { margin-top:8px; }
@media(min-width:961px) {
  .store-hero { display:grid; grid-template-columns:minmax(0,38%) minmax(0,1fr); grid-template-areas:"identity cover"; }
  .store-cover { grid-area:cover; height:auto; min-height:clamp(220px,21vw,280px); }
  .store-heading { grid-area:identity; align-self:center; padding:24px clamp(22px,2.8vw,38px); }
  .store-heading h1 { font-size:clamp(36px,3.4vw,50px); }
}
