
/* ==========================================================================
   MY FOOD STORE — food inventory hub inside My Kitchen.

   Uses the Kitchen's existing language: white ground, navy type, stone /
   oatmeal / sage / blush, rounded cards, soft shadows. Nothing about My
   Kitchen itself is redesigned.

   PREFIX CHECKED: `fs-` was already taken (63 matches). `fsx-` is free, and
   every rule is scoped to #page-food-store anyway.
   ========================================================================== */
#page-food-store{
  --fsx-navy:#1F3054;
  --fsx-ink:#3E4B65;
  --fsx-stone:#EFEAE3;
  --fsx-cream:#FBF7F1;
  --fsx-sage:#5F7350;
  --fsx-sage-l:#EBF0E9;
  --fsx-blush:#C98A80;
  --fsx-blush-d:#8C4C40;
  --fsx-blush-l:#F9F0ED;
  --fsx-amber:#8C6A2C;
  --fsx-amber-l:#FBF3E3;
  --fsx-line:#E7E0D6;
  background:#FEFDFB !important;
  font-family:'Nunito',system-ui,-apple-system,sans-serif;
}
#page-food-store .fsx-wrap{ max-width:1180px; margin:0 auto; padding:0 clamp(18px,4vw,34px); }
#page-food-store .fsx-wrap section, #page-food-store .fsx-sec{ padding:0 !important; }
#page-food-store .fsx-sec{ margin:0 0 clamp(38px,5.5vw,64px); min-width:0; }
#page-food-store .fsx-body{ padding:clamp(20px,3vw,34px) 0 120px; min-width:0; }

/* ---- type ---------------------------------------------------------------- */
#page-food-store .fsx-eb{
  font-size:.7rem; font-weight:800; letter-spacing:.24em; text-transform:uppercase; margin:0 0 10px;
  color:var(--fsx-blush-d) !important; -webkit-text-fill-color:var(--fsx-blush-d) !important;
}
#page-food-store .fsx-h1{
  font-family:'Playfair Display',Georgia,serif !important;
  font-size:clamp(1.9rem,4.4vw,2.9rem) !important; font-weight:700 !important; line-height:1.12;
  margin:0 0 8px !important; color:var(--fsx-navy) !important; -webkit-text-fill-color:var(--fsx-navy) !important;
}
#page-food-store .fsx-h2{
  font-family:'Playfair Display',Georgia,serif !important;
  font-size:clamp(1.25rem,2.5vw,1.7rem) !important; font-weight:700 !important; line-height:1.22;
  margin:0 0 6px !important; color:var(--fsx-navy) !important; -webkit-text-fill-color:var(--fsx-navy) !important;
}
#page-food-store .fsx-h3{
  font-size:.98rem !important; font-weight:800 !important; margin:0 !important;
  color:var(--fsx-navy) !important; -webkit-text-fill-color:var(--fsx-navy) !important;
}
#page-food-store .fsx-lead{
  margin:0; font-size:clamp(.95rem,1.4vw,1.03rem); line-height:1.7; max-width:62ch;
  color:#4A5670 !important; -webkit-text-fill-color:#4A5670 !important;
}
#page-food-store .fsx-note{ margin:12px 0 0; font-size:.81rem; line-height:1.7;
  color:#5A6478 !important; -webkit-text-fill-color:#5A6478 !important; }
#page-food-store .fsx-hrow{ display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px; flex-wrap:wrap; margin:0 0 18px; }

/* ---- header -------------------------------------------------------------- */
#page-food-store .fsx-backbar{
  max-width:1180px; margin:0 auto; padding:14px clamp(18px,4vw,34px) 0;
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}
#page-food-store .fsx-sr{
  position:absolute !important; width:1px !important; height:1px !important;
  padding:0 !important; margin:-1px !important; overflow:hidden !important;
  clip:rect(0 0 0 0) !important; white-space:nowrap !important; border:0 !important;
}
#page-food-store .fsx-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap;
  padding:clamp(14px,2.4vw,28px) 0 clamp(18px,2.6vw,28px);
}

