/* Topbar, header, footer, bottom navigation. Values measured from the live store; breakpoints 480/640/782/900/1100. */
:root { --monte-topbar-h: 40px; --monte-header-text: #000000; --monte-panel: #ffffff; --monte-card-bg: #ffffff; --monte-header-bg-solid: rgba(154,160,126,.96); }
.monte-container { max-width: var(--monte-container); margin-inline: auto; padding-inline: 20px; width: 100%; }

/* Topbar */

/* Header */
.monte-header { position: sticky; top: var(--monte-topbar-h); z-index: 100; background: var(--monte-header-bg); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--monte-border); color: var(--monte-header-text); }
body:not(:has(.monte-topbar)) .monte-header { top: 0; }
.monte-nav-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 14px; position: relative; }
.monte-logo { display: flex; align-items: center; min-height: 76.1px; order: 1; text-decoration: none; color: inherit; font-weight: var(--monte-w-title); }
.monte-logo__img { width: 62px; height: 62px; object-fit: contain; display: block; }
.monte-main-links { display: flex; align-items: center; gap: 30px; order: 2; }
.monte-main-links a { color: var(--monte-header-text); text-decoration: none; font-size: 15px; font-weight: var(--monte-w-medium); padding: 0; }
.monte-main-links a:hover { color: var(--monte-accent-2); }
.monte-search-wrap { order: 3; flex: 0 1 420px; max-width: 420px; }
.monte-search { display: flex; align-items: center; gap: 8px; width: 340px; max-width: 100%; height: 43px; padding-inline: 14px; background: var(--monte-ghost-bg); border: 1px solid var(--monte-border-2); border-radius: var(--monte-radius-btn); color: var(--monte-text-dim); }
.monte-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--monte-text); }
.monte-search input::placeholder { color: var(--monte-text-dimmer); }
.monte-search:focus-within { border-color: var(--monte-accent); }
.monte-nav-actions { display: flex; align-items: center; gap: 10px; order: 4; }
.monte-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; background: var(--monte-ghost-bg); border: 1px solid var(--monte-border-2); border-radius: var(--monte-radius-btn); color: var(--monte-header-text); cursor: pointer; text-decoration: none; transition: background .15s; }
.monte-icon-btn:hover { background: var(--monte-ghost-bg-hover); }
.monte-badge { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 18px; height: 18px; padding-inline: 4px; border-radius: 9px; background: var(--monte-accent-2); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: var(--monte-w-bold); }
.monte-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding-inline: 14px; background: var(--monte-ghost-bg); border: 1px solid var(--monte-border-2); border-radius: var(--monte-radius-btn); color: var(--monte-header-text); text-decoration: none; font-size: 14px; font-weight: var(--monte-w-medium); white-space: nowrap; }
.monte-btn-ghost:hover { background: var(--monte-ghost-bg-hover); }
.monte-btn-ghost__icon { display: none; }
.monte-ico-moon { display: none; }
html[data-monte-theme='dark'] .monte-ico-sun { display: none; }
html[data-monte-theme='dark'] .monte-ico-moon { display: inline-flex; }
.monte-ico-sun, .monte-ico-moon { display: inline-flex; }

/* Burger + mobile panel */
.monte-burger { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; background: var(--monte-ghost-bg); border: 1px solid var(--monte-border-2); border-radius: var(--monte-radius-btn); cursor: pointer; order: 0; }
.monte-burger span, .monte-burger span::before, .monte-burger span::after { display: block; width: 18px; height: 2px; background: var(--monte-header-text); border-radius: 2px; position: relative; content: ''; }
.monte-burger span::before { position: absolute; top: -6px; }
.monte-burger span::after { position: absolute; top: 6px; }
.monte-mobile-panel { padding: 10px 0 16px; border-top: 1px solid var(--monte-border); background: var(--monte-header-bg-solid); }
.monte-mobile-panel[hidden] { display: none; }
.monte-mobile-panel nav { display: flex; flex-direction: column; }
.monte-mobile-panel a { padding: 12px 4px; color: var(--monte-header-text); text-decoration: none; font-weight: var(--monte-w-medium); border-bottom: 1px solid rgba(0,0,0,.06); }

/* Second search row (small screens) */
.monte-mob-search { display: none; padding-bottom: 12px; }
.monte-mob-search .monte-search-wrap { max-width: none; flex: 1 1 100%; }
.monte-mob-search .monte-search { width: 100%; }

