/* Visual theme: a warm, local shopping journal. */
.catalog-status { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 0; border-bottom:1px solid var(--line); font-size:12px; }
.catalog-status strong { display:block; font-size:13px; font-weight:700; }
.catalog-status span { display:block; color:var(--muted); margin-top:5px; line-height:1.6; }
.catalog-status p { margin:8px 0 0; line-height:1.6; }
.source-status + .source-status { margin-top:12px; }
.source-status.is-warning { color:#845523; }
.catalog-status-body { min-width:0; }
.catalog-status button { flex-shrink:0; padding:10px 14px; background:transparent; border:1px solid var(--line); border-radius:6px; color:var(--accent); font:inherit; font-weight:700; cursor:pointer; }
.catalog-status button:disabled { opacity:.5; cursor:wait; }
.catalog-status.is-warning { color:#845523; }
@media (max-width:600px) { .catalog-status { align-items:flex-start; gap:10px; } .catalog-status button { padding:10px; } }
:root {
  --bg: #f5f3ec;
  --text: #23392f;
  --muted: #71786e;
  --line: #dedfd4;
  --accent: #286247;
  --shadow: 0 8px 24px rgba(35, 57, 47, .045);
}
body { font-family: 'Manrope', Inter, system-ui, sans-serif; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { transition: background .2s, color .2s, transform .2s, border-color .2s; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid #91ae82; outline-offset: 4px;
}
.wrap { max-width: 1320px; padding-inline: 36px; }
.top { background: rgba(245, 243, 236, .96); border-bottom: 1px solid var(--line); }
.nav { height: 86px; gap: 22px; }
.brand { font-size: 25px; letter-spacing: -1.2px; font-weight: 800; }
.brand::before { content: '%'; display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 20px; transform: rotate(-12deg); }
.brand span { font-weight: 500; }
.navlinks { gap: 6px; }
.navlinks button { font-size: 13px; font-weight: 700; border-radius: 6px; padding: 11px 16px; }
.navlinks button.active, .navlinks button:hover { background: #e6eadd; color: var(--text); box-shadow: none; }
.city-btn { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.lang-wrap { background: transparent; border: 0; box-shadow: none; padding: 0; }
.lang-wrap:hover, .lang-wrap:focus-within { box-shadow: none; }
.lang-wrap .dropdown { min-width: 118px; }
.lang-wrap .dropdown-trigger { background: transparent; border: 0; box-shadow: none; font-size: 13px; padding-inline: 6px; }
.lang-icon { font-size: 20px; color: var(--text); }
.hero { padding: 65px 0 49px; border-bottom: 1px solid var(--line); }
.hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 65px; align-items: center; }
.eyebrow { background: transparent; padding: 0; border-radius: 0; color: var(--accent); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 800; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #e1e8d8; }
.hero h1 { font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.13; letter-spacing: -2px; margin: 21px 0 20px; }
.hero p { font-size: 15px; line-height: 1.8; max-width: 540px; }
.searchbox { padding: 6px; border-radius: 8px; margin-top: 28px; box-shadow: none; border-color: #cbd2c2; }
.searchbox::before { content: none; }
.search-icon { flex-shrink: 0; margin-left: 13px; color: var(--muted); }
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #e4eadd; }
.searchbox input { font-size: 14px; background: transparent; color: var(--text); }
.searchbox input:focus, .searchbox input:focus-visible { outline: none; box-shadow: none; }
.searchbox input { border: 0; border-radius: 0; appearance: none; }
.searchbox { transition: border-color .2s, box-shadow .2s; }
.catalog-search-slot:empty { display: none; }
.search-result-meta { color: var(--muted); font-size: 11px; padding: 8px 4px 0; }
html.search-docked { overflow-anchor: none; }
@media (min-width: 761px) {
  .catalog-search-slot.is-floating { position: sticky; top: 87px; z-index: 10; padding: 12px 0 16px; background: var(--bg); }
  .catalog-search-slot.is-floating .searchbox { margin-top: 0; box-shadow: 0 6px 22px #23392f12; }
}
@media (max-width: 760px) {
  .catalog-search-slot { position: sticky; top: 65px; z-index: 10; background: var(--bg); padding: 8px 0 14px; }
  .catalog-search-slot .searchbox { margin-top: 0; }
  .catalog-search-slot .searchbox input { min-width: 0; font-size: 16px; }
}
.lang-wrap #langDropdown { min-width: 140px; }
.lang-wrap #langDropdown .dropdown-trigger { padding: 10px 12px; gap: 9px; border: 1px solid var(--line); border-radius: 7px; background: #fffef980; }
.lang-wrap #langDropdown .dropdown-trigger:hover,
.lang-wrap #langDropdown.open .dropdown-trigger { background: #e9eddf; border-color: #b9c8ae; }
.language-globe { flex-shrink: 0; color: var(--accent); }
#langDropdown .dropdown-chevron { margin-left: auto; flex-shrink: 0; }
#langDropdown .dropdown-menu { left: auto; right: 0; min-width: 210px; padding: 7px; top: calc(100% + 10px); border-radius: 10px; box-shadow: 0 12px 32px #23392f1a; }
#langDropdown .dropdown-menu button { padding: 11px 10px; gap: 11px; min-height: 42px; border-radius: 6px; font-weight: 500; }
#langDropdown .dropdown-menu button::before { content: attr(data-code); font-size: 9px; font-weight: 800; letter-spacing: .5px; color: #788172; width: 25px; flex-shrink: 0; }
#langDropdown .dropdown-menu button[aria-selected='true'] { background: #e9efdf; font-weight: 700; }
#langDropdown .dropdown-menu button[aria-selected='true']::after { content: '✓'; margin-left: auto; font-size: 14px; color: var(--accent); }
.searchbtn { background: var(--accent); border-radius: 5px; font-size: 13px; padding: 14px 23px; }
.searchbtn:hover { background: #1c4b35; }
.stats { position: relative; overflow: hidden; background: #254c3b; border-radius: 10px; padding: 30px; box-shadow: 8px 8px 0 #e2e6d6; }
.stats::after { content: '%'; position: absolute; right: 20px; top: 0; font-family: 'Lora', Georgia, serif; font-size: 150px; line-height: 1.1; color: #365d49; pointer-events: none; transform: rotate(-12deg); }
.stats > * { position: relative; z-index: 1; }
.stats .big { font-size: 76px; font-weight: 500; letter-spacing: -4px; line-height: 1.1; color: #e5edb9; font-variant-numeric: tabular-nums; }
.stats p { color: #d5ddce; font-size: 13px; margin: 10px 0 27px; }
.mini { gap: 0; border-top: 1px solid #53705b; padding-top: 20px; }
.mini div { background: transparent; padding: 0; border-radius: 0; }
.mini div + div { border-left: 1px solid #53705b; padding-left: 22px; }
.mini b { font-size: 27px; font-weight: 600; color: #f2f3e9; font-variant-numeric: tabular-nums; }
.mini span { display: block; margin-top: 5px; color: #ced9c7; }
.toolbar { margin: 34px 0 24px; align-items: center; }
.section-title { font-size: 23px; font-weight: 800; letter-spacing: -.7px; }
.sort-chips { gap: 5px; }
.chip { border-radius: 5px; background: transparent; font-size: 12px; padding: 9px 12px; border-color: var(--line); color: var(--muted); }
.chip:hover { background: #e9ecdf; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.content { grid-template-columns: 205px minmax(0, 1fr); gap: 32px; }
.sidebar { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 5px 24px 0 0; border-right: 1px solid var(--line); top: 110px; }
.sidebar h3 { color: var(--muted); font-size: 10px; letter-spacing: 1.7px; font-weight: 800; }
.store { font-size: 13px; padding: 10px 0; border-radius: 5px; }
.store:hover { background: #ebeee2; }
.store input { accent-color: var(--accent); width: 15px; height: 15px; }
.store-logo { border-radius: 5px; width: 27px; height: 27px; }
.sidebar .chips { gap: 6px; }
.sidebar .ghost { padding: 10px 0; font-size: 12px; }
.cards { gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 9px; padding: 16px; box-shadow: none; transition: transform .22s, box-shadow .22s, border-color .22s; }
.card:hover { transform: translateY(-4px); border-color: #a4b39b; box-shadow: 0 12px 25px #23392f0d; }
.cardtop b { font-size: 11px; font-weight: 700; }
.discount { background: #e8efce; color: #36542d; border-radius: 4px; font-size: 12px; padding: 6px 8px; }
.prodimg { height: 164px; border-radius: 5px; background: #f4f3ed; font-size: 60px; margin: 15px 0 18px; }
.prodimg, .detailimg { position: relative; min-width: 0; }
.prodimg img, .detailimg img {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  object-fit: contain;
  padding: 0;
}
.prodimg img { width: calc(100% - 24px); height: calc(100% - 24px); max-width: calc(100% - 24px); max-height: calc(100% - 24px); }
.cat { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.name { font-size: 14px; font-weight: 700; margin: 8px 0 14px; min-height: 39px; line-height: 1.4; }
.price { font-size: 25px; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.old { color: #8e9388; font-size: 11px; }
.sub { border-top: 1px solid #eeeee7; padding-top: 11px; margin-top: 15px; color: var(--muted); font-size: 10px; }
.fav { border-radius: 50%; border-color: var(--line); color: var(--accent); font-size: 19px; width: 34px; height: 34px; }
.fav:hover { background: #e8efce; transform: scale(1.08); }
.fav[aria-pressed='true'] { background: #e8efce; border-color: #d4dfb8; }
.urgent { color: #ab6539; font-weight: 700; }
.store-card { border-radius: 9px; box-shadow: none; padding: 28px; }
.store-card h3 { font-size: 18px; }
.store-card .count { font-weight: 600; color: var(--accent); }
.footer { border-top: 1px solid var(--line); margin-top: 44px; padding: 25px 0 40px; font-size: 11px; }
.nores { background: #fafaf5; border-radius: 8px; border-color: #cdd6c1; }
.modal { background: #19372b80; backdrop-filter: blur(5px); }
.dialog { border-radius: 12px; padding: 28px; animation: card-enter .25s both; }
.close { background: #edf0e5; color: var(--text); border-radius: 5px; }
.detailimg { background: #f4f3ed; border-radius: 8px; height: clamp(240px, 34vw, 360px); min-height: 0; align-self: start; }
.detail h2 { font-family: 'Lora', Georgia, serif; font-weight: 500; line-height: 1.2; }
.bigprice { font-weight: 800; }
.toast { background: var(--text); border-radius: 7px; max-width: calc(100% - 32px); text-align: center; }
.dropdown-trigger { border-radius: 6px; box-shadow: none; font-size: 13px; }
.dropdown-menu { border-radius: 7px; border-color: var(--line); background: #fffef9; box-shadow: 0 14px 30px #23392f15; }
.dropdown-menu button { border-radius: 4px; font-size: 13px; }
.dropdown-menu button:hover, .dropdown-menu button[aria-selected='true'] { background: #e8efdd; color: var(--accent); }
@keyframes card-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .hero-grid { gap: 32px; }
  .nav { gap: 10px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .hero h1 { font-size: 42px; }
  .content { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 20px; }
  #stores { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .sidebar .sep { margin: 12px 0; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 20px; }
  .nav { height: 72px; gap: 10px; }
  .brand { font-size: 21px; }
  .brand::before { width: 29px; height: 29px; font-size: 17px; margin-right: 7px; }
  .menu-btn { display: grid; place-items: center; border-radius: 5px; width: 36px; height: 36px; }
  .navlinks { display: none; position: absolute; top: 73px; left: 20px; right: 20px; padding: 8px; background: #fffef9; border: 1px solid var(--line); border-radius: 7px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .nav.open .navlinks { display: flex; }
  .city-btn { display: none; }
  .hero { padding: 35px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(35px, 7vw, 48px); letter-spacing: -1px; }
  .hero p { font-size: 14px; }
  .stats { padding: 23px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 4px 20px; }
  .stats .big { font-size: 54px; letter-spacing: -2px; }
  .stats p { grid-column: 1; margin: 4px 0 0; font-size: 11px; }
  .mini { grid-column: 2; grid-row: 1 / 3; align-self: center; border-top: 0; padding-top: 0; }
  .mini b { font-size: 23px; }
  .mini span { font-size: 10px; }
  .mini div + div { padding-left: 15px; }
  .toolbar { margin-top: 28px; }
  .dialog { padding: 20px; }
  .detail { grid-template-columns: 1fr; }
  .detailimg { height: clamp(180px, 32svh, 260px); min-height: 0; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 11px; }
  .prodimg { height: 130px; font-size: 49px; margin: 12px 0; }
  .cardtop { gap: 5px; flex-wrap: wrap; }
  .cardtop .store-logo { width: 21px; height: 21px; font-size: 10px; }
  .discount { padding: 4px; font-size: 10px; }
  .name { font-size: 12px; min-height: 51px; }
  .price-row { flex-wrap: wrap; gap: 3px 7px; }
  .price { font-size: 20px; }
  .cat { font-size: 9px; letter-spacing: .3px; }
  .lang-icon { display: none; }
  .lang-wrap .dropdown { min-width: 95px; }
  .lang-wrap .dropdown-trigger { font-size: 11px; }
}
@media (max-width: 360px) {
  .wrap { padding-inline: 12px; }
  .brand { font-size: 18px; }
  .brand::before { display: none; }
  .stats { gap: 4px 12px; }
  .cardtop b { font-size: 10px; }
}
.stats-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; font-size: 10px; color: #ced9c7; }
.stats-heading button { border: 0; border-bottom: 1px solid #718774; background: none; color: #e5edb9; padding: 4px 0; cursor: pointer; font-size: 10px; }
.stats-find { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; margin-top: 22px; padding: 17px 0 0; border: 0; border-top: 1px solid #53705b; background: transparent; color: #f2f3e9; cursor: pointer; }
.stats-find:hover { color: #e5edb9; }
.stats-find .find-label { display: flex; justify-content: space-between; color: #ced9c7; font-size: 10px; }
.stats-find strong { font-size: 14px; font-weight: 600; }
.stats-find > span:last-child { font-size: 12px; color: #e5edb9; }
.compare-toggle { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 20px; padding: 13px 15px; background: #e8efdd; color: var(--accent); border: 1px solid #cbd8bd; border-radius: 6px; font-weight: 700; cursor: pointer; text-align: left; }
.compare-toggle:hover, .compare-toggle[aria-expanded='true'] { background: #dce8cb; }
.compare-count { margin-left: auto; border-radius: 50%; min-width: 24px; padding: 3px; text-align: center; background: #fff9; font-size: 12px; }
.compare-note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.compare-row { font-size: 13px; border-bottom: 0; padding-bottom: 8px; }
.price-bar { height: 6px; background: #edf0e5; border-radius: 3px; overflow: hidden; margin-bottom: 7px; }
.price-bar span { display: block; height: 100%; background: #9aa98e; border-radius: inherit; }
.price-bar .lowest { background: var(--accent); }
.price-difference { font-size: 10px; color: var(--muted); margin-bottom: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cart-page { display: none; }
.browser-backup { margin-top: 32px; text-align: right; }
.undo-notice { position: fixed; z-index: 90; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 20px; padding: 12px 18px; max-width: calc(100% - 28px); background: var(--text); color: #fff; border-radius: 8px; box-shadow: 0 8px 24px #23392f25; font-size: 13px; }
.undo-notice button { border: 0; background: transparent; color: #e5edb9; font: inherit; font-weight: 700; cursor: pointer; padding: 10px 0; }
.manual-item-form { padding: 18px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf7; }
.manual-item-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.manual-item-form > div { display: flex; gap: 9px; }
.manual-item-form input { min-width: 0; padding: 12px; border: 1px solid #cbd6bf; border-radius: 5px; background: #fff; color: var(--text); font-size: 14px; }
#manualName { flex: 1; }
#manualQuantity { width: 70px; }
.cart-store-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.bought-section { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #ecefe4; }
.bought-section summary { cursor: pointer; font-size: 13px; font-weight: 700; padding: 7px 0; }
.bought-section h4 { font-size: 12px; margin: 20px 0 10px; }
.bought-section .cart-item { margin-bottom: 10px; }
.bought-toggle { min-width: 34px; min-height: 34px; }
@media (max-width: 640px) {
  .manual-item-form > div { flex-wrap: wrap; }
  #manualName { flex-basis: calc(100% - 80px); }
  .manual-item-form .searchbtn { width: 100%; }
  .manual-item-form input { font-size: 16px; }
  .cart-store-filters .chip, .quantity-controls button, .cart-remove, .bought-toggle { min-height: 40px; }
  .bought-section { padding: 10px; }
}
.results-count { font-size: 11px; color: var(--muted); margin: 8px 0 0; }
.results-count:empty { display: none; }
.cart-share-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.copy-list { border: 1px solid #cbd6bf; border-radius: 6px; padding: 11px 15px; background: #e8eddd; color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; }
.copy-list:hover { background: #dde8cc; }
.cart-store-group { display: grid; gap: 10px; margin-bottom: 13px; }
.cart-group-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 9px 2px; border-bottom: 1px solid var(--line); margin-bottom: 3px; }
.cart-group-heading h3 { margin: 0 0 5px; font-size: 17px; }
.cart-group-heading span { font-size: 11px; color: var(--muted); }
.cart-group-heading > strong { font-size: 18px; }
.bought-toggle { display: grid; place-items: center; flex-shrink: 0; width: 27px; height: 27px; border: 1px solid #aebda1; border-radius: 50%; background: #fff; color: #fff; cursor: pointer; }
.bought-toggle[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); }
.cart-bought { background: #f0f3e9; }
.cart-bought .cart-item-info h3 { text-decoration: line-through; color: var(--muted); }
.cart-bought .cart-item-image { opacity: .5; }
.bought-label { font-size: 10px; color: var(--accent); font-weight: 700; }
.deadline-badge { display: inline-block; padding: 5px 8px; margin: 0 0 9px; background: #fbedd8; color: #986044; border-radius: 4px; font-size: 10px; font-weight: 700; }
.cart-item-info > strong { display: block; }
.cheaper-offer { display: grid; gap: 6px; margin-top: 13px; padding: 10px 12px; border: 1px solid #d4dfc6; border-radius: 6px; background: #eff5e7; font-size: 11px; line-height: 1.6; }
.cheaper-offer small { color: var(--muted); font-size: 10px; }
.cheaper-offer button { justify-self: start; border: 0; padding: 4px 0; background: transparent; color: var(--accent); font-weight: 700; font-size: 11px; cursor: pointer; }
.cheaper-offer button:hover { text-decoration: underline; }
.share-list-panel { padding: 18px; margin-bottom: 20px; background: #e8eddd; border-radius: 8px; }
.share-list-panel label { display: block; margin-bottom: 12px; font-size: 12px; }
.share-list-panel textarea { width: 100%; padding: 12px; border: 1px solid #bacaaa; border-radius: 5px; font: inherit; font-size: 12px; line-height: 1.7; resize: vertical; }
@media (max-width: 640px) {
  .cart-share-toolbar { flex-wrap: wrap; }
  .cart-item { position: relative; }
  .cart-item .bought-toggle { width: 25px; height: 25px; }
  .cart-item .cart-item-image { width: 45px; }
  .cart-item .cart-item-info { min-width: 140px; }
}
.stores-page { display: none; }
.page-stores .stores-page { display: block; }
.page-favorites .content { margin-bottom: 32px; }
.weekly-section { padding: 32px 0 4px; }
.page-stores .weekly-section, .page-favorites .weekly-section, .page-cart .weekly-section,
.page-stores .quick-filters, .page-cart .quick-filters { display: none; }
.weekly-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 19px; }
.weekly-heading h2 { font-size: 22px; letter-spacing: -.6px; margin: 0 0 8px; }
.weekly-heading p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.weekly-demo { color: var(--muted); font-size: 10px; max-width: 160px; line-height: 1.5; text-align: right; }
.weekly-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.weekly-card { display: flex; flex-direction: column; gap: 11px; text-align: left; padding: 23px; background: #ecefe2; border: 1px solid #dce3d0; border-radius: 8px; color: var(--text); cursor: pointer; }
.weekly-card > svg { color: var(--accent); }
.weekly-card-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.weekly-preview { color: var(--muted); font-size: 11px; line-height: 1.7; flex: 1; }
.weekly-count { font-size: 11px; color: var(--accent); font-weight: 700; }
.weekly-card:hover, .weekly-card.active { border-color: #a6ba94; background: #e1eacd; }
.weekly-card:disabled { opacity: .55; cursor: default; }
.quick-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 21px; }
.quick-chip { border-style: dashed; }
.quick-chip.active { border-style: solid; }
.quick-clear { border: 0; background: transparent; color: var(--muted); font-size: 11px; padding: 9px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .weekly-heading { flex-direction: column; gap: 9px; }
  .weekly-demo { max-width: none; text-align: left; }
  .weekly-cards { grid-template-columns: 1fr; gap: 9px; }
  .weekly-card { padding: 16px; gap: 8px; }
  .weekly-card > svg { display: none; }
  .weekly-heading h2 { font-size: 20px; }
}
.location-strip { padding-top: 23px; }
.location-strip .city-btn { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; background: #e8eddf; border: 1px solid #d9e0cd; border-radius: 6px; color: var(--accent); font-size: 12px; font-weight: 600; }
.location-strip .city-btn:hover { background: #dce7ce; border-color: #b8c9a7; }
.location-arrow { margin-left: 8px; opacity: .65; }
.hero { padding-top: 30px; }
.cart-nav { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0; min-height: 42px; padding: 10px 15px; border: 1px solid #254c3b; border-radius: 7px; background: #254c3b; color: #f5f3ec; font-size: 12px; font-weight: 700; cursor: pointer; }
.cart-nav:hover, .cart-nav.active { background: #193d2d; box-shadow: 0 3px 10px #254c3b15; }
.cart-nav svg { flex-shrink: 0; }
.cart-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 5px; border-radius: 11px; background: #e5edb9; color: #254c3b; font-size: 11px; font-variant-numeric: tabular-nums; }
.fav { display: inline-grid; place-items: center; }
.fav svg { pointer-events: none; }
.detail-fav { margin-left: auto; width: 40px; height: 40px; }
.offer-cart-controls { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 40px; margin-top: 12px; padding: 4px 6px 4px 10px; border: 1px solid #b7cda4; border-radius: 5px; background: #e3edd7; color: var(--accent); }
.in-cart-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; }
.in-cart-label svg { flex-shrink: 0; }
.offer-cart-controls .quantity-controls { background: #fff; border-color: #c8d6bc; }
.offer-cart-controls .quantity-controls button { width: 29px; height: 29px; }
.offer-cart-controls .quantity-controls span { min-width: 23px; font-weight: 700; }
.detail-cart-controls { padding: 9px 12px; }
.detail-cart-controls .in-cart-label { font-size: 13px; }
.compare-offer { display: block; width: 100%; padding: 9px 12px; margin-top: 8px; text-align: left; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--text); cursor: pointer; }
.compare-offer:hover { border-color: #a4b996; background: #f5f8ef; }
.compare-offer.current { border-color: #b8cba9; background: #edf3e4; }
.compare-offer .compare-row { padding-top: 0; }
.compare-offer .price-bar, .compare-offer .price-difference { display: block; }
.compare-offer .price-difference { margin-bottom: 0; }
.comparison-name { display: block; font-size: 14px; font-weight: 650; line-height: 1.4; }
.comparison-original, .comparison-meta { display: block; margin-top: 5px; font-size: 11px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.comparison-unit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--accent); font-weight: 650; }
.comparison-lower { border-radius: 4px; background: #e5edb9; padding: 3px 6px; font-size: 10px; }
.comparison-heading { margin: 22px 0 8px; font-size: 14px; }
.detail > .compare { grid-column: 1 / -1; width: 100%; }
.comparison-results { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 10px; }
.comparison-other { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.comparison-other summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 650; }
.comparison-empty { padding: 12px 0; }
.cart-replacements { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding: 9px 11px; background: #edf3e4; color: var(--accent); border: 1px solid #cbd9bc; border-radius: 6px; font: inherit; font-size: 12px; cursor: pointer; }
.cart-replacements span { background: #dce8c8; border-radius: 10px; padding: 1px 6px; }
.replacement-picker { margin-top: 20px; }
.replacement-picker h2 { margin-bottom: 18px; font-size: 24px; }
.replacement-picker h3 { font-size: 15px; line-height: 1.5; }
.replacement-original { padding: 16px; background: #f5f4ec; border-radius: 8px; margin-bottom: 22px; }
.replacement-original > span, .replacement-original small { font-size: 12px; color: var(--muted); }
.replacement-original p { font-size: 14px; }
.replacement-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 12px; }
.replacement-option { display: block; text-align: left; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--text); cursor: pointer; font: inherit; }
.replacement-option.selected { background: #edf3e4; border: 2px solid var(--accent); padding: 15px; }
.replacement-option:focus-visible, .cart-replacements:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.replacement-kind { display: block; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.replacement-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.replacement-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.replacement-form input { width: 100px; max-width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; color: var(--text); }
.replacement-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.replacement-totals > div { padding: 14px; background: #f5f4ec; border-radius: 7px; }
.replacement-totals span, .replacement-totals small { display: block; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.replacement-totals b { display: block; margin: 8px 0; font-size: 20px; }
.replacement-difference { color: var(--accent); font-size: 15px; font-weight: 600; }
.replacement-warning { padding: 12px; background: #fff5df; border: 1px solid #ead5ac; border-radius: 7px; line-height: 1.6; font-size: 13px; }
.replacement-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.replacement-option-total { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; margin: 14px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.replacement-option-total strong { color: var(--accent); }
.replacement-option-caution { display: block; font-size: 12px; color: #805119; margin-bottom: 8px; }
.replacement-form h3 { margin-bottom: 16px; }
.replacement-attributes { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.replacement-attribute { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.replacement-attribute:last-child { border-bottom: 0; }
.replacement-attribute > span { font-size: 11px; color: var(--muted); }
.replacement-attribute > div { display: grid; grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); gap: 12px; margin-top: 5px; font-size: 13px; align-items: center; }
.replacement-arrow { text-align: center; color: var(--accent); font-size: 22px; }
.shopping-plan { margin-bottom: 24px; padding: 22px; background: #edf1e5; border: 1px solid var(--line); border-radius: 10px; }
.shopping-plan header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.shopping-plan h3 { margin: 0 0 8px; }
.shopping-plan header span { font-size: 13px; color: var(--muted); }
.shopping-plan header strong { display: block; margin-top: 6px; font-size: 27px; }
.shopping-plan-stores { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 10px; }
.shopping-plan-stores button { padding: 14px; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); font: inherit; cursor: pointer; }
.shopping-plan-stores button[aria-pressed=true] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.shopping-plan-stores button > span { display: block; color: var(--muted); font-size: 12px; margin: 8px 0; }
.shopping-plan-stores button strong { color: var(--accent); }
.shopping-route { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.shopping-route summary { cursor: pointer; font-weight: 600; }
.route-stops { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 16px; margin-top: 18px; }
.route-stop label, .route-controls label { display: block; font-size: 13px; }
.route-stop input, .route-controls select { display: block; box-sizing: border-box; width: 100%; padding: 12px; margin: 8px 0; border: 1px solid var(--line); border-radius: 6px; font: inherit; color: var(--text); background: #fff; }
.route-stop a { color: var(--accent); font-size: 12px; }
.route-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-top: 16px; }
.route-controls select { width: auto; margin-bottom: 0; }
.route-link { display: inline-block; padding: 13px 16px; border-radius: 6px; background: var(--accent); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.route-link[aria-disabled=true] { opacity: .5; cursor: default; }
.shopping-plan button:focus-visible, .shopping-plan a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.replacement-attribute > div span { overflow-wrap: anywhere; }
.replacement-attribute.different { background: #f1f4e9; }
.replacement-difference.increased { color: #805119; }
.modal.open ~ .undo-notice { visibility: hidden; }
.compare-offer .compare-row { gap: 8px; flex-wrap: wrap; }
.compare-toggle { flex-wrap: wrap; }
.compare-arrow { color: var(--accent); font-weight: 400; margin-left: 5px; }
.page-cart .cart-page { display: block; }
.page-cart .deals-page, .page-cart .stores-page, .page-cart .hero,
.page-cart .sort-chips, .page-cart .sort-dropdown { display: none; }
.add-to-cart { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; padding: 10px 8px; border: 1px solid #d6dec9; border-radius: 5px; background: #f0f4e7; color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; }
.add-to-cart:hover { background: #e1ebd2; border-color: #a7ba94; }
.add-to-cart > span { font-size: 18px; line-height: 1; }
.detail-cart-add { background: var(--accent); color: #fff; padding: 13px; }
.detail-cart-add:hover { background: #1c4b35; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.cart-items { display: grid; gap: 12px; }
.cart-item { display: flex; gap: 20px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.cart-item-image { width: 90px; flex-shrink: 0; }
.cart-item-image .prodimg { height: 90px; margin: 0; font-size: 37px; }
.cart-item-image .prodimg img { width: calc(100% - 12px); height: calc(100% - 12px); max-width: calc(100% - 12px); max-height: calc(100% - 12px); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { margin: 7px 0; font-size: 15px; overflow-wrap: anywhere; }
.cart-validity { color: var(--muted); font-size: 11px; margin: 6px 0 10px; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.quantity-controls { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.quantity-controls button { width: 34px; height: 34px; background: #f7f8f0; border: 0; color: var(--accent); cursor: pointer; font-size: 18px; }
.quantity-controls button:hover { background: #e1ebd2; }
.quantity-controls button:disabled { opacity: .35; cursor: default; }
.quantity-controls span { min-width: 30px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.cart-remove { border: 0; background: none; color: #95634e; font-size: 11px; cursor: pointer; padding: 4px; }
.cart-remove:hover { text-decoration: underline; }
.cart-summary { position: sticky; top: 110px; background: #e8eddd; padding: 24px; border-radius: 9px; font-size: 13px; }
.cart-summary > strong { display: block; margin: 14px 0 24px; font-size: 32px; letter-spacing: -1px; }
.cart-summary > p:first-of-type { border-top: 1px solid #cbd6bf; padding-top: 18px; line-height: 1.6; }
.cart-summary b { display: block; margin-top: 8px; font-size: 21px; color: var(--accent); }
.cart-status { color: #986044; font-size: 11px; line-height: 1.6; }
.cart-inactive { background: #faf9f4; border-style: dashed; }
[hidden] { display: none !important; }
@media (max-width: 1050px) {
  .navlinks { display: none; position: absolute; top: 100%; left: 20px; right: 20px; padding: 8px; background: #fffef9; border: 1px solid var(--line); border-radius: 7px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .nav.open .navlinks { display: flex; }
  .menu-btn { display: grid; place-items: center; border-radius: 5px; }
}
@media (max-width: 760px) {
  .cart-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .location-strip { padding-top: 18px; }
  .cart-nav { padding: 9px; gap: 5px; }
  .cart-nav #navCartLabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cart-summary { position: static; }
  .cart-item { gap: 12px; padding: 12px; flex-wrap: wrap; }
  .cart-item .cart-item-image { width: 76px; }
  .cart-item-image .prodimg { height: 80px; font-size: 30px; }
  .cart-replacements { flex-wrap: nowrap; gap: 4px; padding: 8px; font-size: 11px; }
  .cart-item-actions { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; padding-top: 12px; border-top: 1px solid var(--line); }
  .cart-item-info h3 { font-size: 13px; }
  .add-to-cart { font-size: 11px; }
}
@media (max-width: 640px) {
  .offer-cart-controls { flex-wrap: wrap; justify-content: center; padding: 6px; gap: 6px 10px; }
  .detail-cart-controls { justify-content: space-between; }
}
@media (max-width: 760px) {
  .stats-heading { grid-column: 1 / -1; margin-bottom: 8px; }
  .stats .big { grid-column: 1; grid-row: 2; }
  .stats p { grid-row: 3; }
  .stats .mini { grid-row: 2 / 4; }
  .stats-find { grid-column: 1 / -1; margin-top: 14px; }
}
/* Compact header and stable action areas on small screens. */
@media (max-width: 760px) {
  .nav { height: 64px; gap: 7px; padding-inline: 14px; }
  .brand { display: inline-flex; align-items: center; flex-shrink: 0; font-size: 18px; letter-spacing: -.8px; white-space: nowrap; }
  .brand::before { display: inline-grid; width: 24px; height: 24px; margin-right: 6px; font-size: 14px; }
  .menu-btn { flex-shrink: 0; width: 36px; height: 38px; min-height: 38px; padding: 0; font-size: 18px; }
  .lang-wrap { flex-shrink: 0; }
  .lang-wrap #langDropdown { width: 66px; min-width: 0; }
  .lang-wrap #langDropdown .dropdown-trigger { height: 38px; padding: 7px 9px; gap: 5px; justify-content: center; }
  .language-globe { display: none; }
  #langDropdown .dropdown-value { font-size: 0; }
  #langDropdown .dropdown-value::after { content: attr(data-short); font-size: 11px; font-weight: 700; letter-spacing: .4px; }
  #langDropdown .dropdown-chevron { width: 11px; height: 11px; margin-left: 1px; }
  #langDropdown .dropdown-menu { min-width: 200px; }
  .cart-nav { min-height: 38px; height: 38px; padding: 7px 8px; gap: 5px; }
  .cart-nav > svg { width: 18px; height: 18px; }
  .cart-badge { min-width: 18px; height: 18px; font-size: 10px; padding-inline: 4px; }
  .navlinks { top: 100%; }
}
@media (max-width: 640px) {
  .card { display: flex; flex-direction: column; min-width: 0; }
  .card .sub { margin-top: auto; padding-top: 12px; min-height: 48px; gap: 5px; }
  .card .sub > span { flex: 1; min-width: 0; line-height: 1.5; }
  .card .fav { flex-shrink: 0; width: 30px; height: 30px; }
  .card .fav svg { width: 17px; height: 17px; }
  .card > .add-to-cart, .card > .offer-cart-controls { box-sizing: border-box; height: 72px; min-height: 72px; margin-top: 10px; padding: 6px 5px; border-radius: 6px; }
  .card > .add-to-cart { align-items: center; justify-content: center; gap: 5px; font-size: 11px; line-height: 1.3; }
  .card > .offer-cart-controls { display: grid; grid-template-rows: 16px 36px; justify-items: center; justify-content: stretch; align-content: center; gap: 4px; }
  .card .in-cart-label { justify-content: center; width: 100%; font-size: 10px; line-height: 16px; white-space: nowrap; gap: 4px; }
  .card .in-cart-label svg { width: 14px; height: 14px; }
  .card .offer-cart-controls .quantity-controls { height: 36px; flex-shrink: 0; }
  .card .offer-cart-controls .quantity-controls button { display: grid; place-items: center; width: 32px; height: 34px; min-height: 34px; padding: 0; font-size: 18px; line-height: 1; }
  .card .offer-cart-controls .quantity-controls span { display: grid; place-items: center; min-width: 26px; height: 34px; font-size: 12px; line-height: 1; }
  .detail-cart-controls { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; }
  .detail-cart-controls .in-cart-label { min-width: 0; font-size: 12px; }
  .detail-cart-controls .quantity-controls { flex-shrink: 0; }
}
@media (max-width: 360px) {
  .nav { gap: 5px; padding-inline: 10px; }
  .brand { font-size: 16px; }
  .brand::before { width: 21px; height: 21px; font-size: 12px; margin-right: 4px; }
  .lang-wrap #langDropdown { width: 57px; }
  .cart-nav { padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.offer-description { white-space: pre-line; color: #637168; line-height: 1.6; margin: 12px 0 18px; font-size: 14px; }
.translation-original { font-size: 12px; color: #7a847d; line-height: 1.5; margin: -4px 0 12px; }
/* Home-screen installation stays optional and uses the browser's own prompt. */
.install-card{display:flex;align-items:flex-start;gap:18px;margin:36px 0 20px;padding:24px;background:#eaf0e2;border:1px solid #d5ddcc;border-radius:14px;}
.install-card[hidden]{display:none;}
.install-card img{border-radius:12px;flex-shrink:0;}
.install-card h3{margin:0 0 8px;font-size:19px;}
.install-card p{font-size:14px;line-height:1.65;margin:8px 0;color:#52645a;}
.install-card summary{cursor:pointer;font-size:14px;color:#255d47;}
.install-card .searchbtn{margin-top:12px;}
.install-card #installStatus:empty{display:none;}
@media(max-width:560px){.install-card{padding:18px;gap:12px;}.install-card img{width:38px;height:38px;}.install-card h3{font-size:17px;}}