/* ---- buttons -------------------------------------------------------------- */
#page-food-store .fsx-b, #fsxSheet .fsx-b{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:50px; padding:14px 22px; border-radius:999px; cursor:pointer; font:inherit;
  font-size:.88rem; font-weight:800; text-align:center;
  background:#fff !important; border:1px solid var(--fsx-line) !important;
  color:var(--fsx-navy) !important; -webkit-text-fill-color:var(--fsx-navy) !important;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
#page-food-store .fsx-b:hover, #fsxSheet .fsx-b:hover{ background:var(--fsx-stone) !important; }
#page-food-store .fsx-b.is-navy, #fsxSheet .fsx-b.is-navy{
  background:var(--fsx-navy) !important; border-color:var(--fsx-navy) !important;
  color:#fff !important; -webkit-text-fill-color:#fff !important;
}
#page-food-store .fsx-b.is-sm, #fsxSheet .fsx-b.is-sm{ min-height:44px; padding:11px 16px; font-size:.81rem; }
#page-food-store .fsx-b svg, #fsxSheet .fsx-b svg{ width:16px; height:16px; flex:none;
  stroke:currentColor; fill:none; stroke-width:1.85; stroke-linecap:round; stroke-linejoin:round; }
#page-food-store .fsx-b:focus-visible, #fsxSheet .fsx-b:focus-visible,
#page-food-store .fsx-sum:focus-visible, #page-food-store .fsx-loc:focus-visible,
#page-food-store .fsx-q:focus-visible, #page-food-store .fsx-mini:focus-visible{
  outline:3px solid #CF9E3F; outline-offset:3px; }
#page-food-store .fsx-acts{ display:flex; gap:10px; flex-wrap:wrap; }

/* ---- summary --------------------------------------------------------------- */
#page-food-store .fsx-sums{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
#page-food-store .fsx-sum{
  border-radius:22px; padding:22px; cursor:pointer; font:inherit; text-align:left; min-width:0;
  background:#fff !important; border:1px solid var(--fsx-line) !important;
  display:flex; flex-direction:column; gap:4px;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
#page-food-store .fsx-sum:hover{ transform:translateY(-2px); box-shadow:0 14px 32px rgba(31,48,84,.10); }
#page-food-store .fsx-sum[aria-pressed="true"]{ border-color:var(--fsx-navy) !important;
  box-shadow:0 0 0 2px rgba(31,48,84,.14); }
#page-food-store .fsx-sum-k{
  font-size:.68rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase;
  color:#5A6478 !important; -webkit-text-fill-color:#5A6478 !important;
}
#page-food-store .fsx-sum-v{
  font-family:'Playfair Display',Georgia,serif; font-size:clamp(1.6rem,3vw,2.1rem); font-weight:700; line-height:1;
  color:var(--fsx-navy) !important; -webkit-text-fill-color:var(--fsx-navy) !important;
}
#page-food-store .fsx-sum-d{ font-size:.83rem;
  color:#57647E !important; -webkit-text-fill-color:#57647E !important; }
#page-food-store .fsx-sum.is-warn[aria-pressed="true"]{ border-color:#C98A80 !important;
  box-shadow:0 0 0 2px rgba(201,138,128,.24); }

/* ---- tools ------------------------------------------------------------------ */
#page-food-store .fsx-tools{ display:flex; gap:12px; flex-wrap:wrap; }
#page-food-store .fsx-i, #fsxSheet .fsx-i{
  box-sizing:border-box; min-height:50px; padding:13px 18px; border-radius:16px;
  font:inherit; font-size:.94rem; min-width:0; width:100%;
  background:#fff !important; border:1px solid var(--fsx-line) !important;
  color:var(--fsx-navy) !important; -webkit-text-fill-color:var(--fsx-navy) !important;
}
#page-food-store textarea.fsx-i, #fsxSheet textarea.fsx-i{ min-height:80px; resize:vertical; }
#page-food-store .fsx-i:focus, #fsxSheet .fsx-i:focus{ outline:none; border-color:var(--fsx-blush) !important;
  box-shadow:0 0 0 3px rgba(201,138,128,.24); }
