body { margin:0; padding-bottom:4rem; background:#fbfaf7; }
button, input, summary { font:inherit; }
button, summary { color:inherit; cursor:pointer; }
.shop-header { background:#fff; }
.masthead { display:flex; align-items:center; gap:clamp(1rem,4vw,4rem); padding-block:.9rem; }
.masthead .brand img { height:3.1rem; width:auto; }
.shop-search { flex:1; max-width:37rem; position:relative; }
.shop-search input { width:100%; height:2.8rem; padding:.65rem .9rem .65rem 2.65rem; border:1px solid #c9c6c1; border-radius:4px; color:var(--ink); background:#faf9f7; font-size:1rem; }
.shop-search::before { content:""; position:absolute; width:.78rem; height:.78rem; left:.95rem; top:.84rem; border:1.8px solid var(--ink); border-radius:50%; pointer-events:none; }
.shop-search::after { content:""; position:absolute; background:var(--ink); width:.45rem; height:2px; transform:rotate(45deg); top:1.68rem; left:1.65rem; pointer-events:none; }
.utility { display:flex; gap:1rem; align-items:center; margin-left:auto; }
.utility a { text-decoration:none; font-size:.94rem; }
.utility a:hover, .crumb a:hover { text-decoration:underline; }
#language { border-left:1px solid var(--ring-strong); padding-left:1rem; }
.shop-bar { background:var(--navy); color:#fff; }
.shop-nav { position:relative; display:flex; align-items:stretch; gap:1.65rem; }
.shop-nav summary, .collections button { display:flex; align-items:center; min-height:48px; padding:.15rem 0 0; border:0; border-bottom:3px solid transparent; border-radius:0; background:none; font-weight:650; }
.shop-nav summary { list-style:none; gap:.65rem; }
.shop-nav summary::-webkit-details-marker { display:none; }
.shop-nav summary::after { content:""; width:.44rem; height:.44rem; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:translateY(-2px) rotate(45deg); }
.shop-nav details[open] summary::after { transform:translateY(1px) rotate(225deg); }
.shop-nav details[open] summary, .collections button[aria-pressed="true"] { border-color:var(--accent); }
.shop-nav summary:hover, .collections button:hover { color:#ffbd83; }
.shop-nav :is(summary,.collections button):focus-visible { outline:2px solid #ffc18a; outline-offset:-2px; }
.collections { margin-left:auto; display:flex; gap:1.5rem; }
.shop-panel { position:absolute; z-index:4; left:20px; right:20px; top:100%; padding:1rem 1.5rem 1.5rem; color:var(--ink); background:white; border:1px solid #dedbd5; border-top:0; box-shadow:0 12px 18px #25222017; max-height:65vh; overflow:auto; }
.shop-panel button, .crumb button { display:block; min-height:40px; padding:.35rem 0; text-align:left; background:none; border:0; }
.menu-overview { display:flex; gap:1.5rem; }
.menu-overview button, .shop-panel > button { font-weight:700; text-decoration:underline; text-underline-offset:4px; }
.department-list, .brand-links { display:grid; grid-template-columns:repeat(auto-fit,minmax(11rem,1fr)); gap:1.25rem; padding-top:.85rem; border-top:1px solid var(--ring); }
.department-list h2 { margin:0 0 .45rem; font-size:.99rem; }
.department-list button, .brand-links button { color:var(--ink-soft); }
.shop-panel button:hover, .shop-panel button[aria-pressed="true"] { color:#8c410b; text-decoration:underline; text-underline-offset:4px; }
.brand-links { grid-template-columns:repeat(auto-fill,minmax(12rem,1fr)); gap:.1rem 1rem; }
.crumb { display:flex; align-items:center; flex-wrap:wrap; gap:.55rem; padding-top:1rem; color:var(--ink-soft); font-size:.9rem; }
.crumb a { text-decoration:none; } .crumb button { min-height:36px; }
.crumb button:hover { text-decoration:underline; }
#crumb-current::before { content:"/"; padding-right:.55rem; }
.collection-heading { display:flex; justify-content:space-between; align-items:baseline; gap:1rem; margin:.7rem 0 1.1rem; padding-bottom:.9rem; border-bottom:1px solid var(--ring-strong); }
.collection-heading h1 { margin:0; font-size:clamp(2rem,4.2vw,3.5rem); line-height:1.06; letter-spacing:-.045em; }
#result { color:var(--ink-soft); margin:0; }
#reference-note { color:var(--ink-soft); margin:0 0 1rem; }
#reset { margin:0 0 1rem; }
#more, #reset, #close {
  min-height:44px;
  padding:.6rem 1.15rem;
  border:1px solid var(--ring-strong);
  border-radius:3px;
  background:white;
  font-weight:650;
}
#more { color:white; background:var(--navy); border-color:var(--navy); }
#more:hover { background:#344052; }
#reset:hover, #close:hover { border-color:var(--ink); }

.cat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.product { display:flex; flex-direction:column; align-items:stretch; text-align:left; background:white; border:1px solid var(--ring); border-radius:4px; padding:1rem; min-width:0; }
.product:hover { border-color:#ac5013; }
:focus-visible { outline:3px solid #805011; outline-offset:3px; }
.photo-pending { display:grid; place-items:center; color:var(--ink-soft); font-size:.85rem; }
.product img, .product .photo-pending { width:100%; height:clamp(8rem,14vw,11rem); padding:.65rem; box-sizing:border-box; object-fit:contain; }
.product .brand-name, .product .serving { font-size:.9rem; color:var(--ink-soft); }
.product strong { font-size:1.15rem; line-height:1.25; margin:.25rem 0 .5rem; }
.product .serving { margin-top:auto; }
#more { display:block; margin:1.5rem auto 0; }
[hidden] { display:none !important; }
dialog { border:0; border-radius:1.25rem; color:var(--ink); width:min(36rem,calc(100% - 2rem)); max-height:85dvh; padding:1.5rem; box-shadow:var(--shadow-lg); }
dialog::backdrop { background:rgba(19,24,33,.65); }
dialog form { text-align:right; }
.detail-intro { display:flex; align-items:center; gap:1.2rem; margin:.25rem 0 1rem; }
.detail-intro img, .detail-intro .photo-pending { width:32%; height:8rem; object-fit:contain; }
.detail-intro h2 { font-size:1.6rem; margin:.25rem 0; }
dialog h3 { margin:1.1rem 0 .45rem; font-size:1.1rem; }
dialog p { margin:.3rem 0; line-height:1.45; }
dl { margin:.5rem 0; }
dl div { display:flex; justify-content:space-between; gap:1rem; border-bottom:1px solid var(--ring); padding:.4rem 0; }
dd { margin:0; font-weight:700; }

@media(max-width:800px) {
  .cat-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:640px) {
  .masthead { flex-wrap:wrap; gap:.5rem 1rem; padding-block:.65rem; }
  .masthead .brand img { height:2.45rem; }
  .shop-search { flex:1 0 100%; order:1; max-width:none; }
  .shop-nav { flex-wrap:wrap; gap:0 1.35rem; }
  .shop-nav details { position:static; }
  .shop-panel { top:48px; left:0; right:0; max-height:55dvh; padding:.8rem 1.25rem 1rem; }
  .department-list, .brand-links { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem 1rem; }
  .shop-panel button { min-height:44px; }
  .collections { flex-basis:100%; gap:1.25rem; border-top:1px solid #ffffff28; }
  .collections button { font-size:.94rem; min-height:44px; }
  .cat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
  .product { padding:.75rem; }
  .collection-heading { flex-wrap:wrap; gap:.4rem 1rem; }
}

[hidden]{display:none!important}
#machine-label{display:inline-flex;align-items:center;gap:.7rem;font-weight:600;margin-top:.7rem}
#machine-filter{color:inherit;background:white;padding:.5rem;border:1px solid #b9b3aa;border-radius:.3rem;max-width:100%}
.placement{display:block}
