:root{--bg:#f5f8f2;--card:#fff;--g:#25563b;--soft:#eaf1e8;--line:#e1e8de;--text:#1b2b20;--muted:#718078}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text)}
button,input,textarea{font:inherit}.app{max-width:760px;margin:auto;padding-bottom:90px}
header{position:sticky;top:0;z-index:10;background:#f5f8f2f2;backdrop-filter:blur(12px);padding:14px 16px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px}.brand img{width:58px;height:58px;object-fit:contain}.brand h1{font-size:21px;margin:0}.brand small{color:var(--muted)}
.cartbtn{position:absolute;right:16px;top:20px;width:54px;height:44px;border:0;border-radius:14px;background:#fff;box-shadow:0 7px 22px #1e362315}.cartbtn b{color:var(--g)}
header>input{margin-top:10px;width:100%;padding:13px;border:1px solid var(--line);border-radius:14px;background:#fff}
.hero{margin:16px;padding:21px;border-radius:25px;background:linear-gradient(145deg,#e7f1e3,#d7e6d2)}.hero span{background:#fff;color:var(--g);border-radius:999px;padding:7px 10px;font-size:12px;font-weight:700}.hero h2{font-size:29px;line-height:1.08;margin:13px 0 8px}.hero p{margin:0;color:#5c6b61}
.pad{padding:0 16px}.cats{display:flex;gap:8px;overflow:auto;margin:8px 0 16px}.cats button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 14px;white-space:nowrap}.cats .on{background:var(--g);color:#fff}
.head2{display:flex;justify-content:space-between;align-items:center}.head2 span{color:var(--muted);font-size:13px}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.card{background:#fff;border:1px solid var(--line);border-radius:19px;overflow:hidden}.card img{width:100%;aspect-ratio:1/1.12;object-fit:cover;background:#edf1eb}.ci{padding:12px}.brand2{font-size:12px;color:var(--muted)}.nm{font-weight:750;line-height:1.25;margin-top:4px;min-height:38px}.price{font-weight:800;color:var(--g);font-size:18px;margin-top:9px}.actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0 12px 12px}.actions button,.primary,.link{border:0;border-radius:12px;padding:11px;font-weight:750}.primary{background:var(--g);color:#fff;width:100%}.soft{background:var(--soft);color:var(--g)}.link{background:transparent;color:var(--g)}
nav{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr);padding:8px;z-index:15}nav button{border:0;background:transparent;padding:8px;border-radius:12px;color:var(--muted)}nav .on{background:var(--soft);color:var(--g);font-weight:700}.view{display:none}.view.on{display:block}
.modal{position:fixed;inset:0;background:#0006;display:none;z-index:50}.modal.on{display:block}.sheet{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(760px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:25px 25px 0 0}.sheet>img{width:100%;max-height:390px;object-fit:contain;background:#f0f3ee}.sheet .body{padding:18px}.sheet .body h2{margin:4px 0}.sheet .body p{line-height:1.5;color:#59675e}.x{position:absolute;right:14px;top:14px;border:0;border-radius:50%;width:38px;height:38px;font-size:24px}
.panel,.cartItem,.adminItem{background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px;margin:12px 0}.panel input,.panel textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;margin:6px 0}.panel p,.status{font-size:13px;color:var(--muted);line-height:1.45}.cartItem,.adminItem{display:flex;gap:10px;align-items:center}.cartItem img,.adminItem img{width:66px;height:74px;object-fit:cover;border-radius:10px}.grow{flex:1}.qty button{border:0;background:var(--soft);width:30px;height:30px;border-radius:9px}.empty{text-align:center;color:var(--muted);padding:24px}
@media(min-width:640px){.grid{grid-template-columns:repeat(3,1fr)}}
.brand-home{
  border:0;
  background:transparent;
  padding:0;
  text-align:left;
  color:inherit;
  cursor:pointer;
}
.brand-home:hover{opacity:.88}
.brand-home:active{transform:scale(.99)}

.edit-sheet{
  max-height:94vh;
}
.edit-sheet .body{
  padding-top:22px;
}
.edit-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.edit-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  font-weight:650;
  color:var(--text);
}
.edit-grid label.full{
  grid-column:1/-1;
}
.edit-grid input,
.edit-grid textarea{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  border-radius:12px;
  padding:12px 13px;
  outline:none;
  resize:vertical;
}
.edit-grid input:focus,
.edit-grid textarea:focus{
  border-color:#9fb5a4;
  box-shadow:0 0 0 3px rgba(37,86,59,.08);
}
.edit-actions{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin-top:16px;
}
.edit-cancel{
  background:var(--soft);
  min-width:110px;
}
@media(max-width:560px){
  .edit-grid{
    grid-template-columns:1fr;
  }
  .edit-grid label.full{
    grid-column:auto;
  }
  .edit-actions{
    grid-template-columns:1fr;
  }
}

.orders-panel{margin-top:12px}
.order-card{border:1px solid var(--line);border-radius:16px;padding:14px;margin-top:10px;background:#fbfcfa}
.order-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.order-number{font-weight:800}.order-date{font-size:12px;color:var(--muted);margin-top:3px}
.order-status{border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800;white-space:nowrap}
.order-status.new{background:#fff0c8;color:#765600}
.order-status.processing{background:#e6efff;color:#315792}
.order-status.done{background:#e1f1e3;color:#27613a}
.order-status.cancelled{background:#f7e1e1;color:#8c3434}
.order-customer{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.order-customer div,.order-note{background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 10px;font-size:13px}
.order-note{margin-top:8px}.order-items{margin-top:10px}
.order-product{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}
.order-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.order-actions button{border:0;border-radius:10px;padding:9px 11px;font-weight:700}
.order-actions .processing{background:#e6efff;color:#315792}
.order-actions .done{background:#e1f1e3;color:#27613a}
.order-actions .cancelled{background:#f7e1e1;color:#8c3434}
.order-actions .delete{background:#f3f3f1;color:#5d675f}
@media(max-width:560px){.order-customer{grid-template-columns:1fr}}

.fly-to-cart{
  position:fixed;
  z-index:9999;
  object-fit:cover;
  border-radius:14px;
  pointer-events:none;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
  transition:
    left .62s cubic-bezier(.22,.8,.25,1),
    top .62s cubic-bezier(.22,.8,.25,1),
    transform .62s ease,
    opacity .62s ease;
}
.cart-bump{
  animation:cartBump .42s ease;
}
@keyframes cartBump{
  0%{transform:scale(1)}
  45%{transform:scale(1.22)}
  100%{transform:scale(1)}
}
.order-actions button:disabled{
  opacity:.55;
  cursor:wait;
}

.order-product-rich{
  display:grid;
  grid-template-columns:54px 1fr auto;
  gap:10px;
  align-items:center;
  padding:9px 0;
  border-bottom:1px solid var(--line);
}
.order-product-rich:last-child{border-bottom:0}
.order-product-rich img{
  width:54px;height:62px;object-fit:cover;border-radius:9px;background:#eef1eb
}
.order-product-rich .op-name{font-size:13px;font-weight:700}
.order-product-rich .op-meta{font-size:12px;color:var(--muted);margin-top:3px}
.order-status.ready{background:#e8f5dd;color:#35651f}
.order-actions .ready{background:#e8f5dd;color:#35651f}
.track-result-ready{
  margin-top:10px;padding:12px;border-radius:12px;background:#e8f5dd;color:#35651f;font-weight:700
}

.track-order-card{border:1px solid var(--line);border-radius:14px;padding:12px;margin-top:10px;background:#fff}
.track-order-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.track-order-items{margin-top:9px}
.track-order-item{display:grid;grid-template-columns:42px 1fr auto;gap:8px;align-items:center;padding:7px 0;border-top:1px solid var(--line)}
.track-order-item img{width:42px;height:48px;object-fit:cover;border-radius:8px;background:#eef1eb}
.track-order-status{font-weight:800;color:var(--g)}
.track-help{margin-top:8px;color:var(--muted);font-size:12px;line-height:1.4}

.category-create-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  margin-top:12px;
}
.category-create-row input{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  background:#fff;
}
.category-add-btn{
  width:auto;
  min-width:110px;
}
.category-editor-list{
  display:grid;
  gap:8px;
  margin-top:12px;
}
.category-editor-item{
  display:grid;
  grid-template-columns:1fr auto auto auto;
  gap:8px;
  align-items:center;
  border:1px solid var(--line);
  background:#fbfcfa;
  border-radius:13px;
  padding:10px;
}
.category-editor-main{
  min-width:0;
}
.category-editor-name{
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.category-editor-meta{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
}
.category-editor-item button{
  border:0;
  border-radius:10px;
  padding:9px 10px;
  font-weight:700;
}
.category-rename{background:#e6efff;color:#315792}
.category-merge{background:#e8f5dd;color:#35651f}
.category-delete{background:#f7e1e1;color:#8c3434}
.category-inline-editor{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:8px;
  grid-column:1/-1;
}
.category-inline-editor input,
.category-inline-editor select{
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px;
  background:#fff;
}
@media(max-width:620px){
  .category-editor-item{
    grid-template-columns:1fr 1fr;
  }
  .category-editor-main{
    grid-column:1/-1;
  }
  .category-inline-editor{
    grid-template-columns:1fr;
  }
}

.order-product-link-img{display:block}
.order-product-link-name{
  color:var(--text);
  text-decoration:none;
  font-weight:800;
}
.order-product-link-name:hover{text-decoration:underline}
.order-wb-link{
  display:inline-block;
  margin-top:5px;
  color:var(--g);
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}
.order-wb-link:hover{text-decoration:underline}

.admin-move{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.move-btn{
  width:34px;
  height:28px;
  border:0;
  border-radius:8px;
  background:var(--soft);
  color:var(--g);
  font-weight:900;
  cursor:pointer;
}
.move-btn:hover{filter:brightness(.96)}

#feedback textarea{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff;font:inherit;resize:vertical;margin-top:8px}
#feedback input{margin-top:8px}
.feedback-divider{height:1px;background:var(--line);margin:18px 0}
.feedback-list{display:grid;gap:10px;margin-top:12px}
.feedback-card{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff}
.feedback-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.feedback-badge{background:#eef1eb;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800}
.feedback-badge.is-new{background:#fff0bd;color:#775800}
.feedback-message{white-space:pre-wrap;margin-top:10px;line-height:1.45}
.feedback-answer{margin-top:10px;padding:10px;border-radius:10px;background:#eaf4e5;white-space:pre-wrap}
.feedback-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.feedback-success{padding:10px;border-radius:10px;background:#eaf4e5;color:#205b37;font-weight:800}
[data-page="feedback"][data-unread]:not([data-unread=""])::after{content:attr(data-unread);display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;margin-left:4px;border-radius:999px;background:#d64242;color:#fff;font-size:11px;font-weight:900}

.feedback-top-btn{
  position:absolute;
  right:70px;
  top:20px;
  width:44px;
  height:44px;
  border:0;
  border-radius:14px;
  background:#fff;
  box-shadow:0 7px 22px rgba(30,54,35,.08);
  font-size:20px;
  cursor:pointer;
  z-index:2;
}
.feedback-top-btn:hover{background:var(--soft)}
.feedback-top-btn:active{transform:scale(.96)}

.feedback-check-btn{width:100%;margin-top:8px}
.admin-feedback-panel{margin-top:12px}

.admin-reply-box{margin-top:12px}
.admin-reply-box textarea{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;padding:11px;font:inherit;resize:vertical;background:#fff}
.feedback-answer-new{border-left:4px solid var(--g);box-shadow:0 4px 14px rgba(30,70,40,.08)}

.feedback-badge.answered{background:#dff0df;color:#215c31}
.admin-reply-box textarea:focus{outline:2px solid rgba(37,86,59,.16);border-color:var(--g)}

.feedback-customer-panel{margin-top:12px}
#feedback.view:not(.on),#admin.view:not(.on){display:none!important}

.feedback-label{display:block;margin-top:10px;font-size:13px;font-weight:700}
.feedback-label input,.feedback-label textarea{margin-top:6px}
.feedback-search-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:10px}
.feedback-search-row input{margin:0}
.feedback-search-btn{width:auto;min-width:170px}
@media(max-width:560px){.feedback-search-row{grid-template-columns:1fr}.feedback-search-btn{width:100%}}

.feedback-admin-filters{display:grid;grid-template-columns:1fr 180px;gap:8px;margin-top:12px}
.feedback-admin-filters input,.feedback-admin-filters select{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:11px;padding:10px;background:#fff}
.feedback-badge.answered{background:#dff0df;color:#215c31}
@media(max-width:620px){.feedback-admin-filters{grid-template-columns:1fr}}

.stock-state{margin-top:6px;font-size:12px;font-weight:800}
.stock-state.in{color:#35703f}
.stock-state.out{color:#aa3838}
button:disabled{opacity:.55;cursor:not-allowed}
.stock-track-label{display:grid!important;grid-template-columns:1fr auto;gap:6px 12px;align-items:center}
.stock-track-label input{width:20px!important;height:20px}
.stock-track-label small{grid-column:1/-1;color:var(--muted);font-weight:400;line-height:1.35}

.feedback-thread{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.chat-bubble{max-width:82%;padding:10px 12px;border-radius:14px;line-height:1.4}
.chat-bubble.from-client{align-self:flex-start;background:#f0f2ee;border-bottom-left-radius:4px}
.chat-bubble.from-admin{align-self:flex-end;background:#e4f2df;border-bottom-right-radius:4px}
.chat-role{font-size:11px;font-weight:800;margin-bottom:4px;color:#4b6352}
.chat-time{font-size:10px;color:var(--muted);margin-top:5px}
.client-reply-box{margin-top:12px;display:grid;gap:8px}
.client-reply-box textarea{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;padding:11px;font:inherit;resize:vertical}
.feedback-thread-card{margin-bottom:12px}

.feedback-user-browser{
  margin:12px 0 14px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fafbf8;
}
.feedback-users-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:8px;
  margin-top:10px;
}
.feedback-user-card{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 11px;
  background:#fff;
  text-align:left;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.feedback-user-card.on{
  border-color:var(--g);
  box-shadow:0 0 0 2px rgba(37,86,59,.1);
  background:#f0f7ed;
}
.feedback-user-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.feedback-user-main b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.feedback-user-main span{
  font-size:12px;
  color:var(--muted);
}
.feedback-user-meta{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:flex-end;
  font-size:11px;
}
.feedback-user-meta strong{
  background:#fff0bd;
  color:#745600;
  padding:3px 6px;
  border-radius:999px;
}
.selected-feedback-user{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#eef4eb;
  line-height:1.4;
}

.feedback-tabs{display:flex;gap:8px;margin-top:12px}
.feedback-tab{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-weight:700;
  cursor:pointer;
}
.feedback-tab.on{background:var(--g);color:#fff;border-color:var(--g)}
.feedback-inbox-layout{
  display:grid;
  grid-template-columns:minmax(280px,36%) 1fr;
  gap:12px;
  margin-top:12px;
  min-height:420px;
}
.feedback-inbox-list{
  display:flex;
  flex-direction:column;
  gap:7px;
  max-height:650px;
  overflow:auto;
  padding-right:4px;
}
.feedback-inbox-item{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:10px;
  text-align:left;
  cursor:pointer;
}
.feedback-inbox-item.on{
  border-color:var(--g);
  background:#f0f7ed;
  box-shadow:0 0 0 2px rgba(37,86,59,.08);
}
.feedback-inbox-top{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
}
.feedback-inbox-phone{font-size:12px;color:var(--muted);margin-top:3px}
.feedback-inbox-preview{
  margin-top:7px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#33433a;
}
.feedback-inbox-time{font-size:11px;color:var(--muted);margin-top:6px}
.feedback-open-pane{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  background:#fff;
  min-width:0;
}
.feedback-open-header{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:12px;
}
.feedback-open-header h4{margin:0 0 3px}
.feedback-open-pane .feedback-thread{max-height:430px;overflow:auto;padding-right:4px}
#feedbackReplyText{
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:12px;
  padding:11px;
  resize:vertical;
  font:inherit;
}
@media(max-width:760px){
  .feedback-inbox-layout{grid-template-columns:1fr}
  .feedback-inbox-list{max-height:300px}
}

.payment-label{display:block;margin-top:10px;font-size:13px;font-weight:700}
.payment-label select{width:100%;margin-top:6px;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff;font:inherit}
.payment-hint{font-size:12px;color:var(--muted);margin:8px 0 12px;line-height:1.4}
.payment-admin-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.payment-state{font-size:12px;font-weight:800;background:#fff0c8;color:#765600;border-radius:999px;padding:6px 9px}
.payment-state.paid{background:#e1f1e3;color:#27613a}
@media(max-width:620px){.payment-admin-row{grid-template-columns:1fr}.payment-state{justify-self:start}}

.sbp-pay-choice{
  margin-top:10px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background:#f5faf2;
}
.sbp-pay-title{
  font-weight:800;
  font-size:15px;
}

#hiddenAdminHotspot{
  position:fixed;
  top:0;
  left:0;
  width:18px;
  height:18px;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  opacity:.02;
  z-index:99999;
  cursor:default;
}
#hiddenAdminHotspot:focus{
  outline:none;
}

/* ===== Mobile hardening ===== */
html,body{
  max-width:100%;
  overflow-x:hidden;
}
*,*::before,*::after{
  box-sizing:border-box;
}
img,video,canvas,svg{
  max-width:100%;
}
.app,header,.pad,.panel,.hero,.view{
  max-width:100%;
  min-width:0;
}
input,textarea,select,button{
  max-width:100%;
  min-width:0;
}
.actions,.feedback-actions,.head2,.track-order-head,.feedback-head{
  min-width:0;
}
.actions > *, .feedback-actions > *{
  min-width:0;
}

/* Bottom navigation stays inside the phone safe area */
nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  width:100%;
  max-width:100vw;
  padding-bottom:env(safe-area-inset-bottom,0px);
  overflow:hidden;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
}
nav button{
  width:100%;
  min-width:0;
  max-width:100%;
  padding:10px 6px;
  white-space:normal;
  line-height:1.1;
  overflow:hidden;
  text-overflow:ellipsis;
}
nav button span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
}
body{
  padding-bottom:calc(78px + env(safe-area-inset-bottom,0px));
}

@media(max-width:700px){
  .app{
    width:100%;
    max-width:100%;
    margin:0;
  }
  header{
    width:100%;
    padding-left:12px;
    padding-right:12px;
  }
  .pad{
    padding-left:12px;
    padding-right:12px;
  }
  .hero{
    margin-left:12px;
    margin-right:12px;
  }
  .grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .card{
    min-width:0;
    width:100%;
  }
  .card .actions{
    display:grid;
    grid-template-columns:1fr;
    gap:7px;
  }
  .card .actions button{
    width:100%;
    min-width:0;
    padding-left:6px;
    padding-right:6px;
  }
  .feedback-search-row,
  .feedback-inbox-layout,
  .payment-admin-row,
  .category-create-row,
  .category-inline-editor{
    grid-template-columns:1fr!important;
  }
  .feedback-actions{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }
  .feedback-actions button{
    width:100%;
  }
  .feedback-open-pane,
  .feedback-inbox-list{
    min-width:0;
    width:100%;
  }
  .chat-bubble{
    max-width:92%;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
}

@media(max-width:420px){
  header{
    grid-template-columns:1fr auto auto;
  }
  .brand{
    min-width:0;
  }
  .brand h1{
    font-size:18px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .brand img{
    width:48px;
    height:48px;
  }
  .feedback-top-btn,
  .cartbtn{
    width:42px;
    height:42px;
    min-width:42px;
  }
  .hero h2{
    font-size:28px;
    line-height:1.08;
  }
  .grid{
    grid-template-columns:1fr;
  }
  nav button{
    font-size:12px;
    padding:9px 4px;
  }
}

.feedback-top-btn,
#hiddenAdminHotspot{
  display:none !important;
}

/* ===== Categories: mobile fix ===== */
.cats{
  display:flex;
  gap:8px;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  margin:8px 0 18px;
  padding:2px 2px 8px;
  scroll-padding-left:2px;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  justify-content:flex-start !important;
}
.cats button{
  flex:0 0 auto;
  max-width:none;
  min-width:max-content;
  white-space:nowrap;
  line-height:1.15;
}
.cats button:first-child{
  margin-left:0;
}
@media(max-width:700px){
  .cats{
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0;
    padding-right:10px;
  }
  .cats button{
    padding:10px 13px;
    font-size:14px;
  }
}
@media(max-width:430px){
  .cats button{
    padding:9px 12px;
    font-size:13px;
  }
}

/* MAX embedded WebView safe areas */
.in-max body{
  padding-top:env(safe-area-inset-top,0px);
}
.in-max nav{
  padding-bottom:max(8px,env(safe-area-inset-bottom,0px));
}
.in-max .cats{
  touch-action:pan-x;
}