#page-food-store .fsx-fl, #fsxSheet .fsx-fl{
  display:block; margin:0 0 7px; font-size:.71rem; font-weight:800; letter-spacing:.14em;
  text-transform:uppercase;
  color:#5A6478 !important; -webkit-text-fill-color:#5A6478 !important;
}
#fsxSheet .fsx-f{ margin:0 0 14px; }
#fsxSheet .fsx-fgrid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; }

/* ---- locations ----------------------------------------------------------------- */
#page-food-store .fsx-locs{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
#page-food-store .fsx-loc{
  border-radius:18px; padding:16px 14px; cursor:pointer; font:inherit; text-align:left; min-width:0;
  background:var(--fsx-cream) !important; border:1px solid #EFE6DA !important;
  display:flex; flex-direction:column; gap:3px; min-height:74px;
  transition:transform .16s ease, box-shadow .16s ease;
}
#page-food-store .fsx-loc:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(31,48,84,.09); }
#page-food-store .fsx-loc[aria-pressed="true"]{
  background:var(--fsx-navy) !important; border-color:var(--fsx-navy) !important; }
#page-food-store .fsx-loc[aria-pressed="true"] .fsx-loc-n,
#page-food-store .fsx-loc[aria-pressed="true"] .fsx-loc-c{
  color:#fff !important; -webkit-text-fill-color:#fff !important; }
#page-food-store .fsx-loc-n{ font-size:.86rem; font-weight:800; line-height:1.3;
  color:var(--fsx-navy) !important; -webkit-text-fill-color:var(--fsx-navy) !important; }
#page-food-store .fsx-loc-c{ font-size:.76rem;
  color:#5A6478 !important; -webkit-text-fill-color:#5A6478 !important; }
#page-food-store .fsx-loc.is-add{ background:#fff !important; border-style:dashed !important;
  align-items:center; justify-content:center; }
#page-food-store .fsx-loc.is-add .fsx-loc-n{ color:var(--fsx-blush-d) !important;
  -webkit-text-fill-color:var(--fsx-blush-d) !important; }

/* ---- item rows -------------------------------------------------------------------- */
#page-food-store .fsx-list{ display:flex; flex-direction:column; gap:10px; }
#page-food-store .fsx-item{
  background:#fff !important; border:1px solid var(--fsx-line) !important; border-radius:20px;
  padding:16px 18px; box-shadow:0 2px 12px rgba(31,48,84,.04);
}
#page-food-store .fsx-item.is-soon{ border-color:#E8C7BF !important; background:#FFFBFA !important; }
#page-food-store .fsx-item.is-low{ border-color:#EBD9AE !important; background:#FFFDF7 !important; }
#page-food-store .fsx-item-top{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
#page-food-store .fsx-item-t{ flex:1 1 200px; min-width:0; }
#page-food-store .fsx-item-n{ font-size:.98rem; font-weight:800;
  color:var(--fsx-navy) !important; -webkit-text-fill-color:var(--fsx-navy) !important; }
#page-food-store .fsx-meta{ display:flex; gap:8px; flex-wrap:wrap; margin:5px 0 0; }
#page-food-store .fsx-tag{
  font-size:.71rem; font-weight:800; padding:3px 10px; border-radius:99px;
  background:var(--fsx-stone) !important; color:#5A5145 !important; -webkit-text-fill-color:#5A5145 !important;
}
#page-food-store .fsx-tag.is-soon{ background:var(--fsx-blush-l) !important; color:#8C4C40 !important; -webkit-text-fill-color:#8C4C40 !important; }
#page-food-store .fsx-tag.is-over{ background:#F3DAD4 !important; color:#7A342A !important; -webkit-text-fill-color:#7A342A !important; }
#page-food-store .fsx-tag.is-low{ background:var(--fsx-amber-l) !important; color:#6B5427 !important; -webkit-text-fill-color:#6B5427 !important; }
#page-food-store .fsx-tag.is-ok{ background:var(--fsx-sage-l) !important; color:#3F5237 !important; -webkit-text-fill-color:#3F5237 !important; }