.monte-topbar { position: sticky; top: 0; z-index: 101; display: flex; align-items: center; min-height: var(--monte-topbar-h); height: var(--monte-topbar-h); overflow: hidden; background: var(--monte-topbar-bg); background-size: 300% 100%; color: var(--monte-topbar-text); font-size: 13px; font-weight: 400; line-height: 24.7px; }
.monte-topbar__inner { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 6px 16px; font-weight: 600; line-height: 23.4px; }
.monte-topbar__side { display: block; overflow: hidden; white-space: nowrap; font-size: 12.5px; font-weight: 500; line-height: 22.5px; text-align: start; }
.monte-topbar__centre { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; line-height: 23.4px; }
.monte-topbar__icon { display: block; flex: 0 0 auto; width: 20px; height: 20px; }
.monte-topbar__text { display: block; }
.monte-topbar__text a { color: inherit; text-decoration: none; }
.monte-topbar__end { text-align: end; }

.monte-search { border-radius: 11px; }
.monte-search .monte-icon { width: 16px; height: 16px; flex: 0 0 16px; color: #5e5e5e; }
.monte-search input[type=search] { height: 23px; padding: 0; }
.monte-btn-ghost { gap: 0; padding-inline: 18px; font-size: 13.5px; font-weight: 700; }
.monte-btn-ghost__icon { display: none; }
.monte-mob-search { display: none; }
.monte-bn { display: none; }
.monte-bn__badge-wrap{position:relative;display:block;width:23px;height:23px}
.monte-bn__badge{position:absolute;top:-6px;inset-inline-start:-8px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--monte-accent-2,#4b5320);color:#fff;font-size:10px;line-height:16px;text-align:center}

/* Breakpoints measured on the live store: 1100 (search hides), 900 (burger), 782 (mobile), 640 (small) */
@media (max-width: 1100px) {
  .monte-search-desktop { display: none; }
}
@media (max-width: 900px) {
  .monte-main-links { display: none; }
  .monte-burger { display: inline-flex; order: 0; width: 44px; height: 44px; }
  .monte-logo { margin-inline-end: auto; }
}
@media (max-width: 782px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .monte-header { position: sticky; top: var(--monte-topbar-h); }
  .monte-nav-wrap { gap: 12px; }
  .monte-logo { position: absolute; inset-inline: 0; margin-inline: auto; width: fit-content; min-height: 0; height: 62px; top: 5px; }
  .monte-logo__img { width: 62px; height: 62px; }
  .monte-nav-actions { margin-inline-start: auto; }
  .monte-user-btn, .monte-btn-ghost { display: none; }
  .monte-mob-search { display: block; padding-bottom: 12px; }
  .monte-search { padding-inline: 16px; }
  .monte-bn { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99; display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--monte-border,#536b00); box-shadow: 0 -4px 22px rgba(0,0,0,.07); }
  .monte-bn svg { width: 23px; height: 23px; }
  .monte-bn__label { font-size: 10.5px; line-height: 14.7px; }
  .monte-bn__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 9px 2px 8px; background: none; border: 0; color: #38383d; font: inherit; font-size: 10.5px; font-weight: 400; line-height: 19.95px; text-decoration: none; cursor: pointer; }
  .monte-bn__item.is-active { color: var(--monte-accent,#427c41); }
}
@media (max-width: 640px) {
  .monte-topbar__inner { display: flex; justify-content: center; gap: 6px; padding: 5px 34px 5px 12px; max-width: none; }
  .monte-topbar__side { display: none; }
}
/* Mobile drawer (burger) */
.monte-drawer{position:fixed;inset:0;z-index:1000}
.monte-drawer[hidden]{display:none}
.monte-drawer__veil{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.monte-drawer__panel{position:absolute;top:0;bottom:0;right:0;left:90px;max-width:340px;margin-inline-start:auto;display:flex;flex-direction:column;background:var(--monte-header-bg-solid,rgba(154,160,126,.96));box-shadow:0 0 40px rgba(0,0,0,.25);backdrop-filter:blur(12px)}
.monte-drawer__head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;height:69px;border-bottom:1px solid var(--monte-border)}
.monte-drawer__logo{display:flex;align-items:center;color:var(--monte-header-text);text-decoration:none;font-weight:700}
.monte-drawer__logo img{height:44px;width:auto;display:block}
.monte-drawer__close{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:var(--monte-text-dim);cursor:pointer;padding:0}
.monte-drawer__nav{display:flex;flex-direction:column}
.monte-drawer__link{display:flex;align-items:center;height:48px;padding:0 18px;border-bottom:1px solid var(--monte-border);font-weight:600;color:var(--monte-header-text);text-decoration:none}
.monte-drawer__foot{margin-top:auto;padding:8px 8px 10px}
.monte-drawer__row{display:flex;align-items:center;gap:12px;width:100%;height:48px;padding:0 10px;border:0;border-radius:12px;background:transparent;color:var(--monte-header-text);font:600 14px/1.9 var(--monte-font);text-decoration:none;cursor:pointer}
.monte-drawer__row:hover{background:var(--monte-ghost-bg-hover)}
.monte-drawer__row .monte-theme-toggle{display:none}
.monte-drawer .monte-ico-sun{display:none}
html[data-monte-theme=dark] .monte-drawer .monte-ico-sun{display:inline-flex}
html[data-monte-theme=dark] .monte-drawer .monte-ico-moon{display:none}
@media(min-width:901px){.monte-drawer{display:none!important}}
.monte-drawer__nav{padding-top:6px}

/* ---- Added-to-cart card + live cart badges ---- */
.monte-atc{position:fixed;z-index:2147483001;top:18px;inset-inline-end:18px;width:min(380px,calc(100vw - 24px));box-sizing:border-box;padding:14px 14px 16px;border-radius:18px;background:var(--monte-panel,#fff);color:var(--monte-text,#1e2a22);border:1px solid var(--monte-border,rgba(0,0,0,.1));box-shadow:0 22px 50px -18px rgba(10,20,14,.45),0 2px 6px rgba(10,20,14,.08);overflow:hidden;animation:monteAtcIn .34s cubic-bezier(.22,1,.36,1) both}
.monte-atc.is-out{animation:monteAtcOut .24s ease-in both}
@keyframes monteAtcIn{from{opacity:0;transform:translateY(-14px) scale(.96)}to{opacity:1;transform:none}}
@keyframes monteAtcOut{to{opacity:0;transform:translateY(-10px) scale(.97)}}
.monte-atc__row{display:flex;align-items:center;gap:12px}
.monte-atc__pic{position:relative;flex:0 0 58px;width:58px;height:58px;border-radius:14px;background:var(--monte-bg-2,#f1f2ee);border:1px solid var(--monte-border,rgba(0,0,0,.08))}
.monte-atc__pic img{display:block;width:100%;height:100%;object-fit:contain;border-radius:13px}
.monte-atc__ck{position:absolute;inset-block-end:-7px;inset-inline-start:-7px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--monte-accent-2,#19672a);color:var(--monte-on-accent,#fff);border:2px solid var(--monte-panel,#fff);animation:monteAtcPop .45s .12s cubic-bezier(.34,1.56,.64,1) both}
.monte-atc__ck svg{width:12px;height:12px}
@keyframes monteAtcPop{from{transform:scale(0)}to{transform:scale(1)}}
.monte-atc__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.monte-atc__body strong{font-size:14px;font-weight:800;color:var(--monte-accent-2,#19672a)}
.monte-atc__name{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.monte-atc__meta{font-size:11.5px;color:var(--monte-text-dimmer,#6b786f)}
.monte-atc__x{flex:0 0 auto;align-self:flex-start;width:26px;height:26px;border:0;border-radius:8px;background:none;color:var(--monte-text-dimmer,#6b786f);cursor:pointer;display:grid;place-items:center}
.monte-atc__x:hover{background:var(--monte-ghost-bg,rgba(0,0,0,.05))}
.monte-atc__x svg{width:14px;height:14px}
.monte-atc__go{display:flex;align-items:center;justify-content:center;margin-top:12px;padding:10px 14px;border-radius:12px;background:var(--monte-accent-2,#19672a);color:var(--monte-on-accent,#fff)!important;font-size:13px;font-weight:700;text-decoration:none;transition:filter .18s}
.monte-atc__go:hover{filter:brightness(1.08)}
.monte-atc__bar{position:absolute;inset-inline:0;inset-block-end:0;height:3px;background:var(--monte-accent-2,#19672a);opacity:.35;transform-origin:right center;animation:monteAtcBar 4.5s linear both}
.monte-atc.is-paused .monte-atc__bar{animation-play-state:paused}
@keyframes monteAtcBar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media(max-width:782px){.monte-atc{top:auto;inset-inline:12px;width:auto;bottom:calc(76px + env(safe-area-inset-bottom,0px))}@keyframes monteAtcIn{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}@keyframes monteAtcOut{to{opacity:0;transform:translateY(12px)}}}
.monte-bn__badge.is-bump,.monte-badge.is-bump{animation:monteBadgeBump .5s cubic-bezier(.34,1.56,.64,1)}
@keyframes monteBadgeBump{0%{transform:scale(.4)}60%{transform:scale(1.35)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.monte-atc,.monte-atc__ck,.monte-atc__bar,.monte-bn__badge.is-bump,.monte-badge.is-bump{animation:none}}