#page-food-store .fsx-qty{ display:flex; align-items:center; gap:10px; flex:none; }
#page-food-store .fsx-q{
  width:44px; height:44px; min-height:44px; border-radius:50%; cursor:pointer; font:inherit;
  font-size:1.15rem; font-weight:800; padding:0;
  background:#fff !important; border:1px solid var(--fsx-line) !important;
  color:var(--fsx-navy) !important; -webkit-text-fill-color:var(--fsx-navy) !important;
}
#page-food-store .fsx-q:hover{ background:var(--fsx-stone) !important; }
#page-food-store .fsx-qv{ min-width:64px; text-align:center; font-size:.92rem; font-weight:800;
  color:var(--fsx-navy) !important; -webkit-text-fill-color:var(--fsx-navy) !important; }
#page-food-store .fsx-item-acts{ display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 0; }
#page-food-store .fsx-mini{
  min-height:44px; padding:9px 14px; border-radius:999px; cursor:pointer; font:inherit;
  font-size:.77rem; font-weight:800;
  background:#fff !important; border:1px solid var(--fsx-line) !important;
  color:#4A5670 !important; -webkit-text-fill-color:#4A5670 !important;
}
#page-food-store .fsx-mini:hover{ background:var(--fsx-stone) !important; }
#page-food-store .fsx-mini.is-go{
  background:var(--fsx-sage-l) !important; border-color:#CFDDC9 !important;
  color:#3F5237 !important; -webkit-text-fill-color:#3F5237 !important; }

/* ---- empty ------------------------------------------------------------------------- */
#page-food-store .fsx-empty{
  padding:42px 26px; text-align:center; border-radius:24px;
  border:1px dashed #E0D6C6 !important; background:var(--fsx-cream) !important;
}

/* ---- connections --------------------------------------------------------------------- */
#page-food-store .fsx-conn{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
#page-food-store .fsx-c{
  background:#fff !important; border:1px solid var(--fsx-line) !important; border-radius:22px;
  padding:22px; display:flex; flex-direction:column; gap:8px; text-align:left; width:100%;
  cursor:pointer; font:inherit; min-width:0;
  transition:transform .16s ease, box-shadow .16s ease;
}
#page-food-store .fsx-c:hover{ transform:translateY(-3px); box-shadow:0 16px 38px rgba(31,48,84,.10); }
#page-food-store .fsx-c-d{ font-size:.86rem; line-height:1.6;
  color:#57647E !important; -webkit-text-fill-color:#57647E !important; }
#page-food-store .fsx-c-f{ margin-top:auto; padding-top:10px; font-size:.78rem; font-weight:800;
  color:var(--fsx-blush-d) !important; -webkit-text-fill-color:var(--fsx-blush-d) !important; }

/* ---- sheet ------------------------------------------------------------------------------ */
#fsxSheet{
  position:fixed; inset:0; z-index:9550; display:none; align-items:flex-end; justify-content:center;
  background:rgba(20,28,44,.48); font-family:'Nunito',system-ui,sans-serif;
}
#fsxSheet.is-open{ display:flex; }
#fsxSheet .fsx-box{
  width:100%; max-width:600px; max-height:calc(100dvh - 40px); overflow-y:auto;
  background:#fff !important; border-radius:28px 28px 0 0; padding:26px clamp(18px,4vw,30px) 34px;
  box-shadow:0 -14px 68px rgba(20,28,44,.3);
}
@media (min-width:720px){
  #fsxSheet{ align-items:center; padding:16px; }
  #fsxSheet .fsx-box{ border-radius:28px; padding-bottom:28px; }
}
#fsxSheet .fsx-box-h{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin:0 0 10px; }
#fsxSheet .fsx-box-t{
  font-family:'Playfair Display',Georgia,serif !important; font-size:1.28rem !important; font-weight:700 !important;
  margin:0 !important; color:#1F3054 !important; -webkit-text-fill-color:#1F3054 !important; }
#fsxSheet .fsx-box-x{
  flex:none; width:44px; height:44px; min-height:44px; border-radius:50%; cursor:pointer; font:inherit; font-size:1.05rem;
  background:#EFEAE3 !important; border:1px solid #E7E0D6 !important;
  color:#1F3054 !important; -webkit-text-fill-color:#1F3054 !important; }
#fsxSheet .fsx-box-b{ font-size:.92rem; line-height:1.7;
  color:#3E4B65 !important; -webkit-text-fill-color:#3E4B65 !important; }
#fsxSheet .fsx-box-b > p{ margin:0 0 13px; color:#3E4B65 !important; -webkit-text-fill-color:#3E4B65 !important; }
#fsxSheet .fsx-box-f{ display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; margin:20px 0 0; }
#fsxSheet .fsx-honest{
  background:#FBF3E3 !important; border-radius:16px; padding:15px 17px; margin:14px 0 0;
  font-size:.85rem; line-height:1.65;
  color:#6B5427 !important; -webkit-text-fill-color:#6B5427 !important; }
#fsxSheet .fsx-have{
  background:#EBF0E9 !important; border-radius:16px; padding:15px 17px; margin:0 0 14px;
  font-size:.9rem; line-height:1.65;
  color:#3F5237 !important; -webkit-text-fill-color:#3F5237 !important; }
#fsxSheet .fsx-check{
  display:flex; align-items:center; gap:11px; padding:11px 13px; border-radius:14px;
  border:1px solid #E7E0D6; margin:0 0 8px; cursor:pointer; min-height:52px;
}
#fsxSheet .fsx-check input{ width:20px; height:20px; flex:none; }
#fsxSheet .fsx-check span{ font-size:.88rem; font-weight:700;
  color:#1F3054 !important; -webkit-text-fill-color:#1F3054 !important; }
#fsxSheet .fsx-check small{ display:block; font-size:.75rem; font-weight:600;
  color:#5A6478 !important; -webkit-text-fill-color:#5A6478 !important; }

/* ---- toast --------------------------------------------------------------------------------- */
#fsxToast{
  position:fixed; left:50%; bottom:26px; transform:translate(-50%,14px); z-index:9750;
  background:#1F3054 !important; color:#fff !important; -webkit-text-fill-color:#fff !important;
  padding:14px 24px; border-radius:999px; font-family:'Nunito',system-ui,sans-serif;
  font-size:.87rem; font-weight:700; opacity:0; pointer-events:none;
  transition:opacity .2s, transform .2s; max-width:calc(100vw - 32px); text-align:center;
}
#fsxToast.on{ opacity:1; transform:translate(-50%,0); }

/* ---- the counts on the My Kitchen tile ------------------------------------------------------- */
#mkxSec .fsx-badge{
  position:absolute; left:10px; bottom:10px; z-index:2;
  display:inline-flex; gap:6px; flex-wrap:wrap; max-width:calc(100% - 20px);
}
#mkxSec .fsx-badge span{
  font-size:.66rem; font-weight:800; padding:3px 8px; border-radius:99px;
  background:rgba(255,255,255,.94); color:#5A4A2E; box-shadow:0 2px 8px rgba(31,48,84,.14);
}

/* ---- responsive -------------------------------------------------------------------------------- */
@media (max-width:1020px){
  #page-food-store .fsx-locs{ grid-template-columns:repeat(4,minmax(0,1fr)); }
  #page-food-store .fsx-conn{ grid-template-columns:1fr; }
}
@media (max-width:620px){
  #page-food-store .fsx-sums{ grid-template-columns:1fr; }
  #page-food-store .fsx-locs{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  #page-food-store .fsx-acts .fsx-b{ flex:1 1 auto; }
  #page-food-store .fsx-tools > *{ flex:1 1 100%; }
  #page-food-store .fsx-item-top{ align-items:flex-start; }
  #page-food-store .fsx-qty{ width:100%; justify-content:space-between; }
}

